Bug 1393345 - ovirt-fence-kdump-listener service unit file for systemd does not contain dependency on postgresql
Summary: ovirt-fence-kdump-listener service unit file for systemd does not contain dep...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.0.0
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ovirt-4.1.0-beta
: ---
Assignee: Martin Perina
QA Contact: Petr Matyáš
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-09 11:28 UTC by Tim Speetjens
Modified: 2019-12-16 07:23 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-25 00:54:17 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2758411 0 None None None 2016-11-09 13:23:38 UTC
Red Hat Product Errata RHEA-2017:0997 0 normal SHIPPED_LIVE Red Hat Virtualization Manager (ovirt-engine) 4.1 GA 2017-04-18 20:11:26 UTC
oVirt gerrit 68060 0 None None None 2016-12-09 13:06:52 UTC

Description Tim Speetjens 2016-11-09 11:28:10 UTC
Description of problem:
ovirt-fence-kdump-listener service starts up too early and cannot connect to the database at boot time.

Version-Release number of selected component (if applicable):
ovirt-engine-tools-4.0.4.4-0.1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Reboot the system
2. Find 2 warnings in journalctl --unit ovirt-fence-kdump-listener.service
3. Notice that these warnings have timestamp, earlier than the first startup messages for postgresql

Actual results:
Service cannot connect to database at boot, and procudes the following warnings, in the systemd-journal:
Oct 28 10:22:23 rhvm4.example.com ovirt-fence-kdu[638]: 2016-10-28 10:22:23,495 ovirt-fence-kdump-listener: WARNING _db_sync:303 Database connection is not available, synchronization will be postponed.
Oct 28 10:22:23 rhvm4.example.com ovirt-fence-kdump-listener.py[638]: ovirt-fence-kdump-listener[638] WARNING _db_sync:303 Database connection is not available, synchronization will be postponed.


Expected results:
Service starts up after Postgres is up, if it needs to connect to it.
No warnings in systemd journal.

Additional info:
Unit file misses dependencies. Adding the same as the ovirt-engine unit file, warning disappears.

Comment 5 Pavol Brilla 2017-02-02 16:16:17 UTC
# ls -l /etc/systemd/system/multi-user.target.wants/ovirt-fence-kdump-listener.service
lrwxrwxrwx. 1 root root 58 Jan 23 19:33 /etc/systemd/system/multi-user.target.wants/ovirt-fence-kdump-listener.service -> /usr/lib/systemd/system/ovirt-fence-kdump-listener.service

# more /etc/systemd/system/multi-user.target.wants/ovirt-fence-kdump-listener.service
[Unit]
Description=oVirt Engine fence_kdump listener
After=network.target postgresql.service

[Service]
Type=notify
User=ovirt
Group=ovirt
ExecStart=/usr/share/ovirt-engine/services/ovirt-fence-kdump-listener/ovirt-fence-kdump-listener.py --systemd=notify $EXTRA_ARGS start
EnvironmentFile=-/etc/sysconfig/ovirt-fence-kdump-listener

[Install]
WantedBy=multi-user.target


Verified by After=network.target postgresql.service


Note You need to log in before you can comment on or make changes to this bug.