Sandro Bonazzola has uploaded a new change for review.

Change subject: bin: connect-storage: rebase on vdsClient vdsm-cli-4.17.0-415
......................................................................

bin: connect-storage: rebase on vdsClient vdsm-cli-4.17.0-415

The command line parser used within vdsClient
changed causing several parameters to be
badly interpreted.
Fixed also the connection command line for glusterfs.

Change-Id: Ia574d3d73b03b4f9d82d07ba7b73bf9faf8cec76
Bug-Url: https://bugzilla.redhat.com/1173669
Signed-off-by: Sandro Bonazzola <[email protected]>
---
M src/bin/hosted-engine.in
1 file changed, 9 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup 
refs/changes/72/37772/1

diff --git a/src/bin/hosted-engine.in b/src/bin/hosted-engine.in
index 7a0cf51..4840ee8 100644
--- a/src/bin/hosted-engine.in
+++ b/src/bin/hosted-engine.in
@@ -269,16 +269,21 @@
         exit 1
     fi
     echo "Connecting Storage Server"
-    if [ ! "${domainType}" == "iscsi" ] ; then
+    if [ "${domainType}" == "glusterfs" ] ; then
             ${VDSCOMMAND} connectStorageServer \
             "${storageType}" \
             "${spUUID}" \
-            
connection="${storage},iqn=,portal=,user=kvm,password=,id=${connectionUUID},port=,protocol_version=${protocol_version}"
-    else
-        ${VDSCOMMAND} connectStorageServer \
+            
connection="${storage},user=kvm,id=${connectionUUID},tpgt=1,vfs_type=glusterfs"
+    elif [ "${domainType}" == "iscsi" ] ; then
+            ${VDSCOMMAND} connectStorageServer \
             "${storageType}" \
             "${spUUID}" \
             
connection="${storage},iqn=${iqn},portal=${portal},user=${user},password=${password},id=${connectionUUID},port=${port}"
+    else
+            ${VDSCOMMAND} connectStorageServer \
+            "${storageType}" \
+            "${spUUID}" \
+            
connection="${storage},user=kvm,id=${connectionUUID},protocol_version=${protocol_version}"
     fi
 }
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia574d3d73b03b4f9d82d07ba7b73bf9faf8cec76
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-setup
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to