From d2039a29de04edd15efc495cbd20282e39ddc764 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Tue, 23 May 2023 21:33:57 -0700 Subject: [PATCH] Handle nova policy change It appears nova's policies have changed, or to be more precise, they have turned on new policy enforcement[0] and our plugin was wrong. +++ /opt/stack/ironic/devstack/lib/ironic:\n ironic_configure_tempest:3205 :\n oscwrap --os-cloud devstack-system-admin flavor show baremetal -f value -c id ForbiddenException: 403: Client Error for url: https://173.231.254.232/compute/v2.1/flavors/ e4312534-b349-4f70-9a1b-5806debff275/os-extra_specs, Policy doesn't allow os_compute_api:os-flavor-extra-specs:index to be performed. [0]: https://github.com/openstack/devstack/commit/dfd7aeaf6c7d5f84e48f0c0002eacde7c22e9063 Change-Id: I8070852fbe9346e346c50088537797f353753d02 --- devstack/lib/ironic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 3180baa17b..db3fb5b61b 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -3202,7 +3202,7 @@ function ironic_configure_tempest { if is_service_enabled nova; then local bm_flavor_id - bm_flavor_id=$(openstack --os-cloud $IRONIC_OS_CLOUD flavor show baremetal -f value -c id) + bm_flavor_id=$(openstack --os-cloud devstack-admin flavor show baremetal -f value -c id) die_if_not_set $LINENO bm_flavor_id "Failed to get id of baremetal flavor" iniset $TEMPEST_CONFIG compute flavor_ref $bm_flavor_id iniset $TEMPEST_CONFIG compute flavor_ref_alt $bm_flavor_id