Can't create server_group in cli when 'policy' isn't specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Undecided
|
wingwj |
Bug Description
'policy' param is a required param for in nova api. But it's a optional param in cli now and cli doesn't have one default value for it.
# nova help server-group-create
> usage: nova server-group-create [--policy <policy>] <name>
> Create a new server group with the specified details.
> Positional arguments:
> <name> Server group name.
> Optional arguments:
> --policy <policy> Policies for the server groups
Therefore, if you create a server_group without param specified using cli, a 'BadRequest' exception will be raised.
Here's the example:
# nova server-group-create wingwj
> ERROR (BadRequest): Invalid input received: 'policies' is either missing or empty. (HTTP 400) (Request-ID: req-49341cf1-
Changed in python-novaclient: | |
assignee: | nobody → wingwj (wingwj) |
Changed in python-novaclient: | |
milestone: | none → 2.18.0 |
Changed in python-novaclient: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/96382
Review: https:/