Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

openstack image create returns 500

I'm trying to install glance service from 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 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 I fix this?

openstack image create returns 500

I'm trying to install glance service from 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 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 I fix this?

**UPDATE** output of `opestack endpoint list`:
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                         |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+
| 06702e66eafb4bafa374964ac4f1992e | RegionOne | keystone     | identity     | True    | public    | http://controller:5000/v3/  |
| 1c33e06702ea4b6388dea6bfb3f8b105 | RegionOne | nova         | compute      | True    | internal  | http://controller:8774/v2.1 |
| 21f5e735e41b4780b2590c03ac8af029 | RegionOne | keystone     | identity     | True    | admin     | http://controller:5000/v3/  |
| 41bd516e555f4cb1b5f6daea8952708f | RegionOne | glance       | image        | True    | internal  | http://controller:9292      |
| 4230e7ceb23840eca801a569f15fbd1b | RegionOne | placement    | placement    | True    | internal  | http://controller:8778      |
| 4dbf3872f87c414799f8e0eaa3d6cdb1 | RegionOne | nova         | compute      | True    | public    | http://controller:8774/v2.1 |
| 6acc5894957047b7bc2b6ada920ae96e | RegionOne | glance       | image        | True    | public    | http://controller:9292      |
| 6f538264541d410b9f33f050f04bd22b | RegionOne | glance       | image        | True    | admin     | http://controller:9292      |
| 93c1b223026d4c96803833a57feff619 | RegionOne | placement    | placement    | True    | public    | http://controller:8778      |
| f32fc08df1704e2dbee2418106906e2c | RegionOne | nova         | compute      | True    | admin     | http://controller:8774/v2.1 |
| f877a2adcfd94df6801a1d6eb8356bd2 | RegionOne | placement    | placement    | True    | admin     | http://controller:8778      |
| ff4072b6bb1347daabc6afecb8353de9 | RegionOne | keystone     | identity     | True    | internal  | http://controller:5000/v3/  |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+