openstack overcloud export expecting different directory structure for --config-download-dir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Rabi Mishra |
Bug Description
`openstack overcloud export` fails when passed a valid argument for --config-
However, group_vars/
`openstack overcloud export` should not be appending STACK_NAME into the path.
The config-download directory was generated by running the following:
openstack overcloud config download \
Perhaps `openstack overcloud config download` was updated to use a different structure but `openstack overcloud export` was not.
This breaks DCN deployments.
[1]
(undercloud) [CentOS-8.1 - stack@undercloud dcn]$ openstack overcloud export --config-
Exception occured while running the command
Traceback (most recent call last):
File "/usr/lib/
super(Command, self).run(
File "/usr/lib/
return super(Command, self).run(
File "/usr/lib/
return_code = self.take_
File "/usr/lib/
clients.
File "/usr/lib/
with open(file, 'r') as ff:
FileNotFoundError: [Errno 2] No such file or directory: 'control-
[Errno 2] No such file or directory: 'control-
(undercloud) [CentOS-8.1 - stack@undercloud dcn]$
[2]
(undercloud) [CentOS-8.1 - stack@undercloud dcn]$ ls control-
ls: cannot access 'control-
(undercloud) [CentOS-8.1 - stack@undercloud dcn]$
(undercloud) [CentOS-8.1 - stack@undercloud dcn]$ ls control-
control-
(undercloud) [CentOS-8.1 - stack@undercloud dcn]$
tags: | added: train-backport-potential ussuri-backport-potential |
WORKAROUND
# Quick ugly hack:
mkdir $STACK/ config- download/ $STACK config- download/ $STACK/
pushd $STACK/
ln -s ../group_vars group_vars
popd
# then run
openstack overcloud export \
--config- download- dir $STACK/ config- download/ \
--output- file ~/${STACK} -export. yaml
--stack $STACK \