← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1331215] Re: AttachInterfacesTestXML.test_add_remove_fixed_ip BadRequest

 

This is actually a tempest bug. The tempest tests assume that the attach
is synchronous, but it is not: it returns a 202. So it needs to go into
a wait period looking for the attach to actually succeed before it bails
out. Basically it's not actually waiting long enough for the neutron
port attach to work.

** Changed in: nova
       Status: New => Invalid

-- 
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/1331215

Title:
  AttachInterfacesTestXML.test_add_remove_fixed_ip  BadRequest

Status in OpenStack Compute (Nova):
  Invalid
Status in Tempest:
  Confirmed

Bug description:
  This looks to be a new bug, see
  http://logs.openstack.org/93/99393/4/check/check-tempest-dsvm-
  neutron/1392e22/console.html

  2014-06-17 19:47:54.665 | 
  2014-06-17 19:47:54.665 | ==============================
  2014-06-17 19:47:54.665 | Failed 3 tests - output below:
  2014-06-17 19:47:54.665 | ==============================
  2014-06-17 19:47:54.665 | 
  2014-06-17 19:47:54.665 | tempest.api.compute.servers.test_attach_interfaces.AttachInterfacesTestXML.test_add_remove_fixed_ip[gate,smoke]
  2014-06-17 19:47:54.665 | ---------------------------------------------------------------------------------------------------------------
  2014-06-17 19:47:54.665 | 
  2014-06-17 19:47:54.665 | Captured traceback:
  2014-06-17 19:47:54.665 | ~~~~~~~~~~~~~~~~~~~
  2014-06-17 19:47:54.665 |     Traceback (most recent call last):
  2014-06-17 19:47:54.666 |       File "tempest/api/compute/servers/test_attach_interfaces.py", line 133, in test_add_remove_fixed_ip
  2014-06-17 19:47:54.666 |         server, ifs = self._create_server_get_interfaces()
  2014-06-17 19:47:54.666 |       File "tempest/api/compute/servers/test_attach_interfaces.py", line 48, in _create_server_get_interfaces
  2014-06-17 19:47:54.666 |         resp, server = self.create_test_server(wait_until='ACTIVE')
  2014-06-17 19:47:54.666 |       File "tempest/api/compute/base.py", line 247, in create_test_server
  2014-06-17 19:47:54.666 |         raise ex
  2014-06-17 19:47:54.666 |     BadRequest: Bad request
  2014-06-17 19:47:54.666 |     Details: {'message': 'The server could not comply with the request since it is either malformed or otherwise incorrect.', 'code': '400'}
  2014-06-17 19:47:54.666 |     
  2014-06-17 19:47:54.666 | 
  2014-06-17 19:47:54.666 | Captured pythonlogging:
  2014-06-17 19:47:54.666 | ~~~~~~~~~~~~~~~~~~~~~~~
  2014-06-17 19:47:54.667 |     2014-06-17 19:15:13,993 Request (AttachInterfacesTestXML:test_add_remove_fixed_ip): 200 POST http://127.0.0.1:5000/v2.0/tokens
  2014-06-17 19:47:54.667 |     2014-06-17 19:15:14,431 Request (AttachInterfacesTestXML:test_add_remove_fixed_ip): 202 POST http://127.0.0.1:8774/v2/97b84e38f795456d8c63a64526f8e8b5/servers 0.437s
  2014-06-17 19:47:54.667 |     2014-06-17 19:15:14,534 Request (AttachInterfacesTestXML:test_add_remove_fixed_ip): 200 GET http://127.0.0.1:8774/v2/97b84e38f795456d8c63a64526f8e8b5/servers/94bb0663-1b9e-4098-bedf-9c7d4fc6f8c9 0.101s
  2014-06-17 19:47:54.667 |     2014-06-17 19:15:15,663 Request (AttachInterfacesTestXML:test_add_remove_fixed_ip): 200 GET http://127.0.0.1:8774/v2/97b84e38f795456d8c63a64526f8e8b5/servers/94bb0663-1b9e-4098-bedf-9c7d4fc6f8c9 0.126s
  2014-06-17 19:47:54.667 |     2014-06-17 19:15:15,665 State transition "BUILD/scheduling" ==> "ERROR/None" after 1 second wait
  2014-06-17 19:47:54.667 |     2014-06-17 19:15:15,782 Request (AttachInterfacesTestXML:test_add_remove_fixed_ip): 400 POST http://127.0.0.1:8774/v2/97b84e38f795456d8c63a64526f8e8b5/servers/94bb0663-1b9e-4098-bedf-9c7d4fc6f8c9/action 0.116s
  2014-06-17 19:47:54.667 |     2014-06-17 19:15:16,103 Request (AttachInterfacesTestXML:test_add_remove_fixed_ip): 204 DELETE http://127.0.0.1:8774/v2/97b84e38f795456d8c63a64526f8e8b5/servers/94bb0663-1b9e-4098-bedf-9c7d4fc6f8c9 0.320s
  2014-06-17 19:47:54.667 |     
  2014-06-17 19:47:54.667 | 
  2014-06-17 19:47:54.667 | tempest.api.compute.servers.test_attach_interfaces.AttachInterfacesTestXML.test_create_list_show_delete_interfaces[gate,smoke]
  2014-06-17 19:47:54.667 | ------------------------------------------------------------------------------------------------------------------------------
  2014-06-17 19:47:54.668 | 
  2014-06-17 19:47:54.668 | Captured traceback:
  2014-06-17 19:47:54.668 | ~~~~~~~~~~~~~~~~~~~
  2014-06-17 19:47:54.668 |     Traceback (most recent call last):
  2014-06-17 19:47:54.668 |       File "tempest/api/compute/servers/test_attach_interfaces.py", line 111, in test_create_list_show_delete_interfaces
  2014-06-17 19:47:54.668 |         server, ifs = self._create_server_get_interfaces()
  2014-06-17 19:47:54.668 |       File "tempest/api/compute/servers/test_attach_interfaces.py", line 48, in _create_server_get_interfaces
  2014-06-17 19:47:54.668 |         resp, server = self.create_test_server(wait_until='ACTIVE')
  2014-06-17 19:47:54.668 |       File "tempest/api/compute/base.py", line 247, in create_test_server
  2014-06-17 19:47:54.668 |         raise ex
  2014-06-17 19:47:54.668 |     BadRequest: Bad request
  2014-06-17 19:47:54.668 |     Details: {'message': 'The server could not comply with the request since it is either malformed or otherwise incorrect.', 'code': '400'}

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