Sahina Bose has uploaded a new change for review.

Change subject: engine: Reinitialize VDSManager on change cluster
......................................................................

engine: Reinitialize VDSManager on change cluster

When changing cluster, the VDSManager dictionary
has to be updated.
This is needed because the target cluster may support
different services from the source cluster, and the
monitoring strategies need to be updated.

Change-Id: Icb25c12d35113af09c67d5fe6e275c6901725e54
Bug-Url: https://bugzilla.redhat.com/968178
Signed-off-by: Sahina Bose <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVDSClusterCommand.java
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/05/21905/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVDSClusterCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVDSClusterCommand.java
index 01d82e2..60aae58 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVDSClusterCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVDSClusterCommand.java
@@ -135,6 +135,8 @@
                 staticData.setVdsGroupId(targetClusterId);
                 DbFacade.getInstance().getVdsStaticDao().update(staticData);
                 getCompensationContext().stateChanged();
+                // remove the server from resource manager and add it back
+                initializeVds();
                 return null;
             }
         });


-- 
To view, visit http://gerrit.ovirt.org/21905
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icb25c12d35113af09c67d5fe6e275c6901725e54
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.3
Gerrit-Owner: Sahina Bose <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to