Bug 981294 - horizon: unclear error when failing to create a volume
Summary: horizon: unclear error when failing to create a volume
Keywords:
Status: CLOSED DUPLICATE of bug 983147
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 4.0
Assignee: Julie Pichon
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-04 12:16 UTC by Dafna Ron
Modified: 2015-06-04 21:52 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-17 11:55:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (4.90 MB, application/x-gzip)
2013-07-17 09:05 UTC, Dafna Ron
no flags Details

Description Dafna Ron 2013-07-04 12:16:44 UTC
Description of problem:

I tried creating a volume and selected "None" in "Use snapshot as a source" scroll. 
when I press OK we get an alert in the UI "unable to create volume" 

since there are so many logs in openstack and searching which log we should look at + we have no UUID yet or a command printed in the logs a user will find it hard to debug. 
hence, a clear error on what is missing will be a huge help in situation like this. 

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

python-django-horizon-2013.1.2-1.el6ost.noarch

How reproducible:

100%

Steps to Reproduce:
1. open the new volume dialogue
2. select None in "use snapshot as source" scroll 
3. press OK

Actual results:

dialogue shows an error "unable to create volume" 

Expected results:

since debugging this issue is difficult I think that a UI need to show a more informative errors

Additional info:

Comment 1 Julie Pichon 2013-07-16 16:13:18 UTC
Could you provide more information on what was actually the problem here? There's definitely a lot of work to be done to improve error messages, if we could fix this one that would be good. Normally we try to surface to the UI the error message sent back by the APIs (cinder in this case).

I can't reproduce the problem using a nameless snapshot ("None"). What's the stack trace in the horizon error logs? Is there something special about the source snapshot?

Comment 2 Dafna Ron 2013-07-17 09:00:26 UTC
(In reply to Julie Pichon from comment #1)
> Could you provide more information on what was actually the problem here?
> There's definitely a lot of work to be done to improve error messages, if we
> could fix this one that would be good. Normally we try to surface to the UI
> the error message sent back by the APIs (cinder in this case).
> 
> I can't reproduce the problem using a nameless snapshot ("None"). What's the
> stack trace in the horizon error logs? Is there something special about the
> source snapshot?

In this case I cannot create a a volume because I am using a snapshot which was created with ERROR. 
you can reproduce this with external nfs storage in which snapshots for volumes are not yet supported. 
create a volume -> create a snapshot (which will be created with status ERROR) -> create a second volume from the Error snapshot. 

I could not find any errors in the log except for the create snapshot error (which also has no alert in horizon) 

horizon log shows nothing at all but I will attach nova,cinder and horizon logs from this specific scenario.

Comment 3 Dafna Ron 2013-07-17 09:05:35 UTC
Created attachment 774692 [details]
logs

I echoed >>>>BUG981294>>>>> into the logs so you can see the start point for the create volume from error snapshot

Comment 4 Julie Pichon 2013-07-17 11:55:59 UTC
Thank you for the additional information. By default, because the create call is asynchronous Horizon cannot show an alert (see comment 3 on bug 976279 for more information), only that the status is in Error.

In this particular case, since it's related to the error condition in bug 983147, I'm going to mark this one as a duplicate. When bug 983147 is fixed, this will resolve this bug as well.

(Note, it's possible to adjust Horizon's logging configuration, in /etc/openstack-dashboard/local_settings.py)

*** This bug has been marked as a duplicate of bug 983147 ***


Note You need to log in before you can comment on or make changes to this bug.