When running a salt-run rebuild.node operation which fails before unmounting the drive but after zapping it we have stale data from osd.list(minion module).
The osd.remove func will raise an Exception [OSDNotFound] that needs to be handled by this function.
Otherwise the rebuild runner just exits with:
[ERROR ] Failed to remove OSD(s)... skipping data1
The following minions were skipped:
data1
Resolve any issues and run
salt-run rebuild.nodes data1
I also noted that the rebuild runner in master is not the same as in SES6. That needs to be forwardported eventually.