找回密码
 注册
查看: 547|回复: 3

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-10-20 13:09:23 | 显示全部楼层 |阅读模式
[root@controller1 ~]# nova rebuild seaweedfs Oracle-Linux-7.6-hdd-8T-volumes6 @! d' X. s. [9 Z5 }$ I
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)
' K+ f+ l% i# I
% Z1 A% A3 g- R+ x: c1 q' e

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-10-20 13:11:29 | 显示全部楼层
[root@controller1 ~]# openstack server rebuild  seaweedfs --image b642aedd-198a-48fc-a682-78c2ef3887a5
  d+ a$ b/ {. F( S$ XImage 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)

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-10-20 13:40:03 | 显示全部楼层
[root@controller1 ~]# openstack server rebuild  seaweedfs --image 53d46255-5b78-4e4b-a3b0-b2579257794b( B  a, M& Z6 g* ^4 o  ~: L
+-------------------+----------------------------------------------------------+2 q+ y- R+ n8 b6 O0 x! b
| Field             | Value                                                    |
6 W6 M  \9 C3 x: `2 |+-------------------+----------------------------------------------------------+- {3 u3 o9 o4 E) ^( u
| OS-DCF:diskConfig | MANUAL                                                   |5 s2 y: h' ^4 ?8 Z8 a
| accessIPv4        |                                                          |
( g9 B! o8 |  ?& F# \| accessIPv6        |                                                          |
% ]* l5 ^! A1 z) m: P6 ?9 L* u| addresses         | vlan120=192.168.120.47                                   |
! ]% L" u. h1 m1 z$ ]| adminPass         | GKRHbh696yLH                                             |+ U2 `6 t# z6 N2 r. u3 x  M
| created           | 2022-09-13T01:17:57Z                                     |! N6 B, R% W3 g4 _, C  Y, Y  |1 J5 g
| flavor            | type-4c-8g-50g (df0e9995-f82a-4088-84e0-bae1efc87124)    |6 M  \& V3 ]$ D& G
| hostId            | 4ebdf9fdedee84ccd22548b8324efe239f1a32644c8ead9a5d69bac5 |
, [5 A% \$ m" T( `| id                | c2dd94e4-0d36-465f-acfe-2f5e920a00f2                     |' m* P: g4 P+ y- X' s4 x, q
| image             |                                                          |9 S$ Y* p: D4 K; Q
| name              | seaweedfs                                                |! Y: E0 m- o  S( s7 @" G  V
| progress          | 0                                                        |  I7 n4 V" U/ Y2 e* ^) M: d/ J! l
| project_id        | 6f0124196ea74eb79fbcf370add3ca7e                         |
  y6 X- S' G  H| properties        |                                                          |/ z: i0 k9 d& ~7 u' J- N( t* m
| status            | REBUILD                                                  |- J' y6 ~* G; S" n* z
| updated           | 2022-10-20T05:36:52Z                                     |
/ y* p- z& i+ [" W| user_id           | ef9faa1589a945ec9764b05c1c433b57                         |8 N$ E$ S* Z7 b
+-------------------+----------------------------------------------------------+

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-10-20 14:12:56 | 显示全部楼层
02 I% _+ w) b% i. O3 W$ [

" A7 A3 R4 }9 `( R6 c8 D5 P) h8 B
, X' H' f( G5 B% LI 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:
" U5 B- C8 q  p/ K1 |% F
3 \, _: L7 T+ l. Y2 K9 C" AImage c1d9.... is unacceptable: Unable to rebuild with a different image for a volume-backed server
2 ]( ]5 G0 {8 x! R$ |' m
  c9 C0 W3 T* b3 D. q7 e8 W+ UHow can I rebuild volume-backend server?: B7 N" ?) x3 a" J8 y: L# }6 ?
9 l! M, C; \/ ?2 F: m' Y) A
openstackopenstack-nova
1 r& A+ F' x9 Q  Z' u+ t9 zShare4 u1 ^/ M) S6 c. z4 w4 Q
Improve this question2 x  ?4 C; S2 o) z+ R( w
Follow
$ k6 y, E( e" L& @asked May 18, 2021 at 11:343 _; A5 S2 N' v" F; q
Bani's user avatar
. E' d! ~7 k0 ]Bani& w4 H' l1 ^9 X: K: m. _5 ?
1966 bronze badges
7 b9 h4 ], m7 P5 C+ U, KAdd a comment
) X, e: I- P' u4 G6 ~1 Answer
/ |4 b& |8 j1 s! ]& z; y3 h# aSorted by:' c! k: r* |$ P% E8 c

: J$ n0 l9 ?4 Y( f* ?; J  }; n1 Y% hHighest score (default)
) q7 i9 m" e+ m8 x7 j/ s& T9 s; D! k) e2 N* X% d
0
* ?( t! L! F' T, c, W- `, g
0 ~; X! ]/ X2 Q+ L( Y- @# q) b/ G  B8 k
As noted in Openstack docs [1], rebuild is not supported for volume-based VMs., {1 `/ R# X7 t  q8 T9 H& V& W# r
0 e0 r; j! A. I8 }1 y3 V
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.
  z5 e4 j4 c; y" U5 r+ ^- p/ r* c
* ~5 L' X  a( t# ?/ t1 e, R& eFor Ceph based backend, it would be something like
9 Q: @! q; m3 i$ y7 b6 f
9 E& W/ E1 p0 U. ]6 |$ ~2 Hopenstack volume show <...> => Get pool/path from rbd backend
$ b$ O1 U) _& copenstack image show <...> => Get pool/path from rbd backend0 \8 L- F% J; J7 O3 h& |; k* w, E
openstack server stop <VM> => Stop the VM
. \) M- p. \  P! Y: f7 g; W
" Z5 k5 [9 @1 u" U* v# T1 mrbd -p <POOL NAME> mv <VM VOLUME UUID>  <VM VOLUME UUID>.old6 w" }1 j. t8 L! P+ ]
rbd -p <POOL NAME> cp <IMAGE VOLUME UUID> <VM VOLUME UUID>
6 j* J: W& x: E7 zOnce the copy finishes, start the VM5 ^0 e+ t5 j  G8 v, t8 S4 i1 Z
4 h' R( K, ^$ I3 [
openstack server start <VM>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:17 , Processed in 0.017074 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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