Bug 1352857 - image upload: informative message is required when disk's entered values are not valid
Summary: image upload: informative message is required when disk's entered values are ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: future
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.0.4
: 4.0.4
Assignee: Daniel Erez
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
: 1352897 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-05 09:41 UTC by Amit Aviram
Modified: 2016-09-26 12:36 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-09-26 12:36:28 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.0.z+
rule-engine: planning_ack+
rule-engine: devel_ack+
acanan: testing_ack+


Attachments (Terms of Use)
snapshot (181.79 KB, image/png)
2016-08-02 17:02 UTC, Natalie Gavrielov
no flags Details
ui log (6.82 KB, text/plain)
2016-08-03 07:54 UTC, Natalie Gavrielov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 60697 0 master MERGED core: image upload - propagate validation messages 2016-07-18 06:50:10 UTC
oVirt gerrit 60884 0 ovirt-engine-4.0 MERGED core: image upload - propagate validation messages 2016-07-18 08:20:47 UTC
oVirt gerrit 61919 0 master MERGED webadmin: image upload - exception on validation 2016-08-04 12:50:31 UTC
oVirt gerrit 61942 0 ovirt-engine-4.0 MERGED webadmin: image upload - exception on validation 2016-08-04 18:59:58 UTC

Description Amit Aviram 2016-07-05 09:41:29 UTC
Description of problem:
Currently, when uploading a disk, the user needs to provide some general values for the disk to be created. if the user provides wrong values- an "Operation Cancelled" dialog is shown, with "No message" as description.

How reproducible:
100%

Steps to Reproduce:
1. Go to "disks" tab
2. Choose to "upload" 
3. Enter a value which will fail the validation process in the engine, e.g- 1000GB disk size.

Actual results:
an "Operation Cancelled" dialog is shown, with "No message" as description.

Expected results:
The actual reason for failure should be displayed.

Comment 1 Amit Aviram 2016-07-06 10:23:17 UTC
*** Bug 1352897 has been marked as a duplicate of this bug. ***

Comment 2 Natalie Gavrielov 2016-07-26 11:31:54 UTC
Hi Amit / Erez,

I performed the following tests, but I'm not completely sure what is the expected result for each of these scenarios.. can you please confirm/refute if this is the desired behaviour?

Verification: 1 GB disk size:

Raw, Preallocated, block type: "this field must contain an integer number between 5 and 8192"
Raw, Preallocated, file type: "this field must contain an integer number greater than or equal to 5"
Raw, Thin provision, block type: Unavailable, changes image type to QCOW and shows "this field must contain an integer number between 5 and 8192"
Raw, Thin provision, file type: "This field must contain an integer number greater than or equal to 5"

QCOW2 , Preallocated, block type: Unavailable - changes image type to Raw
QCOW2 , Preallocated, file type: Unavailable - changes image type to Raw
QCOW2, Thin provision, block type:  "this field must contain an integer number between 3 8192"
QCOW2, Thin provision, file type: Unavailable - changes image type to Raw

Verification: 1000 GB disk size:

Raw, Preallocated, block type: Error while executing action: Cannot add Virtual Disk. Low disk space on Storage Domain iscsi.
Raw, Preallocated, file type: Error while executing action: Cannot add Virtual Disk. Low disk space on Storage Domain rhev-402-nat.
Raw, Thin provision, block type: Unavailable, changes image type to QCOW and shows, starts upload
Raw, Thin provision, file type: starts upload

QCOW2 , Preallocated, block type: Unavailable - changes image type to Raw
QCOW2 , Preallocated, file type: Unavailable - changes image type to Raw
QCOW2, Thin provision, block type:  starts upload
QCOW2, Thin provision, file type: Unavailable - changes image type to Raw

Comment 3 Amit Aviram 2016-07-26 11:46:36 UTC
The bug is about having these messages at the first place, if they appeared- the bug can be verified.

BTW, all of these errors are generated while trying to add the specified disk- so if there is a wrong message, it is another bug. (it will also happen when adding a new disk)

Thanks

