summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranaliD <pdeore@redhat.com>2018-10-10 14:30:58 +0530
committerPranali Deore <pdeore@redhat.com>2018-11-15 10:46:56 +0530
commit862f2212c7a382a832456829be8bd6f2f9ee2561 (patch)
treee7e334eb6da661087072cd2dbb568ed26a2f1a27
parented7a513c83e80d42ed9a2ba164d3c463c7fffca6 (diff)
Spec Lite: Add glance-cache-manage utility using v2 API
Notes
Notes (review): Code-Review+2: Sean McGinnis <sean.mcginnis@gmail.com> Code-Review+2: Erno Kuvaja <jokke@usr.fi> Code-Review+2: Abhishek Kekane <akekane@redhat.com> Workflow+1: Erno Kuvaja <jokke@usr.fi> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 28 Nov 2018 17:54:56 +0000 Reviewed-on: https://review.openstack.org/609331 Project: openstack/glance-specs Branch: refs/heads/master
-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