PWX-35127: add volume spec to drive resource #2418
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
linked PR: https://github.com/pure-px/porx/pull/13009
Keep the original cloud drive spec for volume creation part of the managed volume resource. This is needed to help pass px specific labels between cloud and px later.
This is part of a larger effort to create pools with enough drives at the beginning and only support capacity expansion through pool resize without needing add drive.
Gave below logs as to how a single drive add can inturn create multiple disk devices.
This is px flex pool feature under work.
pxctl sv drive add -s "size=10,px-flexpool=1,px-max-thin-pool-size=40"
So part of the drive spec, additional px specific attributes also get passed.
These need to be saved part of the resource, hence need this state add PR.
Which issue(s) this PR fixes (optional)
Closes # PWX-35127
Testing Notes
Add testing output or passing unit test output here.
Special notes for your reviewer:
Add any notes for the reviewer here.