Adding PVE cluster to master broke node

jhamon

Member
Aug 18, 2008
34
0
6
Hi,

I followed the instructions on the wiki to create and PVE master which worked OK

I then tried to add another node to this which did not complete correctly. I managed to delete this node but now the 2nd node is not acessible via web.

This is the error I get

Local System Status ('node2') Unable to get data for Cluster Node 0
Unable to get data for Cluster Node 0

ERROR: unknown CID '0' at /usr/share/perl5/PVE/HTMLServices.pm line 97.

How can I fix this please?


Jonathan Hamon
 
Hi,

I followed the instructions on the wiki to create and PVE master which worked OK

I then tried to add another node to this which did not complete correctly. I managed to delete this node but now the 2nd node is not acessible via web.

This is the error I get

Local System Status ('node2') Unable to get data for Cluster Node 0
Unable to get data for Cluster Node 0

ERROR: unknown CID '0' at /usr/share/perl5/PVE/HTMLServices.pm line 97.

How can I fix this please?


Jonathan Hamon

take a look on /etc/pve/cluster.cfg on all nodes and on the master.

to remove a node: pveca -d -CID (where CID is the cluster ID, see pveca -l)
 
PVECA trouble

Hello everybody
after reading the wiki, I have created two promox VE servers for creating a cluster
pveca -c on the master works fine
pveca -a masterip on the slave gives me some error message
but pveca -l on the master show me correctly master and slave
and the web panel too

the error is
syncing master configuration from 'master' failed
(rsync --rsh=ssh -l root -o BatchMode=yes -lpgoq master:/etc/pve/*
/etc/pve/master/ --exclude *~) : command 'rsync --rsh=ssh
-l root -o BatchMode=yes -lpgoq master:/etc/pve/* /etc/pve/master/ --exclude *~'
failed with exit code 255:

so I realized that i can solve it a portion myself by copyng /etc/pve/cluster.cfg from master to slave
then pveca -l on the slave show
CID----IPADDRESS----ROLE-STATE--------UPTIME---LOAD----MEM---ROOT---DATA
1 : master M ERROR: 500 Can't connect to localhost:50000 (connect: Connection refused)
3 : slave N S 04:24 0.56 67% 1% 23%

I'm able to migrate a VM from master to slave but not back
from slave to master
The answer is
/usr/bin/ssh -n -o BatchMode=yes slave /usr/sbin/vzmigrate master 111
OPT:master
Starting migration of CT 111 to master
Error: Can't connect to destination address using public key
Error: Please put your public key to destination node
VM 111 migration failed -
I have made several times the
rm /root/.ssh/known_hosts procedure but without success

But you know what ? I'm very happy with proxmox anyway.
Even with a one way cluster , I findyour work fantastic
Thanks
eric from belgium
 
Hello everybody
after reading the wiki, I have created two promox VE servers for creating a cluster
pveca -c on the master works fine
pveca -a masterip on the slave gives me some error message
but pveca -l on the master show me correctly master and slave
and the web panel too

the error is
syncing master configuration from 'master' failed
(rsync --rsh=ssh -l root -o BatchMode=yes -lpgoq master:/etc/pve/*
/etc/pve/master/ --exclude *~) : command 'rsync --rsh=ssh
-l root -o BatchMode=yes -lpgoq master:/etc/pve/* /etc/pve/master/ --exclude *~'
failed with exit code 255:

so I realized that i can solve it a portion myself by copyng /etc/pve/cluster.cfg from master to slave
then pveca -l on the slave show
CID----IPADDRESS----ROLE-STATE--------UPTIME---LOAD----MEM---ROOT---DATA
1 : master M ERROR: 500 Can't connect to localhost:50000 (connect: Connection refused)
3 : slave N S 04:24 0.56 67% 1% 23%

I'm able to migrate a VM from master to slave but not back
from slave to master
The answer is
/usr/bin/ssh -n -o BatchMode=yes slave /usr/sbin/vzmigrate master 111
OPT:master
Starting migration of CT 111 to master
Error: Can't connect to destination address using public key
Error: Please put your public key to destination node
VM 111 migration failed -
I have made several times the
rm /root/.ssh/known_hosts procedure but without success

But you know what ? I'm very happy with proxmox anyway.
Even with a one way cluster , I findyour work fantastic
Thanks
eric from belgium
hi,

short question: do you use the latest version?

pveca -a masterip is wrong, you need to:

Code:
pveca -a -h masterip
to remove a master config and rebuild:

1. remove rm /etc/pve/cluster.cfg from all nodes and master
2. remove the stored ssh keys: rm /root/.ssh/known_hosts from all nodes and master
3. create a new cluster master: pveca -c
4. join nodes to the master: pveca -a -h IP_MASTER