Ask Your Question
0

openstack image create returns 500

asked 2018-10-30 13:01:36 -0600

yasharne gravatar image

updated 2018-10-31 01:57:24 -0600

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 ... (more)

edit retag flag offensive close merge delete

Comments

http://controller:5000 can't be reached, same error "no address found" as in your Nova database problem. Is your name resolution reliable?

Bernd Bausch gravatar imageBernd Bausch ( 2018-10-30 18:25:07 -0600 )edit

thank you for your hint, I realized I've forgotten to add controller record in the controller hosts file.

yasharne gravatar imageyasharne ( 2018-11-02 12:34:28 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2018-10-30 18:19:16 -0600

wby1089 gravatar image

Try to check keystone by issuing "openstack endpoint list". I think your keystone was not configured correctly.

edit flag offensive delete link more

Comments

I have http://controller:5000/v3/ for keystone on admin and public and internal interface

yasharne gravatar imageyasharne ( 2018-10-31 01:59:53 -0600 )edit
0

answered 2018-10-31 02:34:39 -0600

updated 2018-10-31 02:38:37 -0600

Check with your keystone and glance endpoint URLs, it may be configured incorrectly and also check you have correctly Sourced the admin credentials to gain access to admin-only CLI commands

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-10-30 13:01:36 -0600

Seen: 93 times

Last updated: Oct 31