易陆发现互联网技术论坛

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

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

[复制链接]
发表于 2025-10-16 17:00:00 | 显示全部楼层 |阅读模式

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

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

x
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.% o! B3 |( h7 A
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager Traceback (most recent call last):5 Z( W: a" O5 e- m( p6 J8 E
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_create
4 F* _9 c7 l7 Z1 P7 Z% a+ ~2 w2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     model_update = self.driver.create_export(ctxt.elevated(),
5 z* u) B; b  K- f! l% B+ }2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^, B- `0 ~) m9 o. J7 k
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
8 X; ?- m6 Y% L. V. m& H' X& }* Y3 k2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     export_info = self.target_driver.create_export(
: C/ q; b+ h% p2 L5 |! l; c2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
, |$ x* b! B, H: y6 w% t2025-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
: S* V! x: N* J$ x: C  N$ Q. G2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     tid = self.create_iscsi_target(iscsi_name,
# I* Q+ ?% v% J& c2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^2 a  Z' \  K$ D# d
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* |: h) l4 f0 J  o* _. E
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return r(f, *args, **kwargs)
. w2 [5 O: d: n/ g2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^^^
! o, ?" ^; i) Y( `. ^( T. T2025-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__
3 d, T' p2 T% }8 b, ^6 n4 b' x* H* b2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     do = self.iter(retry_state=retry_state)" z* a6 p0 P' O" D
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
" s4 ~0 L) D3 [9 W2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 372, in iter3 X  h9 r- T4 ^* b& j5 ]5 C/ Q
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise retry_exc.reraise()
/ y, ~# s* h, z! U7 `2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^
+ U! J: V) r& t+ J2025-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& z3 B2 d6 k" P; C* d
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self.last_attempt.result()
8 j( u1 \. j/ p/ ?$ r9 V2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^/ k, T1 T) ]" c
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 449, in result
% G0 h0 p' D. M9 q& w2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return self.__get_result()
8 C9 o. _* i  q6 ^7 _; @  d, v7 g2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^5 G6 L: ?/ b% X0 L# U/ m+ E
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_result3 b1 V' `+ N- u. m/ a/ P
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self._exception
7 ^$ G( Z2 [* F, c- S0 ?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__0 }& ]9 D- q# p: r. E' V
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     result = fn(*args, **kwargs)9 l; _" ]7 E- d7 Z& {
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager              ^^^^^^^^^^^^^^^^^^^  Y$ l8 {9 Y- i. h2 d- |* B' [  R
2025-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
! |5 L! _3 z) }% m$ ^8 e6 j2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise exception.NotFound()
; M, k& u: J+ ]: l  W* v2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager cinder.exception.NotFound: Resource could not be found.
5 `$ a! F. f5 V3 {7 ~4 R2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager
9 q0 D* L- ~$ J) b) g4 r2025-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.).: g9 x& i6 h# A6 a1 O$ t
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):& S$ @  Z7 S3 I' o! }- i4 t
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 4813, in _connection_create3 K, P. _* n( m7 b
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     model_update = self.driver.create_export(ctxt.elevated(),$ T8 ?6 M* F- c2 ?
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^' b; D' ~: A2 o  v
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_export4 n" E7 C" R* R9 r+ h7 `1 Z
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     export_info = self.target_driver.create_export(
# Z0 [7 x/ U) Y- X2 N8 k7 S( ]* K' G  Z2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 a, A2 H' M/ K8 f' }9 k2025-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_export7 }/ R+ t# p2 f! ]* U) u5 s8 \
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     tid = self.create_iscsi_target(iscsi_name,
# V+ H, a& l3 r' F1 ]2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^) k( V. a/ R/ T, _
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 _wrapper" k+ S' D& Q6 C
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return r(f, *args, **kwargs)
2 `" G& k- u  l* {2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^9 i7 T5 R& q% \
2025-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__( D% t2 D5 A, R7 e3 `0 E
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     do = self.iter(retry_state=retry_state)9 x9 Z/ d$ q8 j% h$ r: L" `* x( g
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5 A0 d$ o2 Q. ]5 M2025-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
) \( f0 ~: O9 f2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise retry_exc.reraise()
, O8 h) m2 x1 h% j4 x; D$ g4 {1 u2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^
8 P1 L% ?) A  i2025-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 reraise0 i1 F/ T" z. p
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self.last_attempt.result()
- M; E" @  k0 ~  q, A2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^& c5 J2 b7 }8 B5 [7 Q; d' j- J
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$ V) C! B$ u6 w4 O
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self.__get_result()  W0 x) r- W$ G! {' |
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^
7 r$ E6 a- ^8 R3 j2025-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
' `: [- B+ i9 {" K2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self._exception
  p' Y( p: s) e& N# o! K1 }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__
3 u7 k, s8 ]+ F- k: [2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = fn(*args, **kwargs)
1 k4 ^# b, G" J6 ], Z" U, V% d4 p2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^
# R- T8 w! d+ b9 g2025-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  H- u; g8 A3 h# r, c0 \, j
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.NotFound()! w# P2 ]* g5 E/ p  q0 |1 F9 F/ [2 }+ |
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server cinder.exception.NotFound: Resource could not be found./ n8 t0 V, ]" x' F$ L2 i
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server - I* S8 P6 L2 p1 h- {6 x
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:
9 }0 E! K0 \/ d  w2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server 2 o5 t- v) R: J6 h5 _4 n2 A3 `5 p
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
! K4 _7 X& A# S2025-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_incoming
6 A7 ^5 ^3 M5 M/ K2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)! ^  [$ h$ J) Z7 X6 L( l
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1 T) s4 X) D  |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! i- S' n* N3 G2 q1 A
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
4 C" Q' s: Q2 l6 P9 i- B8 b2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* k9 t( C( @& B. k  }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' P; e. |5 V: B4 l: y- b
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)+ r" A! ^" _0 ?8 Z
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^^^^
, `) E8 S6 t4 L. ]) B* t% p- h2025-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
5 S1 W- ?9 I% P: [9 ?( i2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     connection_info = self._connection_create(context,
' H. b( ]7 m9 I$ Z# z! c2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# B9 E' v) _0 e- a1 h2025-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
& m" N$ m0 _- E$ \# G6 ^) @2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.VolumeBackendAPIException(data=err_msg)
3 Q7 j1 ^9 y9 w3 E7 _2025-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.)." A9 G3 Y! x* t
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server
& S% j" O$ Y9 `/ j7 r  S- b) v: Q7 B6 ?/ a4 ~

4 r5 @7 M1 J! [& R9 t( r# h) W
 楼主| 发表于 2025-10-16 17:00:01 | 显示全部楼层
以下是nova-compute的日志:7 O% u$ m& k5 t5 s  c" ]
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'' k) X  ?* x, z' R
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)
$ n" X& U+ q# G2 F4 D2025-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): f) t4 e5 H* s4 S2 F* ~
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584] Traceback (most recent call last):3 k" `8 P3 t. P
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_device
% z* _7 s$ [/ p' X, K. E2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     driver_block_device.attach_block_devices(
# q* w, G" G8 H& T# q6 O0 D- 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 936, in attach_block_devices1 w1 Q2 F6 u) i: e8 t( S
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     _log_and_attach(device)
2 h" o/ T+ x$ v2025-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_attach* k7 ~. }8 ]0 Z3 z0 p
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     bdm.attach(*attach_args, **attach_kwargs)* x, k2 b' `' b+ z, T; t- A( @7 m
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
8 A/ a: H* c- I+ d( d4 f2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     super(DriverVolImageBlockDevice, self).attach(
) P. h  D0 Z* U. j6 f2025-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
+ O# U( X1 w' x1 F) Y. l2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     ret_val = method(obj, context, *args, **kwargs)
# i# z8 Q7 e( H" V5 R2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9 @* @- P. u$ L7 X' N; H2025-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 attach& r+ n7 }0 k+ x, v3 F% d
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,
2 M: k1 l8 }" ^  {$ C; c% K2025-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_attach1 j) S" ~; o# o5 z; `6 f' [# n
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,
. E# c+ e1 J; ?8 Z6 Q- z2 e) C; M, F2025-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; [7 D$ \4 S) I: N2 M* J
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     connection_info = volume_api.attachment_update(
' @+ o- ?( V( d2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^. w  \; c; T4 `2 i3 `: l+ c/ K, 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/nova/volume/cinder.py", line 397, in wrapper3 w3 R4 c* a, D; z1 u! g
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     res = method(self, ctx, *args, **kwargs)
6 S  e( r5 Q/ v5 D9 |4 s3 B2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/ ^; p" L# B0 e/ J- ]
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 451, in wrapper( [+ H) q& D( z) N8 ?$ G! f3 ~  Y3 }# M
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)! N' ]* \8 Q: {: o8 y
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^3 \0 _1 s3 o8 T/ V% [4 e) h3 B2 F
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_update2 ?+ I$ m' f9 v8 O# }
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     with excutils.save_and_reraise_exception():/ W0 k0 f# q) V- 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/oslo_utils/excutils.py", line 227, in __exit__
. o7 J2 c/ E+ D& X2 m  I) N# f! J2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self.force_reraise()/ d' O4 i3 i* m! b+ W% d" ^
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 200, in force_reraise
7 j$ `+ u- ~/ @4 {0 W, x1 D% Z3 @2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise self.value
& w6 L3 H* W' s, s" v- P2025-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
- F- Y( e5 Y8 Y+ f! H5 ~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(
, U/ ~1 ]3 x8 U. d5 L( v, }2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                                                           ^^^^^^^5 [. H) t3 b% G+ _0 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/api_versions.py", line 421, in substitution0 k; u( m) F) H* b8 O, [! p
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return method.func(obj, *args, **kwargs)5 Q: \8 B0 M' q, q7 x) I
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^: a! V+ l8 F( Y2 U/ |  j, 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/cinderclient/v3/attachments.py", line 75, in update3 ~5 X4 U: {" m
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)
0 ~0 m: z$ x, ?8 [6 x" d2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
& c3 M" x. W' F5 j6 O2025-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
/ _+ O9 Y1 \0 `2 O1 s1 C; o' k2025-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)
; M. h0 r  v/ S, t2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^# i, c* i6 j2 E$ a3 ?
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 put1 b5 J; J+ H' m2 N$ z7 M1 o  j6 o7 R
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return self._cs_request(url, 'PUT', **kwargs)4 d1 Q  H' L6 G: a
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
$ N9 p7 k' u/ |* ^. a2025-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
9 W2 q) ]; B. _2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return self.request(url, method, **kwargs)
) U4 B' y0 Z& F$ p2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5 Q. o, [/ e3 S2025-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! G* f" }- I/ K2 j0 |
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise exceptions.from_response(resp, body)  t8 Q/ ~# z! o4 p* j. Y9 V
2025-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)
( y; E7 F, B7 e' o: e. |6 m3 B2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]
2 W& J' L7 l4 u0 M( I- g& D0 A2025-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)1 g3 w6 L4 a) f* A
2025-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')
$ u5 W1 y0 c0 g  D: W8 p$ o! [
 楼主| 发表于 2025-10-16 17:00:02 | 显示全部楼层
调整cinder.conf文件,检查服务tgtd,target服务等。
0 E9 A. e- }" y9 p! u" K0 B  l/ s
[lvm]
/ L7 }  h! l$ viscsi_protocol = iscsi
, m) h; T/ R  [4 g# Wiscsi_helper = tgtadm8 H7 d0 [( C  `1 z8 D3 {
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver5 j3 D+ l- N) P4 I* y; U! G
volume_group = cinder-volumes
* U8 |6 p4 E$ T- T9 |( M/ t5 vtarget_ip_address = ip
7 I7 A8 |7 T. }volume_dir = /var/lib/cinder/volumes
/ K1 r% W1 [1 x, O6 _2 g( L" H8 G3 `0 \" o0 i0 d: B

/ \9 U5 W. H3 \: y! G
 楼主| 发表于 2025-10-16 18:51:29 | 显示全部楼层
一、后端采用nfs
/ `8 E' H3 y2 b( f2 L. Q1、安装nfs客户端
7 p* `5 ?: r+ n- f* e8 _! P2 ^* _- Q# e7 _* d/ a5 O' m
# yum -y install nfs-utils
1 f4 _" b" B9 P* m! i% W0 m  y10 A& V6 Y$ K  t2 U; x
2、配置/etc/cinder/cinder.conf
8 w) r, \" G. B) r* k8 S2 g* F) _) C9 U( X
[DEFAULT]/ C) ^: |- ?: F
backup_driver = cinder.backup.drivers.nfs
& `0 d4 h6 P7 z* r" Z$ J) A7 T 2 |8 q/ D1 A- y1 W; X7 L. C+ i! f5 P
backup_mount_point_base = $state_path/backup_mount    J5 k% E7 M9 G5 I" G1 j6 b
backup_share=172.16.8.99:/backup
$ @' e% Y. l: {' W" U. f. P1 A! H8 U格式:<hostname | ipv4addr | ipv6addr>:<share path>
& Z1 x4 q9 B0 Y; n" B二、后端采用glusterfs
* u% v' i( s9 Y$ G1、安装glusterfs客户端6 n; |8 @( `# R, s  i6 L
: Y7 a; i2 n- W! b  X
# yum --enablerepo=epel -y install glusterfs glusterfs-fuse
6 {# m0 o9 z" B3 b; n" C( _1, }; M2 F1 c' b' M& s
2、配置/etc/cinder/cinder.conf
3 h3 ?) t/ R( Z% b
7 P& T* B# C7 G# |[DEFAULT]
: Y) v! x3 Y* A3 ^4 T/ j- n) nbackup_driver = cinder.backup.drivers.glusterfs
% X8 H/ n, d  ?! y* kglusterfs_backup_mount_point = $state_path/backup_mount
' [6 ]8 l# e# C8 l; Vglusterfs_backup_share = 172.16.8.90:/vol_striped2 b9 i. R% N$ W
格式:<hostname | ipv4addr | ipv6addr>:<gluster_vol_name>
# W2 r* p% `' V1 Y; j三、后端采用ceph
& M: c, B; w+ _9 z2 r( k
4 ~9 A0 w9 [" v. _) A1 \4 g[DEFAULT]( V% m4 S. ]7 @
backup_driver = cinder.backup.drivers.ceph( i2 i* ~$ b, D! t  \) G6 f
backup_ceph_conf=/etc/ceph/ceph.conf/ c8 E. r1 U: [
backup_ceph_user = cinder-backup' h& I7 V1 M. K0 Z; D* Z/ ~1 }6 k% a
backup_ceph_chunk_size = 134217728( ^7 S: u/ X. [0 \( Q9 W4 J( z7 X
backup_ceph_pool = backups& m+ y, M0 V6 ~4 o  \+ h- ^* W& n# ^
backup_ceph_stripe_unit = 0
/ d' `" K% `; J" lbackup_ceph_stripe_count = 0
) P6 K  B! g. A1 S 3 Q' g, E3 j& C! a) O

1 n4 Y7 R5 f/ B7 ~% S$ F4 v四、后端采用swift* G/ O( f, p6 k* M$ K
9 D7 z1 Q& Z" e+ m" Y. h
[DEFAULT]
: H' ]; w- Y) e+ f" o: y  _, I- X0 Wbackup_swift_url = http://10.146.32.17:9024/v1/, V- g, K9 A% J9 n9 [+ y' G
backup_swift_auth_url = http://192.168.0.5:5000/v39 L5 m* j; {1 r& O  a+ L" H/ E
swift_catalog_info = object-store:swift:publicURL4 T% `; \' E( g/ h; P
backup_swift_auth = per_user6 m' D$ a  G# ^
backup_swift_auth_version = 3
$ [4 f2 U+ ~: X  A/ E1 ibackup_swift_container = volumebackups
8 Z2 K$ N4 t  ~: D% g' wbackup_swift_object_size = 52428800
& c; V: Q$ c& ^' B& U/ @( Bbackup_swift_block_size = 327685 Y) _# V* g8 e* n2 U
backup_swift_retry_attempts = 3
0 S( x/ W$ r% L( w! [- T8 }backup_swift_retry_backoff = 2
  j' w8 j8 ~' [6 Dbackup_swift_enable_progress_timer = true6 [- g0 T; m4 a% I
backup_driver = cinder.backup.drivers.swift" `2 T( j# \" Q( K% a
- W8 s% E/ a2 R9 a2 u
1 @8 n1 c$ M4 \! L/ ]* @4 a& @
五、重启cinder-volume、cinder-backup服务
& V2 L; i1 \" O! A" R% S9 ^3 e' \) q; G( u' A& i
# systemctl restart openstack-cinder-volume  openstack-cinder-backup
& ^4 p  x" `% h8 ?4 v2 h14 k- _' d+ t. W- w. X7 ^
六、horizon启动cinder backup功能,配置/etc/openstack-dashboard/local_settings/ g# m" g3 h: J8 S, _8 F& l. \& Q
; T2 C3 a! c+ ~) Y
OPENSTACK_CINDER_FEATURES = {
8 b% _' P3 L1 j5 M* C    'enable_backup': True,
% |% A; y5 j; M! ?, L}
 楼主| 发表于 2025-10-17 12:26:42 | 显示全部楼层
可能是因为后端存储的问题,尝试部署ceph分布式存储。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 13:40 , Processed in 0.052219 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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