6c47b193b0
This patch enables the creation of a share from snapshot specifying another pool or backend. In the scheduler, a new filter and weigher were implemented in order to consider this operation if the backend supports it. Also, a new field called 'progress' was added in the share and share instance. The 'progress' field indicates the status of the operation create share from snapshot (in percentage). Finally, a new periodic task was added in order to constantly check the share status. Partially-implements: bp create-share-from-snapshot-in-another-pool-or-backend DOCImpact Change-Id: Iab13a0961eb4a387a502246e5d4b79bc9046e04b Co-authored-by: carloss <ces.eduardo98@gmail.com> Co-authored-by: dviroel <viroel@gmail.com>
17 lines
588 B
JSON
17 lines
588 B
JSON
{
|
|
"share_instance": {
|
|
"status": "available",
|
|
"progress": "100%",
|
|
"share_id": "d94a8548-2079-4be0-b21c-0a887acd31ca",
|
|
"availability_zone": "nova",
|
|
"replica_state": null,
|
|
"created_at": "2015-09-07T08:51:34.000000",
|
|
"cast_rules_to_readonly": false,
|
|
"share_network_id": "713df749-aac0-4a54-af52-10f6c991e80c",
|
|
"share_server_id": "ba11930a-bf1a-4aa7-bae4-a8dfbaa3cc73",
|
|
"host": "manila2@generic1#GENERIC1",
|
|
"access_rules_status": "active",
|
|
"id": "75559a8b-c90c-42a7-bda2-edbe86acfb7b"
|
|
}
|
|
}
|