易陆发现互联网技术论坛

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

ERROR (BadRequest): Image b642aedd-198a-48fc-a682-78c2ef3887a5 is unacceptable:

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

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

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

x
[root@controller1 ~]# nova rebuild seaweedfs Oracle-Linux-7.6-hdd-8T-volumes
2 i/ p1 b. y& @& R, U- S* ^ERROR (BadRequest): Image b642aedd-198a-48fc-a682-78c2ef3887a5 is unacceptable: Unable to rebuild with a different image for a volume-backed server. (HTTP 400) (Request-ID: req-9936a109-1c98-443e-8dfb-22ea97f518a3)
6 a. m0 I, v) }3 ]+ [& R# e$ R
5 [; B3 P1 A0 }0 b1 Y
 楼主| 发表于 2022-10-20 13:11:29 | 显示全部楼层
[root@controller1 ~]# openstack server rebuild  seaweedfs --image b642aedd-198a-48fc-a682-78c2ef3887a5
. p: r' @# j* o4 X9 l: wImage b642aedd-198a-48fc-a682-78c2ef3887a5 is unacceptable: Unable to rebuild with a different image for a volume-backed server. (HTTP 400) (Request-ID: req-6d2ffaf7-575f-4be6-8d0a-054e21b96cc8)
 楼主| 发表于 2022-10-20 13:40:03 | 显示全部楼层
[root@controller1 ~]# openstack server rebuild  seaweedfs --image 53d46255-5b78-4e4b-a3b0-b2579257794b
6 B8 W; ?1 G8 d  a: t+-------------------+----------------------------------------------------------++ i; k: `* J+ z" l6 i; I
| Field             | Value                                                    |+ j* j2 f7 |  x" a5 j
+-------------------+----------------------------------------------------------+
9 u& i# z: P* w5 n- G$ z| OS-DCF:diskConfig | MANUAL                                                   |( b$ Z3 ?1 Y5 Z- b
| accessIPv4        |                                                          |; Y, B% f  }: Z# r2 Y' g5 k" a3 D
| accessIPv6        |                                                          |
8 x2 C# U' b  P: p| addresses         | vlan120=192.168.120.47                                   |
+ o( N) d) b5 q! b4 e1 e4 o3 U| adminPass         | GKRHbh696yLH                                             |
( ^  i  a. G# J" m* N9 E0 K/ V| created           | 2022-09-13T01:17:57Z                                     |
; [! B( L' m( d- x! S| flavor            | type-4c-8g-50g (df0e9995-f82a-4088-84e0-bae1efc87124)    |3 F6 A! v$ `7 Z. F+ `' U! w
| hostId            | 4ebdf9fdedee84ccd22548b8324efe239f1a32644c8ead9a5d69bac5 |  D5 |6 y- _; h1 t) I: Y
| id                | c2dd94e4-0d36-465f-acfe-2f5e920a00f2                     |( K; r# H2 U7 M9 q) v
| image             |                                                          |8 K8 k$ D" P/ b, i% [" x# a" T
| name              | seaweedfs                                                |
. @5 c1 M' g1 O: D* M| progress          | 0                                                        |$ D1 c8 j* {) H. e! Y2 h+ \
| project_id        | 6f0124196ea74eb79fbcf370add3ca7e                         |
& D* C8 y% U; V2 p# F. I1 X| properties        |                                                          |
" a. b: D3 ~+ p0 a* ]| status            | REBUILD                                                  |
/ |( q2 m. t  i+ I- ?) s1 i| updated           | 2022-10-20T05:36:52Z                                     |( {& c1 W6 x, f3 e3 [$ e
| user_id           | ef9faa1589a945ec9764b05c1c433b57                         |
' y0 f8 F6 I, e1 r6 R0 ^4 \1 y+-------------------+----------------------------------------------------------+
 楼主| 发表于 2022-10-20 14:12:56 | 显示全部楼层
0
* r: _! y: ?- Y+ O3 ~# O
' M2 Q# p- D) F* a, Z9 b+ b
# F9 ?3 v6 N1 o6 X: e8 y1 fI create a volume then I use it to create server. I would like to rebuild this server such that its image is changed. When I call nova rebuild api with a new image, it is said:
! K2 ?& ]9 Z) C9 H
! O, z% q# q4 nImage c1d9.... is unacceptable: Unable to rebuild with a different image for a volume-backed server
$ k6 B/ V7 {6 g8 D; ~8 ^5 E, b7 ?2 k1 q+ j* V1 p, V& v
How can I rebuild volume-backend server?
9 g$ C7 \3 a: W+ x; y4 e9 C# u, C# e4 z5 Z7 t
openstackopenstack-nova
, h# c7 I0 D6 u' w' VShare
! \; N/ w! c9 `# `4 CImprove this question" M6 x) P- t' _# T+ y7 w) b6 w* F
Follow- x% |3 D" M% e
asked May 18, 2021 at 11:345 Y( }( y8 V+ B0 ]+ A
Bani's user avatar
1 m5 F3 h* H9 |) `  zBani
4 y# e* C' Q/ w5 [1 B, [7 M. p1966 bronze badges
/ `) X+ r. S8 L4 ?; K* z; f' Q0 pAdd a comment; F* w* Y. r* X$ {
1 Answer$ F( }6 t! g8 R
Sorted by:, e# ~4 Z# ]8 x0 |* i
  P7 d2 ^/ J- m6 m
Highest score (default)
1 `& K0 A% i  I: v. _6 {
: x  g8 C7 _. o0 |6 v0 V& m, C0; F1 u& U# ?; j

. L2 r' J* c1 D7 R; [+ t1 r5 P
' `, m3 n$ e1 c3 b2 d( p- D) l; _As noted in Openstack docs [1], rebuild is not supported for volume-based VMs.
5 S! O# T: E) q7 E$ Y$ q$ w! P$ E/ ^# {) y" j1 b5 u  I
Assuming you are trying to rebuild the VM with a fresh image ("factory reset"), a slightly "hacky" solution is to replace the underlying volume with the fresh image while keeping the same pool/path.# P3 ^# {! K0 o" I
0 {9 B5 H! _' l6 q
For Ceph based backend, it would be something like" ~- K/ _3 Z) D; c

7 R3 h0 E8 h! Hopenstack volume show <...> => Get pool/path from rbd backend
/ y! I7 p9 u/ K0 [7 V+ b7 W" r3 Lopenstack image show <...> => Get pool/path from rbd backend
/ _3 M% D) W5 t* c- K8 _" N6 Bopenstack server stop <VM> => Stop the VM
& K* m- L( H1 I& H! b4 ], P( U2 k8 N. F4 X" s0 E8 _
rbd -p <POOL NAME> mv <VM VOLUME UUID>  <VM VOLUME UUID>.old
. |8 K. b/ ?8 t. x* I! Y5 J% J0 trbd -p <POOL NAME> cp <IMAGE VOLUME UUID> <VM VOLUME UUID>
; m/ f% r+ a: _% ROnce the copy finishes, start the VM4 T- _3 q8 p- g; @+ w" |

2 M* \; [  F% b  I: A0 Jopenstack server start <VM>
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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