Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1547907

Summary: VM with invalid disks fails to be registered with 'allow_partial' flag as true
Product: [oVirt] ovirt-engine Reporter: Maor <mlipchuk>
Component: Backend.CoreAssignee: Maor <mlipchuk>
Status: CLOSED CURRENTRELEASE QA Contact: Natalie Gavrielov <ngavrilo>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: amureini, bugs
Target Milestone: ovirt-4.2.2Flags: rule-engine: ovirt-4.2+
Target Release: 4.2.2.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.2.2.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-18 12:24:58 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:

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.