Skip to content

mgr/dashboard: user accounts enhancements#64628

Merged
aaSharma14 merged 1 commit intoceph:mainfrom
rhcs-dashboard:accounts-enhancements
Aug 5, 2025
Merged

mgr/dashboard: user accounts enhancements#64628
aaSharma14 merged 1 commit intoceph:mainfrom
rhcs-dashboard:accounts-enhancements

Conversation

@nmunet
Copy link
Copy Markdown
Contributor

@nmunet nmunet commented Jul 23, 2025

fixes: https://tracker.ceph.com/issues/72072

Before:

  1. The non account root user, doesn't have access to create bucket. We should have a way to assign roles/policies.
  2. In users list page, the root user indication is onhover of Account Name.
  3. In Bucket page, The Owner is shown as account ID if linked with an account

After:

  1. We can now assign managed policies to non-root account users in users form.
  2. In users list page, the root user indication is shifted to username instead of Account Name with a icon.
  3. In Bucket page, The Owner is shown as account name instead of account id & in bucket form the owner is also shown as account name, if bucket linked with an account
Screencast.From.2025-07-22.22-41-44.mp4
Screencast.From.2025-07-24.23-58-59.mp4

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

  • 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

@github-actions
Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

raise e

def attach_managed_policy(self, userId, policy_arn):
radosgw_attach_managed_policies = ['user', 'policy', 'attach',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's have a tracker to make a switch to the APIs. I think we need to try that again and as per Casey, we have to use the POST req instead of GET call to the iam apis.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@aaSharma14
Copy link
Copy Markdown
Contributor

Tested locally, mostly works fine. Thanks @nmunet . Just a couple of comments:

  1. The Account root user icon's tool-tip has a scroll.
Screencast.From.2025-07-24.16-15-14.mp4
  1. Am not sure if this is related to this PR but the User list table is overflowing and the overflow menu which has the action buttons like Edit etc is visible only when we scroll horizontally. Not sure if this is the best practice, ideally actionable should be visible on screen by default. Maybe we can wrap the long usernames.
Screencast.From.2025-07-24.16-21-07.mp4

@nmunet nmunet force-pushed the accounts-enhancements branch from 521bef5 to 792cb84 Compare July 24, 2025 18:14
@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 24, 2025

@aaSharma14 thanks for testing the PR,
the issues mentioned by you is not directly related to this PR.

  1. the issue for scroll is seen in other places also, I will try to fix it in this PR mgr/dashboard: add reusable carbon popover #64388
  2. I agree, the username need to be truncated, will raise a fix for it whenever possible.

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 25, 2025

jenkins test api

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 25, 2025

jenkins test dashboard

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 25, 2025

jenkins test make check arm64

Copy link
Copy Markdown
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, thank you @nmunet

@github-project-automation github-project-automation bot moved this from New to Reviewer approved in Ceph-Dashboard Jul 25, 2025
@nmunet nmunet force-pushed the accounts-enhancements branch 2 times, most recently from 897a0af to 8567f2a Compare July 25, 2025 06:53
@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 25, 2025

jenkins test dashboard

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 25, 2025

jenkins test dashboard cephadm

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 25, 2025

jenkins test api

@nmunet nmunet force-pushed the accounts-enhancements branch from 8567f2a to 186de69 Compare July 27, 2025 13:51
@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 28, 2025

2025-07-27 15:10:09,027.027 INFO:__main__:---------------------------------------------------------------------- 2025-07-27 15:10:09,028.028 INFO:__main__:Traceback (most recent call last): 2025-07-27 15:10:09,028.028 INFO:__main__: File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/test_rgw.py", line 187, in test_all 2025-07-27 15:10:09,028.028 INFO:__main__: self.assertStatus(200) 2025-07-27 15:10:09,028.028 INFO:__main__: File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 509, in assertStatus 2025-07-27 15:10:09,028.028 INFO:__main__: self.assertEqual(self._resp.status_code, status) 2025-07-27 15:10:09,028.028 INFO:__main__:AssertionError: 500 != 200

One of the test is failing, can you help fixing this? @nizamial09 @aaSharma14
Also it would be good if any one of you can do another round of testing.

@nmunet nmunet force-pushed the accounts-enhancements branch from 186de69 to 1f2fcc9 Compare July 28, 2025 06:13
@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 29, 2025

jenkins test windows

@cloudbehl
Copy link
Copy Markdown
Contributor

@nmunet which all forms do you see same bug and can you create tracker for it?

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 30, 2025

@nmunet which all forms do you see same bug and can you create tracker for it?

https://tracker.ceph.com/issues/72344

@dnyanee1997
Copy link
Copy Markdown
Contributor

@nmunet , Tested the flow and didn’t find any issues or timeout errors.

Screencast.from.2025-07-30.20-06-02.mp4

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 30, 2025

@nmunet , Tested the flow and didn’t find any issues or timeout errors.

Screencast.from.2025-07-30.20-06-02.mp4

Thanks for testing it out @dnyanee1997

@afreen23
Copy link
Copy Markdown
Contributor

jenkins test dashboard

@afreen23
Copy link
Copy Markdown
Contributor

jenkins test dashboard cephadm

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 31, 2025

jenkins test dashboard

2 similar comments
@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Jul 31, 2025

jenkins test dashboard

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Aug 1, 2025

jenkins test dashboard

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Aug 1, 2025

jenkins test dashboard cephadm

Copy link
Copy Markdown
Contributor

@cloudbehl cloudbehl left a comment

Choose a reason for hiding this comment

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

LGTM

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Aug 1, 2025

jenkins test dashboard

1 similar comment
@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Aug 1, 2025

jenkins test dashboard

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Aug 1, 2025

jenkins test dashboard cephadm

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Aug 1, 2025

Please don't merge, doing scale testing

@dnyanee1997
Copy link
Copy Markdown
Contributor

@nmunet , tested the PR with 100 buckets and 100 accounts.

LGTM.
Thanks!

Screencast.from.2025-08-01.17-50-30.mp4

fixes: https://tracker.ceph.com/issues/72072

PR covers:
1) Displaying account name instead of account id in bucket list page & bucket edit form for account owned buckets
2) non-root account user can now be assigned with managed policies with which they can perform operations
3) The root user indication shifted next to username in users list rather than on Account Name with a new icon.

Signed-off-by: Naman Munet <naman.munet@ibm.com>
@nmunet nmunet force-pushed the accounts-enhancements branch from 34f86e7 to 6e9db91 Compare August 1, 2025 12:36
@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Aug 1, 2025

jenkins test make check arm64

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Aug 1, 2025

jenkins test make check

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Aug 1, 2025

Thanks @dnyanee1997 for doing the scale testing, I do not see any issue related to timeout here.
I have created a tracker to have skeleton states for accounts table https://tracker.ceph.com/issues/72374

@nmunet
Copy link
Copy Markdown
Contributor Author

nmunet commented Aug 3, 2025

jenkins test make check

@aaSharma14 aaSharma14 merged commit e825b4c into ceph:main Aug 5, 2025
14 of 15 checks passed
@aaSharma14 aaSharma14 deleted the accounts-enhancements branch August 5, 2025 05:32
@github-project-automation github-project-automation bot moved this from Reviewer approved to Done in Ceph-Dashboard Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants