← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1643511] Re: nova-api commands fail when running behind httpd

 

Reviewed:  https://review.openstack.org/400336
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=11d8dde452b3ce52f77a637e1d6c98080bbd7fa2
Submitter: Jenkins
Branch:    master

commit 11d8dde452b3ce52f77a637e1d6c98080bbd7fa2
Author: Juan Antonio Osorio Robles <jaosorior@xxxxxxxxxx>
Date:   Mon Nov 21 18:43:21 2016 +0200

    Use byte string or utf8 depending on python version for wsgi
    
    A recent change to the wsgi code broke deployments running over
    httpd/mod_wsgi. This is because for py2.X mod_wsgi accepts byte
    strings and breaks with utf8. However, for py3.X, utf8 is
    accepted. So this acts accordingly.
    
    Change-Id: I81739bc3de9d623b718987b5fc18eaf851533902
    Closes-Bug: #1643511


** Changed in: nova
       Status: In Progress => Fix Released

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

Title:
  nova-api commands fail when running behind httpd

Status in OpenStack Compute (nova):
  Fix Released
Status in tripleo:
  Confirmed

Bug description:
  After https://review.openstack.org/#/c/333212 when running some
  openstack nova commands we are getting errors like [1]:

  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/cgi-bin/nova/nova-api'.
  [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-openstack-integration and
  tripleo jobs.

  
  [1] https://ci.centos.org/artifacts/rdo/weirdo-master-promote-puppet-openstack-scenario003/689/weirdo-project/puppet.txt.gz
  [2] https://ci.centos.org/artifacts/rdo/weirdo-master-promote-puppet-openstack-scenario003/689/weirdo-project/logs/apache/nova_api_wsgi_error_ssl.txt.gz

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


References