Comment 2 for bug 1331215

Revision history for this message
Sean Dague (sdague) wrote :

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.