Bug 1429499 - Import of VM without disks does not log the import success
Summary: Import of VM without disks does not log the import success
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.1.1.3
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Eyal Shenitzky
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-06 13:47 UTC by Tal Nisan
Modified: 2017-12-20 11:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-20 11:31:46 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
2 snapshots, engine.log (1.11 MB, application/zip)
2017-07-26 12:08 UTC, Natalie Gavrielov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1477963 0 unspecified CLOSED Export of VM without disks does not log the export success 2021-02-22 00:41:40 UTC
oVirt gerrit 80742 0 master MERGED core: Add callback mechanism to ImportVmCommand 2017-09-24 11:27:22 UTC

Internal Links: 1477963

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.


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