Bug 2226845 - export_ceph fails with 17.1 ansible inventory [NEEDINFO]
Summary: export_ceph fails with 17.1 ansible inventory
Keywords:
Status: ON_DEV
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z1
: 17.1
Assignee: Ollie Walsh
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-26 16:46 UTC by Ollie Walsh
Modified: 2023-08-11 15:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:
ifrangs: needinfo? (owalsh)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 889742 0 None NEW Handle nested inventory groups in export_storage_ips 2023-07-26 17:50:17 UTC
Red Hat Issue Tracker OSP-26928 0 None None None 2023-07-26 16:49:57 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.


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