9acf079b8c
This patch allows scheduler to work with clustered hosts to support A/A operations. Reporting capabilities of clustered hosts will be grouped by the cluster_name instead of the host, and non clustered hosts will still be stored by host. To avoid replacing a newer capability report with an older version we timestamp capabilities on the volumes (it's backward compatible) and only replace currently stored values in scheduler when they are newer. Following actions now support A/A operation: - manage_existing - manage_existing_snapshot - get_pools - create_volume - retype - migrate_volume_to_host - create_consistencygroup - create_group - update_service_capabilities - extend_volume And Affinity and Driver filters have been updated. The new functionality to notify service capabilities has not been changed to Active/Active and will be done in another patch. APIImpact: Added microversion 3.16 Specs: https://review.openstack.org/327283 Implements: blueprint cinder-volume-active-active-support Change-Id: I611e75500f3d5281188c5aae287c62e5810e6b72
20 lines
457 B
JSON
20 lines
457 B
JSON
{
|
|
"volume": {
|
|
"host": null,
|
|
"cluster": "cluster@backend",
|
|
"ref": {
|
|
"source-name": "existingLV",
|
|
"source-id": "1234"
|
|
},
|
|
"name": "New Volume",
|
|
"availability_zone": "az2",
|
|
"description": "Volume imported from existingLV",
|
|
"volume_type": null,
|
|
"bootable": true,
|
|
"metadata": {
|
|
"key1": "value1",
|
|
"key2": "value2"
|
|
}
|
|
}
|
|
}
|