Bug 2006772
| Summary: | Deployment failing due to "Create /etc/openstack directory if it does not exist" task | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | ldenny | |
| Component: | openstack-tripleo-heat-templates | Assignee: | ldenny | |
| Status: | CLOSED ERRATA | QA Contact: | Joe H. Rahme <jhakimra> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 16.1 (Train) | CC: | bshephar, drosenfe, gkadam, mburns | |
| Target Milestone: | z8 | Keywords: | Triaged | |
| Target Release: | 16.1 (Train on RHEL 8.2) | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | openstack-tripleo-heat-templates-11.3.2-1.20211001104843.29a02c1.el8ost | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2009422 (view as bug list) | Environment: | ||
| Last Closed: | 2022-03-24 11:01:35 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2009422 | |||
Deployment was successful using non-default undercloud hostname of director-0. [stack@director-0 ~]$ hostname director-0.redhat.local (undercloud) [stack@director-0 ~]$ openstack server list +--------------------------------------+--------------+--------+------------------------+----------------+------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------+--------+------------------------+----------------+------------+ | b74c087e-f543-4469-9432-6808354f960e | controller-0 | ACTIVE | ctlplane=192.168.24.46 | overcloud-full | controller | | 4a7a3ddb-6df8-454a-9b08-f30c0952e88b | compute-0 | ACTIVE | ctlplane=192.168.24.11 | overcloud-full | compute | | 1e3d41e4-8989-4b77-aba5-748fcd494d0f | ceph-1 | ACTIVE | ctlplane=192.168.24.36 | overcloud-full | ceph | | fd517722-9aa5-433d-8fc9-96b3da57c7eb | ceph-0 | ACTIVE | ctlplane=192.168.24.52 | overcloud-full | ceph | | dff6908e-0e05-4366-b6e9-d0b2b83ad18a | ceph-2 | ACTIVE | ctlplane=192.168.24.29 | overcloud-full | ceph | +--------------------------------------+--------------+--------+------------------------+----------------+------------+ (undercloud) [stack@director-0 ~]$ 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 (Red Hat OpenStack Platform 16.1.8 bug fix and enhancement 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/RHBA-2022:0986 |
Description of problem: While trying to complete undercloud upgrade from RHOSP16.1.5 to RHOSP16.2 the deployment fails with the following error: ~~~ [ admin] TASK [Create /etc/openstack directory if it does not exist] ******************************************************** [ admin] fatal: [director -> undercloud]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname undercloud: Name or service not known", "unreachable": true} [ admin] NO MORE HOSTS LEFT ************************************************************************************************* [ admin] PLAY RECAP ********************************************************************************************************* [ admin] director : ok=14 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0 [ admin] Exception: Post Upgrade failed !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Deployment Failed! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR openstack [ admin] Deployment failed. ERROR tripleoclient.v1.undercloud.UpgradeUndercloud [ ] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! An error has occured while deploying the Undercloud. See the previous output for details about what went wrong. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ~~~ Checking the undercloud upgrade tarball I can see this in the inventory: ~~~ Undercloud: hosts: director: {ansible_host: 192.168.24.1, canonical_hostname: director.localdomain, ctlplane_hostname: director.ctlplane.localdomain, ctlplane_ip: 192.168.24.1, deploy_server_id: a081cb61-5302-4134-9684-490d633392c6, external_hostname: director.external.localdomain, external_ip: 192.168.24.1} ~~~ So we can see that it's trying to target the "undercloud" hostname but my undercloud hostname is "director" Updating "delegate_to: undercloud" to delegate_to: "{{ groups['Undercloud'][0] }}" I was able to pass this issue: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/810345 Version-Release number of selected component (if applicable): openstack-tripleo-heat-templates-11.5.1-2.20210603174823.el8ost.9.noarch Red Hat OpenStack Platform release 16.2.0 GA (Train) How reproducible: Every time Steps to Reproduce: 1.Follow minor update guide 2.Once you get to openstack undercloud upgrade it will fail with the above message Actual results: Undercloud upgrade fails Expected results: Undercloud upgrade to complete sucessfully