Change in ovirt-engine[master]: core: Auto-Import the hosted engine VM if its not managed

rgolan at redhat.com rgolan at redhat.com
Tue Jul 14 00:01:39 UTC 2015


Roy Golan has submitted this change and it was merged.

Change subject: core: Auto-Import the hosted engine VM if its not managed
......................................................................


core: Auto-Import the hosted engine VM if its not managed

Let the monitoring import the HE VM if its not in the setup already

PRECONDITIONS
- The hosted engine Storage Domain (name Hosted_Engine) should be
  imported into the setup and be Active
- The engine VM should already be in the DB. The Vm is an external Vm
  at first and assumed to be added by the monitoring of the host

IMPORT
The import rely on the "full list" response from vdsm to get all
data that is out there. the disks are assumed to be on the target storage domain.

NEW
OriginType.MANAGED_HOSTED_ENGINE was added to mark that VM as
managed from now on, and to signal the monitoring on when its not imported
and should be.

Change-Id: I0ff2c440785cb91e3beef0530eda77324cc954d0
Bug-Url: https://bugzilla.redhat.com/1160094
Signed-off-by: Roy Golan <rgolan at redhat.com>
---
A backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/HostedEngineImporter.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsEventListener.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmHandler.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/AuditLogType.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/IVdsEventListener.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/OriginType.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
M backend/manager/modules/dal/src/main/resources/bundles/AuditLogMessages.properties
M backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VmAnalyzer.java
M backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VmsMonitoring.java
M backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsBrokerObjectsBuilder.java
11 files changed, 298 insertions(+), 6 deletions(-)

Approvals:
  Jenkins CI: Passed CI tests
  Roy Golan: Verified; Looks good to me, approved



-- 
To view, visit https://gerrit.ovirt.org/42295
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0ff2c440785cb91e3beef0530eda77324cc954d0
Gerrit-PatchSet: 15
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Maor Lipchuk <mlipchuk at redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: Simone Tiraboschi <stirabos at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list