Comment 7 for bug 1998649

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/866653
Committed: https://opendev.org/openstack/tripleo-ansible/commit/37fc1a9d11fad1ed52e3ae4a7381b90150dcdbe5
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 37fc1a9d11fad1ed52e3ae4a7381b90150dcdbe5
Author: John Fulton <email address hidden>
Date: Fri Dec 2 21:04:32 2022 +0000

    Handle child groups when building ceph spec from inventory

    If the inventory contains the following:

      CephStorage:
        children:
          overcloud_CephStorage: {}
      overcloud_CephStorage:
        hosts:
          ceph-0:

    and I want to get a list of hosts from the CephStorage group,
    it is wrong to return that CephStorage has no hosts. Instead
    since all hosts in the overcloud_CephStorage group are children
    of the CephStorage group, I should return the hosts of the
    child group. I.e. the hosts of CephStorage above are [ceph-0].

    Closes-Bug: #1998649
    Change-Id: I0405f6729b492af011531642a2ee374bb210fa82
    (cherry picked from commit 04c33a4747769cc414d163fb25cd0f8927ba9206)