In some split-brain scenario the image is removed while the image_mapped
is false. This prevents the removal of image_map in OMAP and thus the
entry will not be removed until the daemon is restarted.
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
(cherry picked from commit
35398a5e17dc5a536ccd63417c937f2efe742654)
to_remove.emplace_back(global_image_id, info.instance_id);
}
- if (image_mapped && image_removed) {
+ if (image_removed) {
// local and peer images have been deleted
if (m_policy->remove_image(global_image_id)) {
schedule_action(global_image_id);