g-api fails to start during devstack installation

Asked by Aditya on 2019-06-13

Hi, I am trying to install devstack but for some reason the installation stops after g-api starts, resulting in a HTTP 500 error. The last command to be executed is a GET request by g-api, as follows:

Waiting for g-api ( to start...
++:: curl -g -k --noproxy '*' -s -o /dev/null -w '%{http_code}'
+:: [[ 300 == 503 ]]
+:: [[ 0 -eq 7 ]]
Internal Server Error (HTTP 500)
Error on exit

These are the relevant logs of the g-api service obtained on executing the journalctl -u devstack@g-api

01:02:28 ubuntu systemd[1]: Started Devstack <email address hidden>.

 13 01:02:28 ubuntu <email address hidden>[117273]: DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: GET / Accept: */* {{(pid=117276) process_request

 01:02:28 ubuntu <email address hidden>[117273]: DEBUG glance.api.middleware.version_negotiation [-] Using url versioning {{(pid=117276) process_request /opt/stack/glance/glance/api/

 01:02:28 ubuntu <email address hidden>[117273]: DEBUG glance.api.middleware.version_negotiation [-] Unknown version. Returning version choices. {{(pid=117276) process_request /opt/s

 01:02:28 ubuntu <email address hidden>[117273]: [pid: 117276|app: 0|req: 1/1] () {32 vars in 392 bytes} [Thu Jun 13 01:02:28 2019] GET / => generated 892 bytes in 2 mse

From the logs its clear that the HTTP GET request header probably doesn't have a valid version number and hence multiple version choices are being returned

Any help on how solve this error will be appreciated!
Thanks in advance

My glance-api.conf file:

logging_exception_prefix = ERROR %(name)s %(instance)s
logging_default_format_string = %(color)s%(levelname)s %(name)s [-%(color)s] %(instance)s%(color)s%(message)s
logging_context_format_string = %(color)s%(levelname)s %(name)s [%(global_request_id)s %(request_id)s %(project_name)s %(user_name)s%(color)s] %(instance)s%(color)s%(message)s
logging_debug_format_suffix = {{(pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d}}
public_endpoint =
registry_host =
enable_v1_api = False
transport_url = rabbit://stackrabbit:secret@
image_cache_dir = /opt/stack/data/glance/cache/
use_syslog = False
debug = True

connection = mysql+pymysql://admin:secret@

lock_path = /opt/stack/data/glance/locks

flavor = keystone+cachemanagement

memcached_servers = localhost:11211
signing_dir = /var/cache/glance/api
cafile = /opt/stack/data/ca-bundle.pem
project_domain_name = Default
project_name = service
user_domain_name = Default
password = secret
username = glance
auth_url =
auth_type = password

driver = messagingv2

filesystem_store_datadir = /opt/stack/data/glance/images/

allowed_origin =

Question information

English Edit question
Glance Edit question
No assignee Edit question
Last query:
Last reply:
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.