找回密码
 注册
查看: 546|回复: 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-volumes
1 E) _, h$ ^' u0 ~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)
% v- p# D, w' [& g2 U- r) u, y* U0 P8 l. {5 Q( r

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-10-20 13:11:29 | 显示全部楼层
[root@controller1 ~]# openstack server rebuild  seaweedfs --image b642aedd-198a-48fc-a682-78c2ef3887a5
! H! ?- e- u! D+ N2 c* ^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-b2579257794b7 p# B+ I; l2 m. B( U* _
+-------------------+----------------------------------------------------------+7 ]6 l/ J: V% T$ O4 b1 {" ~7 O7 S3 K
| Field             | Value                                                    |& b/ s; H' d2 E/ e) ?+ Y# ~! ~7 \5 h
+-------------------+----------------------------------------------------------+
2 T( x2 ]- i+ p" i& l3 \' r| OS-DCF:diskConfig | MANUAL                                                   |+ s7 \/ S' [  A+ \! @& @
| accessIPv4        |                                                          |
9 G! a6 B1 Q: t3 f- N8 m1 N| accessIPv6        |                                                          |: Z" f! m. k& V0 I& A
| addresses         | vlan120=192.168.120.47                                   |
2 ]: z; B! {4 m  s| adminPass         | GKRHbh696yLH                                             |
7 e' I: R- Q/ c- [9 J/ R9 || created           | 2022-09-13T01:17:57Z                                     |; p: X6 Z! C5 d- `, [# D& U. ^
| flavor            | type-4c-8g-50g (df0e9995-f82a-4088-84e0-bae1efc87124)    |
% Q# A8 P( ~6 {7 y% X4 E3 d| hostId            | 4ebdf9fdedee84ccd22548b8324efe239f1a32644c8ead9a5d69bac5 |4 _* L4 \/ s0 n: u' w3 E
| id                | c2dd94e4-0d36-465f-acfe-2f5e920a00f2                     |
) z! k* d: `% l/ u5 T# W9 R& a/ E| image             |                                                          |) v5 c1 q- N4 P% t
| name              | seaweedfs                                                |
& g3 B5 D1 |1 l/ j. \$ Z| progress          | 0                                                        |# ?/ H, P) }4 ~7 C
| project_id        | 6f0124196ea74eb79fbcf370add3ca7e                         |; v' q3 I. l' y8 K
| properties        |                                                          |
3 H5 ?; t! Y7 J4 ~$ C| status            | REBUILD                                                  |
5 K: I3 K# v6 x* X/ t| updated           | 2022-10-20T05:36:52Z                                     |
6 @2 J* t9 z# T1 T% a$ i6 V| user_id           | ef9faa1589a945ec9764b05c1c433b57                         |* n8 D  M  \( G; a" t( [4 D
+-------------------+----------------------------------------------------------+

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-10-20 14:12:56 | 显示全部楼层
0
3 ^3 o' C6 e( Y
* n: b, c2 v& p1 n. o/ m7 u
, j# k, x, L, o' d- O" yI 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:
8 i0 w! m* a7 m8 H& c6 u' t3 V! Q/ x7 R. A( \
Image c1d9.... is unacceptable: Unable to rebuild with a different image for a volume-backed server" y+ Q5 L$ J& I

9 h0 [* r6 a  H+ VHow can I rebuild volume-backend server?4 {0 x9 l$ L0 I% B) m, U  ^, N: Z

. a7 C% u% v; j' K" }9 T; |% Mopenstackopenstack-nova# k: M0 i8 S' V8 H( [
Share. N* V2 a0 d' h0 \
Improve this question
3 d* p. X" b% V9 e# d1 b; YFollow
# w9 R1 [& C- ^, `* Casked May 18, 2021 at 11:34# C0 t$ s# q; R7 I$ ^6 G4 B
Bani's user avatar
+ U0 Y2 Q6 g# T! B- {Bani* s% q, H& e0 b( i% B
1966 bronze badges; a+ O6 t$ Y" @. W
Add a comment
/ X4 _+ ^" `4 v  ^/ t& m+ S1 Answer3 J- ~" Z: @% U, }+ Y% `
Sorted by:! z0 a. t6 Q  i8 j3 ?/ t+ D

& z7 F, E1 H, x( Q& l5 }. gHighest score (default)- A" T: H! E. s2 }; ~
& E+ f7 v9 j2 M  T1 @" \7 Z2 J
0
9 Q4 [9 U* R- {1 s1 e: |: ~  |  B2 w7 I3 _5 `' V

* u, g6 P( x7 s# d1 c& T- B0 ?4 y$ l4 UAs noted in Openstack docs [1], rebuild is not supported for volume-based VMs.& P) u( p: C, r
2 [  ?  K* K& J$ d4 ?
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.' ?  Q2 B0 y! z( [1 {$ z+ y

5 H0 [7 e4 E) w+ ^4 H; tFor Ceph based backend, it would be something like( k+ {: T' k9 C3 B3 S

+ K: K+ e9 @5 w& F' uopenstack volume show <...> => Get pool/path from rbd backend: i8 O+ M3 X, e9 D! R
openstack image show <...> => Get pool/path from rbd backend
0 u# a  [4 R7 e% n( zopenstack server stop <VM> => Stop the VM4 U6 e+ `5 {  G" I* Z9 ^* O9 ^

% k2 q) ^' h' drbd -p <POOL NAME> mv <VM VOLUME UUID>  <VM VOLUME UUID>.old+ ]$ @- n7 Q( F- l* g% w
rbd -p <POOL NAME> cp <IMAGE VOLUME UUID> <VM VOLUME UUID>
5 }+ ^. K: Y0 M. W8 E1 P' w0 dOnce the copy finishes, start the VM# \0 G/ g+ i' D! X" q1 l( K' F2 B

- y: e5 h3 ]3 A$ t0 j% [% popenstack server start <VM>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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