...and increasing the timeout per comment #1 doesn't seem to do anything.
FWIW, I get the error way quicker than whatever the timeout is set to:
neo@p8-100-neo:/opt/stack/devstack$ openstack image create --container-format bare --disk-format raw --file ~/base_os.img --public base_os
502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.: Apache/2.4.18 (Ubuntu) Server at 9.47.79.13 Port 80 (HTTP 502)
neo@p8-100-neo:/opt/stack/devstack$ vi /etc/glance/glance-uwsgi.ini
neo@p8-100-neo:/opt/stack/devstack$ sudo systemctl restart devstack@g-* apache2.service
neo@p8-100-neo:/opt/stack/devstack$ openstack image create --container-format bare --disk-format raw --file ~/base_os.img --public base_os
502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.: Apache/2.4.18 (Ubuntu) Server at 9.47.79.13 Port 80 (HTTP 502)
neo@p8-100-neo:/opt/stack/devstack$ time openstack image create --container-format bare --disk-format raw --file ~/base_os.img --public base_os
502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.: Apache/2.4.18 (Ubuntu) Server at 9.47.79.13 Port 80 (HTTP 502)
...and increasing the timeout per comment #1 doesn't seem to do anything.
FWIW, I get the error way quicker than whatever the timeout is set to:
neo@p8- 100-neo: /opt/stack/ devstack$ openstack image create --container-format bare --disk-format raw --file ~/base_os.img --public base_os 100-neo: /opt/stack/ devstack$ vi /etc/glance/ glance- uwsgi.ini 100-neo: /opt/stack/ devstack$ sudo systemctl restart devstack@g-* apache2.service 100-neo: /opt/stack/ devstack$ openstack image create --container-format bare --disk-format raw --file ~/base_os.img --public base_os 100-neo: /opt/stack/ devstack$ time openstack image create --container-format bare --disk-format raw --file ~/base_os.img --public base_os
502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.: Apache/2.4.18 (Ubuntu) Server at 9.47.79.13 Port 80 (HTTP 502)
neo@p8-
neo@p8-
neo@p8-
502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.: Apache/2.4.18 (Ubuntu) Server at 9.47.79.13 Port 80 (HTTP 502)
neo@p8-
502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.: Apache/2.4.18 (Ubuntu) Server at 9.47.79.13 Port 80 (HTTP 502)
real 0m8.911s
user 0m2.440s
sys 0m2.100s
Which logs would you like?