Tomas Jelinek has submitted this change and it was merged.
Change subject: engine: VM NewPool-1 was restarted on Host <UNKNOWN>
......................................................................
engine: VM NewPool-1 was restarted on Host <UNKNOWN>
If the host has been started as prestarted the following
event log has been logged:
VM NewPool-1 was restarted on Host <UNKNOWN>
The problem was that the Vm has been started as stateless.
This first triggers the statelessVmTreatment() which
does not schedule the host but will already be logged (e.g. the host will be
unknown).
Fixed by checking if the host has already been scheduled and
if not than a different message will be logged (a similar to the one when
the VM is started as stateless by the user).
Change-Id: I60a74762984dc82154d0f8e073c60f631da229f0
Bug-Url:
https://bugzilla.redhat.com/show_bug.cgi?id=966619
Signed-off-by: Tomas Jelinek <tjelinek(a)redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
M
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/AuditLogType.java
M
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/auditloghandling/AuditLogDirector.java
M backend/manager/modules/dal/src/main/resources/bundles/AuditLogMessages.properties
4 files changed, 17 insertions(+), 4 deletions(-)
Approvals:
Tomas Jelinek: Verified
Omer Frenkel: Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/18726
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I60a74762984dc82154d0f8e073c60f631da229f0
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tomas Jelinek <tjelinek(a)redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel(a)redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan(a)redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjelinek(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server