Skip to content
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: Create OSDs section in cluster creation wizard #42583

Conversation

aaSharma14
Copy link
Contributor

@aaSharma14 aaSharma14 commented Aug 2, 2021

Create OSDs section in cluster creation wizard

Fixes: https://tracker.ceph.com/issues/51991
Signed-off-by: Aashish Sharma aasharma@redhat.com
Screenshot from 2021-08-24 13-54-07
Screenshot from 2021-08-24 13-54-21

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 api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@aaSharma14 aaSharma14 requested a review from a team as a code owner August 2, 2021 11:37
@aaSharma14 aaSharma14 requested review from pereman2, aaryanporwal and cypherean and removed request for a team August 2, 2021 11:37
@aaSharma14 aaSharma14 added this to In progress in Dashboard via automation Aug 2, 2021
@aaSharma14 aaSharma14 force-pushed the add-osd-cluster-creation branch 2 times, most recently from 4e6abf1 to b53698b Compare August 5, 2021 05:46
@aaSharma14
Copy link
Contributor Author

jenkins test make check

Copy link
Member

@nizamial09 nizamial09 left a comment

Choose a reason for hiding this comment

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

IMHO, I don't see a point in showing the OSD List table. OSD's wont be showing up in that table unless it is added to the cluster. And osds are only added only after adding the host (In our case, after exiting the hosts out of maintenance/removing the _no_schedule label).

My suggestion will be to use the osd-creation-form instead of the list. The whole point of showing this list is to preview the user of the output and we get that information from the osd-creation-form itself as a preview.

@aaSharma14
Copy link
Contributor Author

jenkins test dashboard cephadm

@aaSharma14
Copy link
Contributor Author

IMHO, I don't see a point in showing the OSD List table. OSD's wont be showing up in that table unless it is added to the cluster. And osds are only added only after adding the host (In our case, after exiting the hosts out of maintenance/removing the _no_schedule label).

My suggestion will be to use the osd-creation-form instead of the list. The whole point of showing this list is to preview the user of the output and we get that information from the osd-creation-form itself as a preview.

I think osds can be created in _no_schedule mode. @avanthakkar Do you have any idea?

Copy link
Member

@votdev votdev left a comment

Choose a reason for hiding this comment

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

Sorry for hijacking this PR, but while testing it the following things come to my mind:

Bildschirmfoto vom 2021-08-09 15-38-25

  • There is too much Expand Cluster shown on this page. The breadcrumb in the upper left corner should be removed, it is pretty useless here on this page.
  • Change Expand Cluster in the red button to Continue or Start.

Bildschirmfoto vom 2021-08-09 15-37-35

  • IMO Expand Cluster is also too much mentioned here. Remove the breadcrumb, it is also pretty useless here. I'm aware of that all pages display the breadcrumb in Ceph Dashboard, but IMO a wizard is something different than a regular page.

Bildschirmfoto vom 2021-08-09 15-56-19

  • I suggest to rename the red Expand cluster button to Finish or Apply.

Dashboard automation moved this from In progress to Review in progress Aug 9, 2021
votdev
votdev previously requested changes Aug 9, 2021
<h4 class="title"
i18n>Create OSDs</h4>
<br>
<cd-osd-list [clusterCreation]="true"></cd-osd-list>
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add an attribute to hide the title, because showing it twice doesn't look nice. I guess the user knows that they are on the Create OSD page because the navigation on the left shows it. The same applies to the Add Hosts wizard page.

Bildschirmfoto vom 2021-08-09 15-46-50

Copy link
Contributor

Choose a reason for hiding this comment

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

@votdev In the particular case I think that the title is helpful as yo can easily overlook the left column.

@nizamial09
Copy link
Member

nizamial09 commented Aug 17, 2021

@votdev @aaSharma14 These comments are being followed up on this PR. #42557

@aaSharma14 aaSharma14 force-pushed the add-osd-cluster-creation branch 3 times, most recently from ac113a2 to 8b4acdc Compare August 24, 2021 06:33
Copy link
Member

@nizamial09 nizamial09 left a comment

Choose a reason for hiding this comment

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

LGTM! One thing I noticed is that after selecting the devices in the create osd section, I click next and came back to Previous step to see that the osd device preview is gone. But the drive-group spec is kept and previously selected storage information is still shown in Review Section. (If I change it and select new spec, it gets updated too). And it even created OSDs as expected. So only a minor thing to improve.

Thank you for addressing all my reviews. Great work @aaSharma14

