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
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.
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?
(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
(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.
(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