This bug was fixed in the package resource-agents - 1:4.1.1-2ubuntu1
---------------
resource-agents (1:4.1.1-2ubuntu1) cosmic; urgency=medium
* Fix heartbeat/ethmonitor not listing network interfaces without IP
addresses (LP: #1825250). Fixed by upstream patches:
- d/p/lp1825250-ethmonitor-check-if-interface-exists-by-link.patch:
ethmonitor: check if interface exists by link
- d/p/lp1825250-ethmonitor-fix-is_interface-regression.patch:
ethmonitor: fix is_interface() regression
-- Heitor Alves de Siqueira <[email protected]> Tue, 23 Apr 2019
14:07:57 -0300
** Changed in: resource-agents (Ubuntu Cosmic)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1825250
Title:
ethmonitor does not list interfaces without assigned IP address
Status in resource-agents package in Ubuntu:
Fix Released
Status in resource-agents source package in Xenial:
Fix Committed
Status in resource-agents source package in Bionic:
Fix Committed
Status in resource-agents source package in Cosmic:
Fix Released
Status in resource-agents source package in Disco:
Fix Released
Status in resource-agents source package in Eoan:
Fix Released
Status in resource-agents package in Debian:
New
Bug description:
[Impact]
Some network interfaces will not be monitored by ethmonitor
[Description]
The is_interface() function in ethmonitor tries to match an interface to a
list obtained from the 'ip' tool. It lists interfaces using the 'inet' family,
which omits interfaces that don't have an IP address assigned.
If the interface that we're looking for is e.g. a VLAN bridge that
does not have an IP address, it won't show up in the listing and
is_interface() will return false. ethmonitor will miss that interface,
and it won't be available for monitoring.
Upstream commits:
- https://github.com/ClusterLabs/resource-agents/commit/40d05029ce0b
- https://github.com/ClusterLabs/resource-agents/commit/c0ac191c73f1
[Test Case]
1) Ensure there's a network interface without an assigned IP address. For
example, virbr0-nic will be created automatically by uvt-kvm:
# ip addr show dev virbr0-nic
11: virbr0-nic: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel
master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:e9:5e:af brd ff:ff:ff:ff:ff:ff
2) Install pcs+arping and create a new ethmonitor resource with the target
interface:
# sudo apt update && sudo apt install pcs arping -y
# pcs resource create p_nic ocf:heartbeat:ethmonitor interface=virbr0-nic op
monitor timeout="10s"
3) Debug-start ethmonitor resource and check for "Interface does not exist
messages"
# pcs resource debug-start p_nic
Operation start for p_nic (ocf:heartbeat:ethmonitor) returned: 'ok' (0)
> stderr: WARNING: Interface virbr0-nic does not exist
> stderr: NOTICE: link_status: DOWN
[Regression Potential]
The regression potential is low, since we are relaxing the monitoring
conditions for interfaces without an assigned IP address. The patches have been
tested against Travis-CI before being merged upstream, and will be tested
against autopkgtest for each target distro.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resource-agents/+bug/1825250/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~group.of.nepali.translators
Post to : [email protected]
Unsubscribe : https://launchpad.net/~group.of.nepali.translators
More help : https://help.launchpad.net/ListHelp