Unable to export ceph information for multiple stacks

Bug #1922790 reported by John Fulton on 2021-04-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
High
John Fulton

Bug Description

Unable to export two stacks at once [1] after the fix for 1884246 landed though I can export one stack at a time [2]. We need to be able to export two at once however, because we need to generate one file.

[1]
(undercloud) [CentOS-8 - stack@undercloud ~]$ openstack overcloud export ceph --stack dcn0,dcn1
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/tripleoclient/command.py", line 34, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 39, 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/local/lib/python3.6/site-packages/tripleoclient/v1/overcloud_export_ceph.py", line 108, in take_action
    config_download_dir))
  File "/usr/local/lib/python3.6/site-packages/tripleoclient/export.py", line 151, in export_ceph
    mon_ips = export_storage_ips(stack, config_download_dir)
  File "/usr/local/lib/python3.6/site-packages/tripleoclient/export.py", line 128, in export_storage_ips
    with open(file, 'r') as ff:
FileNotFoundError: [Errno 2] No such file or directory: '/home/stack/overcloud-deploy/dcn0,dcn1/config-download/dcn0/ceph-ansible/inventory.yml'
[Errno 2] No such file or directory: '/home/stack/overcloud-deploy/dcn0,dcn1/config-download/dcn0/ceph-ansible/inventory.yml'
(undercloud) [CentOS-8 - stack@undercloud ~]$ openstack overcloud export ceph --stack dcn0
/usr/lib/python3.6/site-packages/barbicanclient/__init__.py:61: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead.
  % (name, name, name))
Ceph information from 1 stack(s) exported to ceph-export-dcn0.yaml.
(undercloud) [CentOS-8 - stack@undercloud ~]$

[2]
(undercloud) [CentOS-8 - stack@undercloud ~]$ openstack overcloud export ceph --stack dcn0
Ceph information from 1 stack(s) exported to ceph-export-dcn0.yaml.
(undercloud) [CentOS-8 - stack@undercloud ~]$ openstack overcloud export ceph --stack dcn1
Ceph information from 1 stack(s) exported to ceph-export-dcn1.yaml.
(undercloud) [CentOS-8 - stack@undercloud ~]$

tags: added: edge train-backport-potential
Rabi Mishra (rabi) wrote :

@John,

It does not look related to 1884246 as you've mentioned in the bug report. Normal export does not support multiple stacks specified with ','. AFACS, it's only specific to export ceph[1]. To me it is broken after your recent patch[2].

[1] https://github.com/openstack/python-tripleoclient/blob/master/tripleoclient/v1/overcloud_export_ceph.py#L76

[2] https://github.com/openstack/python-tripleoclient/commit/8b4d326839748cb89d83ada92ecac212e5eed436

@Bogdan, these are recent regressions and not applicable to train.

tags: removed: train-backport-potential
John Fulton (jfulton-org) wrote :
Changed in tripleo:
status: Triaged → In Progress
John Fulton (jfulton-org) wrote :

Rabi wrote:
> It does not look related to 1884246 as you've mentioned in the bug report. Normal export does not support multiple stacks specified with ','. AFACS, it's only specific to export ceph[1]. To me it is broken after your recent patch[2].

Sorry for the confusion. I agree it's related to the my recent patch [2]. That patch is the fix for 1922249, not 1884246 so my original report should have said "after the fix for 1922249 landed" (not 1884246). I agree also it only applies to the current main branch (not train).

I've posted a fix for this bug: https://review.opendev.org/c/openstack/python-tripleoclient/+/785272

[1] https://github.com/openstack/python-tripleoclient/blob/master/tripleoclient/v1/overcloud_export_ceph.py#L76

[2] https://github.com/openstack/python-tripleoclient/commit/8b4d326839748cb89d83ada92ecac212e5eed436

Changed in tripleo:
status: In Progress → Fix Committed

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

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers