Maor Lipchuk has uploaded a new change for review.

Change subject: core: iscsibond, disconnect Host from all connections' 
interfaces.
......................................................................

core: iscsibond, disconnect Host from all connections' interfaces.

Once the Host is moving to maintenance it is necessery to disconnect the Host
from all the connections' interfaces the host was connected to, as part of the 
iSCSI
bond configuration.

Change-Id: I7fa178bd5946afeff4864b4804d6e38ada8482c1
Bug-Url: https://bugzilla.redhat.com/1140850
Signed-off-by: Maor Lipchuk <mlipc...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/DisconnectHostFromStoragePoolServersCommand.java
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/78/37678/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/DisconnectHostFromStoragePoolServersCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/DisconnectHostFromStoragePoolServersCommand.java
index 740b6ca..e5bae35 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/DisconnectHostFromStoragePoolServersCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/DisconnectHostFromStoragePoolServersCommand.java
@@ -40,6 +40,9 @@
     }
 
     private void disconnectStorageByType(StorageType storageType, 
List<StorageServerConnections> connections) {
+        if (storageType == StorageType.ISCSI) {
+            connections = ISCSIStorageHelper.updateIfaces(connections, 
getVds().getId());
+        }
         VDSReturnValue vdsReturnValue = runVdsCommand(
                         VDSCommandType.DisconnectStorageServer,
                         new 
StorageServerConnectionManagementVDSParameters(getVds().getId(), 
getStoragePool().getId(),


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

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

Reply via email to