manila/api-ref/source/samples
Chuan Miao 7e7ec7337c Add Share Affinity/Anti-Affinity Scheduler Filters
This patch implements hard affinity and anti-affinity filter for
manila scheduler. Users can specify affinity/anti-affinity share
ids to the field "share.scheduler_hints.same_host" or
"share.scheduler_hints.different_host" in the request payload
when creating a manila share. The scheduler_hints are stored as
share metadata. The filter properties are populated from this
metadata during share migration and so filters will be applied
for share migration as well.

Both fields can be a single share UUID or multiple uuids
separated by comma. For example,

`{
    "share": {
        "scheduler_hints": {
            "same_host": "share_uuid_1,share_uuid_2",
            "different_host": "share_uuid_3"
        }
    }
}`

Implements: bp/affinity-antiaffinity-filter

Change-Id: Ic42d8a0c1d22e77ae64e0ca014607b28fd336467
Co-authored-by: Maurice Escher <maurice.escher@sap.com>
2021-09-03 08:58:46 +02:00
..
availability-zones-list-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
export-location-list-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
export-location-show-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
extensions-list-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
limits-response.json Add documentation for share replica quotas 2020-06-03 14:28:58 +00:00
pools-list-detailed-response.json [api-ref] Update JSON samples for scheduler-stats API 2019-05-06 17:31:45 -07:00
pools-list-response.json [api-ref] Update JSON samples for scheduler-stats API 2019-05-06 17:31:45 -07:00
quota-classes-show-response.json Add documentation for per share gigabytes quotas 2021-05-24 09:18:31 +02:00
quota-classes-update-request.json Add docs for quota_class_set API 2018-02-27 10:10:40 +08:00
quota-classes-update-response.json Add documentation for per share gigabytes quotas 2021-05-24 09:18:31 +02:00
quota-show-detail-response.json Add documentation for per share gigabytes quotas 2021-05-24 09:18:31 +02:00
quota-show-response.json Add documentation for per share gigabytes quotas 2021-05-24 09:18:31 +02:00
quota-update-request.json Add documentation for per share gigabytes quotas 2021-05-24 09:18:31 +02:00
quota-update-response.json Add documentation for per share gigabytes quotas 2021-05-24 09:18:31 +02:00
security-service-create-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
security-service-create-response.json Add ou to security service 2018-04-24 15:04:40 -07:00
security-service-show-response.json Add ou to security service 2018-04-24 15:04:40 -07:00
security-service-update-request.json Add ou to security service 2018-04-24 15:04:40 -07:00
security-service-update-response.json Add ou to security service 2018-04-24 15:04:40 -07:00
security-services-list-detailed-response.json Add ou to security service 2018-04-24 15:04:40 -07:00
security-services-list-for-share-network-response.json Add ou to security service 2018-04-24 15:04:40 -07:00
security-services-list-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
service-disable-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
service-disable-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
service-enable-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
service-enable-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
services-list-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
services-list-with-filters-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-access-rules-list-response.json Correct json format in api-ref 2019-08-13 17:05:33 +08:00
share-access-rules-show-response.json Add api ref for access rule metadata feature 2019-02-14 17:15:31 -08:00
share-access-rules-update-metadata-request.json Add api ref for access rule metadata feature 2019-02-14 17:15:31 -08:00
share-access-rules-update-metadata-response.json Add api ref for access rule metadata feature 2019-02-14 17:15:31 -08:00
share-actions-extend-request.json Extend share will go through scheduler 2021-08-27 05:35:45 +00:00
share-actions-force-delete-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-actions-grant-access-request.json Add api ref for access rule metadata feature 2019-02-14 17:15:31 -08:00
share-actions-grant-access-response.json Add api ref for access rule metadata feature 2019-02-14 17:15:31 -08:00
share-actions-list-access-rules-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-actions-list-access-rules-response.json add access_key to share_access_map 2016-08-22 20:41:19 +05:30
share-actions-reset-state-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-actions-revert-to-snapshot-request.json Implement share revert to snapshot 2017-01-17 15:06:01 -05:00
share-actions-revoke-access-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-actions-shrink-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-actions-unmanage-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-create-request.json Add Share Affinity/Anti-Affinity Scheduler Filters 2021-09-03 08:58:46 +02:00
share-create-response.json Create share from snapshot in another pool or backend 2020-04-09 11:15:22 -03:00
share-group-create-request.json Correct json format in api-ref 2019-08-13 17:05:33 +08:00
share-group-create-response.json Add API document for share group [2/3] 2017-11-02 16:35:11 +00:00
share-group-reset-state-request.json Add API document for share group [2/3] 2017-11-02 16:35:11 +00:00
share-group-show-response.json Correct json format in api-ref 2019-08-13 17:05:33 +08:00
share-group-snapshot-actions-reset-state-request.json Add API document for share group [3/3] 2017-11-02 16:38:16 +00:00
share-group-snapshot-create-request.json Correct json format in api-ref 2019-08-13 17:05:33 +08:00
share-group-snapshot-create-response.json Add API document for share group [3/3] 2017-11-02 16:38:16 +00:00
share-group-snapshot-show-response.json Add API document for share group [3/3] 2017-11-02 16:38:16 +00:00
share-group-snapshot-update-request.json Add API document for share group [3/3] 2017-11-02 16:38:16 +00:00
share-group-snapshot-update-response.json Add API document for share group [3/3] 2017-11-02 16:38:16 +00:00
share-group-snapshots-list-detailed-response.json Add API document for share group [3/3] 2017-11-02 16:38:16 +00:00
share-group-snapshots-list-members-response.json Add API document for share group [3/3] 2017-11-02 16:38:16 +00:00
share-group-snapshots-list-response.json Correct json format in api-ref 2019-08-13 17:05:33 +08:00
share-group-type-create-request.json Add API document for share group [1/3] 2017-10-31 10:06:34 +00:00
share-group-type-create-response.json Retrieve is_default value to fix empty display in CLI 2018-07-24 12:00:58 +08:00
share-group-type-grant-access-request.json Add API document for share group [1/3] 2017-10-31 10:06:34 +00:00
share-group-type-revoke-access-request.json Add API document for share group [1/3] 2017-10-31 10:06:34 +00:00
share-group-type-set-request.json Add API document for share group [1/3] 2017-10-31 10:06:34 +00:00
share-group-type-set-response.json Add API document for share group [1/3] 2017-10-31 10:06:34 +00:00
share-group-types-default-list-response.json Retrieve is_default value to fix empty display in CLI 2018-07-24 12:00:58 +08:00
share-group-types-group-specs-list-response.json Correct json format in api-ref 2019-08-13 17:05:33 +08:00
share-group-types-list-access-response.json Add API document for share group [1/3] 2017-10-31 10:06:34 +00:00
share-group-types-list-response.json Retrieve is_default value to fix empty display in CLI 2018-07-24 12:00:58 +08:00
share-group-update-request.json Add API document for share group [2/3] 2017-11-02 16:35:11 +00:00
share-group-update-response.json Add API document for share group [2/3] 2017-11-02 16:35:11 +00:00
share-groups-list-response.json Add API document for share group [2/3] 2017-11-02 16:35:11 +00:00
share-instance-actions-force-delete-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-instance-actions-reset-state-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-instances-list-response.json Create share from snapshot in another pool or backend 2020-04-09 11:15:22 -03:00
share-manage-request.json Add api-ref for manage/unmanage with DHSS=True 2019-03-27 11:45:38 -07:00
share-manage-response.json Updates the API reference for some share operations 2020-08-13 12:53:50 +00:00
share-migration-cancel-request.json Documentation for Share Migration Ocata Improvements. 2020-09-22 19:24:16 -03:00
share-migration-complete-request.json Documentation for Share Migration Ocata Improvements. 2020-09-22 19:24:16 -03:00
share-migration-get-process-request.json Documentation for Share Migration Ocata Improvements. 2020-09-22 19:24:16 -03:00
share-migration-get-process-response.json Documentation for Share Migration Ocata Improvements. 2020-09-22 19:24:16 -03:00
share-migration-start-request.json Documentation for Share Migration Ocata Improvements. 2020-09-22 19:24:16 -03:00
share-network-add-security-service-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-network-add-security-service-response-with-subnets.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-network-add-security-service-response.json [Doc] Add 'gateway' and 'mtu' in share network api-ref 2018-06-09 22:21:43 +00:00
share-network-create-request.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-network-create-response-with-subnets.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-network-create-response.json [Doc] Add 'gateway' and 'mtu' in share network api-ref 2018-06-09 22:21:43 +00:00
share-network-remove-security-service-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-network-remove-security-service-response-with-subnets.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-network-remove-security-service-response.json Correct json format in api-ref 2019-08-13 17:05:33 +08:00
share-network-show-response-with-subnets.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-network-show-response.json [Doc] Add 'gateway' and 'mtu' in share network api-ref 2018-06-09 22:21:43 +00:00
share-network-subnet-create-request.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-network-subnet-create-response.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-network-subnet-list-response.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-network-subnet-show-response.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-network-update-request.json [Doc] Fix parameters in share network api-ref 2017-10-25 03:45:49 +00:00
share-network-update-response-with-subnets.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-network-update-response.json [Doc] Add 'gateway' and 'mtu' in share network api-ref 2018-06-09 22:21:43 +00:00
share-networks-list-detailed-response-with-subnets.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-networks-list-detailed-response.json [Doc] Add 'gateway' and 'mtu' in share network api-ref 2018-06-09 22:21:43 +00:00
share-networks-list-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-replica-create-request.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-replica-create-response.json Add API document for share replica 2017-09-07 01:05:08 +00:00
share-replica-export-location-list-response.json Separate APIs for share & replica export locations 2019-01-07 01:51:16 -08:00
share-replica-export-location-show-response.json Separate APIs for share & replica export locations 2019-01-07 01:51:16 -08:00
share-replicas-force-delete-request.json Add API document for share replica 2017-09-07 01:05:08 +00:00
share-replicas-list-detail-response.json Add API document for share replica 2017-09-07 01:05:08 +00:00
share-replicas-list-response.json Correct json format in api-ref 2019-08-13 17:05:33 +08:00
share-replicas-reset-replica-state-request.json Add API document for share replica 2017-09-07 01:05:08 +00:00
share-replicas-reset-state-request.json Add API document for share replica 2017-09-07 01:05:08 +00:00
share-replicas-show-response.json Add API document for share replica 2017-09-07 01:05:08 +00:00
share-server-manage-request.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-server-manage-response.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-server-migration-cancel-request.json Add api reference for share server migration 2021-01-06 09:04:23 -03:00
share-server-migration-check-compatibility-request.json Add api reference for share server migration 2021-01-06 09:04:23 -03:00
share-server-migration-check-compatibility-response.json Add api reference for share server migration 2021-01-06 09:04:23 -03:00
share-server-migration-complete-request.json Add api reference for share server migration 2021-01-06 09:04:23 -03:00
share-server-migration-complete-response.json Add api reference for share server migration 2021-01-06 09:04:23 -03:00
share-server-migration-get-progress-request.json Add api reference for share server migration 2021-01-06 09:04:23 -03:00
share-server-migration-get-progress-response.json Add api reference for share server migration 2021-01-06 09:04:23 -03:00
share-server-migration-start-request.json Add api reference for share server migration 2021-01-06 09:04:23 -03:00
share-server-reset-state-request.json Add api-ref for manage/unmanage with DHSS=True 2019-03-27 11:45:38 -07:00
share-server-show-details-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-server-show-response.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-server-unmanage-request.json Add api-ref for manage/unmanage with DHSS=True 2019-03-27 11:45:38 -07:00
share-servers-list-response.json Add api-ref for share network subnets 2020-08-06 21:58:37 +00:00
share-set-metadata-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-set-metadata-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-show-instance-response.json Create share from snapshot in another pool or backend 2020-04-09 11:15:22 -03:00
share-show-metadata-item-response.json [api-ref] Correct share metadata API ref 2019-07-26 15:13:41 -07:00
share-show-metadata-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-show-response.json Updates the API reference for some share operations 2020-08-13 12:53:50 +00:00
share-type-create-request.json Add 'description' in share type API Doc 2017-11-23 11:13:57 +08:00
share-type-create-response.json Retrieve is_default value to fix empty display in CLI 2018-07-24 12:00:58 +08:00
share-type-grant-access-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-type-revoke-access-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-type-set-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-type-set-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-type-show-response.json Retrieve is_default value to fix empty display in CLI 2018-07-24 12:00:58 +08:00
share-type-update-request.json Add update share-type API to Share Types 2019-09-10 14:43:07 -07:00
share-type-update-response.json Add update share-type API to Share Types 2019-09-10 14:43:07 -07:00
share-types-default-list-response.json Retrieve is_default value to fix empty display in CLI 2018-07-24 12:00:58 +08:00
share-types-extra-specs-list-response.json [Api-ref] update parameters for share types api 2017-11-22 16:01:09 +00:00
share-types-list-access-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-types-list-response.json Retrieve is_default value to fix empty display in CLI 2018-07-24 12:00:58 +08:00
share-update-metadata-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-update-metadata-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-update-null-metadata-request.json [api-ref] Correct share metadata API ref 2019-07-26 15:13:41 -07:00
share-update-null-metadata-response.json [api-ref] Correct share metadata API ref 2019-07-26 15:13:41 -07:00
share-update-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
share-update-response.json Updates the API reference for some share operations 2020-08-13 12:53:50 +00:00
shares-list-detailed-response.json Updates the API reference for some share operations 2020-08-13 12:53:50 +00:00
shares-list-response.json Correct json format in api-ref 2019-08-13 17:05:33 +08:00
snapshot-actions-force-delete-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
snapshot-actions-reset-state-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
snapshot-actions-unmanage-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
snapshot-create-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
snapshot-create-response.json [doc][api-ref] snapshot user_id and project_id fields 2019-03-22 17:59:02 +00:00
snapshot-instance-actions-reset-state-request.json [doc] Add API document for snapshot instances 2017-09-12 05:15:10 +00:00
snapshot-instance-show-response.json [doc] Add API document for snapshot instances 2017-09-12 05:15:10 +00:00
snapshot-instances-list-response.json Correct json format in api-ref 2019-08-13 17:05:33 +08:00
snapshot-instances-list-with-detail-response.json [doc] Add API document for snapshot instances 2017-09-12 05:15:10 +00:00
snapshot-manage-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
snapshot-manage-response.json [doc][api-ref] snapshot user_id and project_id fields 2019-03-22 17:59:02 +00:00
snapshot-show-response.json [doc][api-ref] snapshot user_id and project_id fields 2019-03-22 17:59:02 +00:00
snapshot-update-request.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
snapshot-update-response.json [doc][api-ref] snapshot user_id and project_id fields 2019-03-22 17:59:02 +00:00
snapshots-list-detailed-response.json [doc][api-ref] snapshot user_id and project_id fields 2019-03-22 17:59:02 +00:00
snapshots-list-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
user-message-show-response.json Correct json format in api-ref 2019-08-13 17:05:33 +08:00
user-messages-list-response.json Correct json format in api-ref 2019-08-13 17:05:33 +08:00
versions-get-version-response.json Migrate API reference into tree 2016-07-25 15:55:00 +00:00
versions-index-response.json Mark 'v1' API deprecated in the versions response 2017-01-27 14:12:39 +00:00