Red Hat Bugzilla – Bug 981294
horizon: unclear error when failing to create a volume
Last modified: 2015-06-04 17:52:37 EDT
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):
Steps to Reproduce:
1. open the new volume dialogue
2. select None in "use snapshot as source" scroll
3. press OK
dialogue shows an error "unable to create volume"
since debugging this issue is difficult I think that a UI need to show a more informative errors
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 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.
Created attachment 774692 [details]
I echoed >>>>BUG981294>>>>> into the logs so you can see the start point for the create volume from error snapshot
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 ***