Follower don't have to manage ONE networks

This commit is contained in:
Philippe Caseiro 2019-03-01 14:15:18 +01:00
父節點 ecb6441aef
當前提交 2008031e91
共有 1 個文件被更改,包括 8 次插入0 次删除

查看文件

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