Follower don't have to manage ONE networks

Esse commit está contido em:
Philippe Caseiro 2019-03-01 14:15:18 +01:00
commit 2008031e91
1 arquivos alterados com 8 adições e 0 exclusões

Ver arquivo

@ -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')