anmolbabu has uploaded a new change for review.

Change subject: engine : Set monitoring Environment variable in vdsDeploy
......................................................................

engine : Set monitoring Environment variable in vdsDeploy

This patch sets the monitoring environment variables
during host bootstrap.

Change-Id: Ic1f3371a9be9518579a14be0991180a840b01626
Signed-off-by: Anmol Babu <anb...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsDeploy.java
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/64/27064/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsDeploy.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsDeploy.java
index 53101e9..a345ff8 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsDeploy.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsDeploy.java
@@ -26,7 +26,6 @@
 import javax.naming.TimeLimitExceededException;
 
 import org.apache.commons.lang.StringUtils;
-
 import org.ovirt.engine.core.bll.utils.EngineSSHDialog;
 import 
org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties;
 import org.ovirt.engine.core.common.businessentities.VDS;
@@ -35,6 +34,7 @@
 import org.ovirt.engine.core.common.config.Config;
 import org.ovirt.engine.core.common.config.ConfigValues;
 import org.ovirt.engine.core.dal.dbbroker.DbFacade;
+import org.ovirt.engine.core.dao.VdsDeployConfigDAO;
 import org.ovirt.engine.core.utils.EngineLocalConfig;
 import org.ovirt.engine.core.utils.NetworkUtils;
 import org.ovirt.engine.core.utils.PKIResources;
@@ -455,6 +455,10 @@
             return null;
         }},
         new Callable<Object>() { public Object call() throws Exception {
+            VdsDeployConfigDAO vdsDeployConfigDao = 
DbFacade.getInstance().getVdsDeployConfigDao();
+            boolean monitoringEnabled = 
Boolean.parseBoolean(vdsDeployConfigDao.getByNameAndType("monitoring_enable", 
"Bool").getConfigValue());
+            String monitoringServerIp = 
vdsDeployConfigDao.getByNameAndType("monitoring_srvr_ip","String").getConfigValue();
+            
             VDSGroup vdsGroup = DbFacade.getInstance().getVdsGroupDao().get(
                 _vds.getVdsGroupId()
             );


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic1f3371a9be9518579a14be0991180a840b01626
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: anmolbabu <anb...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to