Non key=value values for 'allocation candidate list --resource' produce confusing output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
placement-osc-plugin |
Fix Released
|
Medium
|
Stephen Finucane |
Bug Description
# Overview
The 'openstack allocation candidate list' command requires one or more '--resource' arguments. These should be of key=value format (and arguably positional - not keyword - arguments, but that ship has sailed). There should be validation of this when running something like so:
$ openstack allocation candidate list --resource VCPU
# Expected results
I should get a sane warning telling me to use key=value values.
# Actual result
The client blindly carries on only for placement to reject the request.
$ openstack allocation candidate list --resource VCPU
Badly formed resources parameter. Expected resources query string parameter in form: ?resources=
Thankfully the reply is unambiguous but we shouldn't even get this far.
This issue was fixed in the openstack/ osc-placement 1.4.0 release.