Pre undercloud install validations are failing with Unreachable error

Bug #1994032 reported by Mikolaj Ciecierski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
mathieu bultel

Bug Description

Prep validations, that are run as a part of undercloud install command reports failures, when custom undercloud hostname is used.

Re-running one of enlisted undercloud preflight playbooks manually[1] returns this error:
[stack@master-validations-undercloud ~]$ validation run -i undercloud --validation undercloud-disk-space.yaml
Validation config file found: /etc/validation.cfg
+--------------------------------------+-----------------------+--------+------------+----------------+-------------------+-------------+-------------+
| UUID | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration | Reasons |
+--------------------------------------+-----------------------+--------+------------+----------------+-------------------+-------------+-------------+
| 68d66ba3-542a-4420-9269-928d3b4d70cc | undercloud-disk-space | FAILED | undercloud | undercloud | undercloud | 0:00:24.641 | Unreachable |
+--------------------------------------+-----------------------+--------+------------+----------------+-------------------+-------------+-------------+

The problem is that this playbook and majority of other playbooks use undercloud as a host[2]. However, before undercloud install it works only if node hostname is set exactly to undercloud or /etc/hosts file has additional entry as such `127.0.0.1 undercloud`.

Steps to reproduce
==================

1.Provision node that will serve as a undercloud node.
2.Set the undercloud_hostname option in order to use custom hostname(master-validations-undercloud) in undercloud.conf as suggested in docs.[3]
3.Run openstack undercloud install

[1]https://opendev.org/openstack/python-tripleoclient/src/branch/master/tripleoclient/v1/undercloud_preflight.py#L92
[2] https://opendev.org/openstack/tripleo-validations/src/branch/master/playbooks/undercloud-disk-space.yaml#L2
[3]https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/install_undercloud.html

Expected result
===============
Custom hostname option from undercloud.conf should be taken into account when pre undercloud install validations are run.

Changed in tripleo:
assignee: nobody → mathieu bultel (mat-bultel)
Jiri Podivin (jpodivin)
Changed in tripleo:
importance: Undecided → High
milestone: none → zed-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/863541
Committed: https://opendev.org/openstack/python-tripleoclient/commit/5589eabcd776eeafd080e819b10508fa12b022c4
Submitter: "Zuul (22348)"
Branch: master

commit 5589eabcd776eeafd080e819b10508fa12b022c4
Author: matbu <email address hidden>
Date: Thu Nov 3 17:36:16 2022 +0100

    Pass undercloud inventory for running preflight validations

    The undercloud name is hardcoded in the preflight validations.
    This patch generate an undercloud inventory in order to run
    preflight validations as prep step of the undercloud install.

    Closes-bug: #1994032

    Change-Id: I66d6435e41a42a9db1772eea36e41c7a5cf87d23

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/python-tripleoclient/+/864208

Revision history for this message
Marios Andreou (marios-b) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/864208
Committed: https://opendev.org/openstack/python-tripleoclient/commit/633ce4862404a85f41f0b239e5334592493a593b
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 633ce4862404a85f41f0b239e5334592493a593b
Author: matbu <email address hidden>
Date: Thu Nov 3 17:36:16 2022 +0100

    Pass undercloud inventory for running preflight validations

    The undercloud name is hardcoded in the preflight validations.
    This patch generate an undercloud inventory in order to run
    preflight validations as prep step of the undercloud install.

    Closes-bug: #1994032

    Change-Id: I66d6435e41a42a9db1772eea36e41c7a5cf87d23
    (cherry picked from commit 5589eabcd776eeafd080e819b10508fa12b022c4)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 20.0.0

This issue was fixed in the openstack/python-tripleoclient 20.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.