-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add image caching API for aggregates
This adds a new microversion and support for requesting image pre-caching on an aggregate. Related to blueprint image-precache-support Change-Id: I4ab96095106b38737ed355fcad07e758f8b5a9b0
- Loading branch information
Showing
40 changed files
with
570 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
doc/api_samples/os-aggregates/v2.81/aggregate-add-host-post-req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"add_host": { | ||
"host": "compute" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
doc/api_samples/os-aggregates/v2.81/aggregate-images-post-req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"cache": | ||
[ | ||
{"id": "70a599e0-31e7-49b7-b260-868f441e862b"} | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
doc/api_samples/os-aggregates/v2.81/aggregate-metadata-post-req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"set_metadata": | ||
{ | ||
"metadata": | ||
{ | ||
"key": "value" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"aggregate": | ||
{ | ||
"name": "name", | ||
"availability_zone": "london" | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
doc/api_samples/os-aggregates/v2.81/aggregate-post-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"aggregate": { | ||
"availability_zone": "london", | ||
"created_at": "2019-10-08T15:15:27.988513", | ||
"deleted": false, | ||
"deleted_at": null, | ||
"id": 1, | ||
"name": "name", | ||
"updated_at": null, | ||
"uuid": "a25e34a2-4fc1-4876-82d0-cf930fa04b82" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
doc/api_samples/os-aggregates/v2.81/aggregate-remove-host-post-req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"remove_host": { | ||
"host": "compute" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
doc/api_samples/os-aggregates/v2.81/aggregate-update-post-req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"aggregate": | ||
{ | ||
"name": "newname", | ||
"availability_zone": "nova2" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
doc/api_samples/os-aggregates/v2.81/aggregate-update-post-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"aggregate": { | ||
"availability_zone": "nova2", | ||
"created_at": "2019-10-11T14:19:00.718841", | ||
"deleted": false, | ||
"deleted_at": null, | ||
"hosts": [], | ||
"id": 1, | ||
"metadata": { | ||
"availability_zone": "nova2" | ||
}, | ||
"name": "newname", | ||
"updated_at": "2019-10-11T14:19:00.785838", | ||
"uuid": "4e7fa22f-f6cf-4e81-a5c7-6dc485815f81" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
doc/api_samples/os-aggregates/v2.81/aggregates-add-host-post-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"aggregate": { | ||
"availability_zone": "london", | ||
"created_at": "2019-10-11T14:19:05.250053", | ||
"deleted": false, | ||
"deleted_at": null, | ||
"hosts": [ | ||
"compute" | ||
], | ||
"id": 1, | ||
"metadata": { | ||
"availability_zone": "london" | ||
}, | ||
"name": "name", | ||
"updated_at": null, | ||
"uuid": "47832b50-a192-4900-affe-8f7fdf2d7f22" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
doc/api_samples/os-aggregates/v2.81/aggregates-get-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"aggregate": { | ||
"availability_zone": "london", | ||
"created_at": "2019-10-11T14:19:07.366577", | ||
"deleted": false, | ||
"deleted_at": null, | ||
"hosts": [], | ||
"id": 1, | ||
"metadata": { | ||
"availability_zone": "london" | ||
}, | ||
"name": "name", | ||
"updated_at": null, | ||
"uuid": "7c5ff84a-c901-4733-adf8-06875e265080" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
doc/api_samples/os-aggregates/v2.81/aggregates-list-get-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"aggregates": [ | ||
{ | ||
"availability_zone": "london", | ||
"created_at": "2019-10-11T14:19:07.386637", | ||
"deleted": false, | ||
"deleted_at": null, | ||
"hosts": [ | ||
"compute" | ||
], | ||
"id": 1, | ||
"metadata": { | ||
"availability_zone": "london" | ||
}, | ||
"name": "name", | ||
"updated_at": null, | ||
"uuid": "070cb72c-f463-4f72-9c61-2c0556eb8c07" | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
doc/api_samples/os-aggregates/v2.81/aggregates-metadata-post-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"aggregate": { | ||
"availability_zone": "london", | ||
"created_at": "2019-10-11T14:19:03.103465", | ||
"deleted": false, | ||
"deleted_at": null, | ||
"hosts": [], | ||
"id": 1, | ||
"metadata": { | ||
"availability_zone": "london", | ||
"key": "value" | ||
}, | ||
"name": "name", | ||
"updated_at": "2019-10-11T14:19:03.169058", | ||
"uuid": "0843db7c-f161-446d-84c8-d936320da2e8" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
doc/api_samples/os-aggregates/v2.81/aggregates-remove-host-post-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"aggregate": { | ||
"availability_zone": "london", | ||
"created_at": "2019-10-11T14:19:05.250053", | ||
"deleted": false, | ||
"deleted_at": null, | ||
"hosts": [], | ||
"id": 1, | ||
"metadata": { | ||
"availability_zone": "london" | ||
}, | ||
"name": "name", | ||
"updated_at": null, | ||
"uuid": "47832b50-a192-4900-affe-8f7fdf2d7f22" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from nova.api.validation import parameter_types | ||
|
||
|
||
aggregate_images_v2_81 = { | ||
'type': 'object', | ||
'properties': { | ||
'cache': { | ||
'type': ['array'], | ||
'minItems': 1, | ||
'items': { | ||
'type': 'object', | ||
'properties': { | ||
'id': parameter_types.image_id, | ||
}, | ||
'additionalProperties': False, | ||
'required': ['id'], | ||
}, | ||
}, | ||
}, | ||
'required': ['cache'], | ||
'additionalProperties': False, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.