no error reported when image create is killed on quota
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
In Progress
|
Low
|
Unassigned |
Bug Description
failure to create image on quota has no error in horizon.
to reproduce:
1. set user_storage_quota = 2 in /etc/glance/
2. restart glance-api sevice
3. try to create an image from UI
Results:
the image is killed because size check will fail (due to quota) and there is no appropriate error in Horizon
Expected results:
1. when a
2014-01-20 12:55:28,799 6827 DEBUG glanceclient.
2014-01-20 12:55:28,841 6827 DEBUG glanceclient.
HTTP/1.1 200 OK
content-length: 0
x-image-meta-id: 96dbb6f8-
date: Mon, 20 Jan 2014 12:55:28 GMT
x-image-
x-image-
x-image-
x-image-
x-image-
x-image-meta-size: 6442450945
x-image-
location: http://
x-image-
x-image-
x-image-meta-owner: d4aaa7c237054d4
x-image-
content-type: text/html; charset=UTF-8
x-openstack-
x-image-
x-image-meta-name: bla
2014-01-20 12:55:28,853 6827 DEBUG openstack_
nothing in http log:
[Sun Jan 19 03:37:01 2014] [notice] Digest: generating secret for digest authentication ...
[Sun Jan 19 03:37:01 2014] [notice] Digest: done
[Sun Jan 19 03:37:01 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations
[Mon Jan 20 11:12:43 2014] [warn] [client 10.35.201.108] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://
[Mon Jan 20 11:12:43 2014] [warn] [client 10.35.201.108] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://
[Mon Jan 20 11:12:44 2014] [warn] [client 10.35.201.108] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://
This is the only thing in glance api log:
Stderr: '/bin/sh: collie: command not found\n' Disabling add method.
2014-01-20 13:41:25.883 7946 WARNING glance.store.base [-] Failed to configure store correctly: Store cinder could not be configured correctly. Reason: Cinder storage requires a context. Disabling add method.
Changed in horizon: | |
status: | New → Confirmed |
Changed in horizon: | |
assignee: | nobody → Ana Krivokapić (akrivoka) |
tags: | added: havana-backport-potential |
Changed in horizon: | |
assignee: | Ana Krivokapić (akrivoka) → nobody |
Changed in horizon: | |
status: | In Progress → Confirmed |
tags: | added: error-reporting |
tags: | added: glance |
Changed in horizon: | |
assignee: | nobody → Nikunj Aggarwal (nikunj2512) |
tags: | removed: havana-backport-potential |
Changed in horizon: | |
assignee: | Nikunj Aggarwal (nikunj2512) → nobody |
Changed in horizon: | |
assignee: | nobody → Andy Yan (yanchao3) |
assignee: | Andy Yan (yanchao3) → nobody |
Changed in horizon: | |
assignee: | Galyna Zholtkevych (gzholtkevych) → Ivan Kolodyazhny (e0ne) |
I could reproduce it and got,
g-api log
2014-01-20 14:11:46.894 517 INFO glance. api.v1. upload_ utils [20338101- 8656-4962- 8880-961ba01a0a d6 23ba80944c7e4b3 6979337648ae2c0 66 e97b2ebcd69f421 9849d7a1af38f8a 19] Denying attempt to upload image because it exceeds the .quota: The size of the data 235208704 will exceed the limit. -33836582 bytes remaining. registry. client. v1.api [20338101- 8656-4962- 8880-961ba01a0a d6 23ba80944c7e4b3 6979337648ae2c0 66 e97b2ebcd69f421 9849d7a1af38f8a 19] Updating image metadata for image 4534c9ad- 1daa-4e51- 9173-33fb8d4a3f e4... update_ image_metadata /opt/stack/ glance/ glance/ registry/ client/ v1/api. py:168
2014-01-20 14:11:46.895 517 DEBUG glance.
...
Nothing in Horizon's log, not or in http logs