Skip to content

Align os_distro schema values with Glance docs#1244

Merged
berendt merged 1 commit into
mainfrom
align-os-distro-with-glance-docs
Jun 27, 2026
Merged

Align os_distro schema values with Glance docs#1244
berendt merged 1 commit into
mainfrom
align-os-distro-with-glance-docs

Conversation

@berendt

@berendt berendt commented Jun 27, 2026

Copy link
Copy Markdown
Member

What

Aligns the os_distro enum in etc/schema.yaml with the values documented for the property in the OpenStack Glance docs.

Schema (etc/schema.yaml)

  • Added the documented values that were missing: rocky (the subject of Cannot set os_distro to rocky #1105), plus gentoo, mandrake, mandriva, mes, msdos, netbsd, netware, openbsd, opensolaris, sled.
  • Removed clearlinux — not documented and no longer used by any image definition.
  • Kept cirros and talos — both are used by existing image definitions (cirros.yml, talos.yml) and have no official os_distro value. A comment documents this exception.

Rocky Linux (etc/images/rockylinux.yml)

  • Now that rocky is permitted, switched the Rocky 8 and Rocky 9 images from the centos workaround to os_distro: rocky. Note: this changes the resulting image tag from os:centos to os:rocky.

Verification

All 12 image definitions under etc/images/ validate cleanly against the updated schema with yamale.

Closes #1105

🤖 Generated with Claude Code

Match the os_distro enum in the schema with the values documented at
https://docs.openstack.org/glance/latest/admin/useful-image-properties:
add the missing documented values (notably 'rocky', plus 'gentoo',
'mandrake', 'mandriva', 'mes', 'msdos', 'netbsd', 'netware', 'openbsd',
'opensolaris', 'sled') and drop the undocumented, unused 'clearlinux'.
'cirros' and 'talos' are kept because they are used by existing image
definitions and have no official os_distro value.

Now that 'rocky' is permitted, switch the Rocky Linux images from the
'centos' workaround to 'rocky'.

Closes #1105

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Christian Berendt <berendt@osism.tech>
@berendt berendt merged commit a9fda92 into main Jun 27, 2026
4 checks passed
@berendt berendt deleted the align-os-distro-with-glance-docs branch June 27, 2026 21:38
@github-project-automation github-project-automation Bot moved this from Ready to Done in Human Board Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Cannot set os_distro to rocky

2 participants