2013-05-08 20:57:32 |
Mat Lowery |
description |
Documentation at http://docs.openstack.org/trunk/openstack-compute/admin/content/differenthostfilter.html seems to be incorrect. Using python-novaclient 2.9, the following command did not work:
nova boot --image cedef40a-ed67-4d10-800e-17455edce175 --flavor 1 --hint different_host=[a0cf03a5-d921-4877-bb5c-86d26cf818e1,8c19174f-4220-44f0-824a-cd1eeef10287] server-1
but the following command did work:
nova boot --image cedef40a-ed67-4d10-800e-17455edce175 --flavor 1 --hint different_host=a0cf03a5-d921-4877-bb5c-86d26cf818e1 --hint different_host=8c19174f-4220-44f0-824a-cd1eeef10287 server-1
Notice the multiple --hint's.
I assume the same goes for SameHostFilter (same_host) (http://docs.openstack.org/trunk/openstack-compute/admin/content/samehostfilter.html) and possibly other filters. |
Documentation at http://docs.openstack.org/trunk/openstack-compute/admin/content/differenthostfilter.html seems to be incorrect. Using python-novaclient 2.9, the following command did not work:
nova boot --image cedef40a-ed67-4d10-800e-17455edce175 --flavor 1 --hint different_host=[a0cf03a5-d921-4877-bb5c-86d26cf818e1,8c19174f-4220-44f0-824a-cd1eeef10287] server-1
but the following command did work:
nova boot --image cedef40a-ed67-4d10-800e-17455edce175 --flavor 1 --hint different_host=a0cf03a5-d921-4877-bb5c-86d26cf818e1 --hint different_host=8c19174f-4220-44f0-824a-cd1eeef10287 server-1
Notice the multiple --hint's and removal of list brackets.
I assume the same goes for SameHostFilter (same_host) (http://docs.openstack.org/trunk/openstack-compute/admin/content/samehostfilter.html) and possibly other filters. |
|
2013-05-09 17:44:02 |
Mat Lowery |
description |
Documentation at http://docs.openstack.org/trunk/openstack-compute/admin/content/differenthostfilter.html seems to be incorrect. Using python-novaclient 2.9, the following command did not work:
nova boot --image cedef40a-ed67-4d10-800e-17455edce175 --flavor 1 --hint different_host=[a0cf03a5-d921-4877-bb5c-86d26cf818e1,8c19174f-4220-44f0-824a-cd1eeef10287] server-1
but the following command did work:
nova boot --image cedef40a-ed67-4d10-800e-17455edce175 --flavor 1 --hint different_host=a0cf03a5-d921-4877-bb5c-86d26cf818e1 --hint different_host=8c19174f-4220-44f0-824a-cd1eeef10287 server-1
Notice the multiple --hint's and removal of list brackets.
I assume the same goes for SameHostFilter (same_host) (http://docs.openstack.org/trunk/openstack-compute/admin/content/samehostfilter.html) and possibly other filters. |
Documentation at http://docs.openstack.org/trunk/openstack-compute/admin/content/differenthostfilter.html seems to be incorrect. Using python-novaclient 2.9, the following command did not work:
nova boot --image cedef40a-ed67-4d10-800e-17455edce175 --flavor 1 --hint different_host=[a0cf03a5-d921-4877-bb5c-86d26cf818e1,8c19174f-4220-44f0-824a-cd1eeef10287] server-1
but the following command did work:
nova boot --image cedef40a-ed67-4d10-800e-17455edce175 --flavor 1 --hint different_host=a0cf03a5-d921-4877-bb5c-86d26cf818e1 --hint different_host=8c19174f-4220-44f0-824a-cd1eeef10287 server-1
Notice the multiple --hint's and removal of list brackets.
I assume the same goes for SameHostFilter (same_host) (http://docs.openstack.org/trunk/openstack-compute/admin/content/samehostfilter.html) and possibly other filters.
If you run the former, you get a request excerpt like this:
"os:scheduler_hints": {"different_host": "[a0cf03a5-d921-4877-bb5c-86d26cf818e1,8c19174f-4220-44f0-824a-cd1eeef10287]"}
whereas if you run the latter, you get a request excerpt like this:
"os:scheduler_hints": {"different_host": ["a0cf03a5-d921-4877-bb5c-86d26cf818e1", "8c19174f-4220-44f0-824a-cd1eeef10287"]}
The former is a string; the latter is a list. |
|