← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1420192] Re: Nova interface-attach command has optional arguments to add network details. It should be positional arguments otherwise command fails.

 

I added the nova project as I don't think it should be stack tracing
over empty interface attachment parameters.

** Also affects: nova
   Importance: Undecided
       Status: New

** Tags added: api

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1420192

Title:
  Nova interface-attach command has optional arguments to add network
  details. It should be positional arguments otherwise command fails.

Status in OpenStack Compute (Nova):
  New
Status in Python client library for Nova:
  New

Bug description:
  On execution of nova interface-attach command without optional
  arguments command fails.

  root@ubuntu:~# nova interface-attach vm1
  ERROR (ClientException): Failed to attach interface (HTTP 500) (Request-ID: req-ebca9af6-8d2f-4f68-8a80-ad002b03c2fc)
  root@ubuntu:~# 

  To add a network interface atleast one amongst the optional arguments
  must be provided. Thus, help message needs to be modified.

  root@ubuntu:~# nova help interface-attach
  usage: nova interface-attach [--port-id <port_id>] [--net-id <net_id>]
                               [--fixed-ip <fixed_ip>]
                               <server>

  Attach a network interface to a server.

  Positional arguments:
    <server>               Name or ID of server.

  Optional arguments:
    --port-id <port_id>    Port ID.
    --net-id <net_id>      Network ID
    --fixed-ip <fixed_ip>  Requested fixed IP.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1420192/+subscriptions