"server create" command failed when --nic auto or none

Bug #1663520 reported by Rui Chen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
Rui Chen

Bug Description

"auto" and "none" options was added into --nic argument of server create command in patch https://review.openstack.org/#/c/412698/ , but that don't work and raise internal error when execute command.

(openstack) server create --nic auto --image cirros-0.3.4-x86_64-uec --flavor m1.tiny chenrui_vm
dictionary update sequence element #0 has length 1; 2 is required
(openstack)

  --nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid>
                        Create a NIC on the server. Specify option multiple
                        times to create multiple NICs. Either net-id or port-
                        id must be provided, but not both. net-id: attach NIC
                        to network with this UUID, port-id: attach NIC to port
                        with this UUID, v4-fixed-ip: IPv4 fixed address for
                        NIC (optional), v6-fixed-ip: IPv6 fixed address for
                        NIC (optional), none: (v2.37+) no network is attached,
                        auto: (v2.37+) the compute service will automatically
                        allocate a network.

In the latest nova api implementation, if don't specify --nic option, the default value is auto, like this:
nova will prepare network for the server automaticly.

(openstack) server create --image cirros-0.3.4-x86_64-uec --flavor m1.tiny chenrui_vm

Rui Chen (kiwik-chenrui)
Changed in python-openstackclient:
assignee: nobody → Rui Chen (kiwik-chenrui)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/432993
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=c051c5f090fa6729a005c9d462afd8a75fc1b40f
Submitter: Jenkins
Branch: master

commit c051c5f090fa6729a005c9d462afd8a75fc1b40f
Author: Rui Chen <email address hidden>
Date: Mon Feb 13 15:31:23 2017 +0800

    Fix "server create" command failed when --nic auto or none

    "auto" and "none" options was added into --nic argument of server create
    command in patch https://review.openstack.org/#/c/412698/ , but that
    don't work and raise internal error when execute command. The patch
    fix that issue and add unit and functional tests.

    Change-Id: Ia718c3bac0a5172a0cdbe9f0d97972a9346c1172
    Co-Authored-By: Kevin_Zheng <email address hidden>
    Closes-Bug: #1663520

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

This issue was fixed in the openstack/python-openstackclient 3.9.0 release.

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.