Bug 1435579 - Failed to restart VM vm2-test-w2k12r2-1 on Host <UNKNOWN>
Summary: Failed to restart VM vm2-test-w2k12r2-1 on Host <UNKNOWN>
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.1.1.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.1.3
: 4.1.3
Assignee: Sharon Gratch
QA Contact: Jiri Belka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-24 09:42 UTC by Jiri Belka
Modified: 2017-07-06 13:14 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Validating the number of unmanaged USB controllers for a restarted/rerun VM was done after the VM was already started to run but before a host was scheduled for this VM. Consequence: In case the validation failed, an error was displayed in audit log with host_name="UNKNOWN" - since no host assigned. I.e.: Failed to restart VM <vm-name> on Host <UNKNOWN> Fix: Add this USB unmanaged controllers validation check to the Validate() phase before the host started to run. Result: In case of a validation failure, a popup window will be displayed and a log msg will be added - informing that this VM can't run (without any host information included in the message).
Clone Of:
Environment:
Last Closed: 2017-07-06 13:14:21 UTC
oVirt Team: Virt
Embargoed:
tjelinek: ovirt-4.1?
tjelinek: planning_ack?
rule-engine: devel_ack+
lsvaty: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 76619 0 master MERGED core: validate usb unmanaged devices in runVmCommand 2017-05-15 21:16:01 UTC
oVirt gerrit 76913 0 ovirt-engine-4.1 MERGED core: validate usb unmanaged devices in runVmCommand 2017-05-17 08:26:20 UTC

Description Jiri Belka 2017-03-24 09:42:50 UTC
Description of problem:

Again, strange '<UNKNOWN>' appears in events' messages...

See $summary and logs.

Version-Release number of selected component (if applicable):
ovirt-engine-4.1.1.5-0.1.el7.noarch

How reproducible:
just happens

Steps to Reproduce:
1. 
2.
3.

Actual results:
Failed to restart VM vm2-test-w2k12r2-1 on Host <UNKNOWN>

Expected results:
no UNNOWN, it's obviously wrong

Additional info:

Comment 2 Sharon Gratch 2017-05-09 11:27:50 UTC
To reproduce this bug:

1. Add at least 2 un-managed USB controllers to an OLD VM <= 3.6, with USB policy set to DISABLED 
2. Restart the VM by HA or rerun it  - on a new 4.1 engine.

Since the USB devices validation of unmanaged USB controllers number failed in runVmCommand->initVM() phase (where there is still no host scheduled to run this VM), then an error is displayed in audit log with host=NULL (=UNKNOWN).

Comment 3 Jiri Belka 2017-06-19 12:14:26 UTC
ok, ovirt-engine-4.1.3.4-0.1.el7.noarch

(i tried to reproduce it based on #2)


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