nova/nova/tests/unit/volume
Eli Qiao 11e20dd6f9 Ignore errorcode=4 when executing `cryptsetup remove` command
If an attached encrypted volume is failed to detach from the instance
when deleting that instance, user can not delete that instance at all.

This patch adds 4 in check_exit_code when executing `cryptsetup remove`
command to eat that exception.

PS: exit_code = 4 indicate ENODEV error which means no device(also includes
the crypt device inactive).

Closes-Bug: #1482066
Change-Id: I12e2a52068850528a4bd68486344b74eb9b82c88
2015-10-14 09:18:01 +08:00
..
encryptors Ignore errorcode=4 when executing `cryptsetup remove` command 2015-10-14 09:18:01 +08:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_cinder.py Rollback is needed if initialize_connection times out 2015-10-02 16:26:57 -04:00