clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
519 stars 29 forks source link

KeepAlived bundle issue #2539

Open ngocannguyen02 opened 2 years ago

ngocannguyen02 commented 2 years ago

Hello,

I'm trying to make it work keepalived on ClearLinux

These are the steps :

root@node1/etc/systemd/system/multi-user.target.wants # systemctl status keepalived ○ keepalived.service - Keepalive Daemon (LVS and VRRP) Loaded: loaded (/usr/lib/systemd/system/keepalived.service; enabled; vendor preset: disabled) Active: inactive (dead) since Sat 2022-02-05 20:17:52 UTC; 35s ago Process: 11574 ExecStart=/usr/sbin/keepalived --dont-fork $DAEMON_ARGS (code=exited, status=0/SUCCESS) Main PID: 11574 (code=exited, status=0/SUCCESS)

I'm expecting to see a keepalived process in my ps command

On ubuntu I got this

`● keepalived.service - Keepalive Daemon (LVS and VRRP) Loaded: loaded (/lib/systemd/system/keepalived.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2022-02-05 20:08:33 UTC; 18min ago Main PID: 1355 (keepalived) Tasks: 2 (limit: 1146) Memory: 1.4M CGroup: /system.slice/keepalived.service ├─1355 /usr/sbin/keepalived --dont-fork └─1356 /usr/sbin/keepalived --dont-fork

Feb 05 20:08:33 ip-172-31-63-24 Keepalived[1355]: Running on Linux 5.11.0-1028-aws #31~20.04.1-Ubuntu SMP Fri Jan 14 14:37:50 UTC 2022 (built for Linux 5.4.151) Feb 05 20:08:33 ip-172-31-63-24 Keepalived[1355]: Command line: '/usr/sbin/keepalived' '--dont-fork' Feb 05 20:08:33 ip-172-31-63-24 Keepalived[1355]: Opening file '/etc/keepalived/keepalived.conf'. Feb 05 20:08:33 ip-172-31-63-24 Keepalived[1355]: Remove a zombie pid file /run/keepalived.pid Feb 05 20:08:33 ip-172-31-63-24 Keepalived[1355]: Starting VRRP child process, pid=1356 Feb 05 20:08:33 ip-172-31-63-24 Keepalived_vrrp[1356]: Registering Kernel netlink reflector Feb 05 20:08:33 ip-172-31-63-24 Keepalived_vrrp[1356]: Registering Kernel netlink command channel Feb 05 20:08:33 ip-172-31-63-24 Keepalived_vrrp[1356]: Opening file '/etc/keepalived/keepalived.conf'. Feb 05 20:08:33 ip-172-31-63-24 Keepalived_vrrp[1356]: Registering gratuitous ARP shared channel Feb 05 20:08:33 ip-172-31-63-24 Keepalived_vrrp[1356]: (VI_1) Entering MASTER STATE`

Wondering what am I missing ? Thanks

fenrus75 commented 2 years ago

i found the issue with the missing service files and fixed that at least

On Sat, Feb 5, 2022 at 12:29 PM ngocannguyen02 @.***> wrote:

Hello,

I'm trying to make it work keepalived on ClearLinux

These are the steps :

  • swupd bundle-add keepalived
  • since the services are not created in /etc/* I took it from an ubuntu installation (file: keepalived.service) to /usr/lib/systemd/system/keepalived.service
  • systemctl enable keepalived
  • systemctl start keepalived

@.***/etc/systemd/system/multi-user.target.wants # systemctl status keepalived ○ keepalived.service - Keepalive Daemon (LVS and VRRP) Loaded: loaded (/usr/lib/systemd/system/keepalived.service; enabled; vendor preset: disabled) Active: inactive (dead) since Sat 2022-02-05 20:17:52 UTC; 35s ago Process: 11574 ExecStart=/usr/sbin/keepalived --dont-fork $DAEMON_ARGS (code=exited, status=0/SUCCESS) Main PID: 11574 (code=exited, status=0/SUCCESS)

I'm expecting to see a keepalived process in my ps command

On ubuntu I got this

`● keepalived.service - Keepalive Daemon (LVS and VRRP) Loaded: loaded (/lib/systemd/system/keepalived.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2022-02-05 20:08:33 UTC; 18min ago Main PID: 1355 (keepalived) Tasks: 2 (limit: 1146) Memory: 1.4M CGroup: /system.slice/keepalived.service ├─1355 /usr/sbin/keepalived --dont-fork └─1356 /usr/sbin/keepalived --dont-fork

Feb 05 20:08:33 ip-172-31-63-24 Keepalived[1355]: Running on Linux 5.11.0-1028-aws #31 https://github.com/clearlinux/distribution/issues/31~20.04.1-Ubuntu SMP Fri Jan 14 14:37:50 UTC 2022 (built for Linux 5.4.151) Feb 05 20:08:33 ip-172-31-63-24 Keepalived[1355]: Command line: '/usr/sbin/keepalived' '--dont-fork' Feb 05 20:08:33 ip-172-31-63-24 Keepalived[1355]: Opening file '/etc/keepalived/keepalived.conf'. Feb 05 20:08:33 ip-172-31-63-24 Keepalived[1355]: Remove a zombie pid file /run/keepalived.pid Feb 05 20:08:33 ip-172-31-63-24 Keepalived[1355]: Starting VRRP child process, pid=1356 Feb 05 20:08:33 ip-172-31-63-24 Keepalived_vrrp[1356]: Registering Kernel netlink reflector Feb 05 20:08:33 ip-172-31-63-24 Keepalived_vrrp[1356]: Registering Kernel netlink command channel Feb 05 20:08:33 ip-172-31-63-24 Keepalived_vrrp[1356]: Opening file '/etc/keepalived/keepalived.conf'. Feb 05 20:08:33 ip-172-31-63-24 Keepalived_vrrp[1356]: Registering gratuitous ARP shared channel Feb 05 20:08:33 ip-172-31-63-24 Keepalived_vrrp[1356]: (VI_1) Entering MASTER STATE`

Wondering what am I missing ? Thanks

— Reply to this email directly, view it on GitHub https://github.com/clearlinux/distribution/issues/2539, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FLBFGPMDHYBCXC2OXDUZWCBHANCNFSM5NUMZMFA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

ngocannguyen02 commented 2 years ago

So you found the missing service file but didnt succeed to make it work the whole keepalived right ?