Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548800 - sys-cluster/drbd does not synchronise with IPv6 addresses due to incorrect init.d script
Summary: sys-cluster/drbd does not synchronise with IPv6 addresses due to incorrect in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 538732
  Show dependency tree
 
Reported: 2015-05-06 19:29 UTC by Dirk Tilger
Modified: 2016-07-13 19:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch against the init.d script that solved the problem for me (drbd-8.4.3.patch,386 bytes, patch)
2015-05-06 19:29 UTC, Dirk Tilger
Details | Diff
Patch against the init.d script that solved the problem for me (drbd-8.4.3.patch,259 bytes, patch)
2015-05-06 19:30 UTC, Dirk Tilger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Tilger 2015-05-06 19:29:01 UTC
Created attachment 402780 [details, diff]
Patch against the init.d script that solved the problem for me

The DRBD init script does not work with IPv6 addresses, because the square bracket used to separate IPv6 addresses from ports is fed into the shell command to execute in quoted form (as seen below).

-----8<-----
dirk@xen-host ~ $ sudo /etc/init.d/drbd restart
DRBD module version: 8.4.5
   userland version: 8.4.3
you should upgrade your drbd tools!
 * Starting DRBD resources:
 *   Setting drbd parameters DRBD module version: 8.4.5
   userland version: 8.4.3
you should upgrade your drbd tools!
[ echo -n .. 
interpreting ipv6:\[fe80::be5f:f4ff:fe0d:34e\]:1234 as ipv6:[\[fe80::be5f:f4ff:fe0d:34e\]]:1234
getaddrinfo \[fe80::be5f:f4ff:fe0d:34e\]: Name or service not known

 *   cmd /sbin/drbdsetup connect amristar ipv6:\[fe80::be5f:f4ff:fe0d:34e\]:1234 ipv6:\[fe80::6203:8ff:fe8e:c09e\]:1234 --csums-alg=sha256 --data-integrity-alg=sha256 --shared-secret=secret --cram-hmac-alg=sha256 --verify-alg=sha256 --protocol=A  failed!                                            [ !! ]
 * ERROR: drbd failed to start
-----8<-----

It can be fixed by modifying the init.d script using the patch supplied.
Comment 1 Dirk Tilger 2015-05-06 19:30:57 UTC
Created attachment 402782 [details, diff]
Patch against the init.d script that solved the problem for me
Comment 2 Dirk Tilger 2016-03-08 12:28:48 UTC
I've been using this since I posted it and it has been working like a charm. :-)
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-07-13 19:02:14 UTC
InGit, because infra needed it :-)