Skip to content

LXD: Don't set RBD features if not necessary#1282

Merged
tomponline merged 3 commits into
canonical:mainfrom
roosterfish:no_ceph_rbd_features
Mar 24, 2026
Merged

LXD: Don't set RBD features if not necessary#1282
tomponline merged 3 commits into
canonical:mainfrom
roosterfish:no_ceph_rbd_features

Conversation

@roosterfish
Copy link
Copy Markdown
Contributor

Accommodate canonical/lxd#17890 in MicroCloud.

@roosterfish roosterfish force-pushed the no_ceph_rbd_features branch from 74da5cb to d4021d2 Compare March 17, 2026 16:27
tomponline
tomponline previously approved these changes Mar 17, 2026
@roosterfish roosterfish force-pushed the no_ceph_rbd_features branch 3 times, most recently from 1198439 to 3ca2b8a Compare March 18, 2026 08:57
@roosterfish
Copy link
Copy Markdown
Contributor Author

The two upgrade tests are expected to fail until #1281 is merged.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates MicroCloud’s Ceph storage-pool configuration and validation to align with newer LXD behavior (canonical/lxd#17890), where explicit RBD feature settings may be unnecessary.

Changes:

  • Make DefaultCephStoragePool conditionally set ceph.rbd.features based on LXD’s storage_ceph_use_rbd_defaults API extension.
  • Update callers to handle the new (*api.StoragePoolsPost, error) return signature.
  • Adjust upgrade tests to optionally skip asserting ceph.rbd.features during post-upgrade validation.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/suites/upgrade.sh Sets SKIP_CEPH_RBD_FEATURES=1 when validating upgraded clusters.
test/includes/microcloud.sh Makes Ceph RBD feature assertion conditional (and skippable) during validation.
service/lxd_config.go Stops forcing ceph.rbd.features when LXD supports using RBD defaults; changes function signature.
cmd/microcloud/preseed.go Adapts preseed generation to the new DefaultCephStoragePool signature.
cmd/microcloud/ask.go Adapts interactive init flow to the new DefaultCephStoragePool signature.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/includes/microcloud.sh Outdated
Comment thread test/includes/microcloud.sh
Comment thread service/lxd_config.go
…LXD version

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Allow the upgrade test suite to bypass this to accommodate an older version of LXD with an already existing
pool that has the ceph.rbd.features config key set naturally.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
@roosterfish roosterfish force-pushed the no_ceph_rbd_features branch from 19ad177 to afff0cf Compare March 23, 2026 15:10
@roosterfish roosterfish marked this pull request as ready for review March 24, 2026 07:41
@roosterfish roosterfish requested a review from Copilot March 24, 2026 07:41
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

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

ta

@tomponline tomponline merged commit b2f6ddf into canonical:main Mar 24, 2026
34 checks passed
@roosterfish roosterfish deleted the no_ceph_rbd_features branch March 24, 2026 08:46
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.

3 participants