DifferentHostFilter doc is incorrect

Bug #1177970 reported by Mat Lowery
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Low
Unassigned

Bug 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.

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.

Mat Lowery (mat-lowery)
description: updated
Changed in nova:
status: New → Triaged
importance: Undecided → Low
affects: nova → openstack-manuals
Mat Lowery (mat-lowery)
description: updated
Stephen Gordon (sgordon)
Changed in openstack-manuals:
milestone: none → grizzly
Revision history for this message
Stephen Gordon (sgordon) wrote :

I went back and checked master (config-reference), havana (config-reference), and grizzly (compute-admin) and this appears to have been fixed in all cases.

Changed in openstack-manuals:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.