An IPsrcaddr resource is frequently failing with the error "No preferred source address defined" in a RHEL 7 High Availability cluster
Issue
- I have an
IPsrcaddrresource configured, and although the resource seems to be working fine,crm_monandpcs statusgive me the same message showing the resource 'not running' every few minutes:
Failed actions:
SrcAddr_monitor_10000 on node1.example.com 'not running' (7): call=311, status=complete, last-rc-change='Tue Oct 21 10:16:18 2014', queued=0ms, exec=0ms
- I frequently see an
IPsrcaddrresource failing afterNetworkManageranddhclientrenew a DHCP lease
Oct 21 10:12:20 node1 dhclient[876]: DHCPREQUEST on eno16782080 to 192.168.2.131 port 67 (xid=0x6dff13ae)
Oct 21 10:12:20 node1 NetworkManager: DHCPREQUEST on eno16782080 to 192.168.2.131 port 67 (xid=0x6dff13ae)
Oct 21 10:12:20 node1 dhclient[876]: DHCPACK from 192.168.2.131 (xid=0x6dff13ae)
Oct 21 10:12:20 node1 NetworkManager: DHCPACK from 192.168.2.131 (xid=0x6dff13ae)
Oct 21 10:12:20 node1 dhclient[876]: bound to 192.168.2.141 -- renewal in 238 seconds.
Oct 21 10:12:20 node1 NetworkManager: bound to 192.168.2.141 -- renewal in 238 seconds.
Oct 21 10:12:20 node1 NetworkManager[800]: <info> (eno16782080): DHCPv4 state changed renew -> renew
Oct 21 10:12:20 node1 NetworkManager[800]: <info> address 192.168.2.141
Oct 21 10:12:20 node1 NetworkManager[800]: <info> plen 23 (255.255.254.0)
Oct 21 10:12:20 node1 NetworkManager[800]: <info> gateway 192.168.2.1
Oct 21 10:12:20 node1 NetworkManager[800]: <info> server identifier 192.168.2.131
Oct 21 10:12:20 node1 NetworkManager[800]: <info> lease time 600
Oct 21 10:12:20 node1 NetworkManager[800]: <info> hostname 'node1.example.com'
Oct 21 10:12:20 node1 NetworkManager[800]: <info> nameserver '192.168.2.121'
Oct 21 10:12:20 node1 NetworkManager[800]: <info> domain name 'example.com'
Oct 21 10:12:20 node1 dbus-daemon: dbus[829]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Oct 21 10:12:20 node1 dbus[829]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Oct 21 10:12:20 node1 systemd: Starting Network Manager Script Dispatcher Service...
Oct 21 10:12:20 node1 dbus-daemon: dbus[829]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Oct 21 10:12:20 node1 dbus[829]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Oct 21 10:12:20 node1 systemd: Started Network Manager Script Dispatcher Service.
Oct 21 10:12:27 node1 crmd[1190]: notice: process_lrm_event: LRM operation SrcAddr_monitor_10000 (call=299, rc=7, cib-update=249, confirmed=false) not running
Oct 21 10:12:27 node1 crmd[1190]: notice: process_lrm_event: node1.staging.bell.ca-SrcAddr_monitor_10000:299 [ No preferred source address defined\n ]
Environment
- Red Hat Enterprise Linux (RHEL) 7 with the High Availability Add On
pacemaker- An
IPsrcaddrresource defined in the cluster configuration to set the default gateway to the address created by anIPaddr2resource NetworkManagermanaging network devices- The interface managing the interface on which the default route exists uses a DHCP address
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
