no error reported when image create is killed on quota

Bug #1270817 reported by Dafna Ron
18
This bug affects 2 people
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/glance-api.conf
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.common.http curl -i -X HEAD -H 'X-Auth-Token: aaa753d0555528a143802d5380587d2e' -H 'Content-Type: application/octet-stream' -H 'User-Agent: python-glanceclient' http://10.35.160.135:9292/v1/images/96dbb6f8-2f20-437a-81bc-e823b2f83813
2014-01-20 12:55:28,841 6827 DEBUG glanceclient.common.http
HTTP/1.1 200 OK
content-length: 0
x-image-meta-id: 96dbb6f8-2f20-437a-81bc-e823b2f83813
date: Mon, 20 Jan 2014 12:55:28 GMT
x-image-meta-deleted: False
x-image-meta-container_format: bare
x-image-meta-protected: False
x-image-meta-min_disk: 0
x-image-meta-created_at: 2014-01-20T12:55:27
x-image-meta-size: 6442450945
x-image-meta-status: killed
location: http://10.35.160.135:9292/v1/images/96dbb6f8-2f20-437a-81bc-e823b2f83813
x-image-meta-is_public: False
x-image-meta-min_ram: 0
x-image-meta-owner: d4aaa7c237054d408a65f40bb4ee74d0
x-image-meta-updated_at: 2014-01-20T12:55:27
content-type: text/html; charset=UTF-8
x-openstack-request-id: req-0f073eb8-d85b-4a1d-ad51-fabe1ed40ee6
x-image-meta-disk_format: qcow2
x-image-meta-name: bla

2014-01-20 12:55:28,853 6827 DEBUG openstack_dashboard.api.cinder cinderclient connec

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://cougar06.scl.lab.tlv.redhat.com/dashboard/'
[Mon Jan 20 11:12:43 2014] [warn] [client 10.35.201.108] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://cougar06.scl.lab.tlv.redhat.com/dashboard/'
[Mon Jan 20 11:12:44 2014] [warn] [client 10.35.201.108] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://cougar06.scl.lab.tlv.redhat.com/dashboard/'

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
Revision history for this message
Victoria Martinez de la Cruz (vkmc) wrote :

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-961ba01a0ad6 23ba80944c7e4b36979337648ae2c066 e97b2ebcd69f4219849d7a1af38f8a19] Denying attempt to upload image because it exceeds the .quota: The size of the data 235208704 will exceed the limit. -33836582 bytes remaining.
2014-01-20 14:11:46.895 517 DEBUG glance.registry.client.v1.api [20338101-8656-4962-8880-961ba01a0ad6 23ba80944c7e4b36979337648ae2c066 e97b2ebcd69f4219849d7a1af38f8a19] Updating image metadata for image 4534c9ad-1daa-4e51-9173-33fb8d4a3fe4... update_image_metadata /opt/stack/glance/glance/registry/client/v1/api.py:168
...

Nothing in Horizon's log, not or in http logs

Changed in horizon:
assignee: nobody → Ana Krivokapić (akrivoka)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/68137

Changed in horizon:
status: Confirmed → In Progress
Julie Pichon (jpichon)
tags: added: havana-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/76488

Changed in horizon:
assignee: Ana Krivokapić (akrivoka) → nobody
Matthias Runge (mrunge)
Changed in horizon:
status: In Progress → Confirmed
tags: added: error-reporting
tags: added: glance
Changed in horizon:
assignee: nobody → Nikunj Aggarwal (nikunj2512)
Akihiro Motoki (amotoki)
tags: removed: havana-backport-potential
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

Sorry about misclick on importance, mouse is dying and keeps double-clicking.

Changed in horizon:
importance: Undecided → Critical
importance: Critical → Low
Changed in horizon:
assignee: Nikunj Aggarwal (nikunj2512) → nobody
Andy Yan (yanchao3)
Changed in horizon:
assignee: nobody → Andy Yan (yanchao3)
assignee: Andy Yan (yanchao3) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/457992

Changed in horizon:
assignee: nobody → Galyna Zholtkevych (gzholtkevych)
status: Confirmed → In Progress
Changed in horizon:
assignee: Galyna Zholtkevych (gzholtkevych) → Ivan Kolodyazhny (e0ne)
Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

Removed assignee due to the inactivity.

Changed in horizon:
assignee: Ivan Kolodyazhny (e0ne) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Ivan Kolodyazhny (<email address hidden>) on branch: master
Review: https://review.openstack.org/457992
Reason: This review is > 4 months without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
LWQ (lwqcz) wrote :

Hi, I've just came across this issue ... Any hope for a fix? It looks like a quite easy thing to repair as it seems to be just missing error dialog and some exception handling ...

Hmmm, maybe I can help, if I'll be able to `create` some spare time :-D

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.