Bug 998598 - nova interface-attach fails with HTTP 400; TypeError: get_config() takes exactly 6 arguments...
Summary: nova interface-attach fails with HTTP 400; TypeError: get_config() takes exac...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 3.0
Hardware: x86_64
OS: Linux
urgent
high
Target Milestone: z2
: 3.0
Assignee: Xavier Queralt
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks: 993100
TreeView+ depends on / blocked
 
Reported: 2013-08-19 14:52 UTC by Jaroslav Henner
Modified: 2019-09-09 13:09 UTC (History)
7 users (show)

Fixed In Version: openstack-nova-2013.1.3-2.el6ost
Doc Type: Bug Fix
Doc Text:
This fix only applies when using quantum networking, nova-network doesn't implement the interface-attach method and will raise a NotImplemented error.
Clone Of:
Environment:
Last Closed: 2013-09-03 20:22:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
api.log (1.27 KB, text/plain)
2013-08-19 14:52 UTC, Jaroslav Henner
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1212565 0 None None None Never
OpenStack gerrit 37030 0 None None None Never
Red Hat Product Errata RHSA-2013:1199 0 normal SHIPPED_LIVE Moderate: openstack-nova security and bug fix update 2013-09-04 00:16:56 UTC

Description Jaroslav Henner 2013-08-19 14:52:51 UTC
Created attachment 788110 [details]
api.log

Description of problem:


Version-Release number of selected component (if applicable):
openstack-nova-api-2013.1.3-1.el6ost.noarch

How reproducible:
always

Steps to Reproduce:
1. nova interface-attach --net-id 'fab05970-8be7-4499-841d-a7da6006714a' cirros1
2.
3.

Actual results:
ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) ...

Expected results:
echo $?
0

Additional info:

Comment 1 Jaroslav Henner 2013-08-19 14:58:59 UTC
In openstack-nova-api-2013.1.2-4.el6ost.noarch the interface-attach doesn't report such error.

Comment 6 Xavier Queralt 2013-08-26 08:42:02 UTC
Just to clarify, this bug only applies when using the quantum/neutron component because nova-network doesn't implement the interface-attach method and will raise a NotImplemented error.

Comment 7 Ami Jeain 2013-08-26 11:28:53 UTC
verified:
#nova interface-attach --net-id '139de751-552f-4cb7-83e6-19bebc7f009c' my_instance

5861cc0c-827c-4b5a-977b-230c80267f30 | my_instance                               | ACTIVE | ext_net=10.35.180.23 

and looking at the api.log:

2013-08-26 14:26:09.497 AUDIT nova.api.openstack.compute.contrib.attach_interfaces [req-6a163ed0-bb44-4eb5-93e9-866d763ffeb6 0323a5ec82934978af125629aa8d8070 a77cd659d2dd46e382b89f87457e3480] [instance: 5861cc0c-827c-4b5a-977b-230c80267f30] Attach interface
2013-08-26 14:26:09.577 INFO nova.openstack.common.rpc.impl_qpid [req-6a163ed0-bb44-4eb5-93e9-866d763ffeb6 0323a5ec82934978af125629aa8d8070 a77cd659d2dd46e382b89f87457e3480] Connected to AMQP server on 10.35.160.17:5672
2013-08-26 14:26:09.589 INFO nova.openstack.common.rpc.impl_qpid [req-6a163ed0-bb44-4eb5-93e9-866d763ffeb6 0323a5ec82934978af125629aa8d8070 a77cd659d2dd46e382b89f87457e3480] Connected to AMQP server on 10.35.160.17:5672
2013-08-26 14:26:15.551 INFO nova.osapi_compute.wsgi.server [req-6a163ed0-bb44-4eb5-93e9-866d763ffeb6 0323a5ec82934978af125629aa8d8070 a77cd659d2dd46e382b89f87457e3480] 10.35.160.17 "POST /v2/a77cd659d2dd46e382b89f87457e3480/servers/5861cc0c-827c-4b5a-977b-230c80267f30/os-interface HTTP/1.1" status: 200 len: 454 time: 6.2709529

2013-08-26 14:26:21.653 INFO nova.osapi_compute.wsgi.server [req-8ea2df77-2368-4db6-8386-a22b612ffb97 0323a5ec82934978af125629aa8d8070 a77cd659d2dd46e382b89f87457e3480] 10.35.160.17 "GET /v2/a77cd659d2dd46e382b89f87457e3480/servers/detail HTTP/1.1" status: 200 len: 12622 time: 0.8259511

Comment 9 errata-xmlrpc 2013-09-03 20:22:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-1199.html


Note You need to log in before you can comment on or make changes to this bug.