Skip to content

Register the ceph-rgws validator - #2700

Merged
berendt merged 1 commit into
mainfrom
feat/register-ceph-rgws-validator
Sep 16, 2026
Merged

berendt merged 1 commit into
mainfrom
feat/register-ceph-rgws-validator

Conversation

@ideaship

@ideaship ideaship commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

osism validate ceph-rgws fails with invalid choice: 'ceph-rgws'.

osism/commands/validate.py builds the CLI's choices from
VALIDATE_PLAYBOOKS, and ceph-rgws has never appeared in that dict —
in any of its forms (VALIDATE_PLAYBOOK2ENVIRONMENT, added 2022-12-29
with mons/mgrs/osds; renamed to VALIDATE_PLAYBOOKS 2023-01-17). So the
validator has not been invocable since the playbook was added on
2023-05-24.

It is not a regression: git log -S ceph-rgws shows the only prior
occurrences of that string were in MAP_ROLE2ENVIRONMENT, the
osism apply mapping for ceph-ansible's own role names, removed
2023-02-05 — three months before the validator existed. Coincidence of
naming.

Its siblings ceph-mons, ceph-mgrs and ceph-osds are registered and
run; the playbook follows their structure and ships its own report
template, so this entry is all the wiring it needs.

Merge order

This only opens the gate. In the years it could not be run the playbook
drifted badly enough that it fails immediately as it stands, so the
repair should land first or together with this:

Testing

With the companion PR applied, the validator was run against a live
full-profile cluster (Ceph 18.2.8 reef) and all three of its tests pass.
Its port test also correctly fails a deployment whose gateway listens on
7480 while 8081 is expected.

🤖 Generated with Claude Code

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@ideaship
ideaship marked this pull request as draft September 15, 2026 19:14
@ideaship ideaship self-assigned this Sep 15, 2026
The validator playbook validate-ceph-rgws.yml has shipped in
osism/ansible-playbooks since 2023-05-24 but has never been invocable:
osism/commands/validate.py builds the CLI's choices from
VALIDATE_PLAYBOOKS, and ceph-rgws has never appeared in that dict in any
of its forms. `osism validate ceph-rgws` fails with "invalid choice".

Its siblings ceph-mons, ceph-mgrs and ceph-osds are registered and run,
and the playbook follows their structure, ships its own report template
and needs no other wiring. Add the missing entry.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Roger Luethi <luethi@osism.tech>
@ideaship
ideaship force-pushed the feat/register-ceph-rgws-validator branch from a21d48e to 2cde37c Compare September 15, 2026 19:53
@ideaship
ideaship marked this pull request as ready for review September 16, 2026 08:17

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@ideaship
ideaship requested a review from berendt September 16, 2026 08:18
@berendt
berendt merged commit dc134b7 into main Sep 16, 2026
3 checks passed
@berendt
berendt deleted the feat/register-ceph-rgws-validator branch September 16, 2026 08:46
@github-project-automation github-project-automation Bot moved this from New to Done in Human Board Sep 16, 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.

3 participants