Configuring Keepalived to Run in a Dedicated Namespace on Red Hat Enterprise Linux 8.10

Solution In Progress - Updated -

Issue

  • Configuring keepalived in a dedicated namespace using the net_namespace parameter in /etc/keepalived/keepalived.conf causes systemctl start keepalived to fail with a timeout:
● keepalived.service - LVS and VRRP High Availability Monitor
   Loaded: loaded (/usr/lib/systemd/system/keepalived.service; disabled; vendor preset: disabled)
   Active: failed (Result: timeout) since Fri 2024-10-18 15:16:28 EDT; 7s ago
  Process: 4435 ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS (code=exited, status=0/SUCCESS)
    Tasks: 2 (limit: 36091)
   Memory: 1.5M
   CGroup: /system.slice/keepalived.service
           ├─4436 /usr/sbin/keepalived -D
           └─4437 /usr/sbin/keepalived -D

Oct 18 15:15:01 rhel8u10.example.com Keepalived_vrrp_LB[4437]: Sending gratuitous ARP on enp7s0 for 192.168.0.254
Oct 18 15:15:06 rhel8u10.example.com Keepalived_vrrp_LB[4437]: (VI_1) Sending/queueing gratuitous ARPs on enp7s0 for 192.168.0.254
Oct 18 15:15:06 rhel8u10.example.com Keepalived_vrrp_LB[4437]: Sending gratuitous ARP on enp7s0 for 192.168.0.254
Oct 18 15:15:06 rhel8u10.example.com Keepalived_vrrp_LB[4437]: Sending gratuitous ARP on enp7s0 for 192.168.0.254
Oct 18 15:15:06 rhel8u10.example.com Keepalived_vrrp_LB[4437]: Sending gratuitous ARP on enp7s0 for 192.168.0.254
Oct 18 15:15:06 rhel8u10.example.com Keepalived_vrrp_LB[4437]: Sending gratuitous ARP on enp7s0 for 192.168.0.254
Oct 18 15:15:06 rhel8u10.example.com Keepalived_vrrp_LB[4437]: Sending gratuitous ARP on enp7s0 for 192.168.0.254
Oct 18 15:16:28 rhel8u10.example.com systemd[1]: keepalived.service: start operation timed out. Terminating.
Oct 18 15:16:28 rhel8u10.example.com systemd[1]: keepalived.service: Failed with result 'timeout'.
Oct 18 15:16:28 rhel8u10.example.com systemd[1]: Failed to start LVS and VRRP High Availability Monitor.

Environment

  • Red Hat Enterprise Linux (RHEL) 8
  • keepalived-2.1.5-9.el8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content