易陆发现互联网技术论坛

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

删除image报错Unable to delete image

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

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

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

x
本帖最后由 1320503165 于 2017-7-10 12:07 编辑 6 E2 T% ]+ G1 q: K! M
2 O# x: m8 \6 u6 d
Unable to delete image
" Q8 Q+ }. g8 @  W: }: M+ |500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500): Unable to delete image 6dd: {. L5 c8 }+ r

$ S( R7 R6 y6 @% o7 HERROR:the server has either erred or is incapable of performing the requested operation
3 V$ _  S* g. f" R# P/ }
" c  P% y2 l8 l5 e2017-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.
7 B& v$ N! i6 @5 J9 Z6 |
 楼主| 发表于 2017-7-10 11:35:46 | 显示全部楼层
怀疑对接EBS没有对好
 楼主| 发表于 2017-7-10 11:54:34 | 显示全部楼层
后来才知道,这个镜像有云硬盘存在,删除掉云硬盘就可以删除掉镜像。: L4 S1 T/ o- p4 Q6 T
 楼主| 发表于 2017-7-10 12:07:20 | 显示全部楼层
# nova image-list  
: t. e4 r" ~! f4 k' G+--------------------------------------+-----------------------------------+--------+--------+
7 B7 {/ K% Z: ^4 w- c% Y* G| ID                                   | Name                              | Status | Server |4 f+ g/ h4 H4 j- B7 D! @6 j6 ~
+--------------------------------------+-----------------------------------+--------+--------++ l0 h6 @& f2 M! l3 v
| 92078465-4195-4712-8a73-e16b97ed8ef5 | BClinux-CentOS7.2-v1              | ACTIVE |        |* ^- S+ Q; U$ \+ K0 U: `1 `  k& ?+ z
# C/ Z& v0 }' z6 [
最好的解决办法就是更新数据库。, n7 K* U1 i, J. }5 K
mysql>update images set deleted="1" where id='92078465-4195-4712-8a73-e16b97ed8ef5';  B* M9 w" f& l$ I6 r! b

+ ~8 u& ^3 L$ _' @: v" Y3 r
( g7 d7 w3 e: k# i$ m2 K, j! D. z# nova image-list
# ~+ s( Y" q+ H1 [* H6 X& A+--------------------------------------+-----------------------------------+--------+--------+
& h8 [1 l/ q- w+ {( j8 L) t| ID                                   | Name                              | Status | Server |' v* D3 p/ O* Q* i8 c# Z, L
+--------------------------------------+-----------------------------------+--------+--------+' E/ s: W# n( \; L4 h' j
| d9878438-ba32-41f9-| CentOS-6.5                 | ACTIVE |        |6 n3 X/ V/ F" r% \
| 1ed59831-da36-49d5 | Windows-Server-2008-R2 | ACTIVE |        |* h+ Z. V$ g3 A
| f0dd0d6c-6f6e-4b1 | Windows-Server-2012-R2| ACTIVE |        |+ }3 O3 D% b2 ~5 N- w9 G4 |
+--------------------------------------+-----------------------------------+--------+--------+
. R$ ?1 K% e; C2 Z. V0 m# o( D# i; f. s! s6 g
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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