FS#51692 - [drbd-utils] DRBD service fails at boot

Attached to Project: Community Packages
Opened by Nicolas Moulonguet (eileon) - Friday, 04 November 2016, 14:47 GMT
Last edited by Sébastien Luttringer (seblu) - Saturday, 11 February 2017, 22:21 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

DRBD service fails at boot :

I have a cluster but no resource for DRBD so i guess it should be running at booting despite message :

DRBD -- please disable. Unless you are NOT using a cluster manager.

[root@archicomble system]# systemctl status drbd.service
● drbd.service - DRBD -- please disable. Unless you are NOT using a cluster manager.
Loaded: loaded (/usr/lib/systemd/system/drbd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since ven. 2016-11-04 14:57:32 CET; 35min ago
Process: 438 ExecStart=/lib/drbd/drbd start (code=exited, status=20)
Main PID: 438 (code=exited, status=20)

nov. 04 14:57:31 archicomble systemd[1]: Starting DRBD -- please disable. Unless you are NOT using a cluster manager....
nov. 04 14:57:32 archicomble systemd[1]: drbd.service: Main process exited, code=exited, status=20/n/a
nov. 04 14:57:33 archicomble drbd[438]: Starting DRBD resources: drbd.d/r0.res:9: in resource r0, on archicomble:
nov. 04 14:57:33 archicomble drbd[438]: IP 192.168.1.3 not found on this host.
nov. 04 14:57:32 archicomble systemd[1]: Failed to start DRBD -- please disable. Unless you are NOT using a cluster manager..
nov. 04 14:57:32 archicomble systemd[1]: drbd.service: Unit entered failed state.
nov. 04 14:57:32 archicomble systemd[1]: drbd.service: Failed with result 'exit-code'.

It can be run after boot.


Additional info:
* package version(s)

[root@archicomble system]# drbdadm -V
DRBDADM_BUILDTAG=GIT-hash:\ ec72a4ef618a2049639bb4f2f49709b0bbf8b111\ build\ by\ builduser@seblu\,\ 2016-10-21\ 19:23:58
DRBDADM_API_VERSION=1
DRBD_KERNEL_VERSION_CODE=0x080407
DRBDADM_VERSION_CODE=0x080909
DRBDADM_VERSION=8.9.9


* config and/or log files etc.

[root@archicomble system]# cat drbd.service
[Unit]
Description=DRBD -- please disable. Unless you are NOT using a cluster manager.
Wants=network-online.target sshd.service
After=network-online.target sshd.service

[Service]
Type=oneshot
RemainAfterExit=yes

ExecStart=/lib/drbd/drbd start
ExecStop=/lib/drbd/drbd stop

# Re-adjust everything on reload
ExecReload=/lib/drbd/drbd reload

[Install]
WantedBy=multi-user.target

systemd-networkd.service and so systemd-networkd-wait-online.service runing fine :


[root@archicomble moulonguetn]# systemctl status systemd-networkd.service
● systemd-networkd.service - Network Service
Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
Active: active (running) since ven. 2016-11-04 12:08:14 CET; 2h 11min ago
Docs: man:systemd-networkd.service(8)
Main PID: 388 (systemd-network)
Status: "Processing requests..."
Tasks: 1 (limit: 4915)
CGroup: /system.slice/systemd-networkd.service
└─388 /usr/lib/systemd/systemd-networkd

nov. 04 12:08:13 archicomble systemd[1]: Starting Network Service...
nov. 04 12:08:14 archicomble systemd-networkd[388]: Enumeration completed
nov. 04 12:08:14 archicomble systemd[1]: Started Network Service.
nov. 04 12:08:14 archicomble systemd-networkd[388]: enp2s0: Renamed to eth0
nov. 04 12:08:14 archicomble systemd-networkd[388]: eth0: Renamed to enp2s0
nov. 04 12:08:17 archicomble systemd-networkd[388]: enp2s0: Gained carrier
nov. 04 12:08:19 archicomble systemd-networkd[388]: enp2s0: Gained IPv6LL


[root@archicomble moulonguetn]# systemctl status systemd-networkd-wait-online.service
● systemd-networkd-wait-online.service - Wait for Network to be Configured
Loaded: loaded (/usr/lib/systemd/system/systemd-networkd-wait-online.service; enabled; vendor preset: disabled)
Active: active (exited) since ven. 2016-11-04 12:08:19 CET; 2h 11min ago
Docs: man:systemd-networkd-wait-online.service(8)
Process: 412 ExecStart=/usr/lib/systemd/systemd-networkd-wait-online (code=exited, status=0/SUCCESS)
Main PID: 412 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/systemd-networkd-wait-online.service

nov. 04 12:08:14 archicomble systemd[1]: Starting Wait for Network to be Configured...
nov. 04 12:08:19 archicomble systemd[1]: Started Wait for Network to be Configured.


Steps to reproduce:

Reproductible
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Saturday, 11 February 2017, 22:21 GMT
Reason for closing:  No response
Comment by Nicolas Moulonguet (eileon) - Friday, 04 November 2016, 17:17 GMT
I make drbd running at starting boot by adding in /usr/lib/systemd/system/drbd.service :

[Service]

ExecStartPre=/usr/bin/sleep 10
Comment by Sébastien Luttringer (seblu) - Saturday, 14 January 2017, 17:04 GMT
your systemctl outputs have different timestamps. Your network config is at 12:08 and your drbd failure at 14:57. doesn't look like a race condition between two?

A new version is out maybe it will fix your issue. Anyway that doesn't look like a package issue, more an upstream one.

Loading...