Bug 983147

Summary: Volume snapshots in 'Error' status should be filtered out in the volume creation dropdown
Product: Red Hat OpenStack Reporter: Dafna Ron <dron>
Component: python-django-horizonAssignee: Julie Pichon <jpichon>
Status: CLOSED ERRATA QA Contact: Amit Ugol <augol>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: aortega, athomas, augol, jkt, jpichon, mrunge
Target Milestone: Upstream M1Keywords: Triaged
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: python-django-horizon-2014.1-4.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-08 15:42:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
log none

Description Dafna Ron 2013-07-10 15:48:20 UTC
Created attachment 771719 [details]
log

Description of problem:

we should filter objects in status Error from selection in scroll. 
example, I created snapshots for a volume which were created in status Error. 
when I open the new volume dialogue I can see the snapshots which are in Error status. 
if I try to create a snapshot we would get HTTP 200 in logs with "Unable to create volume" in the dialogue. 

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

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

How reproducible:

100%

Steps to Reproduce:
1. create a snapshot for a volume in remote nfs storage
2. after the snapshot is created with Error open the new volume dialogue
3. try to create a volume from the snapshot

Actual results:

we can select a snapshot which is in status Error in the 'Use snapshot as a source' in the scroll bar

results:

we should filter from UI objects which are in Error status

Additional info: logs

Comment 1 Julie Pichon 2013-07-17 11:55:59 UTC
*** Bug 981294 has been marked as a duplicate of this bug. ***

Comment 2 Julie Pichon 2013-12-04 14:30:18 UTC
Upstream fix merged in master and released in Icehouse-1.

Comment 3 Julie Pichon 2014-05-27 09:59:06 UTC
This was merged during upstream Icehouse and should already be available in our packages.

Comment 4 Amit Ugol 2014-06-19 08:16:37 UTC
verified in python-django-horizon-2014.1-7.el7ost.noarch
I have no way to create an invalid snapshot that I knowq of so I changed things directly in the DB.
For example:
use cinder;
update snapshots set status='disabled' where id = 'some id';

in status I also tried error, something_bad, and a few more.

after changing, horizon will only give the option to select snapshots with status=available.

Comment 6 errata-xmlrpc 2014-07-08 15:42:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0855.html