Multiple policies can be specified in server-group-create command

Bug #1767287 reported by Takashi Natsume
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Low
Takashi Natsume

Bug Description

python-novaclient version 10.2.0

In "nova server-group-create", multiple policies can be specified.

----------------------------------------------------------------------
stack@devstack-master:/opt/devstack$ nova help server-group-create
usage: nova server-group-create <name> <policy> [<policy> ...]

Create a new server group with the specified details.

Positional arguments:
  <name> Server group name.
  <policy> Policies for the server groups.
----------------------------------------------------------------------

But only one item is allowed in nova side.

https://github.com/openstack/nova/blob/ceac5d54695dfe64bdf690775ba7c41e250bfa3e/nova/api/openstack/compute/schemas/server_groups.py#L38

In python-novaclient, only one policy should be allowed.

Changed in python-novaclient:
status: New → In Progress
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/564699

Changed in python-novaclient:
assignee: Takashi NATSUME (natsume-takashi) → Matt Riedemann (mriedem)
Matt Riedemann (mriedem)
Changed in python-novaclient:
assignee: Matt Riedemann (mriedem) → Takashi NATSUME (natsume-takashi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/564699
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=57e9a5d34cde8cef319487cb56eca383cff76059
Submitter: Zuul
Branch: master

commit 57e9a5d34cde8cef319487cb56eca383cff76059
Author: Takashi NATSUME <email address hidden>
Date: Fri Apr 27 16:54:09 2018 +0900

    Fix the policy argument in server-group-create

    In the "server-group-create" command, multiple policies
    can be specified currently. But only one item is allowed
    in the nova side. So make the command allow only one policy.

    Change-Id: Ifd2d084faa2b849d6ee466d9accbad21b6a4e11b
    Closes-Bug: #1767287

Changed in python-novaclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-novaclient 10.3.0

This issue was fixed in the openstack/python-novaclient 10.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to python-novaclient (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/577341

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/577341
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=db4fd9a5f07e560ddc6814661067949294bd3608
Submitter: Zuul
Branch: master

commit db4fd9a5f07e560ddc6814661067949294bd3608
Author: Chen <email address hidden>
Date: Fri Jun 22 11:07:20 2018 +0800

    Fix help text in server-group-create

    Only one policy is allowed in server-group-create.

    Change-Id: Id9cb6f96a5f8bcece1bcda88a97c6fb5f8a58bba
    Related-Bug: #1767287

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.