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)
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.
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...)
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.
Or try replacing lib/glance by the version from this patch, then adding GLANCE_USE_UWSGI=false in local.conf.
I tried doing as stated , now the installation stops with error , glance-api failed to start
Check the logs.
Or perhaps use another deployment method than Devstack.