Comment 14 for bug 1825250

Revision history for this message
Heitor Alves de Siqueira (halves) wrote :

Verified resource-agents from xenial-proposed according to test case from description:

root@xenial:~# dpkg -l | grep resource-agents
ii resource-agents 1:3.9.7-1ubuntu1.1 amd64 Cluster Resource Agents

root@xenial:~# ip addr show dev virbr0-nic
3: virbr0-nic: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether 4a:6b:29:99:b5:a7 brd ff:ff:ff:ff:ff:ff

root@xenial:~# pcs resource create p_nic ocf:heartbeat:ethmonitor interface=virbr0-nic op monitor timeout="10s"

root@xenial:~# pcs resource debug-start p_nic
Operation start for p_nic (ocf:heartbeat:ethmonitor) returned 0
 > stderr: DEBUG: link_status: 1 (1=up, 0=down)
 > stderr: DEBUG: watch for packet counter changes
 > stderr: DEBUG: ip -o -s link show dev virbr0-nic
 > stderr: DEBUG: ip -o -s link show dev virbr0-nic
 > stderr: DEBUG: RX_PACKETS_OLD: 0 RX_PACKETS_NEW: 0
 > stderr: DEBUG: ip -o -s link show dev virbr0-nic
 > stderr: DEBUG: RX_PACKETS_OLD: 0 RX_PACKETS_NEW: 0
 ...