Unable to export cephadm deployment for DCN

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

Bug Description

'openstack overcloud export ceph -f --stack control-plane' fails when run from the main branch while looking for files in ceph-ansible directory. Because main and wallaby use cephadm, not ceph-ansible, this export code should be updated accordingly.

/usr/lib/python3.9/site-packages/ansible/_vendor/__init__.py:42: UserWarning: One or more Python packages bundled by this ansible-core distribution were already loaded (pyparsing). This may result in undefined behavior.
  warnings.warn('One or more Python packages bundled by this ansible-core distribution were already '
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/tripleoclient/command.py", line 34, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python3.9/site-packages/osc_lib/command/command.py", line 39, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3.9/site-packages/cliff/command.py", line 186, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/local/lib/python3.9/site-packages/tripleoclient/v1/overcloud_export_ceph.py", line 105, in take_action
    cephs.append(export.export_ceph(stack,
  File "/usr/local/lib/python3.9/site-packages/tripleoclient/export.py", line 181, in export_ceph
    mon_ips = export_storage_ips(stack, config_download_dir)
  File "/usr/local/lib/python3.9/site-packages/tripleoclient/export.py", line 158, in export_storage_ips
    with open(file, 'r') as ff:
FileNotFoundError: [Errno 2] No such file or directory: '/home/stack/overcloud-deploy/control-plane/config-download/control-plane/ceph-ansible/inventory.yml'
[Errno 2] No such file or directory: '/home/stack/overcloud-deploy/control-plane/config-download/control-plane/ceph-ansible/inventory.yml'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)
Changed in tripleo:
status: Triaged → In Progress
summary: - unable to export ceph deployment in main
+ Unable to export cephadm deployment for DCN
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-ansible (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/tripleo-ansible/+/836087

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/836087
Committed: https://opendev.org/openstack/tripleo-ansible/commit/fab0d9b58794e4b0ce16125137680ad8144d335f
Submitter: "Zuul (22348)"
Branch: master

commit fab0d9b58794e4b0ce16125137680ad8144d335f
Author: John Fulton <email address hidden>
Date: Thu Mar 31 16:54:35 2022 -0400

    Support ceph_conf_overrides for multiple_external_ceph_clusters

    The tripleo_ceph_client role's task file to create a Ceph config
    file for multiple external Ceph clusters does not support overrides
    which are passed via ceph_conf_overrides. The 'openstack overcloud
    export ceph' command however generates files with ceph_conf_overrides
    as they are necessary for multibackend Glance deployments which use
    Ceph. This patch adds a line to multiple_external_ceph_clusters.yml
    so that input files with ceph_conf_overrides are passed to the
    tripleo_ceph_client_config_overrides for each external Ceph cluster.

    Related-Bug: #1966772
    Change-Id: I9f854377fcd0dfa570d0dc30e34d40826de8656d

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-ansible (stable/wallaby)

Related fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-ansible/+/838870

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

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/838870
Committed: https://opendev.org/openstack/tripleo-ansible/commit/f34972de07b74fe39d432157e9fb8c013403644d
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit f34972de07b74fe39d432157e9fb8c013403644d
Author: John Fulton <email address hidden>
Date: Thu Mar 31 16:54:35 2022 -0400

    Support ceph_conf_overrides for multiple_external_ceph_clusters

    The tripleo_ceph_client role's task file to create a Ceph config
    file for multiple external Ceph clusters does not support overrides
    which are passed via ceph_conf_overrides. The 'openstack overcloud
    export ceph' command however generates files with ceph_conf_overrides
    as they are necessary for multibackend Glance deployments which use
    Ceph. This patch adds a line to multiple_external_ceph_clusters.yml
    so that input files with ceph_conf_overrides are passed to the
    tripleo_ceph_client_config_overrides for each external Ceph cluster.

    Related-Bug: #1966772
    Change-Id: I9f854377fcd0dfa570d0dc30e34d40826de8656d
    (cherry picked from commit fab0d9b58794e4b0ce16125137680ad8144d335f)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/835511
Committed: https://opendev.org/openstack/python-tripleoclient/commit/1952f5a6ee2001b93ecf26c765c4ffaac4e5ca4d
Submitter: "Zuul (22348)"
Branch: master

commit 1952f5a6ee2001b93ecf26c765c4ffaac4e5ca4d
Author: John Fulton <email address hidden>
Date: Mon Mar 28 15:55:43 2022 -0400

    cephadm support for 'openstack overcloud export ceph'

    Without this patch 'openstack overcloud export ceph' can
    only export information from a ceph-ansible deployment as
    found in the config-download directory.

    This patch results in the export ceph command looking in
    the config-download directory for a ceph-ansible or
    cephadm directory and based on what it finds it generates
    the a Heat environment with the CephExternalMultiConfig
    parameter populated.

    Closes-Bug: #1966772
    Depends-On: I9f854377fcd0dfa570d0dc30e34d40826de8656d
    Change-Id: Idbb2d9270c83ac0e97e0bdb1ea6e2992671f94aa

Changed in tripleo:
status: In Progress → Fix Released
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/+/840346

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

commit fc3ff58d1892ceb08c75b5b06ddded7361b12d39
Author: John Fulton <email address hidden>
Date: Mon Mar 28 15:55:43 2022 -0400

    cephadm support for 'openstack overcloud export ceph'

    Without this patch 'openstack overcloud export ceph' can
    only export information from a ceph-ansible deployment as
    found in the config-download directory.

    This patch results in the export ceph command looking in
    the config-download directory for a ceph-ansible or
    cephadm directory and based on what it finds it generates
    the a Heat environment with the CephExternalMultiConfig
    parameter populated.

    Conflict: tripleoclient/export.py

    Closes-Bug: #1966772
    Depends-On: I9f854377fcd0dfa570d0dc30e34d40826de8656d
    Change-Id: Idbb2d9270c83ac0e97e0bdb1ea6e2992671f94aa
    (cherry picked from commit 1952f5a6ee2001b93ecf26c765c4ffaac4e5ca4d)

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

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

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.