易陆发现互联网技术论坛

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

删除image报错Unable to delete image

[复制链接]
发表于 2017-7-10 11:26:39 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 1320503165 于 2017-7-10 12:07 编辑 - d/ ?( y2 L! l4 y& \6 N3 ]

8 N, J! t/ N9 rUnable to delete image ' G5 y6 _6 N7 p/ O4 E7 v
500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500): Unable to delete image 6dd
+ A& G6 B, [) J1 C4 d6 u
. p" `& t% c( j; \5 M* bERROR:the server has either erred or is incapable of performing the requested operation
/ Y% r8 z- c0 y' E6 m
4 o" L' K; c. [1 h0 l2017-07-10 11:36:03.756 3320 ERROR glance.common.wsgi [req-fd3b9f95-2573-4535-aac1-d86534d4ab91 cd6a0cdb7f9543089799d131bbdb329f 52f231550f67494a9054a9dae630afb0 - - -] Caught error: The image cannot be deleted because it is in use through the backend store outside of Glance.
. x" [% k4 P9 U% o
 楼主| 发表于 2017-7-10 11:35:46 | 显示全部楼层
怀疑对接EBS没有对好
 楼主| 发表于 2017-7-10 11:54:34 | 显示全部楼层
后来才知道,这个镜像有云硬盘存在,删除掉云硬盘就可以删除掉镜像。
' C& o1 X/ i" j1 S" I1 _7 S
 楼主| 发表于 2017-7-10 12:07:20 | 显示全部楼层
# nova image-list  - H( l) T9 w& z
+--------------------------------------+-----------------------------------+--------+--------+
9 A9 n! c6 A# {8 V) [. q5 w6 x| ID                                   | Name                              | Status | Server |
# w; y5 c( o( N+ y+--------------------------------------+-----------------------------------+--------+--------+, c# n  R- H, `
| 92078465-4195-4712-8a73-e16b97ed8ef5 | BClinux-CentOS7.2-v1              | ACTIVE |        |
- U6 N( K( P" ]$ N* U
+ x$ ?4 X( d2 B9 a/ [最好的解决办法就是更新数据库。
2 v0 b, P9 K' |( qmysql>update images set deleted="1" where id='92078465-4195-4712-8a73-e16b97ed8ef5';
. X7 R, T0 ^( y& E" j% Q) ]: u: h: v, `$ f. X9 u

5 s, e- o8 R- ~6 V" P+ c# nova image-list ; F9 I8 B/ r% W$ b, m+ A
+--------------------------------------+-----------------------------------+--------+--------+5 B8 r: ]. `# p$ x' r
| ID                                   | Name                              | Status | Server |
+ K1 \, [3 G0 y- E+--------------------------------------+-----------------------------------+--------+--------+
4 h# Z6 [7 W( F  S# p| d9878438-ba32-41f9-| CentOS-6.5                 | ACTIVE |        |
2 v, \' g6 L( j3 C* t% x" l0 _" K| 1ed59831-da36-49d5 | Windows-Server-2008-R2 | ACTIVE |        |
2 {! X9 a: u  Q' g4 ]! Z| f0dd0d6c-6f6e-4b1 | Windows-Server-2012-R2| ACTIVE |        |9 w- L' J! b0 i+ I
+--------------------------------------+-----------------------------------+--------+--------+& [# O8 t2 A5 b9 F6 h
- f( Q: f) C  m1 M6 ^+ s& D
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:17 , Processed in 0.041477 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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