ProxMox 3.0 IMS fencing problem

bazzi

Active Member
Jun 4, 2010
107
2
36
I have found a problem on our IMS system.
Fencing will not work. When I will try to fence node timo:
Code:
fence_node timo -vv

I will get:
Code:
fence timo dev 0.0 agent fence_intelmodular result: error from agentagent args: port=3 nodename=timo agent=fence_intelmodular ipaddr=xxx.xxx.xxx.xxx login=snmpv3user passwd=xxxxxxxxx snmp_auth_prot=SHA snmp_sec_level=auth snmp_version=3
fence timo failed

And in the /var/log/messages:
Code:
Aug 13 19:24:44 sint fence_intelmodular: Parse error: Ignoring unknown option 'nodename=timo

It looks like something is going wrong with the translation of the node name to the port number.

I have searched the internet and this forum, but I can't find it. Also the code will not provide me the answer, because this code is new for me. Does anyone have a pointer where to start?

Additional information:
/etc/pve/cluster.conf:
Code:
<?xml version="1.0"?><cluster config_version="102" name="IMS-EVO">
  <cman keyfile="/var/lib/pve-cluster/corosync.authkey"/>
  <fencedevices>
    <fencedevice agent="fence_intelmodular" ipaddr="xxx.xxx.xxx.xxx" login="snmpv3user" name="ims" passwd="xxxxxxxxx" snmp_auth_prot="SHA" snmp_sec_level="auth" snmp_version="3"/>
  </fencedevices>
  <clusternodes>
    <clusternode name="sint" nodeid="1" votes="1">
      <fence>
        <method name="1">
          <device name="ims" port="1"/>
        </method>
      </fence>
    </clusternode>
    <clusternode name="rembo" nodeid="2" votes="1">
      <fence>
        <method name="1">
          <device name="ims" port="2"/>
        </method>
      </fence>
    </clusternode>
    <clusternode name="timo" nodeid="3" votes="1">
      <fence>
        <method name="1">
          <device name="ims" port="3"/>
        </method>
      </fence>
    </clusternode>
  </clusternodes>
  <rm/>
</cluster>

clustat:
Code:
Cluster Status for IMS-EVO @ Tue Aug 13 19:54:54 2013
Member Status: Quorate


 Member Name                                                     ID   Status
 ------ ----                                                     ---- ------
 sint                                                                1 Online, Local
 rembo                                                               2 Online
 timo                                                                3 Online
(no rgmanager, but I havn't got any HA VM at this point because of this.)

pvecm
Code:
Version: 6.2.0
Config Version: 102
Cluster Name: IMS-EVO
Cluster Id: 9351
Cluster Member: Yes
Cluster Generation: 94868
Membership state: Cluster-Member
Nodes: 3
Expected votes: 3
Total votes: 3
Node votes: 1
Quorum: 2
Active subsystems: 6
Flags:
Ports Bound: 0 177
Node name: sint
Node ID: 1
Multicast addresses: 239.192.36.171
Node addresses: 10.221.184.60

pveversion -v
Code:
pve-manager: 3.0-23 (pve-manager/3.0/957f0862)
running kernel: 2.6.32-22-pve
proxmox-ve-2.6.32: 3.0-107
pve-kernel-2.6.32-22-pve: 2.6.32-107
pve-kernel-2.6.32-11-pve: 2.6.32-66
pve-kernel-2.6.32-20-pve: 2.6.32-100
pve-kernel-2.6.32-19-pve: 2.6.32-96
pve-kernel-2.6.32-18-pve: 2.6.32-88
pve-kernel-2.6.32-7-pve: 2.6.32-60
lvm2: 2.02.95-pve3
clvm: 2.02.95-pve3
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-1
pve-cluster: 3.0-4
qemu-server: 3.0-20
pve-firmware: 1.0-23
libpve-common-perl: 3.0-4
libpve-access-control: 3.0-4
libpve-storage-perl: 3.0-8
vncterm: 1.1-4
vzctl: 4.0-1pve3
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-13
ksm-control-daemon: 1.1-1

fence_tool ls
Code:
fence domain
member count  3
victim count  0
victim now    0
master nodeid 2
wait state    none
members       1 2 3
 
Last edited:
Ok i found the bug.

in the file /usr/share/fence/fencing_snmp.py on row 72 it states:
Code:
                if (self.options.has_key("--"+item[0])):
                    cmd += " -%s '%s'"% (item[1], self.quote_for_run(self.options["--" + item[[B][COLOR=#ff0000]1[/COLOR][/B]]]))

And it need to be:
Code:
                if (self.options.has_key("--"+item[0])):
                    cmd += " -%s '%s'"% (item[1], self.quote_for_run(self.options["--" + item[[B][COLOR=#008000]0[/COLOR][/B]]]))

How does I change it permantly? Where do I need to tell? Because else it will be overwritten with a update...
 
Last edited:
I still get the warning:

Parse error: Ignoring unknown option 'nodename=XXXX'

But seems it works anyways.
 
Yes that error will still popup in /var/log/messages, but it is fencing again. Before it was failing.
 
are you sure that you run latest 3.1? the ISO does not contain the fix, you need to upgrade to latest packages.
 
are you sure that you run latest 3.1? the ISO does not contain the fix, you need to upgrade to latest packages.
Sorry you are totaly right! I run the update again and the fence agents are updated!
 
A have same problem:

Oct 29 17:18:57 pve02 fence_ifmib: Parse error: Ignoring unknown option 'nodename=pve03


How to solve it?
 

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!