Skip to content

mgr/dashboard: cluster upgrade base UI component - #52351

Merged
nizamial09 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:upgrade-ui
Jul 14, 2023
Merged

nizamial09 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:upgrade-ui

Conversation

@nizamial09

@nizamial09 nizamial09 commented Jul 7, 2023 •

Copy link
Copy Markdown
Member

Follows #52222

scrnli_7_11_2023_8-28-51.PM.mp4

When the cluster is already updated
image

  • Base layout for the Upgrade Component
  • Shows the Upgrade available button when an upgrade is available

Fixes: https://tracker.ceph.com/issues/61927
Signed-off-by: Nizamudeen A [email protected]

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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

@nizamial09
nizamial09 requested review from a team as code owners July 7, 2023 06:00
@nizamial09
nizamial09 requested review from Pegonzal and avanthakkar and removed request for a team July 7, 2023 06:00
@nizamial09
nizamial09 marked this pull request as draft July 7, 2023 06:12
@nizamial09
nizamial09 force-pushed the upgrade-ui branch 5 times, most recently from ee56e4f to 6085cf3 Compare July 10, 2023 04:39
@cloudbehl

Copy link
Copy Markdown
Contributor

Thanks Nizam for the PR, the view looks wonderful.
Few points:

  1. Can we have loading icon in the center of page( checking for updates)
  2. If the cluster is already up-to-date we can hide the upgrade button and say cluster is up-to-date
  3. Where we are showing logs, can we put heading of what logs are we showing?
  4. can we fix the height of logs to 100% of page so the page doesn't become scroll able.
  5. The daemon version table looks good can restrict the height to 5 daemons and not give option too increase the amount of daemon a user can see in list. Also which all components are we including?

@cloudbehl

Copy link
Copy Markdown
Contributor

Also, make sure the PR is properly divided and not bigger to review.

@nizamial09
nizamial09 force-pushed the upgrade-ui branch 2 times, most recently from e21a680 to 1d2bda7 Compare July 11, 2023 15:00
@nizamial09 nizamial09 changed the title [WIP] mgr/dashboard: cluster upgrade base UI component mgr/dashboard: cluster upgrade base UI component Jul 11, 2023
@nizamial09
nizamial09 marked this pull request as ready for review July 11, 2023 15:04
@nizamial09

nizamial09 commented Jul 11, 2023 •

Copy link
Copy Markdown
Member Author

@cloudbehl replies inline. Also I split the PR. I'll raise a separate PR to deal with logs and version column

Thanks Nizam for the PR, the view looks wonderful. Few points:

  1. Can we have loading icon in the center of page( checking for updates)

✔️ Done

  1. If the cluster is already up-to-date we can hide the upgrade button and say cluster is up-to-date

This was already in place. It used to say No upgrades available but changed it to show Cluster is up-to-date

  1. Where we are showing logs, can we put heading of what logs are we showing?

Will do. Removed it from this PR

  1. can we fix the height of logs to 100% of page so the page doesn't become scroll able.

Will try!

  1. The daemon version table looks good can restrict the height to 5 daemons and not give option too increase the amount of daemon a user can see in list. Also which all components are we including?

mgr -> mon -> crash -> osd -> mds -> rgw -> rbd-mirror -> cephfs-mirror -> iscsi -> nfs these are all the components that have the ceph version so for now those are the only included ones

@avanthakkar avanthakkar left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested locally and LGTM! Just left some comments on code improvements.

- Base layout for the Upgrade Component
- Shows the Upgrade available button when an upgrade is available

Fixes: https://tracker.ceph.com/issues/61927
Signed-off-by: Nizamudeen A <[email protected]>
@avanthakkar

Copy link
Copy Markdown
Contributor

Does the upgrade works if we have the ceph health in WARN state? Let's say we have TOO_FEW_OSDS warn state, does upgrade throws error or it starts upgrade for other ceph daemons? @nizamial09

@nizamial09

nizamial09 commented Jul 13, 2023 •

Copy link
Copy Markdown
Member Author

Does the upgrade works if we have the ceph health in WARN state? Let's say we have TOO_FEW_OSDS warn state, does upgrade throws error or it starts upgrade for other ceph daemons? @nizamial09

Probably @adk3798 could answer this better but my guess is the upgrade will start and proceed regardless of the Cluster HEALTH.

@cloudbehl

Copy link
Copy Markdown
Contributor

jenkins test make check

@nizamial09
nizamial09 merged commit 809b7d3 into ceph:main Jul 14, 2023
@nizamial09
nizamial09 deleted the upgrade-ui branch July 14, 2023 05:56
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.

4 participants