找回密码
 注册
查看: 248|回复: 4

cinder.exception.VolumeBackendAPIException: Bad or unexpected response from the

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2025-10-16 17:00:00 | 显示全部楼层 |阅读模式
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager [req-8d0ba048-3f77-4830-8c21-31e02f48c2b3 req-f7037aa6-ba98-4d12-be17-2a3461a18c07 99649cadcde24076a14eb901ff14b52b 837e526fffed46ec9b49f52410633bdd - - - -] Create export for volume failed (Resource could not be found.).: cinder.exception.NotFound: Resource could not be found.+ s- W5 z6 ~: q* Z
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager Traceback (most recent call last):& P( b, ?, }# J% D% x6 O8 ?
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/cinder/volume/manager.py", line 4813, in _connection_create5 W+ i: k$ }0 [% k  }. x
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     model_update = self.driver.create_export(ctxt.elevated(),
% H; j. T" o$ A" H! e$ c3 \1 @2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^. s! V; ]6 r7 X1 p
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/cinder/volume/drivers/lvm.py", line 849, in create_export
5 e2 N1 Q& s# d: p! C: ^& E* J2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     export_info = self.target_driver.create_export(
$ ]/ L3 o2 R7 _2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
' b! `! b5 q  X: W2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/cinder/volume/targets/iscsi.py", line 195, in create_export
7 C+ f6 B. N0 g, u8 [# _2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     tid = self.create_iscsi_target(iscsi_name,
% N, H8 O; N& j6 d! s0 t! X2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^0 K# t) @2 c) v$ g
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/cinder/utils.py", line 669, in _wrapper" ^4 D% {& r1 X
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return r(f, *args, **kwargs)
# C* H; n1 z, r- ~2 o! J/ i( Q2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^^^! P7 I. {, a; b# v
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 423, in __call__( N1 _  r& h, o0 v
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     do = self.iter(retry_state=retry_state)
+ g# D8 [3 ?6 ^9 u6 h0 a3 ]2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/ T; A7 ~/ A* b. L4 y& ]
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 372, in iter
& p3 A6 L4 v# U4 m5 o2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise retry_exc.reraise()$ g* T9 \( C8 J( I' M  d, |
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^' G* b8 q; S& i" ^
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 189, in reraise
" j  d) j. i8 T) @& V9 i2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self.last_attempt.result()
' `: `# D* W; [8 M  ]+ \. K2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^
& _7 X  x0 p1 S' v( x; ^2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 449, in result0 n2 ~7 Y2 V8 L: B8 u5 M
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return self.__get_result()
2 W2 `0 {( `5 w# S- j2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^' Q% \  n, t+ h; X- P, I5 C, V
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 401, in __get_result5 b- H0 S( d* B, b+ \4 ]7 {! m
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self._exception! u6 z. z# i- c  Z
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 426, in __call__
$ R# D1 o/ s6 I9 a2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     result = fn(*args, **kwargs)( A  c, q) X# N8 u0 }$ c. C# X
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager              ^^^^^^^^^^^^^^^^^^^
+ D" Z1 V$ O1 R) c& `, x2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/cinder/volume/targets/tgt.py", line 207, in create_iscsi_target+ \% b4 @3 N0 t( G, N% q
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise exception.NotFound()1 P2 m5 u  E5 Q, c5 G' p
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager cinder.exception.NotFound: Resource could not be found.
( O" O: s3 M& A! @  p2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager
1 b7 g6 ]% S! c7 w8 r8 p2 `2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server [req-8d0ba048-3f77-4830-8c21-31e02f48c2b3 req-f7037aa6-ba98-4d12-be17-2a3461a18c07 99649cadcde24076a14eb901ff14b52b 837e526fffed46ec9b49f52410633bdd - - - -] Exception during message handling: cinder.exception.VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Create export for volume failed (Resource could not be found.).0 Y# g) ~% g% V
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
- b3 q; I9 I9 w; f6 C: U5 \& D2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/cinder/volume/manager.py", line 4813, in _connection_create! k2 }# f& O  a' C2 @& c0 a
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     model_update = self.driver.create_export(ctxt.elevated(),* Q7 {; M! x, c* z
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^+ `0 L3 y$ a. X6 w# l# e+ `
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/cinder/volume/drivers/lvm.py", line 849, in create_export1 @/ Y) H* p1 K7 X1 v# I# E' l
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     export_info = self.target_driver.create_export(1 l! V) D' }- e' S$ ^% `
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
) X, B/ K0 {) C' @2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/cinder/volume/targets/iscsi.py", line 195, in create_export' L+ V% X. z' z# Z7 T+ E
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     tid = self.create_iscsi_target(iscsi_name,0 D9 R4 S0 O! l& L1 m. |
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^: h1 f2 j5 K6 D" E; o
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/cinder/utils.py", line 669, in _wrapper4 E: s; o8 S( v+ U& g
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return r(f, *args, **kwargs)
) _" [. m1 K& T; [8 |* J2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^
$ v6 }' N5 j6 f- x" b2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 423, in __call__8 g5 A& Z' h( \8 v. V
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     do = self.iter(retry_state=retry_state)
1 _. k+ H* _) p: _+ J2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^4 [4 |- c2 p' d- }; U8 m' {1 b
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 372, in iter
4 q, T* R/ x& k* o, t2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise retry_exc.reraise()
4 @  E6 S! J2 k3 M2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^
6 @) R, G0 f0 E3 t, h2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 189, in reraise6 }0 @# R4 P% Z2 R9 U9 H% V
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self.last_attempt.result()
% U, m( m2 ]- b2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^
- E5 h$ P" E9 j7 Z+ B& h! ^2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 449, in result: C( w, L0 s/ R6 ]3 s/ y
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self.__get_result()7 i5 g' c2 x9 A9 B" {1 _- [
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^2 n) R" @" k3 p: S5 u8 k+ }
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 401, in __get_result
. C' e. A) }+ G/ f# T' R5 x2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self._exception
9 @, d; e9 R. @/ ?+ w9 a, _2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 426, in __call__
5 T6 Y6 S5 \8 s  V2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = fn(*args, **kwargs)1 Z4 `! x9 R; u
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^) |; s" D- V; X) g. ~( C
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/cinder/volume/targets/tgt.py", line 207, in create_iscsi_target
* T; N3 S; }$ ~# W0 g2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.NotFound()& y" A8 b) t& T7 B1 ]
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server cinder.exception.NotFound: Resource could not be found.
! ?% {, }3 `5 Z9 O- o2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server ' f2 [( R; j5 j  H9 ?
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:
/ ^- u; J% T+ O$ \  ?+ P2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server
8 `7 ?& A) ?9 `& b( }1 i: @0 }2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
7 O1 e, p% J3 Z( d9 @" T' z2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming7 R2 C' h" t1 v: Z+ i1 ?
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
) `  ?- M# ^5 D: ?# G2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^# F8 g9 v% ~0 I5 q
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/oslo_messaging/rpc/dispatcher.py", line 309, in dispatch
4 x. ]. ?% Z9 }% M9 E$ M; w2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
+ y  `; C2 A4 ]3 ~, e2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^, s9 y, q1 W6 u* I+ b
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/oslo_messaging/rpc/dispatcher.py", line 229, in _do_dispatch
$ Z, x4 r0 C2 Q  P! T) E* C2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
3 e# m( p3 l# Y7 w6 H2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^^^^
0 B9 v" `2 N4 D: h' U$ q/ M. O2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/cinder/volume/manager.py", line 4886, in attachment_update
, n; f% o$ D* [& c+ e. e5 b2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     connection_info = self._connection_create(context,2 Y0 ?* H0 j/ j
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^, V' D1 Y( A5 q2 H6 K/ I9 D  ^
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/cinder/volume/manager.py", line 4818, in _connection_create
1 ^8 i  [1 D3 F# o4 W2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.VolumeBackendAPIException(data=err_msg)
4 J; U& X( w* B" ^; x* F  A; i2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server cinder.exception.VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Create export for volume failed (Resource could not be found.).
6 \6 U9 b4 O2 ^$ ^, b1 L6 `% W2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server 4 m) ?% V: p, E/ b3 w2 T* G0 U; X

) V2 M1 F2 Y9 s) H5 S
: Q7 |4 K) H( {/ u8 K/ ^6 }% h

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-10-16 17:00:01 | 显示全部楼层
以下是nova-compute的日志:% f; X! p6 }2 r4 X
2025-10-16 16:01:36.084 25820 WARNING os_brick.privileged.nvmeof [-] Could not generate host nqn: [Errno 2] No such file or directory: 'nvme'1 Y. A+ l% j* A: ?: ?% l
2025-10-16 16:01:41.104 24662 ERROR nova.volume.cinder [None req-8d0ba048-3f77-4830-8c21-31e02f48c2b3 99649cadcde24076a14eb901ff14b52b 837e526fffed46ec9b49f52410633bdd - - default default] Update attachment failed for attachment 5c0f382d-2425-4805-9fe8-9f372da78ead. Error: Unable to update attachment.(Bad or unexpected response from the storage volume backend API: Create export for volume failed (Resource could not be found.).). (HTTP 500) (Request-ID: req-f7037aa6-ba98-4d12-be17-2a3461a18c07) Code: 500: cinderclient.exceptions.ClientException: Unable to update attachment.(Bad or unexpected response from the storage volume backend API: Create export for volume failed (Resource could not be found.).). (HTTP 500) (Request-ID: req-f7037aa6-ba98-4d12-be17-2a3461a18c07)
- A& O" H5 h% F9 V2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [None req-8d0ba048-3f77-4830-8c21-31e02f48c2b3 99649cadcde24076a14eb901ff14b52b 837e526fffed46ec9b49f52410633bdd - - default default] [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584] Instance failed block device setup: cinderclient.exceptions.ClientException: Unable to update attachment.(Bad or unexpected response from the storage volume backend API: Create export for volume failed (Resource could not be found.).). (HTTP 500) (Request-ID: req-f7037aa6-ba98-4d12-be17-2a3461a18c07)
  v8 m: Q% V5 T  r# i, v2 @/ i& P2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584] Traceback (most recent call last):1 c; v7 W5 [2 l- Q! I7 @
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/compute/manager.py", line 2170, in _prep_block_device6 k. G8 U/ D+ ]7 A
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     driver_block_device.attach_block_devices(5 ^- O* j4 c' w9 p3 x! |* @# q
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/virt/block_device.py", line 936, in attach_block_devices
5 R$ f+ v1 |/ K! x7 W1 c) w3 [1 [2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     _log_and_attach(device)8 F1 C4 A/ x- z& |) ^9 G5 z
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/virt/block_device.py", line 933, in _log_and_attach4 H0 b$ r: x, r
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     bdm.attach(*attach_args, **attach_kwargs)0 v! K/ {7 X" X/ T7 V
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/virt/block_device.py", line 835, in attach  u* ]. W: Y% P! T- Y$ z
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     super(DriverVolImageBlockDevice, self).attach(# z6 }; x- P2 U' W; X5 Y# q* Q
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/virt/block_device.py", line 46, in wrapped
$ A5 t  J0 [9 `0 \2 K9 H$ m* E7 V2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     ret_val = method(obj, context, *args, **kwargs); _+ o* X1 ?$ g4 _5 V) T, `2 s
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^0 `4 ^! f( M4 y
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/virt/block_device.py", line 734, in attach2 A2 V2 H' m3 K# p4 E
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self._do_attach(context, instance, volume, volume_api,
; x' p' V" B1 f: T, m, ~/ R2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/virt/block_device.py", line 719, in _do_attach# G5 r! Z# B- Z# g, S
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self._volume_attach(context, volume, connector, instance,1 R# e- ^9 h6 r
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/virt/block_device.py", line 633, in _volume_attach: K1 Z  v7 {' O% K* ^5 F
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     connection_info = volume_api.attachment_update(
( I, a6 [6 X) `1 d5 g, m; \2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: L. U1 i: r2 }3 e1 d2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/volume/cinder.py", line 397, in wrapper9 o5 W6 G  b& [  n) v# Z
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     res = method(self, ctx, *args, **kwargs): @3 D$ J* u1 \7 O
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
( x0 i! F! \9 n1 [) T2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/volume/cinder.py", line 451, in wrapper# R, z0 ?5 b/ U( {0 }. d/ x
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     res = method(self, ctx, attachment_id, *args, **kwargs)8 D' [$ X0 L7 m/ D+ a
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^5 t9 m, G: z) [
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/volume/cinder.py", line 882, in attachment_update9 H% f- C4 K% `' a
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     with excutils.save_and_reraise_exception():
- ?0 k% v7 g* X& Q$ B; j; V" `2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/oslo_utils/excutils.py", line 227, in __exit__. v: M; ]# d: \4 V# b: q: v
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self.force_reraise()
1 ~  j3 A/ Z  D. y2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/oslo_utils/excutils.py", line 200, in force_reraise* q# J8 r* V3 ^
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise self.value- M9 t- m* G3 ]
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/volume/cinder.py", line 876, in attachment_update& ]" ^2 W/ R: W! ~/ M+ a1 C6 E7 I+ c
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     context, '3.44', skip_version_check=True).attachments.update(' O: _$ L7 n: h- m# B8 W
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                                                           ^^^^^^^
, b+ M* O! g8 f0 }: K. I. M4 {2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/cinderclient/api_versions.py", line 421, in substitution
+ M1 f1 L1 |3 N$ ^8 R4 w2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return method.func(obj, *args, **kwargs)" n, p3 c  H  @# ?6 X. l
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^1 Z+ m+ W1 j& t2 }& E8 p5 h/ R
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/cinderclient/v3/attachments.py", line 75, in update' m  a( J1 C) |- f( e% ^$ f
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     resp = self._update('/attachments/%s' % id, body)
7 ?+ Z8 v# G0 ?& S4 n: M5 p8 k2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^5 B! o  M9 E( N9 q
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/cinderclient/base.py", line 318, in _update& Y5 E* E2 b4 n$ U) x0 E& c7 j
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     resp, body = self.api.client.put(url, body=body, **kwargs)/ G3 w3 W0 y0 q2 x5 B0 S0 u
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^& ^! b/ ]9 V/ T5 G" u7 s+ F2 p1 H
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/cinderclient/client.py", line 226, in put
( @8 Z, i4 t' r9 O' c2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return self._cs_request(url, 'PUT', **kwargs)3 v: M) Y2 J4 ^% \4 }/ h
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^5 r6 `# Z, Y: K6 G& @
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/cinderclient/client.py", line 211, in _cs_request+ T% s: S% P% S3 Z$ k( }
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return self.request(url, method, **kwargs)' Z9 W; j  w9 Z2 o+ d* V
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^1 B. d4 R' q! ]! X9 n
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/cinderclient/client.py", line 197, in request! P% V/ d' V5 n- I3 d
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise exceptions.from_response(resp, body)
8 ^! b" K1 h# g8 E7 Z% q2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584] cinderclient.exceptions.ClientException: Unable to update attachment.(Bad or unexpected response from the storage volume backend API: Create export for volume failed (Resource could not be found.).). (HTTP 500) (Request-ID: req-f7037aa6-ba98-4d12-be17-2a3461a18c07): d- v1 B) v# M! r9 r
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]
# E& B# {. `  i' k# {' C5 y+ s2025-10-16 16:01:41.565 24662 ERROR nova.compute.manager [None req-8d0ba048-3f77-4830-8c21-31e02f48c2b3 99649cadcde24076a14eb901ff14b52b 837e526fffed46ec9b49f52410633bdd - - default default] [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584] Build of instance 2ffde1e1-87ac-466d-bd21-870dec53c584 aborted: Unable to update attachment.(Bad or unexpected response from the storage volume backend API: Create export for volume failed (Resource could not be found.).). (HTTP 500) (Request-ID: req-f7037aa6-ba98-4d12-be17-2a3461a18c07): nova.exception.BuildAbortException: Build of instance 2ffde1e1-87ac-466d-bd21-870dec53c584 aborted: Unable to update attachment.(Bad or unexpected response from the storage volume backend API: Create export for volume failed (Resource could not be found.).). (HTTP 500) (Request-ID: req-f7037aa6-ba98-4d12-be17-2a3461a18c07)
( m2 k1 l$ P# E5 x& F2025-10-16 16:01:41.579 24662 INFO os_vif [None req-8d0ba048-3f77-4830-8c21-31e02f48c2b3 99649cadcde24076a14eb901ff14b52b 837e526fffed46ec9b49f52410633bdd - - default default] Successfully unplugged vif VIFBridge(active=False,address=fa:16:3e:74:4e:fc,bridge_name='qbr88cc5e51-3d',has_traffic_filtering=True,id=88cc5e51-3d4b-4c08-8ade-a5687ce6d57b,network=Network(ed5db341-00fb-487b-ba38-d766dbb342be),plugin='ovs',port_profile=VIFPortProfileOpenVSwitch,preserve_on_delete=False,vif_name='tap88cc5e51-3d')1 z* g5 o1 @& [! p3 T5 l

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-10-16 17:00:02 | 显示全部楼层
调整cinder.conf文件,检查服务tgtd,target服务等。6 Q. L' G8 b: P2 p# `5 F& t) E

* x  W+ e4 o7 S3 X+ ~9 g2 ^[lvm]; D( p: [9 `% n; p9 g
iscsi_protocol = iscsi3 m4 N1 }5 r, W& G
iscsi_helper = tgtadm: _% |) z" a& ~# c. _
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
; C1 I) K; c2 k7 yvolume_group = cinder-volumes% h4 v( X* V; L1 ~7 w- \. N0 b
target_ip_address = ip
3 n; u+ i. w. Ovolume_dir = /var/lib/cinder/volumes. @! P6 y9 g- I* ~% S

1 q9 [% z2 Z2 H# L" q2 _
4 u# P7 F' S/ f4 B' b( E( ]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-10-16 18:51:29 | 显示全部楼层
一、后端采用nfs
' N) A0 G) K# e) a5 m6 ~( S1、安装nfs客户端
; E1 R4 [/ i4 r9 `
0 x6 l$ S) t8 p% h' K7 C# yum -y install nfs-utils
) c% Z! }3 _5 ]$ C: a2 H% Y7 a% b1, v9 l3 x1 [. L  l: s0 L: l
2、配置/etc/cinder/cinder.conf
! m, D; v% v" T5 }; o& }7 v& r- G1 o# k
[DEFAULT]9 l) W8 z6 N( J3 N  D8 }
backup_driver = cinder.backup.drivers.nfs
2 E0 t5 r. j# x- X$ ~/ R6 N
/ m: K( \3 d5 {backup_mount_point_base = $state_path/backup_mount  
% c) K( z% j- M5 i: l9 kbackup_share=172.16.8.99:/backup# G+ q: D1 e7 [! W( g; ]2 F
格式:<hostname | ipv4addr | ipv6addr>:<share path>
: q: r# b: I2 c! Q二、后端采用glusterfs
& o8 `8 j2 k( y, `5 ^1、安装glusterfs客户端% g7 i5 Z: \0 b
1 t0 g$ E* ?; Z6 F& Y6 L/ ?3 l* l4 D4 \
# yum --enablerepo=epel -y install glusterfs glusterfs-fuse
" ?2 P, @( n& v  V. _1
. L; P4 ~! h1 `: e$ K6 ]2、配置/etc/cinder/cinder.conf
) b- }; \5 F% \1 U0 C, e' Z  E, D* d, m9 q' n1 ?
[DEFAULT]( C& D. S" i$ ~0 {8 A
backup_driver = cinder.backup.drivers.glusterfs
6 c, M7 V0 h! {glusterfs_backup_mount_point = $state_path/backup_mount
: y3 q' T7 x. _' S% l7 u" ~glusterfs_backup_share = 172.16.8.90:/vol_striped
1 h9 D% Q$ A: H6 ^% n格式:<hostname | ipv4addr | ipv6addr>:<gluster_vol_name>; W0 `$ p& g" M
三、后端采用ceph0 P) `4 d# `% G3 k! K4 |
3 |" ^! C$ w/ i$ z  y; h  F7 A
[DEFAULT]; k$ c6 ^4 X: c; I0 A$ D3 D3 b
backup_driver = cinder.backup.drivers.ceph
( L! ]2 f* o6 @  S5 m0 zbackup_ceph_conf=/etc/ceph/ceph.conf9 I. E" y7 @# Y7 S( @6 G. j
backup_ceph_user = cinder-backup
8 ~4 {! w) g3 f9 H' j, abackup_ceph_chunk_size = 1342177288 b7 ?' J- H* U2 ?% ^
backup_ceph_pool = backups! o# H+ ?, z. ?  |/ V+ @/ g- ]
backup_ceph_stripe_unit = 0
: Q' ]8 S7 K8 _0 {2 Abackup_ceph_stripe_count = 0
: O* }3 l6 O. ~$ F" D5 T
  I8 P$ Z/ J* z! H- F
6 V* V( [3 i  v8 r9 I' C四、后端采用swift2 ]; I* g( U" K$ O# c& ^

: h* v4 [1 c" a: S, x[DEFAULT]( V) K- R2 e7 y6 `3 ~) }! j4 k
backup_swift_url = http://10.146.32.17:9024/v1/( L4 k" H  `" J) _$ d
backup_swift_auth_url = http://192.168.0.5:5000/v3
8 ^% W3 D3 G! G/ s- [, c* _swift_catalog_info = object-store:swift:publicURL
+ ~/ i) P6 ~: j# K* f- ^backup_swift_auth = per_user5 w$ T# Z4 I8 ~. z1 T( {2 B
backup_swift_auth_version = 3
( y% E. u, d# L- @backup_swift_container = volumebackups, y/ _' ~) S0 W
backup_swift_object_size = 524288005 r( M. n" s/ L; ?: b+ r& t
backup_swift_block_size = 32768- T/ \4 [5 o- u7 d. R
backup_swift_retry_attempts = 3
; F7 S. `9 M  \. k) A2 jbackup_swift_retry_backoff = 20 G2 B+ ?. D! q3 u
backup_swift_enable_progress_timer = true
: j- b: B: n' V) gbackup_driver = cinder.backup.drivers.swift, j* b* \, j; z

$ T/ t8 z1 m' B9 z& j4 I9 w4 v
( ]) S, x7 i5 P- Y- J% Q  F2 D五、重启cinder-volume、cinder-backup服务
  H: r: r% }5 e2 ]% g9 `. k4 Z2 G% v3 g  O8 ]+ p: u5 I
# systemctl restart openstack-cinder-volume  openstack-cinder-backup
# w5 B  ?4 Q+ R1
+ E+ X! D5 j' e+ _六、horizon启动cinder backup功能,配置/etc/openstack-dashboard/local_settings
% V: g- }6 B- |+ b
# S6 w$ s$ Y- l9 r1 Q5 vOPENSTACK_CINDER_FEATURES = {$ ?) {$ r9 a) K% P
    'enable_backup': True,  m) {; w6 e9 M3 U) n. m
}

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-10-17 12:26:42 | 显示全部楼层
可能是因为后端存储的问题,尝试部署ceph分布式存储。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-11 23:56 , Processed in 0.016885 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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