7e7ec7337c
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>
22 lines
640 B
JSON
22 lines
640 B
JSON
{
|
|
"share": {
|
|
"description": "My custom share London",
|
|
"share_type": null,
|
|
"share_proto": "nfs",
|
|
"share_network_id": "713df749-aac0-4a54-af52-10f6c991e80c",
|
|
"share_group_id": null,
|
|
"name": "share_London",
|
|
"snapshot_id": null,
|
|
"is_public": true,
|
|
"size": 1,
|
|
"metadata": {
|
|
"project": "my_app",
|
|
"aim": "doc"
|
|
},
|
|
"scheduler_hints": {
|
|
"same_host": "d9c66489-cf02-4156-b0f2-527f3211b243,4ffee55f-ba98-42d2-a8ce-e7cecb169182",
|
|
"different_host": "903685eb-f242-4105-903d-4bef2db94be4"
|
|
}
|
|
}
|
|
}
|