Skip to content

feat(Ceph): drop source#1878

Merged
kimanhou merged 1 commit intocanonical:mainfrom
kimanhou:drop-source-ceph
Mar 23, 2026
Merged

feat(Ceph): drop source#1878
kimanhou merged 1 commit intocanonical:mainfrom
kimanhou:drop-source-ceph

Conversation

@kimanhou
Copy link
Copy Markdown
Contributor

@kimanhou kimanhou commented Mar 17, 2026

Done

  • Drop source config key for Ceph RBD and CephFS drivers

Fixes #1877

QA

  1. Run the LXD-UI:
  2. Perform the following QA steps:
    • Create a storage pool, enter a name, select driver=Ceph
    • Make sure Source doesn't appear on the main configuration screen
    • Make sure Ceph OSD pool name appears on the Ceph specific screen
    • Save
    • Edit
    • Create a storage pool, enter a name, select driver=CephFS
    • Make sure Source doesn't appear on the main configuration screen
    • Make sure Path appears on the Ceph specific screen (it was already there)
    • Save
    • Edit

Screenshots

image image

@webteam-app
Copy link
Copy Markdown

Copy link
Copy Markdown

@roosterfish roosterfish left a comment

Choose a reason for hiding this comment

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

Hey @kimanhou, thanks for tackling this so quickly. Unfortunately I cannot access https://lxd-ui-1878.demos.haus/, but please see my comment.

[getPoolKey("ceph_user_name")]: values.ceph_user_name,
[getPoolKey("ceph_rbd_features")]: values.ceph_rbd_features,
source: values.source,
[hasRemoteDropSource ? "ceph.osd.pool_name" : "source"]: values.source,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not sure if this is the right place here, but ceph.osd.pool_name should always be a valid option for a Ceph RBD pool no matter if storage_remote_drop_source is present or not.

Same as the [getPoolKey("cephfs_path")]: values.cephfs_path, below.

@roosterfish
Copy link
Copy Markdown

Screenshot from 2026-03-17 14-21-13

The pool name setting should be under the general "Ceph" tab as its a regular setting which is always available. Same for cephfs.path.

@kimanhou
Copy link
Copy Markdown
Contributor Author

@roosterfish Like this ?

image

I removed source from the main configuration
image

@roosterfish
Copy link
Copy Markdown

One more comment. If you don't set ceph.osd.pool_name, LXD will set it to the name of the storage pool. I think this could also be reflected in the "inherited" column?

Copy link
Copy Markdown
Collaborator

@edlerd edlerd left a comment

Choose a reason for hiding this comment

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

Thanks for picking this task up so quickly. Some thoughts on the proposed changes below.

@kimanhou
Copy link
Copy Markdown
Contributor Author

@roosterfish I opened a PR in LXD to update the description of Ceph OSD pool name, it will appear in help text in the UI. Is it clearer ?

canonical/lxd#17922

Copy link
Copy Markdown
Collaborator

@edlerd edlerd left a comment

Choose a reason for hiding this comment

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

Thanks for the iteration. Some further thoughts on the changes below.

Signed-off-by: Kim Anh Nguyen <4783194+kimanhou@users.noreply.github.com>
@kimanhou kimanhou marked this pull request as ready for review March 23, 2026 08:36
Copy link
Copy Markdown
Collaborator

@edlerd edlerd left a comment

Choose a reason for hiding this comment

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

LGTM

@kimanhou kimanhou merged commit bd36e8d into canonical:main Mar 23, 2026
18 checks passed
@kimanhou kimanhou deleted the drop-source-ceph branch March 24, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop source config key for Ceph RBD and CephFS drivers

4 participants