Skip to content

listStoragePools return all fields #8731

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

Open
poddm opened this issue Feb 29, 2024 · 2 comments · May be fixed by #10740
Open

listStoragePools return all fields #8731

poddm opened this issue Feb 29, 2024 · 2 comments · May be fixed by #10740

Comments

@poddm
Copy link

poddm commented Feb 29, 2024

ISSUE TYPE
  • Enhancement Request
COMPONENT NAME
API
CLOUDSTACK VERSION
4.19
CONFIGURATION

n/a

OS / ENVIRONMENT

n/a

SUMMARY

listStoragePools doesn't return fields passed in from createStoragePool API preventing the use of terraform or other infrastructure as code tools.

Fields

  • details
  • capacitybytes
  • capacityiops
  • url is broken into two fields. Ip and path
    • note: IP can be a fqdn/hostname
  • managed
STEPS TO REPRODUCE
n/a
EXPECTED RESULTS
Values used during createStoragePool are mapped 1:1 and returned through listStoragePools API.
ACTUAL RESULTS
n/a
@sureshanaparti
Copy link
Contributor

@poddm The listStoragePools already returns capacitybytes (in disksizetotal response parameter), and capacityiops (if not null, in capacityiops response parameter). All the details can't be returned as there are some detail fields not to be listed, any specific details to be listed to use them in terraform? I think, url can be reconstructed from the ip, path, pool type, etc in case required.

For manage parameter in the response, I've created PR here: #9588.

@JoaoJandre JoaoJandre modified the milestones: 4.20.0.0, 4.21.0.0 Sep 10, 2024
@sureshanaparti sureshanaparti moved this from Todo to Dev In Progress in Apache CloudStack BugFest - Issues Apr 16, 2025
@sureshanaparti sureshanaparti self-assigned this Apr 16, 2025
@sureshanaparti sureshanaparti linked a pull request Apr 16, 2025 that will close this issue
14 tasks
@sureshanaparti sureshanaparti linked a pull request Apr 16, 2025 that will close this issue
14 tasks
@sureshanaparti
Copy link
Contributor

@poddm details, capacitybytes and capacityiops are updated in the storage pool response here: #10740. Noticed some urls holds passwords / tokens, so it's better to construct the url using the pool type, Ip, path and any detail parameters.

@sureshanaparti sureshanaparti moved this from Dev In Progress to ready for Review in Apache CloudStack BugFest - Issues Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ready for Review
Development

Successfully merging a pull request may close this issue.

4 participants