return 500 when referring an image with status "SAVING"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned |
Bug Description
When I referred an image which is "SAVING" state by using 'nova' command,
it returns 500 error.
[How to reproduce]
1. Create empty image
$ glance image-create --name test --visibility public --disk-format ari
+------
| Property | Value |
+------
| checksum | None |
| container_format | None |
| created_at | 2016-04-
| disk_format | ari |
| id | 6d1ce183-
| min_disk | 0 |
| min_ram | 0 |
| name | test |
| owner | 662765a438ed40a
| protected | False |
| size | None |
| status | queued |
| tags | [] |
| updated_at | 2016-04-
| virtual_size | None |
| visibility | public |
+------
2. Confirm the image status.
$ nova image-list
+------
| ID | Name | Status | Server |
+------
| 6d1ce183-
+------
3. Execute 'nova image-show' or 'nova image-delete'
(This is example of 'nova image-show')
$ nova --debug image-show 6d1ce183-
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (session:248) REQ: curl -g -i -X GET http://
INFO (connectionpool
DEBUG (connectionpool
DEBUG (session:277) RESP: [200] Content-Length: 339 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Tue, 12 Apr 2016
01:28:44 GMT Content-Type: application/json x-openstack-
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-
}], "id": "v2.0", "links": [{"href": "http://
DEBUG (v2:63) Making authentication request to http://
DEBUG (connectionpool
DEBUG (session:248) REQ: curl -g -i -X GET http://
Auth-Token: {SHA1}d52cbbc79
INFO (connectionpool
DEBUG (connectionpool
DEBUG (session:277) RESP: [404] Date: Tue, 12 Apr 2016 01:28:44 GMT Connection: keep-alive Content-Type: text/plain; charset=UTF-8 Content-Length: 52 X-Compute-
c87b6b-
RESP BODY: 404 Not Found
The resource could not be found.
DEBUG (session:248) REQ: curl -g -i -X GET http://
255185fbf06a3c6
DEBUG (connectionpool
DEBUG (session:277) RESP: [200] Content-Length: 387 X-Compute-
nstack-
RESP BODY: {"version": {"status": "CURRENT", "updated": "2013-07-
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (extension:157) found extension EntryPoint.
DEBUG (session:248) REQ: curl -g -i -X GET http://
DEBUG (connectionpool
DEBUG (session:277) RESP: [500] Content-Length: 198 X-Compute-
RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://
DEBUG (shell:1082) Unexpected API Error. Please report this at http://
<type 'exceptions.
Traceback (most recent call last):
File "/usr/local/
OpenStackCo
File "/usr/local/
args.
File "/usr/local/
image = _find_image(cs, args.image)
File "/usr/local/
return utils.find_
File "/usr/local/
return manager.get(tmp_id)
File "/usr/local/
return self._get(
File "/usr/local/
resp, body = self.api.
File "/usr/local/
return self.request(url, 'GET', **kwargs)
File "/usr/local/
raise exceptions.
ClientException: Unexpected API Error. Please report this at http://
<type 'exceptions.
ERROR (ClientException): Unexpected API Error. Please report this at http://
<type 'exceptions.
$
[n-api.log]
2016-04-12 10:28:45.824 ERROR nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.824 TRACE nova.api.
2016-04-12 10:28:45.826 INFO nova.api.
tags: |
added: glanceclient removed: glance |
Changed in nova: | |
assignee: | nobody → Sirisha (sirisha-1) |
Changed in nova: | |
assignee: | Sirisha (sirisha-1) → nobody |
Changed in python-glanceclient: | |
status: | Invalid → New |
Changed in nova: | |
assignee: | Sirisha (sirisha-1) → nobody |
Changed in nova: | |
status: | In Progress → Confirmed |
Changed in nova: | |
status: | Confirmed → New |
status: | New → Confirmed |
Per the n-api logs, it seems the problem is related to glanceclient rather than Nova.