Browse Source

Spec Lite: Add glance-cache-manage utility using v2 API

Change-Id: Ic030184c3c073615b466477799d8e826451aa5bb
PranaliD 6 months ago
parent
commit
862f2212c7

+ 65
- 0
specs/stein/approved/glance/spec-lite-readding-glance-cache-manage-for-v2.rst View File

@@ -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
+=======================================================
8
+Spec 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

Loading…
Cancel
Save