openstack overcloud export fails with No such file or directory: '/home/stack/config-download/control-plane/group_vars/overcloud.json'

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

Bug Description

The following two commands fail with TripleO main branch because they cannot find group_vars/overcloud.json

 openstack overcloud export -f --stack control-plane
 openstack overcloud export ceph -f --stack control-plane

This breaks DCN deployments.

(undercloud) [CentOS-8 - stack@undercloud dcn]$ openstack overcloud export -f --stack control-plane
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/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/lib/python3.6/site-packages/tripleoclient/v1/overcloud_export.py", line 90, in take_action
    heat, stack, False, config_download_dir))
  File "/usr/lib/python3.6/site-packages/tripleoclient/export.py", line 94, in export_stack
    with open(file, 'r') as ff:
FileNotFoundError: [Errno 2] No such file or directory: '/home/stack/config-download/control-plane/group_vars/overcloud.json'
[Errno 2] No such file or directory: '/home/stack/config-download/control-plane/group_vars/overcloud.json'
(undercloud) [CentOS-8 - stack@undercloud dcn]$

(undercloud) [CentOS-8 - stack@undercloud dcn]$ openstack overcloud export ceph -f --stack control-plane
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/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/lib/python3.6/site-packages/tripleoclient/v1/overcloud_export_ceph.py", line 106, in take_action
    config_download_dir))
  File "/usr/lib/python3.6/site-packages/tripleoclient/export.py", line 151, in export_ceph
    mon_ips = export_storage_ips(stack, config_download_dir)
  File "/usr/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/config-download/control-plane/ceph-ansible/inventory.yml'
[Errno 2] No such file or directory: '/home/stack/config-download/control-plane/ceph-ansible/inventory.yml'
(undercloud) [CentOS-8 - stack@undercloud dcn]$

Revision history for this message
John Fulton (jfulton-org) wrote :

Automatic config-download is now adding the stack name twice. The file is here:

 config-download/control-plane/control-plane/group_vars/overcloud.json

Do we simply update the python-tripleoclient to deal with the new location?

again? [1]

[1] https://review.opendev.org/c/openstack/python-tripleoclient/+/737671

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

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  
Everyone can see this information.

Other bug subscribers