Bug 2226845 - export_ceph fails with 17.1 ansible inventory
Summary: export_ceph fails with 17.1 ansible inventory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z1
: 17.1
Assignee: Ollie Walsh
QA Contact: pkomarov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-26 16:46 UTC by Ollie Walsh
Modified: 2023-09-20 00:30 UTC (History)
5 users (show)

Fixed In Version: python-tripleoclient-16.5.1-1.20230505010955.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-20 00:29:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 889742 0 None MERGED Handle nested inventory groups in export_storage_ips 2023-08-21 15:26:27 UTC
Red Hat Issue Tracker OSP-26928 0 None None None 2023-07-26 16:49:57 UTC
Red Hat Product Errata RHBA-2023:5138 0 None None None 2023-09-20 00:30:04 UTC

Description Ollie Walsh 2023-07-26 16:46:07 UTC
The export_ceph method in python-tripleoclient fails when using ceph-ansible with a 17.1 inventory file:
  File "/usr/lib/python3.6/site-packages/tripleoclient/export.py", line 196, in export_ceph
    mon_ips = export_storage_ips(stack, config_download_dir)
  File "/usr/lib/python3.6/site-packages/tripleoclient/export.py", line 178, in export_storage_ips
    for hostname in inventory_data[mon_role]['hosts']:
KeyError: 'hosts'

This is causing OSPdO deployments during FFU to report failure at the very end of the deployment (it will automatically export and store the ceph data). Once the cephadm adoption step are complete the issue is resolved.

Comment 12 pkomarov 2023-09-13 12:27:20 UTC
Verified , passed the ceph-upgrade-to-cephadm step 

[root@titan134 ansible]# oc get pods
NAME                                                              READY   STATUS      RESTARTS   AGE
deploy-openstack-ceph-upgrade-54kzv                               0/1     Completed   0          148m
deploy-openstack-ceph-upgrade-packages-hfx7q                      0/1     Completed   0          134m
deploy-openstack-ceph-upgrade-to-cephadm-gbjlm                    0/1     Completed   0          129m

Comment 16 errata-xmlrpc 2023-09-20 00:29:46 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 (Release of components for Red Hat OpenStack Platform 17.1.1 (Wallaby)), 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-2023:5138


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