Browse Source

Follower don't have to manage ONE networks

tags/pkg/stable/eole-2.7.0/1.0.0-0
Philippe Caseiro 5 months ago
parent
commit
2008031e91
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      postservice/31-one-netmng

+ 8
- 0
postservice/31-one-netmng View File

@@ -303,6 +303,14 @@ def main():
303 303
     logger.debug(u"Configure OpenNebula networks")
304 304
 
305 305
     client = CreoleClient()
306
+    
307
+    mode_ha = client.get_creole('activer_one_ha')
308
+    if mode_ha == "oui":
309
+        indx = client.get_creole('one_ha_server_index')
310
+        if indx != 0:
311
+            # Mode HA is on and we are not in the Leader
312
+            exit(0)
313
+
306 314
     one_client = OneClient('oneadmin')
307 315
     networks = []
308 316
     cluster = client.get_creole('one_cluster_name')

Loading…
Cancel
Save