nova/nova/tests
Matt Riedemann c19d602f9b Block swap volume on volumes with >1 rw attachment
If we're swapping from a multiattach volume that has more than one
read/write attachment, another server on the secondary attachment could
be writing to the volume which is not getting copied into the volume to
which we're swapping, so we could have data loss during the swap.

This change does volume read/write attachment counting for the volume
we're swapping from and if there is more than one read/write attachment
on the volume, the swap volume operation fails with a 400 BadRequest
error.

Conflicts:
      nova/tests/unit/compute/test_compute_api.py

NOTE(mriedem): The conflict is due to Stein change
I7d5bddc0aa1833cda5f4bcebe5e03bdd447f641a changing the
decorators on the _test_snapshot_and_backup method.

Depends-On: https://review.openstack.org/573025/
Closes-Bug: #1775418
Change-Id: Icd7fcb87a09c35a13e4e14235feb30a289d22778
(cherry picked from commit 5a1d159d14)
(cherry picked from commit 9b21d1067a)
2019-05-30 17:25:06 -04:00
..
functional Add functional confirm_migration_error test 2019-05-22 20:46:10 +00:00
live_migration/hooks Replace openstack.org git:// URLs with https:// 2019-03-24 20:34:46 +00:00
unit Block swap volume on volumes with >1 rw attachment 2019-05-30 17:25:06 -04:00
__init__.py
fixtures.py Fix race in test_volume_swap_server_with_error 2019-03-02 14:38:25 +00:00
json_ref.py Transform instance.exists notification 2018-06-05 12:51:30 +00:00
uuidsentinel.py