502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.: Apache/2.4.37 (Ubuntu) Server at 172.*.*.* Port 80 (HTTP 502)

asked 2018-11-16 22:24:02 -0500

rogue0197 gravatar image
  • Unable to create image in openstack devstack queens.
  • It was working fine a couple of days ago,Now the images are not being uploaded/deleted from both horizon and command line. The error I get is stated above.
  • I have tried upgrading apache2 , did not solve the issue.
  • Following https://bugs.launchpad.net/glance/+bug/1703856 (This bug) , I have tried increasing the socket time .Did not help. And i have taken the different packages from the link and rerun ./stack.sh with the packages, same error again , while cirros image creation.
  • And the thing is there is same bug in both of my PC's with openstack installed on them.
edit retag flag offensive close merge delete

Comments

Devstack configures most services to run under UWSGI, but Glance doesn’t work well this way. I think there is a way to set up Devstack without UWSGI.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-17 01:26:28 -0500 )edit

Or try replacing lib/glance by the version from this patch, then adding GLANCE_USE_UWSGI=false in local.conf.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-17 01:31:04 -0500 )edit

I tried doing as stated , now the installation stops with error , glance-api failed to start

rogue0197 gravatar imagerogue0197 ( 2018-12-01 07:43:53 -0500 )edit

Check the logs.

Or perhaps use another deployment method than Devstack.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-01 08:46:48 -0500 )edit