[SOLVED] HA: Use of uninitialized value in ha-manager

admin_penguin

New Member
Oct 20, 2017
4
0
1
39
Good morning everyone,

I'm posting today because i would like to use the great HA features that proxmox offers but it seems some variable is not defined so when i try to migrate manually (with the gui or with "ha-manager migrate vm:100 proxmox4") the VM it doesn't work.

The problem that pops out is :
user@proxmox5 [~] $ ha-manager migrate vm:100 proxmox4
Use of uninitialized value in string eq at /usr/share/perl5/PVE/API2/HA/Resources.pm line 41.

user@proxmox5 [~] $ ha-manager status
quorum OK
service vm:100 (proxmox6, queued)

user@proxmox5 [~] $ ha-manager config
vm:100
comment a
group test
state started

user@proxmox5 [~] ~ pveversion -v
proxmox-ve: 4.4-96 (running kernel: 4.4.83-1-pve)
pve-manager: 4.4-18 (running version: 4.4-18/ef2610e8)
pve-kernel-4.4.83-1-pve: 4.4.83-96
lvm2: 2.02.111-2.2+deb8u1
corosync-pve: 2.4.2-2~pve4+1
libqb0: 1.0.1-1
pve-cluster: 4.0-53
qemu-server: 4.0-113
pve-firmware: 1.1-11
libpve-common-perl: 4.0-96
libpve-access-control: 4.0-23
libpve-storage-perl: 4.0-76
pve-libspice-server1: 0.12.8-2
vncterm: 1.3-2
pve-docs: 4.4-4
pve-qemu-kvm: 2.9.0-5~pve4
pve-container: 1.0-101
pve-firewall: 2.0-33
pve-ha-manager: 1.0-41
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u3
lxc-pve: 2.0.7-4
lxcfs: 2.0.6-pve1
criu: 1.6.0-1
novnc-pve: 0.5-9
smartmontools: 6.5+svn4324-1~pve80

Thank's in advance.
 

Attachments

  • Screenshot from 2017-10-20 10-05-54.png
    Screenshot from 2017-10-20 10-05-54.png
    48.7 KB · Views: 23
Last edited:
Hi,

user@proxmox5 [~] $ ha-manager status
quorum OK
service vm:100 (proxmox6, queued)

The service is still queued, i.e., it was never really added to HA, probably because either pve-ha-lrm (local resource manager) and/or pve-ha-crm (cluster resource manager) are not running.

Normally the `ha-manager status`command should looks something like this:
Code:
# ha-manager st
quorum OK
master pegasus (active, Fri Oct 20 11:10:39 2017)
lrm andromeDA (active, Fri Oct 20 11:10:33 2017)
lrm pegasus (idle, Fri Oct 20 11:10:41 2017)
service ct:101 (andromeDA, stopped)
(note the master and lrm outputs which is missing from your output)

can you give me the output of
Code:
systemctl status pve-ha-lrm.service pve-ha-crm.service

Use of uninitialized value in string eq at /usr/share/perl5/PVE/API2/HA/Resources.pm line 41.

This is merely a warning resulting from the unfit state of above, no harm by itself - but should be still fixed, so thanks for the report.
 
  • Like
Reactions: admin_penguin
It was in fact the hardware watchdog that wasn't working !

Setting it to softdog in /etc/default/pve-ha-manager worked !

Thank's again you're awesome !
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!