← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1331215] Re: AttachInterfacesTestXML.test_add_remove_fixed_ip BadRequest

 

2014-06-17 19:15:15.725 DEBUG nova.api.openstack.wsgi [req-5d3b75e5-c6c9-4b55-b9f8-050824bcaff7 AttachInterfacesTestXML-933666172 AttachInterfacesTestXML-1000817649] Action: 'action', body: <?xml version="1.0" encoding="UTF-8"?>
<os-getConsoleOutput length="" xmlns="http://docs.openstack.org/compute/api/v1.1"/> _process_stack /opt/stack/new/nova/nova/api/openstack/wsgi.py:940
2014-06-17 19:15:15.725 DEBUG nova.api.openstack.wsgi [req-5d3b75e5-c6c9-4b55-b9f8-050824bcaff7 AttachInterfacesTestXML-933666172 AttachInterfacesTestXML-1000817649] Calling method '<bound method ConsoleOutputController.get_console_output of <nova.api.openstack.compute.contrib.console_output.ConsoleOutputController object at 0x4a5e610>>' (Content-type='application/xml', Accept='application/xml') _process_stack /opt/stack/new/nova/nova/api/openstack/wsgi.py:945
2014-06-17 19:15:15.725 DEBUG nova.openstack.common.policy [req-5d3b75e5-c6c9-4b55-b9f8-050824bcaff7 AttachInterfacesTestXML-933666172 AttachInterfacesTestXML-1000817649] Rule compute_extension:console_output will be now enforced enforce /opt/stack/new/nova/nova/openstack/common/policy.py:288
2014-06-17 19:15:15.779 DEBUG nova.openstack.common.policy [req-5d3b75e5-c6c9-4b55-b9f8-050824bcaff7 AttachInterfacesTestXML-933666172 AttachInterfacesTestXML-1000817649] Rule compute:get will be now enforced enforce /opt/stack/new/nova/nova/openstack/common/policy.py:288
2014-06-17 19:15:15.780 INFO nova.api.openstack.wsgi [req-5d3b75e5-c6c9-4b55-b9f8-050824bcaff7 AttachInterfacesTestXML-933666172 AttachInterfacesTestXML-1000817649] HTTP exception thrown: Length in request body must be an integer value
2014-06-17 19:15:15.780 DEBUG nova.api.openstack.wsgi [req-5d3b75e5-c6c9-4b55-b9f8-050824bcaff7 AttachInterfacesTestXML-933666172 AttachInterfacesTestXML-1000817649] Returning 400 to user: The server could not comply with the request since it is either malformed or otherwise incorrect. __call__ /opt/stack/new/nova/nova/api/openstack/wsgi.py:1209

The issue is because console length was sent as a non int. So this is
actually currently a tempest bug because the code to get the console
over XML is sending invalid xml body to Nova.

** Changed in: tempest
       Status: Invalid => Confirmed

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