-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mgr/dashboard: add smb service management support #57134
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM functionally!
Can you please also add a unit test for smb service creation
@Pegonzal Thanks for PR.
@phlogistonjohn can you help, what things from your perspective could be made easier for user by automating or having preselected values? |
Hi @cloudbehl this feature is really meant to support the (recently merged) smb mgr module and is not really meant to end users to interact with directly. @Pegonzal needs to make the existing service spec support complete but should only be done minimally IMO. I wouldn't go too far in making it "friendly" just do enough to be complete. If you are an "expert" in the samba-containers project you could use this service spec directly but that's a vanishingly small number of people. If you want, features can be a multi-select or group of checkboxes (or whatever your framework calls it). The enumeration for 'features' is currently either The smb mgr module PR also had to add an additional field. |
Added it
All addressed
Created a tracker to add this new feature in the forms that might need it https://tracker.ceph.com/issues/66032 Also added the |
jenkins test api |
jenkins test dashboard |
Fixes: https://tracker.ceph.com/issues/65681 Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
jenkins test dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comments, mostly looks good.
placeholder="rados://.smb/foo/scc.toml" | ||
i18n-placeholder> | ||
<span class="invalid-feedback" | ||
*ngIf="serviceForm.showError('config_uri', frm, 'required')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to have validation for url based on Supported URI schemes include http:, https:, rados:, and rados:mon-config-key:.
<label class="cd-col-form-label required" | ||
for="cluster_id" | ||
i18n> | ||
Cluster id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cluster id | |
Cluster name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets call it name, ID is confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or something like this: Cluster ID(Name)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! can you add an e2e test in the cephadm dashboard e2e suite for the service creation? Since we don't expect users to use this interface to frequently there's a good chance that we can miss out if this is broken unintentionally.
screen-capture.45.webm
Fixes: https://tracker.ceph.com/issues/65681
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
x
between the brackets:[x]
. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test dashboard cephadm
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox
jenkins test windows
jenkins test rook e2e