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: Unable to change rgw subuser permission #48412

Merged
merged 1 commit into from Oct 11, 2022

Conversation

aaSharma14
Copy link
Contributor

@aaSharma14 aaSharma14 commented Oct 10, 2022

Tried to edit the permission of a subuser but once changed the permission, edited permission not seen in user info of UI(ceph dashboard) and from CLI as well

https://tracker.ceph.com/issues/57805
Signed-off-by:Aashish Sharmaaasharma@redhat.com

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

@aaSharma14 aaSharma14 requested a review from a team as a code owner October 10, 2022 09:11
@aaSharma14 aaSharma14 added this to In progress in Dashboard via automation Oct 10, 2022
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.

dashboard/__init__.py:60: note: ... from here:
dashboard/controllers/rgw.py: note: In member "create_subuser" of class "RgwUser":
dashboard/controllers/rgw.py:510: error: Argument 1 to "loads" has incompatible type "Dict[Any, Any]"; expected "Union[str, bytes]"

Dashboard automation moved this from In progress to Reviewer approved Oct 10, 2022
@aaSharma14 aaSharma14 force-pushed the fix-rgw-subuser-permissions branch 3 times, most recently from 4235c74 to 4ff3b18 Compare October 10, 2022 10:13
@aaSharma14
Copy link
Contributor Author

jenkins test make check

@aaSharma14
Copy link
Contributor Author

jenkins test make check arm64

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.

@aaSharma14 Can you add unit tests? I think we don't have tests for checking subuser create/edit (also in frontend), so would be good to have them!

Tried to edit the permission of a subuser but once changed the permission, edited permission not seen in user info of UI(ceph dashboard) and from CLI as well

Fixes:https://tracker.ceph.com/issues/57805
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
@nizamial09 nizamial09 merged commit 75868f1 into ceph:main Oct 11, 2022
13 checks passed
Dashboard automation moved this from Reviewer approved to Done Oct 11, 2022
@nizamial09 nizamial09 deleted the fix-rgw-subuser-permissions branch October 11, 2022 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Dashboard
  
Done
4 participants