Describe the bug
When running the rename_images.sh script on dev openstack, it fails to correctly work on aq images. This is due to them being public rather than shared.
To Reproduce
Build a new aq image on dev openstack and attempt to use the rename_images.sh script
Expected behavior
Check if the user is on dev openstack and run the appropriate commands
Screenshots
image_builders_rl8 ❯ ./rename_images.sh rocky-9-aq 5cea6b38-bdf2-4ca4-9ced-c606388f551a
+ image_name=rocky-9-aq
+ new_image_id=5cea6b38-bdf2-4ca4-9ced-c606388f551a
++ date +%F
+ timestamp=2026-08-25
++ openstack image show rocky-9-aq -f value -c ID
+ warehoused_image_id=d824069f-4ffd-44d8-bb5e-aa3d00a15d7e
+ warehoused_image_name=warehoused-rocky-9-aq-2026-08-25
+ [[ rocky-9-aq == *aq ]]
+ openstack image set --shared 5cea6b38-bdf2-4ca4-9ced-c606388f551a
++ openstack image member list -f value -c 'Member ID' d824069f-4ffd-44d8-bb5e-aa3d00a15d7e
ForbiddenException: 403: Client Error for url: https://dev-openstack.stfc.ac.uk:9292/v2/images/d824069f-4ffd-44d8-bb5e-aa3d00a15d7e/members, Not allowed to list members for image d824069f-4ffd-44d8-bb5e-aa3d00a15d7e: Only shared images have members.<br /><br />
+ openstack image set --name rocky-9-aq 5cea6b38-bdf2-4ca4-9ced-c606388f551a
+ openstack image set --deactivate --name warehoused-rocky-9-aq-2026-08-25 d824069f-4ffd-44d8-bb5e-aa3d00a15d7e
+ cat
++ cat version.txt
++ tr -d '\n'
Please make an Elog entry to record this change:
Rebuild of OS image rocky-9-aq. Built with image builder version 0.3.1
Last -> New
d824069f-4ffd-44d8-bb5e-aa3d00a15d7e -> 5cea6b38-bdf2-4ca4-9ced-c606388f551a
**Details (please complete the following information):**
- Image Name: Any AQ image
- Image ID N/A
- VM ID N/A
- JIRA Ticket Ref: N/A
Additional context
Add any other context about the problem here.
Describe the bug
When running the rename_images.sh script on dev openstack, it fails to correctly work on aq images. This is due to them being public rather than shared.
To Reproduce
Build a new aq image on dev openstack and attempt to use the rename_images.sh script
Expected behavior
Check if the user is on dev openstack and run the appropriate commands
Screenshots
Additional context
Add any other context about the problem here.