diff options
| author | Mitsuhiro Tanino <mitsuhiro.tanino@hds.com> | 2016-03-04 15:47:31 -0500 |
|---|---|---|
| committer | Mitsuhiro Tanino <mitsuhiro.tanino@hds.com> | 2016-05-18 15:43:54 -0400 |
| commit | 729b8f8474e6653cdd9eb34c6c2b558024c1ddcb (patch) | |
| tree | 22420fe63c9842781072f706db83cc892fc63868 /cinderclient/tests/unit/v2/fakes.py | |
| parent | a4109cc3bfb41be47f23f83ef967d5fbc82913f9 (diff) | |
| download | python-cinderclient-729b8f8474e6653cdd9eb34c6c2b558024c1ddcb.tar.gz | |
Don't reset volume status when resetting migration status
In case of failed volume migration, status of the volume is
still in-use and the migration status is set to error.
Current reset-migration-status command resets not only
migration status but also volume status. However the volume
status should not reset because the volume is still attached.
Closes-Bug #1552058
Change-Id: I9a8a5ed6a00bdcffecbf98862fe60aee373f5e9b
Diffstat (limited to 'cinderclient/tests/unit/v2/fakes.py')
| -rw-r--r-- | cinderclient/tests/unit/v2/fakes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cinderclient/tests/unit/v2/fakes.py b/cinderclient/tests/unit/v2/fakes.py index 5e4ff3a..fe69b84 100644 --- a/cinderclient/tests/unit/v2/fakes.py +++ b/cinderclient/tests/unit/v2/fakes.py @@ -439,7 +439,8 @@ class FakeHTTPClient(base_client.HTTPClient): elif action == 'os-roll_detaching': assert body[action] is None elif action == 'os-reset_status': - assert 'status' in body[action] + assert ('status' or 'attach_status' or 'migration_status' + in body[action]) elif action == 'os-extend': assert list(body[action]) == ['new_size'] elif action == 'os-migrate_volume': |
