Launchpad

"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

Read the original on bugs.launchpad.net ↗