Public bug reported: When the placement handlers raise an HTTPMethodNotAllowed response, the headers are set with those methods that are allowed. These need to be not unicode (it's not clear how they get to be unicode (in 2.7) in the first place, but something is doing it, and that's not right) otherwise we get:
``` 2016-09-22 11:03:01.875 22919 ERROR nova.api.openstack.placement.handler HTTPMethodNotAllowed: The method specified is not allowed for this resource. 2016-09-22 11:03:01.875 22919 ERROR nova.api.openstack.placement.handler 2016-09-22 11:03:01.877 22919 INFO nova.api.openstack.placement.requestlog [req-524fdd42-0f19-4eb3-827f-99ae22fc6dd9 admin admin] 10.0.2.15 "DELETE /placement/resource_providers" status: 405 len: 133 mod_wsgi (pid=22919): Exception occurred processing WSGI script '/usr/local/bin/nova-placement-api'. TypeError: expected byte string object for header value, value of type unicode found ``` wherein the service correctly tries to send a 405 but then the mod_wsgi server blows up on the data it is getting. ** Affects: nova Importance: Undecided Status: New ** Tags: api placement scheduler -- 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/1626496 Title: when placement API sends a 405 the header value is in the incorrect format Status in OpenStack Compute (nova): New Bug description: When the placement handlers raise an HTTPMethodNotAllowed response, the headers are set with those methods that are allowed. These need to be not unicode (it's not clear how they get to be unicode (in 2.7) in the first place, but something is doing it, and that's not right) otherwise we get: ``` 2016-09-22 11:03:01.875 22919 ERROR nova.api.openstack.placement.handler HTTPMethodNotAllowed: The method specified is not allowed for this resource. 2016-09-22 11:03:01.875 22919 ERROR nova.api.openstack.placement.handler 2016-09-22 11:03:01.877 22919 INFO nova.api.openstack.placement.requestlog [req-524fdd42-0f19-4eb3-827f-99ae22fc6dd9 admin admin] 10.0.2.15 "DELETE /placement/resource_providers" status: 405 len: 133 mod_wsgi (pid=22919): Exception occurred processing WSGI script '/usr/local/bin/nova-placement-api'. TypeError: expected byte string object for header value, value of type unicode found ``` wherein the service correctly tries to send a 405 but then the mod_wsgi server blows up on the data it is getting. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1626496/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp