Rocky glance api not working, 504 Gateway timeout

asked 2018-11-21 04:27:51 -0500

MasterPit gravatar image

Hi,

I recently deployed OpenStack (Rocky Release) with TripleO, during deployment there were no errors. I have no idea what to do to make glance working. It looks like it is not using the backend at all.

When i try to create image via glance image-create or via horizon i get 504 Error Gateway Timeout. In glance API logs (DEBUG level) i have

2018-11-21 09:19:42.498 7 DEBUG glance.api.middleware.version_negotiation [req-e07f2d9e-9fbf-4eea-b676-80595e01bf56 92669a85ca524536ba8ce37eeea29c7c e738a1ab973644888bc545921b2f3e6a - default default] Determining version of request: POST /v2/images Accept: */* process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:45
2018-11-21 09:19:42.498 7 DEBUG glance.api.middleware.version_negotiation [req-e07f2d9e-9fbf-4eea-b676-80595e01bf56 92669a85ca524536ba8ce37eeea29c7c e738a1ab973644888bc545921b2f3e6a - default default] Using url versioning process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:57
2018-11-21 09:19:42.499 7 DEBUG glance.api.middleware.version_negotiation [req-e07f2d9e-9fbf-4eea-b676-80595e01bf56 92669a85ca524536ba8ce37eeea29c7c e738a1ab973644888bc545921b2f3e6a - default default] Matched version: v2 process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:69
2018-11-21 09:19:42.499 7 DEBUG glance.api.middleware.version_negotiation [req-e07f2d9e-9fbf-4eea-b676-80595e01bf56 92669a85ca524536ba8ce37eeea29c7c e738a1ab973644888bc545921b2f3e6a - default default] new path /v2/images process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:70

And nothing else, no errors, no warnings. Now i have configured swift backend- i am sure it is working, i can create container and upload image to swift via CLI or Horizon GUI. I also tried configuring file as backend with same result, so i dont think if it is swift problem.

When using CLI:

(overcloud) [stack@director overcloud_dir]$ glance --debug image-create --name cirros_test_3 --disk-format qcow2 --container-format bare --file /home/stack/cirros-0.3.4-x86_64-disk.img
DEBUG:keystoneauth.session:REQ: curl -g -i -X GET https://10.159.249.160:13000//v3 -H "Accept: application/json" -H "User-Agent: glance keystoneauth1/3.4.0 python-requests/2.14.2 CPython/2.7.5"
DEBUG:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): 10.159.249.160
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connection.py:344: SubjectAltNameWarning: Certificate for 10.159.249.160 has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SubjectAltNameWarning
DEBUG:requests.packages.urllib3.connectionpool:https://10.159.249.160:13000 "GET //v3 HTTP/1.1" 200 198
DEBUG:keystoneauth.session:RESP: [200] Date: Wed, 21 Nov 2018 09:02:30 GMT Server: Apache Vary: X-Auth-Token,Accept-Encoding x-openstack-request-id: req-33c7eee5-4f19-4b56-99a7-3b648298dffd Content-Encoding: gzip Content-Length: 198 Content-Type: application/json
RESP BODY: {"version": {"status": "stable", "updated": "2018-10-15T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.11", "links": [{"href": "https://10.159.249.160:13000/v3/", "rel": "self"}]}}

DEBUG:keystoneauth.session:GET call to None for https://10.159.249.160:13000//v3 used request id req-33c7eee5-4f19-4b56-99a7-3b648298dffd
DEBUG:keystoneauth.identity.v3.base:Making authentication request to https://10.159.249.160:13000/v3/auth/tokens
DEBUG:requests.packages.urllib3.connectionpool:https://10.159.249.160:13000 "POST /v3 ...
(more)
edit retag flag offensive close merge delete