Add schedule hint support in volume resource #24
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.
Use Case
The OpenStack cinder supports to add schedule parameters when creating
volume, the name of the parameters in API doc is "OS-SCH-HNT:scheduler_hints"
that can be found in Cinder API document here
In some cases, the user wish to set the parameters to fix the volume location.
this PR is to propose to add this parameter support in otc provider.
Propose To Change
In order to support this paramter, these parties need to change:
#1. please review gator1/gophercloud#8
#2 #3 are here.
Impact Anlysis
All configurations that end users had will work as they did.
Only to add following parties when the scenario need this party
This addition will not impact other resources as it is only a single
addition for volume creation.
Acceptance Test
All tests related this part passed, the log as follow:
=== RUN TestAccBlockStorageV2Volume_importBasic
--- PASS: TestAccBlockStorageV2Volume_importBasic (53.72s)
=== RUN TestAccBlockStorageV2Volume_basic
--- PASS: TestAccBlockStorageV2Volume_basic (164.38s)
=== RUN TestAccBlockStorageV2Volume_tags
--- PASS: TestAccBlockStorageV2Volume_tags (97.94s)
=== RUN TestAccBlockStorageV2Volume_image
--- PASS: TestAccBlockStorageV2Volume_image (211.33s)
=== RUN TestAccBlockStorageV2Volume_timeout
--- PASS: TestAccBlockStorageV2Volume_timeout (163.62s)
Resolves : #23