Bug 1537604

Summary: Newly created unused LUNs described as in use requiring authorization
Product: [oVirt] ovirt-engine Reporter: Kevin Alon Goldblatt <kgoldbla>
Component: Frontend.WebAdminAssignee: shani <sleviim>
Status: CLOSED NOTABUG QA Contact: Elad <ebenahar>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: amureini, bugs, ebenahar, kgoldbla, nsoffer, ylavi
Target Milestone: ovirt-4.3.0Flags: ylavi: ovirt-4.3+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-18 09:38:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screen shots, ui logs none

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