Closed blampe closed 2 years ago
Thanks for the report.
That's what I get from simply copy&pasting the json in my IDE :/
Actually, we don't need 90% of those fields, they are just a parsing hazard. I'll make a PR which removes all those fields shortly.
fwiw, we're receiving the same error. this is what we have in the drbdsetup status json.
{
"peer-node-id": 1,
"name": "srv1",
"connection-state": "Connected",
"congested": false,
"peer-role": "Secondary",
"ap-in-flight": 18446744073709551584,
"rs-in-flight": 0,
"peer_devices": [
{
"volume": 0,
"replication-state": "Established",
"peer-disk-state": "UpToDate",
"peer-client": false,
"resync-suspended": "no",
"received": 0,
"sent": 964712,
"out-of-sync": 0,
"pending": 0,
"unacked": 0,
"has-sync-details": false,
"has-online-verify-details": false,
"percent-in-sync": 100.00
} ]
}
We also noticed that drbdutils stores the same field as unit64. https://github.com/LINBIT/drbd-utils/blob/master/user/v9/drbdsetup.c#L2737
We fixed the issue in short term by disconnecting and reconnecting the secondary node.
Fixed version released as 1.1.1
Relevant portion of
drbdsetup status --json
: