Open masnax opened 2 months ago
Setting as draft until I can sort out the last test.
@UtkarshBhatthere @sabaini This one is now ready for review, thank you :)
This should now be rebased and ready for review, thanks :)
@sabaini Thanks for merging the other one, I've now rebased this one.
Closes #255
As discussed in Riga, this refactors the node removal process to rely on the microcluster API instead of directly implementing removal in the MicroCeph CLI.
The main changes are that the
removeNode
function and all its helpers have been moved to theceph
package. TheremoveNode
function itself has been wrapped in aPreRemove
to match the corresponding hook in microcluster. Now in the CLI, we can simply callDeleteClusterMember
and thePreRemove
hook will automatically execute on that node as it is passed to microcluster when we callapp.Start
.This will allow MicroCloud to utilize MicroCeph's API to tear down the cluster in case of an error during initialization. Additionally, it cleans up MicroCeph so there isn't so much internal implementation in the CLI package.