@aaSharma14 aaSharma14 force-pushed the add-osd-cluster-creation branch 2 times, most recently from e527bc7 to a70aa71 Compare August 30, 2021 12:34
class="bold">Storage Capacity</td>
<td><span i18n
*ngIf="filteredDevices && capacity">Number of devices: {{ filteredDevices.length }}. Raw capacity:
{{ capacity | dimlessBinary }}.</span></td>
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't seem right to me. Maybe just Storage capaticy: x GiB or acc. to @pcuzner suggestion
"just use a table showing columns for hdd, flash showing sum for the total capacity and drive count per type - so you can do a quick visual check "

Copy link
Contributor

Choose a reason for hiding this comment

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

I think Something like this may work too: 2xHDD xGiB, 3xFlash yGiB
what u think? @nizamial09 @epuertat

Copy link
Member

Choose a reason for hiding this comment

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

I think that could work. Also I believe you are taking care of this in a separate PR right @avanthakkar ? So its best to do it separately on that PR where you are following up on the review page (#42488) because I believe this PR has went through a lot to get here. Does that works for you @avanthakkar ?

Copy link
Member

Choose a reason for hiding this comment

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

Also I like separating them into different columns better. Its more visually catchy.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that could work. Also I believe you are taking care of this in a separate PR right @avanthakkar ? So its best to do it separately on that PR where you are following up on the review page (#42488) because I believe this PR has went through a lot to get here. Does that works for you @avanthakkar ?

I've already introduced the review section changes in my current PR for gather facts itself. But yeah I agree some minor things can be introduced in later PR, maybe having a general expand cluster workflow remaining cleanups.

Copy link
Contributor

@pereman2 pereman2 left a comment

Choose a reason for hiding this comment

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

Working fine. One thing that worries me is when adding primary devices you have to select them with filters. I don't remember if this was discussed or something, but why isn't there a way to select with just a click in addition of using filters.

Copy link
Contributor

@avanthakkar avanthakkar left a comment

Choose a reason for hiding this comment

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

Tested locally and works perfect! Great job @aaSharma14 @nizamial09 !!

@nizamial09
Copy link
Member

but why isn't there a way to select with just a click in addition of using filters.

Yup, I am actually trying to propose another design for it. Next week or so I'll do one.

@avanthakkar avanthakkar moved this from In progress to Review in progress in Dashboard Aug 30, 2021
@aaSharma14 aaSharma14 force-pushed the add-osd-cluster-creation branch 2 times, most recently from c1ad477 to 35c5aae Compare August 31, 2021 05:12
@nizamial09
Copy link
Member

jenkins test dashboard cephadm

1 similar comment
@avanthakkar
Copy link
Contributor

jenkins test dashboard cephadm

@aaSharma14
Copy link
Contributor Author

jenkins test api

Create OSDs section in cluster creation wizard

Fixes: https://tracker.ceph.com/issues/51991
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
@nizamial09
Copy link
Member

jenkins test dashboard cephadm

@nizamial09
Copy link
Member

nizamial09 commented Aug 31, 2021

@epuertat, cephadm dashboard test failure is because of https://tracker.ceph.com/issues/52407

Locally, along with the fix from Sebastian, its passing.

       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔  orchestrator/workflow/01-create-clu      00:04        2        2        -        -        - │
  │    ster-welcome-page.e2e-spec.ts                                                               │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  orchestrator/workflow/02-create-clu      00:33        6        6        -        -        - │
  │    ster-add-host.e2e-spec.ts                                                                   │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  orchestrator/workflow/03-create-clu      00:04        2        2        -        -        - │
  │    ster-create-osds.e2e-spec.ts                                                                │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  orchestrator/workflow/03-create-clu      00:05        4        4        -        -        - │
  │    ster-review.e2e-spec.ts                                                                     │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  orchestrator/workflow/04-cluster-ch      01:56        5        5        -        -        - │
  │    eck.e2e-spec.ts                                                                             │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✔  All specs passed!                        02:44       19       19        -        -        -  

@aaSharma14 aaSharma14 dismissed stale reviews from alfonsomthd and votdev September 1, 2021 04:56

fixed

Dashboard automation moved this from Review in progress to Reviewer approved Sep 1, 2021
@aaSharma14 aaSharma14 moved this from Reviewer approved to Ready-to-merge in Dashboard Sep 1, 2021
@epuertat epuertat merged commit 9f50cb1 into ceph:feature-50336-cluster-creation-wizard Sep 1, 2021
Dashboard automation moved this from Ready-to-merge to Done Sep 1, 2021
@epuertat epuertat deleted the add-osd-cluster-creation branch September 1, 2021 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Dashboard
  
Done
8 participants