Bug 2226845

Summary: export_ceph fails with 17.1 ansible inventory
Product: Red Hat OpenStack Reporter: Ollie Walsh <owalsh>
Component: python-tripleoclientAssignee: Ollie Walsh <owalsh>
Status: ON_DEV --- QA Contact: David Rosenfeld <drosenfe>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.1 (Wallaby)CC: hbrock, jslagle, mburns
Target Milestone: z1Keywords: Triaged
Target Release: 17.1Flags: ifrangs: needinfo? (owalsh)
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

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.