You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installaled reqirements on proxmox 7.2 but i get the following error:
python3 plb.py
INFO | START Load-balancer!
Traceback (most recent call last):
File "/root/plb.py", line 484, in
main()
File "/root/plb.py", line 454, in main
cluster = Cluster(server_url)
File "/root/plb.py", line 95, in init
self.cl_nodes: dict = self.cluster_hosts() # All cluster nodes
File "/root/plb.py", line 167, in cluster_hosts
self.master_node = rr.json()['data']['manager_status']['master_node']
KeyError: 'master_node'
proxmox cluster info if that helps:
root@prompt:~# pvecm status
Cluster information
Name: hws10
Config Version: 9
Transport: knet
Secure auth: on
Quorum information
Date: Tue Oct 25 10:36:14 2022
Quorum provider: corosync_votequorum
Nodes: 3
Node ID: 0x00001072
Ring ID: 1.7975
Quorate: Yes
Most likely you have only_on_master: ON in the config.
But the point of this parameter is to install a balancer on all nodes using ansible. So that they don't all start working at once, you need to set "ON".
Then only the one that is running on the master node of the HA cluster will work. If you don't have HA - raise 1 instance of the balancer and set only_on_master: OFF.
python3 plb.py
INFO | START Load-balancer!
Traceback (most recent call last):
File "/root/plb.py", line 484, in
main()
File "/root/plb.py", line 454, in main
cluster = Cluster(server_url)
File "/root/plb.py", line 95, in init
self.cl_nodes: dict = self.cluster_hosts() # All cluster nodes
File "/root/plb.py", line 167, in cluster_hosts
self.master_node = rr.json()['data']['manager_status']['master_node']
KeyError: 'master_node'
proxmox cluster info if that helps:
root@prompt:~# pvecm status
Cluster information
Name: hws10
Config Version: 9
Transport: knet
Secure auth: on
Quorum information
Date: Tue Oct 25 10:36:14 2022
Quorum provider: corosync_votequorum
Nodes: 3
Node ID: 0x00001072
Ring ID: 1.7975
Quorate: Yes
Votequorum information
Expected votes: 3
Highest expected: 3
Total votes: 3
Quorum: 2
Flags: Quorate
Membership information
0x00000001 1 192.168.4.12
0x00000faa 1 192.168.4.10
0x00001072 1 192.168.4.210 (local)
Originally posted by @ubu17 in #7 (comment)
The text was updated successfully, but these errors were encountered: