summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-11-28 17:54:56 +0000
committerGerrit Code Review <review@openstack.org>2018-11-28 17:54:56 +0000
commit840957606817c6463eceb9d45e673dfc1d17a75d (patch)
tree8e317d594931cdfbb5e69af9dc865c4a9ac85993
parenta3a5deccf169f18fd729eb61d3eb41de1916caff (diff)
parent862f2212c7a382a832456829be8bd6f2f9ee2561 (diff)
Merge "Spec Lite: Add glance-cache-manage utility using v2 API"
-rw-r--r--specs/stein/approved/glance/spec-lite-readding-glance-cache-manage-for-v2.rst65
1 files changed, 65 insertions, 0 deletions
diff --git a/specs/stein/approved/glance/spec-lite-readding-glance-cache-manage-for-v2.rst b/specs/stein/approved/glance/spec-lite-readding-glance-cache-manage-for-v2.rst
new file mode 100644
index 0000000..2e5ae5a
--- /dev/null
+++ b/specs/stein/approved/glance/spec-lite-readding-glance-cache-manage-for-v2.rst
@@ -0,0 +1,65 @@
1..
2 This work is licensed under a Creative Commons Attribution 3.0 Unported
3 License.
4
5 http://creativecommons.org/licenses/by/3.0/legalcode
6
7=======================================================
8Spec Lite: Add glance-cache-manage utility using v2 API
9=======================================================
10
11:project: glance
12
13:problem: In Rocky, the v1 dependant glance-cache-manage command was removed
14 while removing Images API v1 entry points. As a part of Edge
15 computing glance cache needs to be enabled on far-edge nodes
16 via Split Control plane where glance-cache-manage utility will be
17 essential to queue image for prefetching, to list & delete images
18 from Image Cache.
19
20:solution: In Stein, as per Edge computing architecture, glance cache will be
21 enabled on far-edge nodes. Hence it will be good to add
22 glance-cache-manage utility using v2 API in glance. This utility
23 will have the following commands and the same interface as Queens
24 glance-cache-manage utility [0] insofar as possible,
25 [0] https://docs.openstack.org/glance/queens/cli/glancecachemanage.html ::
26
27 1. Queue the image with identifier <IMAGE_ID> for caching,
28
29 $ glance-cache-manage --host=<HOST> queue-image <IMAGE_ID>
30
31 2. List all images currently cached
32
33 $ glance-cache-manage --host=<HOST> list-cached
34
35 3. List all images currently queued for caching.
36
37 $ glance-cache-manage --host=<HOST> list-queued
38
39 4. Delete an image from the cache
40
41 $ glance-cache-manage --host=<HOST> delete-cached-image <IMAGE_ID>
42
43 5. Remove all images from the cache
44
45 $ glance-cache-manage --host=<HOST> delete-all-cached-images
46
47 6. Deletes an queued image from the cache
48
49 $ glance-cache-manage --host=<HOST> delete-queued-image <IMAGE_ID>
50
51 7. Remove all images from the cache queue
52
53 $ glance-cache-manage --host=<HOST> delete-all-queued-images
54
55
56
57:alternatives: None
58
59:impacts: DocImpact
60
61:timeline: Include in Stein release.
62
63:link: None
64
65:assignee: pdeore