Error message when image creation fails is insufficient

Bug #1261755 reported by Tzach Shefi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Expired
Medium
Unassigned

Bug Description

Description of problem:

The error notice is generic without a giving a reason for problem, should state failed due to qouta problem.

Version-Release number of selected component (if applicable):

RHEL 6.5
python-django-horizon-2013.2-8.el6ost.noarch

How reproducible:
Awlays.

Steps to Reproduce:
1.Set glance user_total_storage qouta.
2.Upload an image file larger than qouta.
3.

Changed in horizon:
assignee: nobody → Juan Manuel Ollé (juan-m-olle)
Revision history for this message
Juan Manuel Ollé (juan-m-olle) wrote :

glance throw StorageQuotaFull exception as a result of this error but horizon receive from the glanceclient HTTPOverLimit exception with a message indicating the problem.
I don't think it is a good Idea to show in Horizon other module exceptions message.
Perhaps a change in glanceclient must be done to throw an specific exception to the api caller and manage an specific message internally in horizon

tags: added: error-reporting
summary: - Openstack horizon image creation error due to quota limit is
- insufficiant
+ Error message when image creation fails is insufficient
Akihiro Motoki (amotoki)
tags: removed: dashboard
Revision history for this message
Julie Pichon (jpichon) wrote :

Removing assignee due to lack of activity, please reassign yourself if you're still interested in working on this. Thanks!

Changed in horizon:
assignee: Juan Manuel Ollé (juan-m-olle) → nobody
importance: Undecided → Medium
Changed in horizon:
assignee: nobody → Nikunj Aggarwal (nikunj2512)
Revision history for this message
Nikunj Aggarwal (nikunj2512) wrote :

It is user_storage_quota not user_total_storage

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/128568

Changed in horizon:
status: New → In Progress
Revision history for this message
Nikunj Aggarwal (nikunj2512) wrote :

Hi Tzach Shefi,

Can You provide more information because i am unable to reproduce this bug.

Revision history for this message
Tzach Shefi (tshefi) wrote :

Hi Nikunj,

I've just tested this again on python-django-horizon-2014.1.3-1.el7ost.noarch
Still same problem, here are the steps:

1. Install openstack
2. Enable and configure -> user_storage_quota=10485760 (10mb) on glance-api.conf
3. Restart Glance
4. Using Horizon create/upload a small image (lower then 10mb) uploads fine.
5. Using Horizon create/upload a large image (more than 10MB) this is where the bug happens.
First I get a popup -> Success: your image Large has been queued for creation
Then on table i see image status as killed

This is bad, it should mention quota has been exceeded, explaining why image is "killed" .

Attaching print screen.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Nikunj Aggarwal (<email address hidden>) on branch: master
Review: https://review.openstack.org/128568
Reason: no required

Changed in horizon:
assignee: Nikunj Aggarwal (nikunj2512) → nobody
Revision history for this message
Matt Borland (palecrow) wrote :

Should this be changed back from In Progress if no one is working on it?

Changed in horizon:
assignee: nobody → Kanchan Gupta (kanchan-gupta1)
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/143026

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by David Lyle (<email address hidden>) on branch: master
Review: https://review.openstack.org/143026
Reason: This review is > 4 weeks 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.

Changed in horizon:
assignee: Kanchan Gupta (kanchan-gupta1) → Pankaj Mishra (pankaj-mishra)
Revision history for this message
surbhi sarda (surbhisarda) wrote :

can i take this bug??

Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

We have to check if it's still actual.

Changed in horizon:
assignee: Pankaj Mishra (pankaj-mishra) → nobody
status: In Progress → New
Changed in horizon:
assignee: nobody → Marek Lyčka (mareklycka)
Revision history for this message
Marek Lyčka (mareklycka) wrote :

Hello

I fiddled with both 'user_storage_quota' and
'image_size_cap' in my glance config while
trying to replicate this issue with the
following results:

- No error messages are displayed when an \
attempt to break either of
  these limits is made. Instead, the image is never
uploaded but stuck as 'queued' in glance.

Revision history for this message
Marek Lyčka (mareklycka) wrote :

(cont.)

- The offending image is never uploaded
- An entery for the image is created by
  glance and never leaves the 'queued'
  state

This seems to be and issue with glance
rather than Horizon. I looked through
the glance launchpad but found no
reference to it.

Could someone confirm this? I'd be
grateful if someone confirmed my
findings.

P.S.: I'm using devstack glance 17.0.0.

Changed in horizon:
assignee: Marek Lyčka (mareklycka) → nobody
Changed in horizon:
status: New → Incomplete
Revision history for this message
Akihiro Motoki (amotoki) wrote :

@Ziyu Bai, could you provide the reason of marking this as Incomplete? Marking it as Incomplete without any comment looks like a spam from inspur.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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