(Looks in source for v1.32.2, being the nearest version tagged)
/* No sha1 on WinDRBD, sorry */
if (autoVerifyAlgo == null || autoVerifyAlgo.equalsIgnoreCase("windrbd"))
{
supportsCramHmac = false;
}
...
if (supportsCramHmac)
{
// TODO: make configurable
appendLine("cram-hmac-alg sha1;");
// TODO: make configurable
appendLine("shared-secret \"%s\";", rscDfnData.getSecret());
}
Ergh - so it looks like disabling autoVerifyAlgo also disables the network shared secret!
I have:
root@virtual1:~# linstor c lp -p | egrep -i 'verify|alg'
| DrbdOptions/Net/verify-alg | sha256 |
| DrbdOptions/auto-verify-algo-allowed-list | crct10dif;crc32c;sha384;sha512;sha256;sha1;md5;windrbd |
| DrbdOptions/auto-verify-algo-disable | true |
Therefore I think I need to re-enable autoVerifyAlgo, but remove crct10dif from the list of algorithms. So now I try:
root@virtual1:~# linstor c sp DrbdOptions/auto-verify-algo-allowed-list "crc32c;sha384;sha512;sha256;sha1;md5;windrbd"
ERROR:
Description:
The key 'DrbdOptions/auto-verify-algo-allowed-list' is not whitelisted
Details:
Controller
Nope, that is not accepted. What if I just re-enable autoVerifyAlgo, now that 2 of the 3 nodes have the new drbd version?
root@virtual1:~# linstor c sp DrbdOptions/auto-verify-algo-disable false
INFO:
Updated linstor_db DRBD auto verify algorithm to 'sha512'
INFO:
Updated pm-335713f4 DRBD auto verify algorithm to 'sha512'
INFO:
...
root@virtual6:~# grep shared-secret /var/lib/linstor.d/*.res | wc -l
0
Nope.
root@virtual6:~# systemctl restart linstor-satellite; sleep 60
root@virtual6:~# grep shared-secret /var/lib/linstor.d/*.res | wc -l
17
Aha! But still not connecting ![]()
root@virtual6:~# drbdadm status linstor_db
linstor_db role:Secondary
disk:Outdated quorum:no open:no
virtual1 connection:Connecting
virtual5 connection:Connecting
root@virtual6:~# drbdadm dump linstor_db | grep -3 secret
}
net {
cram-hmac-alg sha1;
shared-secret XXXXXXXX;
verify-alg sha256;
}
}
All three nodes now show the same.
Force a disconnect and reconnect?
oot@virtual6:~# drbdadm disconnect linstor_db
root@virtual6:~# drbdadm connect linstor_db
root@virtual6:~# drbdadm status linstor_db
linstor_db role:Secondary
disk:Outdated quorum:no open:no
virtual1 connection:Connecting
virtual5 connection:Connecting
Still no good.
What about disconnect and reconnect from the primary side? Trying a different one here.
root@virtual1:~# drbdadm status pm-f00a673d
pm-f00a673d role:Primary
disk:UpToDate open:yes
virtual5 role:Secondary
peer-disk:UpToDate
virtual6 connection:StandAlone
root@virtual1:~# drbdadm disconnect pm-f00a673d
root@virtual1:~# drbdadm connect pm-f00a673d
root@virtual1:~# drbdadm status pm-f00a673d
pm-f00a673d role:Primary
disk:UpToDate open:yes
virtual5 role:Secondary
peer-disk:UpToDate
virtual6 role:Secondary
replication:SyncSource peer-disk:Inconsistent done:1.60
root@virtual1:~# drbdadm status pm-f00a673d
pm-f00a673d role:Primary
disk:UpToDate open:yes
virtual5 role:Secondary
peer-disk:UpToDate
virtual6 role:Secondary
replication:SyncSource peer-disk:Inconsistent done:4.31
That looks like it might be the way.