Repository navigation
mgr/dashboard: Add Hosts via CSV Upload - #67935
Conversation
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
79597ad to
03ae044
Compare
03ae044 to
cb865d9
Compare
|
jenkins test dashboard |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
There was a problem hiding this comment.
Hey @sagargopale2233 thanks for the PR. Some comments from my side:
is there any reason to use only .csv? Why not allow for .json or .yaml?
While testing, I was removing an element and got the following error which broke the page:
Uncaught Error: Control 'hostDchapKeyList,6' could not be found!
at CdFormGroup.get (cd-form-group.ts:29:13)
at FormGroupDirective._cleanUpFormContainer (forms.mjs:5290:36)
at FormGroupDirective.removeFormGroup (forms.mjs:5176:14)
at FormGroupName.ngOnDestroy (forms.mjs:3933:32)
at executeOnDestroys (core.mjs:13305:32)
at cleanUpView (core.mjs:13200:9)
at destroyViewTree (core.mjs:13144:17)
at destroyLView (core.mjs:13174:5)
at LiveCollectionLContainerImpl.destroy (core.mjs:27785:9)
at reconcile (core.mjs:27447:24)
Also, when the file attached (that was uploaded), as can be seen in the below video, is removed the hosts are not removed, but then if I remove a bunch of hosts and try to reupload the file, the missing hosts are not set since the file was already uploaded. Not a big deal but would be cleaner if we could fix this I believe.
screen-capture.16.webm
Hey @Pegonzal, thanks for the review and for catching those bugs! I've pushed updates to fix both issues you found with the CSV upload: 1. The page breaking when removing an element (fixed the FormArray lifecycle issue). 2. The uploaded hosts not clearing properly when the file is removed from the UI. Regarding your suggestion to support .json and .yaml formats alongside .csv: I agree that would be a great addition! However, to keep this PR focused and get these bug fixes merged smoothly, we are going to cover the JSON/YAML support in a separate, follow-up PR. Let me know if the current fixes look good to you! |
3f7de86 to
3d67ca9
Compare
65b6854 to
ea9e8a1
Compare
|
jenkins test make check |
|
@sagargopale2233 there are some linting issues as well as a test failure: |
|
jenkins test make check arm64 |
Pegonzal
left a comment
There was a problem hiding this comment.
Thanks for the update @sagargopale2233 , overall works nicely and this is a great addition.
I wanted to point to a couple things I saw while testing that could be fixed in a followup PR.
On bigger screens space is unused and instead scrollbar is added
screen-capture.21.webm
Drag and drop not working:
Also I don't think "no file selected" should be shown in red as it is not a requisit. I had hosts selected which is what matters.
mgr/dashboard: Add Hosts via CSV Upload
Fixes: https://tracker.ceph.com/issues/75578
Signed-off-by: Sagar Gopale [email protected]
Screencast :
Screencast.From.2026-04-30.11-02-10.mp4
PR Description : This PR adds CSV-based host import support to the NVMe-oF Subsystem Step 2 flow in Ceph Dashboard, alongside the existing manual host entry path.
It introduces UI updates, validation/error handling, and layout adjustments to support CSV upload and parsed host listing.
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.