interface-attach: raises 500 error if invalid network

Bug #1245683 reported by Aaron Rosen
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Gary Kotton

Bug Description

arosen@arosen-desktop:/opt/stack/nova$ nova interface-attach --net-id a1dff92b-4226-4f47-a111-a2b3ed4a0423 97e1dbee-b940-428e-a912-57fba784fa5f
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
ERROR: Failed to attach interface (HTTP 500) (Request-ID: req-107ef013-25ba-4cf5-8506-b0e2c6c3ba4d)

Tags: network
Aaron Rosen (arosen)
Changed in nova:
assignee: nobody → Aaron Rosen (arosen)
tags: added: network
Revision history for this message
Euler Jiang (euler-jiang) wrote :

I also met same error message: ERROR: Failed to attach interface (HTTP 500) (Request-ID: req-e247b021-3cb1-41a2-b678-4732c3bf9cae).

The interface was failed to attached the running instance. But when I check the interface list for that instance, it just show one interface is added, but status is down.

> nova interface-list testVM1
+------------+--------------------------------------+--------------------------------------+--------------+-------------------+
| Port State | Port ID | Net ID | IP addresses | MAC Addr |
+------------+--------------------------------------+--------------------------------------+--------------+-------------------+
| ACTIVE | 8b488e5f-5ee1-4bf2-ba31-a2e3330ad232 | 9d9f9b8f-f887-48d1-b86c-530cc501023d | 10.0.0.3 | fa:16:3e:18:36:89 |
| DOWN | e9dca727-3500-4659-b693-6e09d7abfa93 | 9d9f9b8f-f887-48d1-b86c-530cc501023d | 10.0.0.5 | fa:16:3e:9b:a6:67 |
+------------+--------------------------------------+--------------------------------------+--------------+-------------------+

Thanks!

Revision history for this message
Gary Kotton (garyk) wrote :

This has been addressed by https://review.openstack.org/57229

Gary Kotton (garyk)
Changed in nova:
milestone: none → icehouse-1
assignee: Aaron Rosen (arosen) → Gary Kotton (garyk)
status: New → In Progress
Changed in nova:
milestone: icehouse-1 → icehouse-2
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-2 → icehouse-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/57229
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=9089c1881661a6a71c3c875cc82fce92898b8ff6
Submitter: Jenkins
Branch: master

commit 9089c1881661a6a71c3c875cc82fce92898b8ff6
Author: Gary Kotton <email address hidden>
Date: Tue Nov 19 05:39:18 2013 -0800

    Treat port attachment failures correctly

    Raise a more appropriate exception following the failure of a
    port attachment.

    Closes-bug: #1245683

    Change-Id: I77e9568c8675b0dd6a0c8c741e71e936ed3998a1

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-3 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.