manila/manila/scheduler
Felipe Rodrigues 2b57d15c64 Add multiple subnets per AZ support
Manila can now configure a share network with multiple subnets
in an availability zone. Also, it can add a new subnet for an
availability that has share servers, which will triger an update
share server allocations.

Changes:
- API:
  - Bump version to 2.70.
  - setup share network with multiple subents per az.
  - Block manage server with multiple subnets.
  - Allow add subnet for in-use share servers.
  - `share_network_subnet_id` is dropped from ShareServer view
  - `share_network_subnet_ids` is added in ShareServer view
  - `network_allocation_update_support` is added to ShareServer and
    ShareNetwork views.
  - Add a check operation for share network subnet create.

- DB:
  - Remove `share_network_subnet_id` from share_servers.
  - Create mapping table `share_server_share_network_subnet_mappings`.
  - Fix queries with new db design.
  - Add migration downgrade and upgrade alembic.
  - Add `share_network_subnet_id` to the NetworkAllocations.

- Scheduler:
  - Change `AvailabilityZoneFilter` to take in account if the
    host supports the allocation required by the setup request.

- Manager:
  - Bump RPC API version.
  - `_setup_server` allocating multiple subnets.
  - Modify signature of driver `_setup_server` interface, passing a
    list of `network_info` for each subnet.
  - Share server DB creation to inform a list of subnets and
    create with `network_allocation_update_support`.
  - Implement `check_update_share_server_network_allocations` and
    `update_share_server_network_allocations`.

- Drivers:
  - For legacy compatibility, all drivers implementing `_setup_server`
    consume the first element of the `network_ino`.
  - Dummy Driver:
    - Implement `_setup_server` with new signature as multiple subnet.
    - Modify the `backend_details` to save allocations for all subnets.
    - Report update allocation and share server multiple subnet support.
    - Implement `check_update_share_server_network_allocations` and
      `update_share_server_network_allocations` interfaces.

Signed-off-by: Felipe Rodrigues <felipefuty01@gmail.com>
Co-Authored-By: Andre Beltrami <debeltrami@gmail.com>
Co-Authored-By: Fábio Oliveira <fabioaurelio1269@gmail.com>
Co-Authored-By: Nahim Alves de Souza <nahimsouza@outlook.com>
Co-Authored-By: Caique Mello <caique_mellosbo@hotmail.com>

DocImpact
APIImpact
Partially-Implements: blueprint multiple-share-network-subnets

Change-Id: I7de9de4ae509182e9494bba604979cce03acceec
2022-03-03 02:31:11 +00:00
..
drivers OnlyHostFilter allows user to specify host during share create. 2022-01-10 10:06:27 +00:00
evaluator replace deprecated pyparsing method 2021-11-22 13:08:20 -08:00
filters Add multiple subnets per AZ support 2022-03-03 02:31:11 +00:00
weighers Add config option reserved_share_from_snapshot_percentage. 2021-08-27 19:10:36 +02:00
__init__.py Reorganize scheduler and merge code from Oslo incubator 2015-12-01 20:54:17 +00:00
base_handler.py Reorganize scheduler and merge code from Oslo incubator 2015-12-01 20:54:17 +00:00
host_manager.py Add multiple subnets per AZ support 2022-03-03 02:31:11 +00:00
manager.py Extend share will go through scheduler 2021-08-27 05:35:45 +00:00
rpcapi.py Extend share will go through scheduler 2021-08-27 05:35:45 +00:00
scheduler_options.py Remove log translations in scheduler 3/5 2017-03-31 00:54:26 +08:00
utils.py Add multiple subnets per AZ support 2022-03-03 02:31:11 +00:00