Bug 2097408 - 'overcloud export ceph' fails ceph_client.yml not found
Summary: 'overcloud export ceph' fails ceph_client.yml not found
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 17.0
Assignee: John Fulton
QA Contact: Marian Krcmarik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-15 15:53 UTC by John Fulton
Modified: 2022-09-21 12:22 UTC (History)
5 users (show)

Fixed In Version: tripleo-ansible-3.3.1-0.20220720020860.fa5422f.el9ost python-tripleoclient-16.4.1-0.20220705111520.23dbe54.el9ost openstack-tripleo-heat-templates-14.3.1-0.20220719171712.feca772.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:22:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1978846 0 None None None 2022-06-15 15:53:36 UTC
Launchpad 1981467 0 None None None 2022-07-12 16:36:37 UTC
OpenStack gerrit 846441 0 None master: MERGED python-tripleoclient: Fall back to alt path for ceph client data during export (I0b8c747481e561645eefea50cb77ca806a7f0de... 2022-07-29 16:29:53 UTC
OpenStack gerrit 846443 0 None master: MERGED tripleo-ansible: Set tripleo_ceph_client_vars consistently with THT (I58a8a1d058a76c1733c94c2be96bf59bb553946f) 2022-07-29 16:29:58 UTC
OpenStack gerrit 846556 0 None stable/wallaby: MERGED python-tripleoclient: Fall back to alt path for ceph client data during export (I0b8c747481e561645eefea50cb77ca806a7f0de... 2022-07-29 16:30:04 UTC
OpenStack gerrit 847998 0 None stable/wallaby: MERGED tripleo-ansible: Set tripleo_ceph_client_vars consistently with THT (I58a8a1d058a76c1733c94c2be96bf59bb553946f) 2022-07-29 16:30:10 UTC
OpenStack gerrit 849083 0 None stable/wallaby: MERGED tripleo-ansible: Only run Ceph network_config_set during initial deployment (I74e1197362517c3ad4bbdfc54adbf3ac934acf4b) 2022-07-29 16:30:15 UTC
OpenStack gerrit 849572 0 None master: MERGED tripleo-ansible: Override tripleo_ceph_client_vars in tripleo_run_cephadm role (I658bc5c2e37ad5af6991937ccec0933b844ddd6... 2022-07-29 16:30:21 UTC
Red Hat Issue Tracker OSP-15772 0 None None None 2022-06-15 15:56:32 UTC
Red Hat Issue Tracker OSP-17721 0 None None None 2022-07-20 19:44:25 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:22:52 UTC

Description John Fulton 2022-06-15 15:53:37 UTC
openstack overcloud export ceph --stackopenstack overcloud export ceph --stack central --output-file central_ceph_external.yaml
/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/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/lib/python3.9/site-packages/tripleoclient/v1/overcloud_export_ceph.py", line 105, in take_action
    cephs.append(export.export_ceph(stack,
  File "/usr/lib/python3.9/site-packages/tripleoclient/export.py", line 215, in export_ceph
    with open(file, 'r') as ff:
FileNotFoundError: [Errno 2] No such file or directory: '/home/stack/overcloud-deploy/central/config-download/central/cephadm/ceph_client.yml'
[Errno 2] No such file or directory: '/home/stack/overcloud-deploy/central/config-download/central/cephadm/ceph_client.yml'

Comment 3 John Fulton 2022-07-12 16:25:37 UTC
The fixes were tested and failed so a follow up patch will be needed.

Comment 5 John Fulton 2022-07-12 16:28:32 UTC
We see the following failure (which is just the fall back of the python-tripleoclient patch):

  FileNotFoundError: [Errno 2] No such file or directory: '/home/stack/ceph_client.yaml'

and the exported file is found in the wrong place:

  /usr/share/ansible/tripleo-playbooks/cephadm/ceph_client.yml

Comment 7 Yaniv Kaul 2022-07-18 09:26:01 UTC
Are there any pending patches to move this forward?

Comment 8 John Fulton 2022-07-18 11:19:34 UTC
(In reply to Yaniv Kaul from comment #7)
> Are there any pending patches to move this forward?

Yes, this patch solves the issue.

  https://review.opendev.org/c/openstack/tripleo-ansible/+/849572/

While I was on PTO it was reverted however, so I'm now following up to restore it and solve the root cause of why it was reverted.

Comment 9 John Fulton 2022-07-18 21:39:10 UTC
Fix in the works: https://review.opendev.org/q/topic:bug%252F1981634

Comment 19 spower 2022-08-09 11:23:55 UTC
TRAC have moved this to GA blocker but not a Beta blocker.

Comment 20 spower 2022-08-09 11:24:28 UTC
Disregard TM change

Comment 24 errata-xmlrpc 2022-09-21 12:22:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:6543


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