If failed to attach the volume while calling self.driver.attach_volume, the function _attach_volume will destroy the Volumemapping table of this failed volume. So, this failed volume will not be deleted in _fail_container.
Deleting the volume which auto_remove is true before destroying its volumemapping.
If failed to attach the volume while calling self.driver. attach_ volume, the function _attach_volume will destroy the Volumemapping table of this failed volume. So, this failed volume will not be deleted in _fail_container.
Deleting the volume which auto_remove is true before destroying its volumemapping.