manila/manila/tests/api
Rodrigo Barbieri d877b61c5e Add manage/unmanage of shares in DHSS=True
This patch adds Manage/Unmanage of share servers in
Manila. It also updates the Manage Share API to accept
a "share_server_id" parameter, and updates Unmanage
of Share and Snapshots API to allow unmanaging of
shares and snapshots in DHSS=True.

Managed share servers are not deleted automatically
by manila, and if a single share is unmanaged in
DHSS=True, the respective share server will not be
deleted automatically as well.

Managing share servers require that the driver
implements 2 functions:
- get_share_server_network_info: obtain IPs from
  share server.
- manage_server: perform required operations to
  manage and return dict of backend_details.

Unmanaging share servers require that the driver
overrides unmanage_server function.

The IPs obtained from the backend are validated
by the Network plugin, so ports with the exact
IPs must exist in the subnet and admin subnet
associated with the share network specified
when managing the share server (unless
StandaloneNetworkPlugin is used).

It is recommended to rename the backend resource
if possible when managing the share server, to
prevent issues with re-managing a share server
that has already been managed.

This patch bumps the API microversion to 2.49.

APIImpact
DocImpact

Depends-On: I17c74b2aa242918188eeff368232c762a4b31093
Partially-implements: bp manage-unmanage-with-share-servers
Change-Id: I108961e7436ba13550ef2b8f02079c6e599a6166
2019-03-05 16:03:29 -03:00
..
contrib Allow configuring availability_zones in share types 2019-02-13 17:39:48 +00:00
extensions Remove vim headers 2014-10-06 15:00:27 +02:00
middleware Fix UnicodeDecodeError when decode API input 2018-02-07 06:37:32 +00:00
openstack Manila Share Groups 2017-01-23 21:29:12 +02:00
v1 Add manage/unmanage of shares in DHSS=True 2019-03-05 16:03:29 -03:00
v2 Add manage/unmanage of shares in DHSS=True 2019-03-05 16:03:29 -03:00
views Support metadata for access rule resource 2018-07-20 23:31:48 +08:00
__init__.py pep8: Enable H303 and F403 2014-08-23 10:40:52 +02:00
common.py Remove vim headers 2014-10-06 15:00:27 +02:00
fakes.py Add manage/unmanage of shares in DHSS=True 2019-03-05 16:03:29 -03:00
test_common.py Add policy to create/update public shares 2019-02-18 12:56:12 -08:00
test_extensions.py Limit formatting routes when adding resources 2018-06-11 03:39:47 +00:00
test_middleware.py Added CORS support to Manila 2015-11-11 10:10:58 -08:00
test_versions.py [pylint] Fix/ignore pylint errors in non-test modules 2019-02-25 17:23:15 +00:00
test_wsgi.py Add possibility to run 'manila-api' with wsgi web servers 2017-04-10 12:49:20 +03:00