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

Master node #10

Closed
cvk98 opened this issue Oct 25, 2022 · 3 comments
Closed

Master node #10

cvk98 opened this issue Oct 25, 2022 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@cvk98
Copy link
Owner

cvk98 commented Oct 25, 2022

    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

Votequorum information

Expected votes: 3
Highest expected: 3
Total votes: 3
Quorum: 2
Flags: Quorate

Membership information

Nodeid      Votes Name

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)

@cvk98
Copy link
Owner Author

cvk98 commented Oct 25, 2022

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.

@cvk98 cvk98 added the documentation Improvements or additions to documentation label Oct 27, 2022
@cvk98 cvk98 pinned this issue Oct 27, 2022
@trentech
Copy link

trentech commented Jan 11, 2023

EDIT: Disregard - I figured it out.

@cvk98
Copy link
Owner Author

cvk98 commented Jan 13, 2023

I'm glad that everything worked out for you.
Don't forget to leave a screenshot if it doesn't bother you.

@cvk98 cvk98 closed this as completed Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants