Ask Your Question
0

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

1 answer

Sort by » oldest newest most voted
0

answered 2019-04-23 00:25:57 -0500

rogue0197 gravatar image

The Glance deployed uses swift as backend storage service. During devstack deployment the swift default storage is given as 2GB. So, when images size increases more than 2GB, The swift reaches its maximum limit and images get queued. Change the SWIFT_LOOPBACK_DISK_SIZE_DEFAULT to 15G (as you require) from default 2Gin https://opendev.org/openstack/devstack/src/branch/master/lib/swift#L64 (https://opendev.org/openstack/devstac...) (i.e in devstack/lib/swift file) and run stack.sh. The same is posted in https://ask.openstack.org/en/question/121343/will-it-work-if-i-install-only-glance-separately-and-other-services-on-devstack/ (https://ask.openstack.org/en/question...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 464 times

Last updated: Apr 23