manila/manila/tests
Douglas Viroel 39efc2bde8 Add share server migration
This patch adds support for migration of share servers. This
migration is performed using a two-phase approach. Administrators
are now able to request the migration of a share server within and
across backends, with the possibility of chooosing a different share
network for the destination share server.

- A new field called `task_state` was added to the share server
  model in order to help the administrator to track the share server
  migration steps. A new field called `source_share_server_id` was
  added to link destination and source share servers.

- A new periodic task was added to track migration of share servers
  and its resources.

- Two new states were added: `server_migrating` and
  `server_migrating_to` to represent that share migration is in
  progress.

- When performing the server migration, manila will not go to the
  scheduler, instead it will provide a request spec to drivers
  during migration check driver call. It'll be up to the driver
  validate if there is free space to handle the share server.

- A new API called `share-server-migration-check' was added to
  check the feasibility of a migration, before actually triggering
  the start operation.

APIImpact
DocImpact
Partially Implements: bp share-server-migration

Co-Authored-By: Andre Beltrami <debeltrami@gmail.com>
Co-Authored-By: Carlos Eduardo <ces.eduardo98@gmail.com>
Co-Authored-By: Felipe Rodrigues <felipefuty01@gmail.com>

Change-Id: Ic0751027d2c3f1ef7ab0f7836baff3070a230cfd
Signed-off-by: Douglas Viroel <viroel@gmail.com>
2020-09-10 08:52:08 -03:00
..
api Add share server migration 2020-09-10 08:52:08 -03:00
cmd Merge "add share server update to manila-manage share update_host" 2020-08-28 18:52:57 +00:00
common Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
compute Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
data Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
db Add share server migration 2020-09-10 08:52:08 -03:00
hacking Move hacking checks to tests dir 2020-07-29 15:17:24 -07:00
image Fix NFS/CIFS share creation failure issue 2020-06-30 12:46:28 -04:00
integrated Update auth_uri option to www_authenticate_uri 2018-04-19 14:09:21 +00:00
message Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
monkey_patch_example Removed ignored checks from tox.ini and fixed pep8 issues 2016-02-14 14:56:55 +02:00
network Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
scheduler Merge "fix bug in consume from share" 2020-04-23 01:32:16 +00:00
share Add share server migration 2020-09-10 08:52:08 -03:00
share_group Use assertEqual instead of assertItemsEqual 2020-07-20 16:44:50 +08:00
var Renamed cinder to manila. 2013-09-02 09:59:07 +03:00
volume Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
wsgi Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
xenapi Renamed cinder to manila. 2013-09-02 09:59:07 +03:00
__init__.py Removed ignored checks from tox.ini and fixed pep8 issues 2016-02-14 14:56:55 +02:00
conf_fixture.py Add Infortrend Manila Driver 2019-08-02 17:58:16 +08:00
db_utils.py Add share network with multiple subnets 2019-09-13 11:27:18 -03:00
declare_conf.py Switch to using oslo_* instead of oslo.* 2015-01-27 09:19:50 +01:00
fake_client_exception_class.py Fix keystone v3 issues for all clients 2016-03-18 14:42:33 +01:00
fake_compute.py Fix error that failed to get image for booting server 2019-12-13 01:31:22 +00:00
fake_driver.py Create share from snapshot in another pool or backend 2020-04-09 11:15:22 -03:00
fake_network.py Replaces uuid.uuid4 with uuidutils.generate_uuid() 2016-11-14 10:51:24 -05:00
fake_notifier.py Disable notifications 2017-07-17 12:45:11 -03:00
fake_service_instance.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
fake_share.py Add share server migration 2020-09-10 08:52:08 -03:00
fake_utils.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
fake_volume.py Trivial: Remove unused logging import 2015-12-28 21:44:26 -05:00
fake_zfssa.py Add share manage/unmanage of Oracle ZFSSA driver 2016-07-05 15:58:18 -04:00
policy.json [policy in code] Add support for share instance export location resource 2017-11-16 04:39:00 +00:00
runtime_conf.py Switch to using oslo_* instead of oslo.* 2015-01-27 09:19:50 +01:00
test_api.py Fix imports for py34 compatibility 2015-08-05 17:32:13 +03:00
test_conf.py Removed unnecessary setUp() calls in tests 2017-08-02 12:47:34 +00:00
test_context.py Remove unit test that is not relevant anymore 2017-01-28 12:02:24 +02:00
test_coordination.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_exception.py Add share network with multiple subnets 2019-09-13 11:27:18 -03:00
test_hacking.py Move hacking checks to tests dir 2020-07-29 15:17:24 -07:00
test_manager.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_misc.py Don't translate LOG messages in testsuite 2014-10-28 19:46:09 +01:00
test_network.py Add manage/unmanage of shares in DHSS=True 2019-03-05 16:03:29 -03:00
test_policy.py [policy in code] Add support for share instance export location resource 2017-11-16 04:39:00 +00:00
test_quota.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_rpc.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_service.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_test.py Handle oslo.messaging ping endpoint 2020-09-08 11:20:41 -07:00
test_test_utils.py Remove vim headers 2014-10-06 15:00:27 +02:00
test_utils.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
utils.py NetApp cDOT: Add Intra-Vserver migration support 2017-01-21 13:06:30 -05:00