易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 828|回复: 0
收起左侧

openstack 删除镜像失败(openstack update),通过数据库删除方式mysql update 清理

[复制链接]
发表于 2022-7-5 10:48:23 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
操作步骤如下:1 A; O+ Q: ~  \: ~) q; l4 }
MariaDB [(none)]> use glance8 A$ X: J( F( e. e8 n! t! h
Reading table information for completion of table and column names
1 `2 D  M/ U! O$ j* nYou can turn off this feature to get a quicker startup with -A
% J% C; m0 j2 a- V$ x
, y9 ^% J; O% i9 f- ~Database changed
$ U8 H3 _6 n4 H  U$ _* p- e2 Z3 o9 v) G+ B
MariaDB [glance]> select id,name,deleted,status  from images;
' s. c" e0 X, `# ?5 k7 [( r/ x+--------------------------------------+----------------------------------+---------+---------+3 @( u$ U* t% a' ~
| id                                   | name                             | deleted | status  |
: y, I; S4 t8 \# E+--------------------------------------+----------------------------------+---------+---------+: w4 q% ?# I% W% s) Z
| 020f070c-b3e6-4623-8035-3b0bbbf8c005 | Windows-xp                       |       0 | active  |; A* H1 A; W. X1 I
| 0470245c-ee24-488f-89c9-622fd85e9ade | centOS7.9-x86-ssd                |       1 | deleted |6 M& |2 @3 H- _5 F$ D
| 097295bd-4a1d-4a91-bfd0-d0ad64e971ff | Ubuntu-20.04                     |       1 | deleted |8 K/ q: [6 _) T9 F' F- C0 l
| 16f278e3-809b-47e8-b6b1-ae96cba1c29c | windows7                         |       0 | active  |
8 p3 b2 W8 i4 G9 D| 18804abd-9cba-4a94-8ceb-ba9b12f9fc47 | RHEL-Server-7.9-hdd-2.4T         |       1 | active  |( e7 b( X# B1 b6 {. ?% V
| 1d45630e-510c-4e65-b89d-ae8b615dd344 | RHEL-Server-6.9-hdd-2.4T-volumes |       1 | deleted |
1 @! B0 k2 Q( D' v$ g| 20b59ace-b0d1-4b1f-a5da-bc786aa80be1 | Windows-xp-q1                    |       1 | deleted |, x# ~. V% O: F5 v( L
| 240389c3-4df0-4313-91b4-7e801fa4c12c | RHEL-Server-6.9-hdd-2.4T-volumes |       1 | deleted |, t1 ]3 R9 Z# a9 ?! q; h) |" n. z( x
| 2c06a4cc-b62f-4e97-bc91-39e97e62aafe | windows_2016-hdd-8T              |       1 | deleted |
9 J8 f1 M2 G8 x: V| 2d208a0c-3bc5-4ab5-979a-0b6ac5e592dd | Ubuntu-20.04-1                   |       1 | deleted |5 I1 p* g: S0 J% D3 q/ G
| 3196221b-c211-422b-bc25-d2a23acdd276 | CentOS-7.9-hdd-8T-volumes        |       0 | active  |* e& _) A& H5 e% [3 F5 K% E
| 39a2e9a9-2ce5-454a-bd66-47f15eeb11ea | RHEL-Server-7.9-hdd-8T-volumes   |       0 | active  |
) O6 v4 X) T- A/ }6 t| 441e4f7c-6d1b-4257-90b3-e2cce50f2142 | RHEL-Server-6.9-hdd-2.4T-volumes |       1 | deleted |9 j/ K( C  h& I$ b0 n0 P
| 55bf968d-6fb0-4da9-93e4-942b0667af9b | windows_2016-hdd-8T              |       0 | active  |4 P) S& Z/ |* c
| 636cd370-b4c5-4358-ba71-ab1b34bb4f29 | debian11                         |       1 | deleted |5 l* ~# B" `+ t  F, }: n2 P
| 6a679a2a-3269-4467-af91-8d2e6bb6b13c | Windows2012                      |       1 | deleted |
" S: v2 m) Q  B* g7 e* Q| 6b7238ea-9005-497e-8ce2-1195cad17dde | windows7                         |       1 | deleted |3 e+ F! u3 J$ s4 j# k
| 7af4b3c7-7de6-4b51-b00e-4ae11a1c639a | Windows2012                      |       1 | deleted |
! I; p, B& X% s, \( `; ~| 8abfab0f-5859-45ac-ba94-d968ff85bdab | windows_2016-hdd-8T              |       1 | deleted |/ N2 p9 \$ D! g7 d0 s
| 8b3f63a8-524d-442d-9bdf-59c5b57f0b98 | RHEL-Server-7.9-ssd              |       0 | active  |0 M' g2 M8 N* n" A; \) C
| 92f5512b-1928-4bd0-b8fd-087fffedcf3b | Windows10                        |       1 | deleted |
/ ?6 g3 g' [  l9 S, X| 938eb113-a5d0-4762-abe5-efb6871c14a4 | RHEL-Server-7.9-ssd              |       1 | deleted |! o/ B. z" H& `4 C1 `8 w8 G) r& R
| 95910378-8d87-4877-b409-7264dcc90e76 | RHEL-Server-6.9-hdd-2.4T-volumes |       1 | deleted |! U" \& Y7 W- j8 e- B( E' C
| 993b7f85-f589-484c-a34d-63a37ae4089f | Windows2012                      |       0 | active  |
4 {- L- H( z% j6 Z- W| a0069fef-46e9-404d-ae2b-7e35a0f62532 | RHEL-Server-7.9-hdd-2.4T         |       1 | deleted |
: R& h2 m- }3 ~8 L+ C| a822c008-3f1b-403e-b1f2-69ff729e8c5f | RHEL-Server-7.9-hdd-8T-volumes   |       0 | saving  |' D* ?- v) j7 b4 x; A8 D
| aada273b-f74b-4723-bef8-a2e39da29c5c | CentOS-7.9-hdd-8T-volumes        |       1 | deleted |/ S& [' g' H' [* k$ l
| ac76737d-3a05-4869-8a78-573999a5cb5f | Ubuntu20.04                      |       1 | deleted |, k7 C: j1 \& u/ ^% j
| b97a827c-45c3-432c-b905-44d12b395159 | Centos7.9                        |       0 | active  |3 R0 l- N; l( N' k' o% ~* Y2 n
| b9c335c4-34a8-498c-a735-82567f7ef186 | rhel-server-7.9-ssd              |       1 | deleted |
. x0 p* V; P7 K& Q| be80198f-6554-4cef-9eea-a5562a59c4ad | Ubuntu-20.04                     |       0 | active  |! t6 ^2 k" x: ]; O
| c5858416-b69d-4593-b07a-688b67377280 | Windows2008R2                    |       0 | active  |
1 S* I' {0 t: j1 E| ce11d362-88b0-48de-8fd0-3eec4b567733 | Windows-xp-q1                    |       1 | deleted |
& m, T$ f9 H0 k3 \" ]9 T: ~1 u| df76dcba-d60e-45b3-8e5b-2d453b46641d | RHEL-Server-7.9-hdd-2.4T-volumes |       1 | active  |
' R8 T$ _6 I, L3 k  b- v$ u9 y3 `1 ]3 `& F| e0957ba4-782e-4030-874b-19a1b07156f5 | RHEL-Server-6.9-hdd-8T-volumes   |       0 | active  |
- V, ~  V* r# p7 E0 \| ea333f95-79c3-4ce4-856b-a397cc963d77 | windows_2019_x64-hdd-8T          |       0 | active  |9 `/ [5 l, |  n+ D& N% i6 g
| f5e9e921-3f9b-4f8e-a32a-0b96679483fc | Windows7                         |       1 | deleted |+ ~6 A4 M$ u1 R7 D. C7 I0 z
| fb5fe7ed-ba56-4ae2-a483-af3cc0cce891 | RHEL-Server-7.9-ssd              |       1 | active  |- h! U1 l8 @5 ?+ L  E  ~
| fd6d646f-6c61-4793-87d8-cc180a3259c3 | RHEL-Server-6.9-hdd-2.4T-volumes |       1 | deleted |
6 l0 b; [( }2 v2 S2 w| fd91972f-726e-43af-855c-636854815b0c | Windows10                        |       0 | active  |
& i* o& X8 |$ l  \+--------------------------------------+----------------------------------+---------+---------+
* G+ G5 r1 S/ R% a/ Y% o1 V40 rows in set (0.00 sec)" L; X, O- F8 @3 {/ C) v

  ^* g* O8 b/ I0 i1 z5 N+ k9 f配置:3 r( D. P, Y- }# d7 t
MariaDB [glance]> select id,name,deleted,status  from images where id="39a2e9a9-2ce5-454a-bd66-47f15eeb11ea";
# E9 d$ ]; M4 B+--------------------------------------+--------------------------------+---------+--------+# v  S& `. R5 ^+ ?5 C. z
| id                                   | name                           | deleted | status |3 t$ g) A& r# A5 S2 a
+--------------------------------------+--------------------------------+---------+--------+% D$ q7 |) _+ c( g$ z4 [
| 39a2e9a9-2ce5-454a-bd66-47f15eeb11ea | RHEL-Server-7.9-hdd-8T-volumes |       0 | active |! r. {+ x% W1 n( P
+--------------------------------------+--------------------------------+---------+--------+1 Q# o4 r+ a& b8 v; F5 l) m7 |5 u
1 row in set (0.01 sec)
6 a# \- c2 Y( V& h( k, S) ?) s8 P9 p' d, s# G. _. t8 g. Z
  J7 z4 T6 E# L' l3 h# T8 D
MariaDB [glance]> update glance.images set deleted=" 1 " where id="39a2e9a9-2ce5-454a-bd66-47f15eeb11ea";+ U, _9 j0 n7 q
Query OK, 1 row affected, 1 warning (0.01 sec)* X. b- i& a* H$ c/ A  B; s+ K) c8 X
Rows matched: 1  Changed: 1  Warnings: 1# U4 s# x. H% j

- X% `5 B5 J5 U% _4 e4 @% c4 u- w) s. ^* i* ~9 w
MariaDB [glance]> select id,name,deleted,status  from images where id="39a2e9a9-2ce5-454a-bd66-47f15eeb11ea";
& S( U: F5 J8 V8 @7 ?1 m+ M+--------------------------------------+--------------------------------+---------+--------+
7 N4 i$ l4 Q* P+ t| id                                   | name                           | deleted | status |4 a* ^9 |. B  ?
+--------------------------------------+--------------------------------+---------+--------+
' R/ f+ w* _- Z, {| 39a2e9a9-2ce5-454a-bd66-47f15eeb11ea | RHEL-Server-7.9-hdd-8T-volumes |       1 | active |% h9 ]6 F+ Y. y: i0 F( ^$ Y' v$ K
+--------------------------------------+--------------------------------+---------+--------+  i5 A3 V0 l% O4 u
1 row in set (0.00 sec)
% N* Z$ x% ]' \$ w1 P% g& F2 {
: [) S, B- d9 N: S6 N. h8 V% z( C' T  D) L

# x. f; M# G2 e) J% n
" E6 u0 {* l8 j9 m7 G" @) d0 v
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-8 15:22 , Processed in 0.106191 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表