cluster configuration question

  • Thread starter Thread starter gmg777
  • Start date Start date
G

gmg777

Guest
Hello All!
I have a question concerning cluster configuration.
When adding a machine to the cluster, an error appears:
Code:
x5prox:~# pveca -a -h 46.XXX.XXX.197
missing ip address (or use option -h)
Code:
x5prox:~# pveca -i
Use of uninitialized value in concatenation (.) or string at /usr/bin/pveca line 144.
0 x5prox  -
x5prox:~# pveca -l
Use of uninitialized value in concatenation (.) or string at /usr/bin/pveca line 132.
local node '' not part of cluster
Code:
x5prox:~# pveversion -v
pve-manager: 1.8-15 (pve-manager/1.8/5754)
running kernel: 2.6.32-4-pve
proxmox-ve-2.6.32: 1.8-32
pve-kernel-2.6.32-4-pve: 2.6.32-32
qemu-server: 1.1-30
pve-firmware: 1.0-11
libpve-storage-perl: 1.0-17
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-11
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.14.0-3
ksm-control-daemon: 1.0-5
x5prox:~#
System was installed from CD (bare-metal installation), and few days ago upgraded from proxmox 1.7 to 1.8
 
Hi,
what shows "pveca -l" on the master? Was the Clustercreation on the master ( pveca -c ) successfull ??

"missing ip address" is strange - is there perhaps an control character inside the address?

Udo
 
Yes, Clustercreation on the master ( pveca -c ) was successful, without any problems.
This is output on master:
Code:
proxmox_eq10:~# pveca -l
CID----IPADDRESS----ROLE-STATE--------UPTIME---LOAD----MEM---DISK
 1 : 46.ХХХ.ХХХ.197     M     A           04:26   0.01     1%     3%
proxmox_eq10:~#
and of course, I checked several times the syntax on node...
 
Yes, Clustercreation on the master ( pveca -c ) was successful, without any problems.
This is output on master:
Code:
proxmox_eq10:~# pveca -l
CID----IPADDRESS----ROLE-STATE--------UPTIME---LOAD----MEM---DISK
 1 : 46.ХХХ.ХХХ.197     M     A           04:26   0.01     1%     3%
proxmox_eq10:~#
and of course, I checked several times the syntax on node...
Hi,
only guessing:
the time is on both nodes right?

Do you have set the locales ( dpkg-reconfigure locales ) on both nodes? I don't think that this has anything to do, but perhaps...

You can use an name instead of the ip - but then the name/ip must be in /etc/hosts.

Udo
 
Hi,
Thanks for help, Udo.
Now I checked again the locales and the time on both servers - master and node - but all OK, the time is right, locales - en_US.UTF-8
And I tried to change the /etc/hosts on node, add IP and name of master server, but used an name instead of the IP in command was without effect - the same error, "missing ip address"...
 
Please can you post your network config /etc/network/interfaces?

You need to assign an IP address to either eth0 or vmbr0.
 
Please can you post your network config /etc/network/interfaces?
You need to assign an IP address to either eth0 or vmbr0.
OK, this is my network config on node, all works well:
Code:
auto lo
iface lo inet loopback
#
# device: eth0
auto  eth0
iface eth0 inet static
address   46.4.XXX.80
broadcast 46.4.XXX.127
netmask   255.255.255.192
gateway   46.4.XXX.65
pointopoint 46.4.XXX.65
up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up mii-tool -F 100baseTx-FD eth0
#
auto vmbr0
iface vmbr0 inet static
address 46.4.XXX.80
netmask 255.255.255.192
broadcast 46.4.XXX.127
bridge_ports none
bridge_stp off
bridge_fd 0
#
auto vmbr1
iface vmbr1 inet static
address  10.10.0.1
netmask  255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up iptables -t nat -A POSTROUTING -s '10.10.0.0/24' -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.0.0/24' -o eth0 -j MASQUERADE
#
up ip route add 46.4.XXX.116/32 dev venet0
up ip route add 46.4.XXX.117/32 dev venet0
 
Not sure if I see a configuration problem but :

You defined the same ip for vmbr0 and eth0

You should define the ip on eth0 or define it on vmbr0 and bridge it to eth0

Do you see the problem?
 
BTW, PVE cluster only works if the host are inside the same physical network (this will be a requirement in pve 2.0)
 
Does it help if you correctly intend the lines?
Dietmar, what you mean by "intend the lines"? I'm not sure I can understand the meaning.

Not sure if I see a configuration problem but :
You defined the same ip for vmbr0 and eth0
You should define the ip on eth0 or define it on vmbr0 and bridge it to eth0
Do you see the problem?
Ok, concerning the same IP in eth0 and vmbr0, it is recommendation of our datacener - Hetzher. This is page in wiki Hetzher about Proxmox (http://wiki.hetzner.de/index.php/Proxmox_VE). See examples...
And this network config working, uptime of server now about 4months, and all our VPS (OpenVZ and KVM) works without any internet access problems...

BTW, PVE cluster only works if the host are inside the same physical network (this will be a requirement in pve 2.0)
because of the information i think my question about cluster configuration now not actualy, because our servers in different datacenters...
Thank you, Dietmar!