Skip to content

[Bug] OpenStack Compute variable handling of image_id and image_name for Gluster nodes is broken #12902

@HauptJ

Description

@HauptJ

What happened?

Gluster compute nodes cannot be built due to variable mishandling.

If only image_name is set in the cluster.tfvars, the image_id is retrieved, and is set as the image_name for the compute module. This also happens when image_gfs is set with a valid image name. Even if only image_gfs_uuid is set with a valid image_id, the compute image_name is set with the corresponding image_id value.

Since this is blocking my work on #12901 I will work on resolving this first.

Image Image Image Image Image Image

What did you expect to happen?

The correct image_id compute module variable is passed through for Gluster compute nodes.

How can we reproduce it (as minimally and precisely as possible)?

Image Image Image Image Image Image

OS

AlmaLinux 9

Version of Ansible

ansible [core 2.17.14]
config file = None
configured module search path = ['/home/josh/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/josh/dev/hauptj/kubespray/venv/lib64/python3.14/site-packages/ansible
ansible collection location = /home/josh/.ansible/collections:/usr/share/ansible/collections
executable location = /home/josh/dev/hauptj/kubespray/venv/bin/ansible
python version = 3.14.2 (main, Dec 5 2025, 00:00:00) [GCC 15.2.1 20251111 (Red Hat 15.2.1-4)] (/home/josh/dev/hauptj/kubespray/venv/bin/python)
jinja version = 3.1.6
libyaml = True

Version of Python

Python 3.14.2

Version of Kubespray (commit)

fba8708

Network plugin used

calico

Full inventory with variables

N/A

Command used to invoke ansible

N/A

Output of ansible run

N/A

Anything else we need to know

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    AlmaLinux 9kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions