keepalived.service is not enabled

Bug #1810538 reported by Andreas Florath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Expired
Medium
Unassigned

Bug Description

After a successful installation of OpenStack using openstack-ansible, the keepalived.service is not enabled by default. After a reboot the service is not started automatically:

# systemctl is-enabled keepalived.service
disabled

Revision history for this message
Andreas Florath (ansreas) wrote :

While implementing a workaround using an additional Ansible playbook, I recognized that the following construct does *not* enable the service:

- name: Enable keepalived.service
  become: true
  become_user: root
  systemd:
    name: keepalived
    enabled: yes
    state: started

(As a workaround, I'm using

  shell: systemctl enable keepalived.service
)

Maybe the implementation in openstack-ansible also uses ansible 'systemd' and the problem is a problem of the underlying ansible module?

Revision history for this message
Mohammed Naser (mnaser) wrote :

Hi,

Can you please supply the following?

systemctl status keepalived
journalctl -u keepalived

Thanks

Changed in openstack-ansible:
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Andreas Florath (ansreas) wrote :
Download full text (4.3 KiB)

Sorry for the delay, but I had to start over the complete installation from scratch for this.

# systemctl status keepalived
● keepalived.service - Keepalive Daemon (LVS and VRRP)
   Loaded: loaded (/lib/systemd/system/keepalived.service; disabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/keepalived.service.d
           └─override.conf
   Active: active (running) since Thu 2019-01-10 15:00:06 UTC; 1h 12min ago
 Main PID: 54921 (keepalived)
    Tasks: 3 (limit: 8192)
   CGroup: /system.slice/keepalived.service
           ├─54921 /usr/sbin/keepalived
           ├─54923 /usr/sbin/keepalived
           └─54925 /usr/sbin/keepalived

Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: (internal): track script pingable_check_script not found, ignoring...
Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: Truncating auth_pass to 8 characters
Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: (external): track script haproxy_check_script not found, ignoring...
Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: (external): track script pingable_check_script not found, ignoring...
Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: Using LinkWatch kernel netlink reflector...
Jan 10 15:00:07 vos10 Keepalived_vrrp[54925]: VRRP_Instance(external) Transition to MASTER STATE
Jan 10 15:00:07 vos10 Keepalived_vrrp[54925]: VRRP_Instance(internal) Transition to MASTER STATE
Jan 10 15:00:08 vos10 Keepalived_vrrp[54925]: VRRP_Instance(external) Entering MASTER STATE
Jan 10 15:00:08 vos10 Keepalived_vrrp[54925]: VRRP_Group(haproxy) Syncing instances to MASTER state
Jan 10 15:00:08 vos10 Keepalived_vrrp[54925]: VRRP_Instance(internal) Entering MASTER STATE

# journalctl -u keepalived
-- Logs begin at Thu 2019-01-10 13:01:11 UTC, end at Thu 2019-01-10 16:11:10 UTC. --
Jan 10 15:00:06 vos10 systemd[1]: Starting Keepalive Daemon (LVS and VRRP)...
Jan 10 15:00:06 vos10 Keepalived[54915]: Starting Keepalived v1.3.9 (10/21,2017)
Jan 10 15:00:06 vos10 Keepalived[54915]: Opening file '/etc/keepalived/keepalived.conf'.
Jan 10 15:00:06 vos10 Keepalived[54921]: Starting Healthcheck child process, pid=54923
Jan 10 15:00:06 vos10 Keepalived_healthcheckers[54923]: Opening file '/etc/keepalived/keepalived.conf'.
Jan 10 15:00:06 vos10 Keepalived[54921]: Starting VRRP child process, pid=54925
Jan 10 15:00:06 vos10 systemd[1]: Started Keepalive Daemon (LVS and VRRP).
Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: Registering Kernel netlink reflector
Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: Registering Kernel netlink command channel
Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: Registering gratuitous ARP shared channel
Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: Opening file '/etc/keepalived/keepalived.conf'.
Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: WARNING - default user 'keepalived_script' for script execution does not exist - please create.
Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: Failed to set default user for notify script /etc/keepalived/haproxy_notify.sh - ignoring
Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: Unable to set default user for vrrp script haproxy_check_script - removing
Jan 10 15:00:06 vos10 Keepalived_vrrp[54925]: Unable to set default user for vrrp script pin...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openstack-ansible because there has been no activity for 60 days.]

Changed in openstack-ansible:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.