Bug 1537604 - Newly created unused LUNs described as in use requiring authorization
Summary: Newly created unused LUNs described as in use requiring authorization
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.3.0
: ---
Assignee: shani
QA Contact: Elad
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-23 15:23 UTC by Kevin Alon Goldblatt
Modified: 2018-03-18 09:38 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-03-18 09:38:25 UTC
oVirt Team: Storage
Embargoed:
ylavi: ovirt-4.3+


Attachments (Terms of Use)
screen shots, ui logs (1.68 MB, application/x-gzip)
2018-01-23 15:23 UTC, Kevin Alon Goldblatt
no flags Details

Description Kevin Alon Goldblatt 2018-01-23 15:23:22 UTC
Created attachment 1384903 [details]
screen shots, ui logs

Description of problem:
When creating a new iscsi domain with newly created unused LUNs and error message is displayed describing the luns as In use and requiring authorization to continue using them. This is confusing and incorrect. You can warn the user about the effects of the operation without the incorrect statement of "In use"

Version-Release number of selected component (if applicable):
ovirt-engine-4.2.1.2-0.1.el7.noarch
vdsm-4.20.14-22.git543a886.el7.centos.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Create new LUNs on storage provider
2. Webadmin > Create new Domain > Select one of the new LUNs and press OK >>>>> An error message appears indicating the the LUNs are already in use and that the operation is destructive
3.

Actual results:
The LUNs are reported as In use


Expected results:
A warning can be displayed as to the effects of the operation, but not to include incorrect statement regarding the LUNs


Additional info:
See screen shots

Comment 1 Allon Mureinik 2018-01-24 08:05:06 UTC
This warning probably means that these LUNs aren't as clean as you think they are, but we need to double check and see what's really going on here.

Comment 2 Nir Soffer 2018-01-29 06:41:59 UTC
Kevin, when you see the message about device in use, it means that vdsm tried to 
run pvcreate --test with this device, and LVM failed the test. This means the
device has a partition table or some junk data that LVM does not recognize.

Please make sure the device is clean (e.g. wipe the first 1m of the device) before
you try to use it. Do you get a message about used device after that?

Comment 3 Kevin Alon Goldblatt 2018-01-30 15:29:32 UTC
(In reply to Nir Soffer from comment #2)
> Kevin, when you see the message about device in use, it means that vdsm
> tried to 
> run pvcreate --test with this device, and LVM failed the test. This means the
> device has a partition table or some junk data that LVM does not recognize.
> 
> Please make sure the device is clean (e.g. wipe the first 1m of the device)
> before
> you try to use it. Do you get a message about used device after that?

This was a brand new never before used LUN created on the Xtremio storage provider. I used it for the first time immediately after creating and mapping it to my host. New LUNs should not have any issues

Comment 4 Nir Soffer 2018-01-30 15:32:28 UTC
(In reply to Kevin Alon Goldblatt from comment #3)
> This was a brand new never before used LUN created on the Xtremio storage
> provider. I used it for the first time immediately after creating and
> mapping it to my host. New LUNs should not have any issues

Xtremeio is using thin provisioning - the LUN may be new, but the blocks you got
were used by someone else. If the previous user did not wipe the LUN, get their
data.

Please try to wipe the LUN before you use it, and report of you still get the
warning about used device.

Comment 5 Kevin Alon Goldblatt 2018-03-18 09:38:25 UTC
(In reply to Nir Soffer from comment #4)
> (In reply to Kevin Alon Goldblatt from comment #3)
> > This was a brand new never before used LUN created on the Xtremio storage
> > provider. I used it for the first time immediately after creating and
> > mapping it to my host. New LUNs should not have any issues
> 
> Xtremeio is using thin provisioning - the LUN may be new, but the blocks you
> got
> were used by someone else. If the previous user did not wipe the LUN, get
> their
> data.
> 
> Please try to wipe the LUN before you use it, and report of you still get the
> warning about used device.

closing as not a bug


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