Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script crashes when run on fresh installation without any HA enabled vm #27

Open
labkeeper opened this issue May 11, 2024 · 1 comment

Comments

@labkeeper
Copy link

labkeeper commented May 11, 2024

As title says, when I run script in cluster of 3 fresh machines, 3 vms on one of them, no vm has HA enabled./

INFO | START ***Load-balancer!***
Traceback (most recent call last):
  File "/usr/local/Proxmox-load-balancer/./plb.py", line 494, in <module>
    main()
  File "/usr/local/Proxmox-load-balancer/./plb.py", line 464, in main
    cluster = Cluster(server_url)
              ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Proxmox-load-balancer/./plb.py", line 95, in __init__
    self.cl_nodes: dict = self.cluster_hosts()  # All cluster nodes
                          ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Proxmox-load-balancer/./plb.py", line 167, in cluster_hosts
    self.master_node = rr.json()['data']['manager_status']['master_node']
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'master_node'
@cvk98
Copy link
Owner

cvk98 commented May 12, 2024

You need to turn off the "run only on the masternode" in the config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants