Bug 1609309 - Openshift deployment via Director fails due to missing openshift-ansible
Summary: Openshift deployment via Director fails due to missing openshift-ansible
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: beta
: 14.0 (Rocky)
Assignee: Martin André
QA Contact: Marius Cornea
URL:
Whiteboard:
: 1635293 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-27 13:59 UTC by Marius Cornea
Modified: 2019-01-11 11:51 UTC (History)
6 users (show)

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:
Clone Of:
Environment:
Last Closed: 2019-01-11 11:50:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 583868 0 'None' 'MERGED' 'Use openshift-ansible container instead of RPMs' 2019-12-07 18:27:25 UTC
OpenStack gerrit 605399 0 'None' 'MERGED' 'Add wrapper for openshift-ansible docker command' 2019-12-07 18:27:25 UTC
Red Hat Product Errata RHEA-2019:0045 0 None None None 2019-01-11 11:51:13 UTC

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


Note You need to log in before you can comment on or make changes to this bug.