Add arbitrary key/value scheduler hints ( was add reservation in scheduler hints) - #316
Conversation
Some OpenStack installation[[1](https://www.chameleoncloud.org/ )] use a lease system. Leases are usually provided by blazar[[2](https://wiki.openstack.org/wiki/Blazar )] and each lease is composed of a list of reservations. When creating servers, one must pass a valid reservation id in order to indicate to the system which reservation will be used by the future resource. For gophercloud#317
a083802 to
23523ce
Compare
|
@msimonin Thanks for this! I'm familiar with Chameleon and would love to see features added that go toward helping it. At first glance, I don't see If it's defined elsewhere in Nova, your approach might still be good. But if But if This is is why the PR template asks for specific lines of code -- to help Gophercloud match what is defined in the actual API. I hope that makes sense. |
|
Thanks @jtopjian, absolutely, that makes sense. So in my understanding (I may be wrong), So in your opinion, what could be the best approach ?
Hope we can find a clean way to have this ! :) |
|
Nice - that validator link is the key. This might also be relevant in terms of information, not implementation. IMO, go for the arbitrary k/v in In general, I think adding a field called With regard to validating the UUID for I think, anyway. @jrperritt ? |
e812e89 to
964aa3e
Compare
964aa3e to
f6a89e4
Compare
|
@jtopjian, @jrperritt I've updated the merge request to allow arbitrary key/value to be passed in the scheduler hints under an The topic of the PR and associated issue are less general than that, let me know what can I can do next. |
|
@msimonin This looks good to me - nice work! Thank you for your help with digging into the core way this works, too. @jrperritt does all of the final reviews. Hang tight until then :) |
|
I confirm that, as far as I know, Nova can accept any string as a scheduler hint name. If the hint is not supported by any enabled filter, the launch will proceed as if the hint had not been provided. The default list of filters can be extended by modules external to Nova, which is what Blazar is doing. Other projects can do the same and create new scheduler hints. See for example this Volume Affinity Filter from Mirantis. So I agree with the decision to allow arbitrary key/value pairs. |
|
I renamed the PR title. |
Agree |
* Vendor changes * Added new ikepolicy resource * Added waitforstates for create and update * added doc fixes
This commit adds back the route reconciliation logic which was removed in PR gophercloud#316, ensures static routes available before the completion of the initial unlock. Test plan: 1. Deploy a DC with AIOSX subcloud. 2. Reconfig the subcloud with an additional route, verifies the route creation will not trigger the system config update strategy. Signed-off-by: Yuxing Jiang <Yuxing.Jiang@windriver.com>
Some OpenStack installation[1] use a lease system. Leases are usually
provided by blazar[2] and each lease is composed of a list of
reservations. When creating servers, one must pass a valid reservation
id in order to indicate to the system which reservation will be used by
the future resource.
For #317