From faa63aaa2086be684e5fd9962633cccb89d0746c Mon Sep 17 00:00:00 2001 From: Kalibh Halford Date: Tue, 25 Aug 2026 15:13:05 +0100 Subject: [PATCH] BUG - os_builders: Fix rename_images.sh AQ images are not being set public and named to the production name. This commit fixes that bug. It was due to the `openstack image set --public --name` only being in the else part of the statement. So I have separated the --public and --name into 2 commands. We always want to update the name but we don't always want to set the image to public. For example, the aq images are shared. As this change does not affect the image configuration I am not going to update the changelog. --- os_builders/rename_images.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/os_builders/rename_images.sh b/os_builders/rename_images.sh index 03ff337..a8b47de 100755 --- a/os_builders/rename_images.sh +++ b/os_builders/rename_images.sh @@ -17,9 +17,10 @@ if [[ "$image_name" == *aq ]]; then done else - openstack image set --public --name "$image_name" "$new_image_id" + openstack image set --public "$new_image_id" fi +openstack image set --name "$image_name" "$new_image_id" openstack image set --deactivate --name "$warehoused_image_name" "$warehoused_image_id" cat << EOF