-
Notifications
You must be signed in to change notification settings - Fork 935
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
API: Add list all volumes endpoint #13036
API: Add list all volumes endpoint #13036
Conversation
003ea5e
to
d4343f9
Compare
It looks like you need to rebase to lose the ceph commit thats been merged. |
Please can you ensure the API extension commit is first in the PR. This helps with backporting the change ta. |
I decided to add a pool column when listing all volumes. |
1c908e3
to
c673ae9
Compare
I decided to add a Pool column when listing all volumes with the CLI, if it is unecessary I can remove it. |
Also I took liberty to add the |
c673ae9
to
6ebe3c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markylaing please can you advise @hamistao if/where we need a an authorizer check when listing storage volumes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks great. I've added a couple of small points and I think it's worth a discussion about whether the queries for all volumes should be optimised.
As the authorization filtering is occurring at the end of the handler I don't think any changes need to be made here. However, it would be good to prove that the filtering works by adding a test for this - perhaps in |
289f8a9
to
c732f66
Compare
Not sure this is enough, would you mind giving me your opinion @markylaing? |
Please can you rebase and solve conflicts |
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
c732f66
to
ae3176d
Compare
Heads up @ru-fu - the "Documentation" label was applied to this issue. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks!
Added new endpoint
/1.0/storage_volumes
, and made some changes made necessary by the addition of thePool
field onapi.StorageVolume
.Fixes #12550.