piraeusdatastore / piraeus-ha-controller

High Availability Controller for stateful workloads using storage provisioned by Piraeus
Apache License 2.0
15 stars 8 forks source link

drbd: only parse needed items #22

Closed WanzenBug closed 2 years ago

WanzenBug commented 2 years ago

The ad-hoc parser for the output of drbdsetup status would sometimes fail. This was caused by large values in fields that only expected "int".

Instead of manually checking the possible range, we can just remove those fields, as they do not hold any relevant information for the inner workings of the HA Controller.

Fixes #21