Skip to content

Commit 9172c77

Browse files
committed
Fix execution of kayobe overcloud deprovision
With `kayobe overcloud deprovision`, the task `Get PXE MAC address` runs the command `openstack baremetal port list` which fails with: Traceback (most recent call last): File "/var/lib/kolla/venv/bin/openstack", line 5, in <module> from openstackclient.shell import main ModuleNotFoundError: No module named 'openstackclient' Fix by using the `baremetal port list` command instead. This does not appear to affect 2024.2 and earlier. Change-Id: If1157a56110e26c3668bd54cd0293a9d3f936fc6
1 parent b4733da commit 9172c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/overcloud-deprovision.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
export OS_BAREMETAL_API_VERSION=1.34 &&
6161
export BIFROST_INVENTORY_SOURCE=ironic &&
6262
export BIFROST_NODE_NAMES="{{ inventory_hostname }}" &&
63-
openstack baremetal port list --node {{ inventory_hostname }} --fields address -f value'
63+
baremetal port list --node {{ inventory_hostname }} --fields address -f value'
6464
register: pxe_result
6565
delegate_to: "{{ seed_host }}"
6666
become: "{{ container_engine == 'podman' }}"

0 commit comments

Comments
 (0)