cannot assign multi value for NovaSchedulerHints
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Pavlo Shchelokovskyy |
Bug Description
We can assign multi value for one key when using nova boot, for example, below we indicate 2 different_host hints:
nova boot --image cedef40a-
However, in Heat, for example when we compose the instance in template like below:
"server-2": {
"Type": "AWS::EC2:
"Properties": {
"ImageId": { "Ref" : "image" },
"UserData": { "Fn::Base64": "userdata content, not used in this case" }
}
Only the different_
I have check the </usr/lib/
327 scheduler_hints = {}
328 if self.properties
329 for tm in self.properties
330 scheduler_
331 else:
332 scheduler_hints = None
According to my understanding, in the example case, the later different_host overwrote the previous one.
That's why only the different_
As a result, I think this might be a bug/shortage.
Or maybe the format of the example template above is wrong, then please guide how to compose the NovaSchedulerHints for multi value for one key in correct way.
Any way, need you guys confirmation.
Thank you!
description: | updated |
Changed in heat: | |
assignee: | nobody → Pavlo Shchelokovskyy (pshchelo) |
tags: | added: icehouse-backport-potential |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | juno-1 → 2014.2 |
Currently I don't think the heat key/value map will allow you to specify what you want, which is multiple values associated with one key.
It seems that we need to allow optional specification of a key/list map, that's what the underlying API requires AFAICS:
http:// docs.openstack. org/havana/ config- reference/ content/ scheduler- filters. html
'os:scheduler_ hints': { host': ['a0cf03a5- d921-4877- bb5c-86d26cf818 e1',
'8c19174f- 4220-44f0- 824a-cd1eeef102 87'],
'different_
}
I'm not quite sure what the expected interface is at the novaclient level - there don't seem to be any tests at all covering the hints interfaces to v1.1 servers.