manila/manila/tests/api/v1
Goutham Pacha Ravi 4249e94c6b Allow configuring availability_zones in share types
Administrators configure share types and make them
available to projects within an OpenStack cloud.
These share types will define capabilities to match
back-end storage pools that manila provisions shares
within. Administrators may want to limit share types
to specific Availability zones, given they may have
different classes of storage in different availability
zones in the cloud. A major use case of this is edge
computing, where, provisioning can be driven to specific
edge locations with the help of share types.

This commit will:

- Introduce 'availability_zones' as a new common share type
  extra spec that is user visible when configured.
- In and beyond microversion 2.48, validate that the AZ
  chosen in the POST /shares API is supported by the configured
  availability zones for the share type being used.
- Share types can be filtered by AZs through extra-specs:

  $ manila type-list --extra-specs availability_zone=nova

  now gives you all types that explicitly (and implicitly)
  are supported within the AZ 'nova'.

- Improve experimental APIs:
  - Add validation of AZ to POST /share-replicas
  - Add validation of AZ to POST /share-groups
  - Add validation of AZ to
    POST /shares/id {'action': 'migration_start'}

- Also fix old unit tests by using a helper method to
  generate appropriate mock values.

DocImpact
Change-Id: Idf274cd73e3b1b33f49668fca768ae676ca30164
Implements: bp share-type-supported-azs
2019-02-13 17:39:48 +00:00
..
__init__.py Renamed cinder to manila. 2013-09-02 09:59:07 +03:00
stubs.py Transform share and share servers statuses to lowercase 2015-06-02 13:35:44 +03:00
test_limits.py Remove unused variables and broken links 2017-08-24 19:26:02 -07:00
test_scheduler_stats.py speed up GET scheduler-stats/pools/detail 2018-12-20 13:00:46 +00:00
test_security_service.py Fix getting share networks and security services error 2017-12-18 09:17:40 +08:00
test_share_manage.py Fix Manage API synchronous call 2016-03-29 16:57:25 -03:00
test_share_metadata.py Refactor share metadata tests to use DB 2016-01-08 02:51:36 +00:00
test_share_servers.py Merge "OpenStack typo" 2015-11-21 03:06:00 +00:00
test_share_snapshots.py Make coverage non-voting and fix use of rpc_backend 2018-10-11 23:23:37 -07:00
test_share_types_extra_specs.py Use parenthesis instead of backslashes in tests folder 2017-06-19 17:56:01 +08:00
test_share_unmanage.py Use parenthesis instead of backslashes in tests folder 2017-06-19 17:56:01 +08:00
test_shares.py Allow configuring availability_zones in share types 2019-02-13 17:39:48 +00:00