Exporting ceph configuration data for a DCN deployment fails when using a collapsed network topology.

Bug #1922788 reported by John Fulton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
John Fulton

Bug Description

You don't need to utilize isolated networks when deploying spine/leaf topology and it is possible to deploy with collapsing all networks down into the provisioning network. When you have this deployment topology, the command to export the ceph data from the central/leaf0 location fails:

Exception occured while running the command
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tripleoclient/command.py", line 32, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/cliff/command.py", line 185, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_export_ceph.py", line 105, in take_action
    config_download_dir))
  File "/usr/lib/python3.6/site-packages/tripleoclient/export.py", line 171, in export_ceph
    mon_ips = export_storage_ips(stack, config_download_dir)
  File "/usr/lib/python3.6/site-packages/tripleoclient/export.py", line 158, in export_storage_ips
    ip = inventory_data[mon_role]['hosts'][hostname]['storage_ip']
KeyError: 'storage_ip'
'storage_ip'

Revision history for this message
John Fulton (jfulton-org) wrote :
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/victoria)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/786098
Committed: https://opendev.org/openstack/python-tripleoclient/commit/1683e1bff97bf0d0db6221fc6d56ed8069f1e5d7
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 1683e1bff97bf0d0db6221fc6d56ed8069f1e5d7
Author: John Fulton <email address hidden>
Date: Tue Apr 6 21:01:02 2021 +0000

    Use ceph_mon_network to find Ceph monitor IPs for export

    When 'openstack overcloud export ceph' is run, do not assume
    the storage_ip will be set. Instead, find the ceph_mon_network
    name in the service_net_map, e.g. 'storage' or 'ctlplane', and
    then use that network name to get the IP from the inventory.

    Closes-Bug: #1922788
    Change-Id: I962bed846b2cae7206c76f883f9294d366031245
    (cherry picked from commit 1e690136913062dc0b14b328a295f34fb1c02bd1)

tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/ussuri)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/786227
Committed: https://opendev.org/openstack/python-tripleoclient/commit/226a9078711a89a90b0c270c51bf911a8d16c421
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 226a9078711a89a90b0c270c51bf911a8d16c421
Author: John Fulton <email address hidden>
Date: Tue Apr 6 21:01:02 2021 +0000

    Use ceph_mon_network to find Ceph monitor IPs for export

    When 'openstack overcloud export ceph' is run, do not assume
    the storage_ip will be set. Instead, find the ceph_mon_network
    name in the service_net_map, e.g. 'storage' or 'ctlplane', and
    then use that network name to get the IP from the inventory.

    Closes-Bug: #1922788
    Change-Id: I962bed846b2cae7206c76f883f9294d366031245
    (cherry picked from commit 1e690136913062dc0b14b328a295f34fb1c02bd1)
    (cherry picked from commit 1683e1bff97bf0d0db6221fc6d56ed8069f1e5d7)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/train)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/train)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/786419
Committed: https://opendev.org/openstack/python-tripleoclient/commit/10e5640f8dcd8c1e44744fe252aa74074c7d92f8
Submitter: "Zuul (22348)"
Branch: stable/train

commit 10e5640f8dcd8c1e44744fe252aa74074c7d92f8
Author: John Fulton <email address hidden>
Date: Tue Apr 6 21:01:02 2021 +0000

    Use ceph_mon_network to find Ceph monitor IPs for export

    When 'openstack overcloud export ceph' is run, do not assume
    the storage_ip will be set. Instead, find the ceph_mon_network
    name in the service_net_map, e.g. 'storage' or 'ctlplane', and
    then use that network name to get the IP from the inventory.

    Closes-Bug: #1922788
    Change-Id: I962bed846b2cae7206c76f883f9294d366031245
    (cherry picked from commit 1e690136913062dc0b14b328a295f34fb1c02bd1)
    (cherry picked from commit 1683e1bff97bf0d0db6221fc6d56ed8069f1e5d7)
    (cherry picked from commit 226a9078711a89a90b0c270c51bf911a8d16c421)

tags: added: in-stable-train
Changed in tripleo:
milestone: wallaby-rc1 → xena-1
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/+/790109

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/+/790109
Committed: https://opendev.org/openstack/python-tripleoclient/commit/bd2fd5f1a28b83ce4652f42d83d7c1917fc27fc0
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit bd2fd5f1a28b83ce4652f42d83d7c1917fc27fc0
Author: John Fulton <email address hidden>
Date: Tue Apr 6 21:01:02 2021 +0000

    Use ceph_mon_network to find Ceph monitor IPs for export

    When 'openstack overcloud export ceph' is run, do not assume
    the storage_ip will be set. Instead, find the ceph_mon_network
    name in the service_net_map, e.g. 'storage' or 'ctlplane', and
    then use that network name to get the IP from the inventory.

    Closes-Bug: #1922788
    Change-Id: I962bed846b2cae7206c76f883f9294d366031245

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

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 14.2.1

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 12.6.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 13.4.4

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 17.0.0

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

Changed in tripleo:
milestone: xena-1 → xena-2
Changed in tripleo:
milestone: xena-2 → xena-3
Changed in tripleo:
milestone: xena-3 → none
status: In Progress → Fix Released
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.