Bug 1429499

Summary: Import of VM without disks does not log the import success
Product: [oVirt] ovirt-engine Reporter: Tal Nisan <tnisan>
Component: BLL.StorageAssignee: Eyal Shenitzky <eshenitz>
Status: CLOSED CURRENTRELEASE QA Contact: Natalie Gavrielov <ngavrilo>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.1.1.3CC: amureini, bugs
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: 4.2.0   
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: 2017-12-20 11:31:46 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
2 snapshots, engine.log none

Description Tal Nisan 2017-03-06 13:47:30 UTC
Description of problem:
When importing a VM without a disk from an import domain, the "VM imported successfully" audit log is not logged like when importing a VM that contains disks

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


How reproducible:
100%

Steps to Reproduce:
1. Export a VM without disks to an export domain
2. Delete the VM from the system
3. Import the VM from the export domain

Actual results:
A "Starting to import.." audit log appears but "VM imported successfully" audit log never appears even though the VM was imported successfully

Expected results:
The import successful audit log should be logged

Additional info:

Comment 1 Allon Mureinik 2017-07-25 12:36:34 UTC
Works for me on current master (commit fc1714d).
Moving to ON_QA to verify.

Comment 2 Natalie Gavrielov 2017-07-26 12:08:59 UTC
Created attachment 1304742 [details]
2 snapshots, engine.log

Performed scenario described in comment 0, with the following builds:
ovirt-engine-4.2.0-0.0.master.20170725202023.git561151b.el7.centos.noarch
vdsm-4.20.1-218.git1b7671f.el7.centos.x86_64

When importing a vm that has no disks, there is a tiny alert on the upper-right side stating "FinishedImporting VM vm_name to Cluster cluster_name" (snapshot: 1. importing-vm-without-disks)
There is no audit log message "VM imported successfully" (snapshot: 2. events)
(also engine.log has no such message)

Comment 3 Red Hat Bugzilla Rules Engine 2017-07-26 12:09:44 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 4 Allon Mureinik 2017-07-27 09:09:31 UTC
(In reply to Natalie Gavrielov from comment #2)
> When importing a vm that has no disks, there is a tiny alert on the
> upper-right side stating "FinishedImporting VM vm_name to Cluster
> cluster_name" (snapshot: 1. importing-vm-without-disks)
> There is no audit log message "VM imported successfully" (snapshot: 2.
> events)
> (also engine.log has no such message)
Now I understand what I was misunderstanding, thanks!

Comment 5 Natalie Gavrielov 2017-10-01 17:30:04 UTC
Verified using build:
ovirt-engine-4.2.0-0.0.master.20170929123516.git007c392.el7.centos.noarch

Comment 6 Sandro Bonazzola 2017-12-20 11:31:46 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

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