openstack image create returns 500
I'm trying to install glance service from https://docs.openstack.org/glance/rocky/install/install-ubuntu.html (here). the problem is in verify operation, when I enter the command openstack image create "cirros" \
--file cirros-0.4.0-x86_64-disk.img \
--disk-format qcow2 --container-format bare \
--public
I get error
HTTPInternalServerError (HTTP 500)
with --debug
flag here is the error part:
http://controller:9292 "GET /v2/schemas/image HTTP/1.1" 500 0
Request returned failure status 500.
HTTPInternalServerError (HTTP 500)
the output of glance-api.conf
:
[keystone_authtoken]
www_authenticate_uri = http://controller:5000
auth_url = http://controller:5000
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = glance
password = password
the output of /var/log/glance/glance-api.log
:
2018-10-30 21:19:56.871 36305 WARNING keystoneauth.identity.generic.base [-] Failed to discover available identity versions when contacting http://controller:5000. Attempting to parse version from URL.: ConnectFailure: Unable to establish connection to http://controller:5000: HTTPConnectionPool(host='controller', port=5000): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ffacfaca2d0>: Failed to establish a new connection: [Errno -2] No address found',))
based on the bug report on https://bugs.launchpad.net/charm-glance/+bug/1794637 (launchpad), if I add /v3
to uri/url, I get 503 error.
modified glance-api.conf
:
[keystone_authtoken]
www_authenticate_uri = http://controller:5000/v3
auth_url = http://controller:5000/v3
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = glance
password = password
the output of openstack image create "cirros" --file cirros-0.4.0-x86_64-disk.img --disk-format qcow2 --container-format bare --public
:
HTTPServiceUnavailable: 503 Service Unavailable: The server is currently unavailable. Please try again at a later time.: The Keystone service is temporarily unavailable. (HTTP 503)
with --debug
:
Starting new HTTP connection (1): controller
http://controller:9292 "GET /v2/schemas/image HTTP/1.1" 503 260
Request returned failure status 503.
output of glance-api.log
:
2018-10-30 21:27:21.718 38296 WARNING keystoneauth.identity.generic.base [-] Failed to discover available identity versions when contacting http://controller:5000/v3. Attempting to parse version from URL.: ConnectFailure: Unable to establish connection to http://controller:5000/v3: HTTPConnectionPool(host='controller', port=5000): Max retries exceeded with url: /v3 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0fbadaf710>: Failed to establish a new connection: [Errno -2] No address found',))
2018-10-30 21:27:21.727 38296 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Unable to establish connection to http://controller:5000/v3/auth/tokens: HTTPConnectionPool(host='controller', port=5000): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0fbadaf610>: Failed to establish a new connection: [Errno -2] No address found',)): ConnectFailure: Unable to establish connection to http://controller:5000/v3/auth/tokens: HTTPConnectionPool(host='controller', port=5000): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0fbadaf610>: Failed to establish a new connection: [Errno -2] No address found',))
I can ping controller by name without any problem.
I'm using ubuntu 18.04 and trying to install openstack rocky. How can ...
http://controller:5000 can't be reached, same error "no address found" as in your Nova database problem. Is your name resolution reliable?
thank you for your hint, I realized I've forgotten to add controller record in the controller hosts file.