← 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.

 

After chatting with Park in IRC, we determined there isn't a bug in
nova. I was led astray because the environment where I saw the issue has
cells enabled, which might be behaving differently than non-cells. If
that is indeed the case, it will be a different bug than this one.

** No longer affects: nova

** Tags removed: 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 Python client library for Nova:
  Confirmed

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/python-novaclient/+bug/1420192/+subscriptions