Skip to content

Conversation

@castorsky
Copy link
Contributor

@castorsky castorsky commented Jul 2, 2025

Summary

Fixed idempotency check for services that do not require the 'service_id' key in the specification and the 'host' service type.

Description

I discovered issues with the ceph_orch_apply module when attempting to apply specifications for services that do not require the service_id key in the specification. According to the documentation, some services fall into this category. However, the module currently requires this key to be specified, which breaks idempotency in the role since ceph orch ls does not return this key in the YAML specification.

Additionally, the 'host' service type was not supported, because the ceph orch command uses slightly different syntax for listing hosts. Although hosts are not technically services, users can create them by applying specifications (with an optional 'location' key to define the host's placement in the CRUSH hierarchy).

@castorsky castorsky force-pushed the fix_orch_apply_idempotency branch from a4293a2 to c8a13c4 Compare July 7, 2025 13:29
@castorsky castorsky force-pushed the fix_orch_apply_idempotency branch from c8a13c4 to 8892c5f Compare August 24, 2025 09:46
Copy link
Collaborator

@asm0deuz asm0deuz left a comment

Choose a reason for hiding this comment

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

LGTM

@castorsky castorsky force-pushed the fix_orch_apply_idempotency branch from 8892c5f to 0af72ff Compare October 3, 2025 09:20
Fixed idempotency check for services that do not require the 'service_id' key in the specification and the 'host' service type.

Signed-off-by: Castor Sky <[email protected]>
@castorsky castorsky force-pushed the fix_orch_apply_idempotency branch from 0af72ff to 4af81e0 Compare October 17, 2025 20:18
@castorsky
Copy link
Contributor Author

I rewrote the changelog fragment in YAML multiline format because default yamllint line limit is 160 symbols.

@asm0deuz is it okay or should I disable the linter for this specific line with # yamllint disable-line rule:line-length?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants