Bug 1609309

Summary: Openshift deployment via Director fails due to missing openshift-ansible
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: openstack-tripleo-heat-templatesAssignee: Martin André <m.andre>
Status: CLOSED ERRATA QA Contact: Marius Cornea <mcornea>
Severity: low Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: dbecker, fpercoco, jslagle, m.andre, mburns, morazi
Target Milestone: betaKeywords: Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-common-9.4.1-0.20181012010864.67bab16.el7ost openstack-tripleo-heat-templates-9.0.1-0.20181013060860.ffbe879.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 11:50:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marius Cornea 2018-07-27 13:59:04 UTC
Description of problem:

Openshift deployment via Director fails due to missing openshift-ansible:

[DEPRECATION WARNING]: 'include' for playbook includes. You should use 
'import_playbook' instead. This feature will be removed in version 2.8. 
Deprecation warnings can be disabled by setting deprecation_warnings=False in 
ansible.cfg.
ERROR! Unable to retrieve file contents
Could not find or access '/usr/share/ansible/openshift-ansible/playbooks/deploy_cluster.yml'

We should install openshift-ansible automatically or via an option in underlcoud.conf

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Deploy OSP14 undercloud
2. Deploy openshift:

openstack overcloud deploy \
  --templates \
  --disable-validations \
  --stack openshift \
  -r $HOME/openshift_roles_data.yaml \
  -e /usr/share/openstack-tripleo-heat-templates//environments/openshift.yaml \
  -e $HOME/openshift_env.yaml \
  -e /home/stack/overcloud_images.yaml


Actual results:
[root@undercloud-0 stack]# tail  /var/lib/mistral/49dcefbe-4c1d-44bc-8aa7-c86d1c225a28/openshift/playbook.log
[DEPRECATION WARNING]: 'include' for playbook includes. You should use 
'import_playbook' instead. This feature will be removed in version 2.8. 
Deprecation warnings can be disabled by setting deprecation_warnings=False in 
ansible.cfg.
ERROR! Unable to retrieve file contents
Could not find or access '/usr/share/ansible/openshift-ansible/playbooks/deploy_cluster.yml'


Expected results:
openshift-ansible is available.

Additional info:

Comment 1 Flavio Percoco 2018-08-08 11:55:12 UTC
We need to find a way to properly install OSA.

We depend on OSA but we don't install it automatically. One option would be to install it as a dependency for THT. Another option would be to document the process and requirement. In the future, we won't need this dependency if we manage to use the OSA image instead of the RPM

Comment 2 Martin André 2018-08-08 11:55:55 UTC
With containerized undercloud, it should be added to mistral base image packages via our kolla override file.

Comment 3 Flavio Percoco 2018-08-08 12:01:15 UTC
> With containerized undercloud, it should be added to mistral base image packages via our kolla override file.

Correct! If the migration to using OSA's container image doesn't land, we'll have to do this. I guess we could do it in parallel.

Comment 4 Martin André 2018-10-12 14:49:45 UTC
This patch to use the containerized openshift-ansible has been tested for some time upstream: https://review.openstack.org/#/c/583868/. It depends on a wrapper script in tripleo-common, https://review.openstack.org/#/c/605399/.

Comment 8 Tomas Sedovic 2018-11-07 09:58:00 UTC
*** Bug 1635293 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2019-01-11 11:50:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:0045