Bug 1547907 - VM with invalid disks fails to be registered with 'allow_partial' flag as true
Summary: VM with invalid disks fails to be registered with 'allow_partial' flag as true
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backend.Core
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.2.2
: 4.2.2.2
Assignee: Maor
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-22 09:27 UTC by Maor
Modified: 2018-04-18 12:24 UTC (History)
2 users (show)

Fixed In Version: ovirt-engine-4.2.2.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-18 12:24:58 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 88067 0 master MERGED core: Do not call vds command when vdsid is null 2018-02-26 13:50:22 UTC
oVirt gerrit 88068 0 master MERGED core: Filter invalid disks before calling super.validate 2018-02-26 13:50:24 UTC
oVirt gerrit 88069 0 master MERGED core: Fix cluster mapping log 2018-02-26 13:50:27 UTC
oVirt gerrit 88188 0 ovirt-engine-4.2 MERGED core: Do not call vds command when vdsid is null 2018-02-27 11:18:22 UTC
oVirt gerrit 88189 0 ovirt-engine-4.2 MERGED core: Filter invalid disks before calling super.validate 2018-02-27 11:18:28 UTC
oVirt gerrit 88190 0 ovirt-engine-4.2 MERGED core: Fix cluster mapping log 2018-02-27 11:18:35 UTC
oVirt gerrit 88191 0 ovirt-engine-4.2 MERGED core: validate data center is in up status 2018-02-27 11:18:41 UTC

Description Maor 2018-02-22 09:27:28 UTC
Description of problem:
Register a VM with disks that part of them are reside on storage domains which has not been imported yet to the setup should fail, although using the 'allow_partial' flag should eagerly register the partial VM without the missing disks. Currently engine fail to do so with an error message


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


How reproducible:


Steps to Reproduce:
1. Add VM with disks on several storage domains
2. Detach all storage domains 
3. Import only part of the storage domains
4. Try to register the VM using the allow_partial flag as true

Actual results:
VM will fail to be registered

Expected results:
The VM should be registered without the missing disks

Additional info:

Comment 1 Natalie Gavrielov 2018-04-11 20:19:51 UTC
Verified, performed the scenario described in comment 0:
1. create a vm with disks on 6 storage domains: 2 nfs, 2 iscsi, 2 gluster (one on each storage domain)
2. detach all storage domains
3. attach only part of them (one of each type)
4. register the vm

VM was successfully registered, with 3 disks (the one's that had the storage domain attached).

builds used:
rhvm-4.2.2.6-0.1.el7.noarch
vdsm-4.20.23-1.el7ev.x86_64

Comment 2 Sandro Bonazzola 2018-04-18 12:24:58 UTC
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE.

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


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