Extract /proc/drbd parsing code into DRBD8Info
As the DRBD8 class got bigger due to the previous merge of BaseDRBD, now parts of it are ripped out into DRBD8Info. This new class parses /proc/drbd and exposes the information in an easily accessible way. This allowed to simplify some methods in DRBD8 and do make the tests more concise. Signed-off-by:Thomas Thrainer <thomasth@google.com> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
Showing
- lib/backend.py 1 addition, 1 deletionlib/backend.py
- lib/block/drbd.py 145 additions, 126 deletionslib/block/drbd.py
- lib/watcher/nodemaint.py 1 addition, 1 deletionlib/watcher/nodemaint.py
- test/data/proc_drbd80-emptyline.txt 1 addition, 0 deletionstest/data/proc_drbd80-emptyline.txt
- test/hs/Test/Ganeti/Block/Drbd/Parser.hs 1 addition, 1 deletiontest/hs/Test/Ganeti/Block/Drbd/Parser.hs
- test/py/ganeti.block.bdev_unittest.py 28 additions, 32 deletionstest/py/ganeti.block.bdev_unittest.py
Loading
Please register or sign in to comment