mirror of https://github.com/apache/cloudstack.git
Bug 8966 - Oracle VM (OVM) support
fix a ovs agent bug, wrong return value check
This commit is contained in:
parent
0c0fe8c1b3
commit
806c70c87f
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/OVSXUtility.py b/OVSXUtility.py
|
||||
index 4a98bc8..1053ef7 100644
|
||||
--- a/OVSXUtility.py
|
||||
+++ b/OVSXUtility.py
|
||||
@@ -160,7 +160,7 @@ def get_storage_repos():
|
||||
l = parse_storage_repos()
|
||||
for sr in l:
|
||||
d = get_storage_free_space(sr)
|
||||
- if d:
|
||||
+ if len(d) > 0:
|
||||
d_repos_space[sr] = d[sr]
|
||||
|
||||
if not d_repos_space:
|
||||
|
|
@ -63,10 +63,13 @@ applyPatch() {
|
|||
}
|
||||
|
||||
postSetup() {
|
||||
openPortOnIptables 7777 tcp
|
||||
openPortOnIptables 7777 udp
|
||||
openPortOnIptables 7777 tcp # for OCFS2, maybe tcp only
|
||||
openPortOnIptables 7777 udp
|
||||
openPortOnIptables 3260 tcp # for ISCSI, maybe tcp only
|
||||
openPortOnIptables 3260 udp
|
||||
applyPatch "/opt/ovs-agent-latest/OvmPatch.patch" 2
|
||||
applyPatch "/opt/ovs-agent-latest/OvmDontTouchOCFS2ClusterWhenAgentStart.patch" 1
|
||||
applyPatch "/opt/ovs-agent-latest/Fixget_storage_reposExceptionDueToWrongReturnValueCheck.patch" 1
|
||||
|
||||
stopHeartbeat
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue