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 (172.16.111.130) to start...
++:: curl -g -k --noproxy '*' -s -o /dev/null -w '%{http_code}' http://172.16.111.130/image
+:: [[ 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] 127.0.0.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:

[DEFAULT]
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 = http://172.16.111.130/image
registry_host = 172.16.111.130
enable_v1_api = False
transport_url = rabbit://stackrabbit:secret@172.16.111.130:5672/
image_cache_dir = /opt/stack/data/glance/cache/
use_syslog = False
debug = True

[database]
connection = mysql+pymysql://admin:secret@127.0.0.1/glance?charset=utf8

[oslo_concurrency]
lock_path = /opt/stack/data/glance/locks

[paste_deploy]
flavor = keystone+cachemanagement

[keystone_authtoken]
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 = http://172.16.111.130/identity
auth_type = password

[oslo_messaging_notifications]
driver = messagingv2

[glance_store]
filesystem_store_datadir = /opt/stack/data/glance/images/

[cors]
allowed_origin = http://172.16.111.130

Question information

Language:
English Edit question
Status:
Expired
For:
Glance Edit question
Assignee:
No assignee Edit question
Last query:
2019-06-13
Last reply:
2019-06-28
Launchpad Janitor (janitor) said : #1

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