Comment 4 Natalie Gavrielov 2016-07-26 12:37:47 UTC
(In reply to Amit Aviram from comment #3)
> The bug is about having these messages at the first place, if they appeared-
> the bug can be verified.
> 
> BTW, all of these errors are generated while trying to add the specified
> disk- so if there is a wrong message, it is another bug. (it will also
> happen when adding a new disk)
> 
> Thanks

IMHO

I don't think you can have one without the other.. 
it's like saying you issue an error message, but the fact it is out of context is a totally different issue.. and it's not - every case should have a suitable message, the headline of this bug suggests that.
In this bug, there is no sufficient information in order to verify it.
So, I've tested all the possibilities, but I'm still missing the expected result.

Comment 5 Amit Aviram 2016-07-26 12:48:40 UTC
(In reply to Natalie Gavrielov from comment #4)
> (In reply to Amit Aviram from comment #3)
> > The bug is about having these messages at the first place, if they appeared-
> > the bug can be verified.
> > 
> > BTW, all of these errors are generated while trying to add the specified
> > disk- so if there is a wrong message, it is another bug. (it will also
> > happen when adding a new disk)
> > 
> > Thanks
> 
> IMHO
> 
> I don't think you can have one without the other.. 
> it's like saying you issue an error message, but the fact it is out of
> context is a totally different issue.. and it's not - every case should have
> a suitable message, the headline of this bug suggests that.
> In this bug, there is no sufficient information in order to verify it.
> So, I've tested all the possibilities, but I'm still missing the expected
> result.

Comment 6 Amit Aviram 2016-07-26 12:50:45 UTC
(In reply to Natalie Gavrielov from comment #4)
> (In reply to Amit Aviram from comment #3)
> > The bug is about having these messages at the first place, if they appeared-
> > the bug can be verified.
> > 
> > BTW, all of these errors are generated while trying to add the specified
> > disk- so if there is a wrong message, it is another bug. (it will also
> > happen when adding a new disk)
> > 
> > Thanks
> 
> IMHO
> 
> I don't think you can have one without the other.. 
> it's like saying you issue an error message, but the fact it is out of
> context is a totally different issue.. and it's not - every case should have
> a suitable message, the headline of this bug suggests that.

You right, I changed the headline so it will not demand "proper" message, as this is too generic to ask.

> In this bug, there is no sufficient information in order to verify it.
> So, I've tested all the possibilities, but I'm still missing the expected
> result.

Comment 7 Natalie Gavrielov 2016-08-02 17:00:10 UTC
Scenario tested:
1. Go to "disks" tab
2. Choose to "upload" 
3. Enter values that should fail verification:
Size (GB): 555555
Alias: !@#$%V
or
Size (GB): 55555555
Alias: ~

Actual result:
Uncaught exception occurred. Please try reloading the page. Details: Exception caught: Index: 0, Size: 0
Please have your administrator check the UI logs

Comment 8 Red Hat Bugzilla Rules Engine 2016-08-02 17:00:15 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 9 Natalie Gavrielov 2016-08-02 17:01:03 UTC
used 4.0.2-5:
rhevm-4.0.2.3-0.1.el7ev.noarch
ovirt-imageio-common-0.3.0-0.el7ev.noarch
ovirt-imageio-proxy-0.3.0-0.el7ev.noarch
vdsm-4.18.9-1.el7ev.x86_64
ovirt-imageio-daemon-0.3.0-0.el7ev.noarch

Comment 10 Red Hat Bugzilla Rules Engine 2016-08-02 17:01:07 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 11 Natalie Gavrielov 2016-08-02 17:02:30 UTC
Created attachment 1186871 [details]
snapshot

Comment 12 Daniel Erez 2016-08-03 06:24:47 UTC
Can't seem to reproduce the issue in my environment.
* Is it 100% reproducible?
* Can you please attach the UI logs (from developer tools console).

Comment 13 Natalie Gavrielov 2016-08-03 07:54:13 UTC
Created attachment 1186974 [details]
ui log

Comment 14 Natalie Gavrielov 2016-09-05 13:57:00 UTC
Verified:
Used the scenario described in the comment #0.
(This is like the only scenario that triggers this error.. couldn't find any other)

Got the following dialogue:
Operation canceled
Error while executing action: Cannot add Virtual Disk. Low disk space on Storage Domain iscsi2

Builds used:
rhevm-4.0.4-0.1.el7ev.noarch
vdsm-4.18.12-1.el7ev.x86_64
ovirt-imageio-proxy-0.3.0-0.el7ev.noarch
ovirt-imageio-common-0.3.0-0.el7ev.noarch
ovirt-imageio-daemon-0.3.0-0.el7ev.noarch


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