找回密码
 注册
查看: 548|回复: 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-volumes2 W) F- Y3 i) c, f
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)# Y' D6 A+ z$ x" i. S( A, }3 T8 Y

6 K' m7 A. z' c- K6 a- C

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-10-20 13:11:29 | 显示全部楼层
[root@controller1 ~]# openstack server rebuild  seaweedfs --image b642aedd-198a-48fc-a682-78c2ef3887a5 5 k+ V- `" k* V5 S' k3 X7 C# w5 a0 \) q
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-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-b2579257794b4 Q, X( t% m* Y3 v9 A3 y7 q# l. ]5 i7 f
+-------------------+----------------------------------------------------------+% ]8 b  q8 C, V; W. v" B4 ]( w
| Field             | Value                                                    |+ L$ q( L: C' ~' v
+-------------------+----------------------------------------------------------+' {0 f2 n0 m1 H  t& W% L8 B' z
| OS-DCF:diskConfig | MANUAL                                                   |
  P. ?9 G* e) m$ o| accessIPv4        |                                                          |
4 `* g3 `8 k7 Z4 o  g( B| accessIPv6        |                                                          |
4 r. J; M3 G! B* K| addresses         | vlan120=192.168.120.47                                   |- M/ I3 C$ I% J" a; r4 R% i2 \$ |
| adminPass         | GKRHbh696yLH                                             |
* w! ]4 n1 \# E* F- U| created           | 2022-09-13T01:17:57Z                                     |
4 U6 l8 w% d4 `) N3 s* T5 O: _/ H| flavor            | type-4c-8g-50g (df0e9995-f82a-4088-84e0-bae1efc87124)    |1 E4 p: e: m# o: g* V( q/ P
| hostId            | 4ebdf9fdedee84ccd22548b8324efe239f1a32644c8ead9a5d69bac5 |' `/ V3 `/ ~4 u/ I
| id                | c2dd94e4-0d36-465f-acfe-2f5e920a00f2                     |
$ W: q1 S+ ?6 s! x+ f| image             |                                                          |8 k& O$ Z( ~; L  p
| name              | seaweedfs                                                |
1 G: a8 S) a8 b3 Q  d| progress          | 0                                                        |/ n. S+ Y: j, {: U/ [: m" g! N
| project_id        | 6f0124196ea74eb79fbcf370add3ca7e                         |
4 u: R" O, _! o9 \* w  o| properties        |                                                          |
, [, n, [' p: y3 M| status            | REBUILD                                                  |
7 b! P$ n  b1 U( H0 U  ]| updated           | 2022-10-20T05:36:52Z                                     |7 H  P( L. p5 T$ F0 @
| user_id           | ef9faa1589a945ec9764b05c1c433b57                         |, K, S# w0 B3 @3 p) b* z
+-------------------+----------------------------------------------------------+

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-10-20 14:12:56 | 显示全部楼层
0
! c" s3 f3 P) g8 a
% {7 l4 k- g( [2 s, e- b5 M4 q$ N% @, b/ u% \2 X$ v
I 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:6 F% `7 n: P) b2 U

/ B: L: e5 F0 s' r# I# EImage c1d9.... is unacceptable: Unable to rebuild with a different image for a volume-backed server: B# ~: C' v# G1 b5 Z
/ Y1 V7 T- F- Z) M: c; ^) H- @
How can I rebuild volume-backend server?
2 d7 \6 v7 ?1 j
5 t, Y9 J7 B1 s0 ~3 T3 D7 topenstackopenstack-nova" T' w" r! w7 T
Share3 z# f) Y- F5 I
Improve this question
6 M, b+ \3 q  r: s7 tFollow8 ~$ q# |" g! I; ~% K, T  P6 Q
asked May 18, 2021 at 11:34% n) R7 Q, Y" a- z
Bani's user avatar/ E8 `: V4 ?4 D! F. a
Bani
% p. b% ]* r9 B9 Z7 t! Z1966 bronze badges
' s5 i7 T* w# p5 V  v0 d# _Add a comment0 l8 G3 w9 H0 h  ]* i
1 Answer
# J6 k" D5 _( J6 b# x8 s* aSorted by:4 q3 U. Z5 a3 L* `, w6 A+ q
% c. `1 A) `& `% F' r/ ?1 N6 X" K+ p
Highest score (default)
* A% @  |8 O1 o$ L* x( `. s+ n0 R+ {$ K4 k! R, B& v& O
0
8 n. r. P* |/ ?$ ?! m4 c  R/ F7 d1 K
' y- S3 Z, `) s# R: n: Y* j1 z
As noted in Openstack docs [1], rebuild is not supported for volume-based VMs.
' m4 b7 d+ J# v0 R
; J) x" a/ M: X2 aAssuming 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 D' K. r* j) H' D! C7 f0 K' |- L+ F. v
For Ceph based backend, it would be something like
3 G$ V) O/ `7 t" F, j/ Q
2 a/ b2 Y+ u3 ropenstack volume show <...> => Get pool/path from rbd backend7 C+ Z1 M0 w$ L4 L2 f
openstack image show <...> => Get pool/path from rbd backend
: T. `5 M5 [5 Z. y- h8 w# D! ~4 Topenstack server stop <VM> => Stop the VM2 h0 [7 s- m3 d6 O5 Q( p
3 ^" v9 h; q' [0 k
rbd -p <POOL NAME> mv <VM VOLUME UUID>  <VM VOLUME UUID>.old0 W! u1 i7 X$ Q- _" _+ R, J5 V
rbd -p <POOL NAME> cp <IMAGE VOLUME UUID> <VM VOLUME UUID> 7 {1 E  u. s9 [$ q& b
Once the copy finishes, start the VM
* J$ K4 F) t; i0 |4 x; E/ P) v+ v, C5 r6 M& W' C) m! j
openstack server start <VM>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:14 , Processed in 0.091265 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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