canonical / juju-verify

https://launchpad.net/juju-verify
GNU General Public License v3.0
2 stars 7 forks source link

[Ceph] Availability zone check calculates badly available space #116

Closed esunar closed 2 years ago

esunar commented 2 years ago

The check availability zone does not take into account that the kb_avail of parent will be changed after the children are removed.

An example with attempt to remove 2 children: parent with 5 children has 1 000 kB free space each child used the 400 kB space (2 000 kB total) each child has 200 kB of free space (1 000 kB total)

total available space after removing 2 units: 1 000kB - 2x200kB the total space that must moved to other units: 2x400kB check failed, due 600kB <= 800kB


Imported from Launchpad using lp2gh.

esunar commented 2 years ago

(by rgildein) PR: https://github.com/canonical/juju-verify/pull/40