def _close_volume(self, **kwargs):
        LOG.debug("closing encrypted volume %s", self.dev_path)
        utils.execute('cryptsetup', 'luksClose', self.dev_name,
                      run_as_root=True, check_exit_code=True,
                      attempts=3)
Closes the device (effectively removes the dm-crypt mapping).
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/volume/encryptors/luks.py/LuksEncryptor._close_volume