nova-api commands fail when running behind httpd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Juan Antonio Osorio Robles | ||
tripleo |
Fix Released
|
Critical
|
Unassigned |
Bug Description
After https:/
Execution of '/usr/bin/openstack flavor create --format shell m1.micro --public --id 84 --ram 128 --disk 0 --vcpus 1' returned 1: Unknown Error (HTTP 500)
Following error is found in apache logs:
[Sat Nov 19 10:39:12.366389 2016] [:error] [pid 21326] [remote ::1:80] mod_wsgi (pid=21326): Exception occurred processing WSGI script '/var/www/
[Sat Nov 19 10:39:12.366458 2016] [:error] [pid 21326] [remote ::1:80] TypeError: expected byte string object for header value, value of type unicode found
We are hitting this bug both in puppet-
[1] https:/
[2] https:/
Changed in tripleo: | |
milestone: | none → ocata-2 |
Changed in tripleo: | |
importance: | Undecided → Critical |
milestone: | ocata-2 → none |
status: | New → Confirmed |
this is because mod_wsgi expects a bytes string in python2.X https:/ /github. com/GrahamDumpl eton/mod_ wsgi/blob/ develop/ src/server/ wsgi_convert. c#L27 ; it, however, accepts unicode when using python 3.X.
So if we want nova to work with mod_wsgi, it should take that into account.