易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 249|回复: 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.4 I7 ~1 r3 r& ^. E
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager Traceback (most recent call last):
) Q! {$ t$ @6 h0 z* E" \# _0 k2025-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_create3 U4 B' K0 M9 e3 \' q) m" ^
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     model_update = self.driver.create_export(ctxt.elevated(),
: o6 x: ]. v& R% X8 [' r2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^5 ?/ P3 S! N8 r# C7 J
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
# @6 R0 S# }$ N2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     export_info = self.target_driver.create_export(
: r$ x) o: y6 N6 F$ l( \2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^% g/ h1 p' w  U
2025-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
' @* m6 Z; R- e+ _2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     tid = self.create_iscsi_target(iscsi_name,+ [% U1 b1 ^% b9 Q
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^7 q1 f9 L4 A  _+ q# J( [3 `% a) n% k# [  f
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- p. K/ G9 C: ?; A7 H1 j2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return r(f, *args, **kwargs)
+ n9 _1 g) R2 |" }, j4 L: E; P2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^^^
1 D, k6 O: s0 x7 K" o2025-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__( }; x& \* K( v% L) p1 J
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     do = self.iter(retry_state=retry_state)
9 l& R  u& F0 }+ l, h# h) v$ X- S2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 w$ T' |! l+ L" Y* q2025-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- P5 U& @) G3 ~% ?+ `# [" E! O$ F' \
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise retry_exc.reraise()7 C/ a8 D+ l6 m! }- b! h6 ~1 N4 ]
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^
$ [0 `4 W9 v, z' G2025-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
% x) O9 K8 \" \7 K1 D( l! \2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self.last_attempt.result()
7 G( k0 @3 \. n# f( u/ P' f2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^
8 u/ J! K" n- X9 X2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 449, in result
/ ~9 z8 W0 J  U' F, R1 ?2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return self.__get_result()4 G' m. n$ o- K8 P
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^
- y( M  c1 r# G( P6 |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 r/ _' B% z% E0 e
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self._exception
5 x+ s7 r5 C+ l$ b+ {) _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__: @% d! }3 }$ ]  t
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     result = fn(*args, **kwargs)
0 o; c5 j6 T' b' `: I2 I9 }, E# G2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager              ^^^^^^^^^^^^^^^^^^^
2 f! u- W4 _3 Y* X2 [3 w( L% h2025-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 m/ G, ]; d+ M2 j2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise exception.NotFound()
5 w/ M- \0 U( t5 P/ G8 Y2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager cinder.exception.NotFound: Resource could not be found.
2 B- w7 H4 S& X1 p2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager 8 J! d- P3 C1 b0 X  c4 O2 S" u5 o
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.).# T4 r" ^! J! I7 a* @6 n4 E9 e
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):. y& ~; F1 \, G/ i9 u# s- L  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 4813, in _connection_create: ?& P. W; k4 i6 U, l, x
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     model_update = self.driver.create_export(ctxt.elevated(),
, p# [% H# h3 F/ ~2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^) ~; O# y' H* f6 m) M
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_export- a9 t3 K% i# O. d+ |
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     export_info = self.target_driver.create_export(8 B0 e! Z0 d7 ~6 d* u6 c0 j2 {' y1 ?
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^& t/ u' d6 u; A
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
' f. |7 u4 ~! ~, d8 V) o" r5 l2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     tid = self.create_iscsi_target(iscsi_name,3 B' s9 o7 I% K9 W& \9 [
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^4 t5 O& Y% }9 `
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
6 b2 H) E: M! \2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return r(f, *args, **kwargs)
& P0 \4 _% H$ w. U2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^
& e( @8 o+ c* g9 o! _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__
& f6 z8 z6 f. y2 s* o6 D" E4 e2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     do = self.iter(retry_state=retry_state)* _7 B: o+ r: g; ]4 c! x
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^% p, _; q; w( f) R9 {
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
, ?3 H) i! y. }; [2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise retry_exc.reraise()
  E( m, n( r7 m6 w4 k2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^3 {2 T3 _6 p  j3 C2 e/ 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 189, in reraise
. a# x% U' ~  {. p3 v2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self.last_attempt.result()* _* L  G' |" Q# ]' @1 ~# c8 V2 ~
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^
7 T; |; K% Y9 [; b. d" ~/ O2025-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
4 k5 c* e% e) N* X+ R' b+ U2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self.__get_result()& F9 t% y) ~1 q% J- a
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^( K8 k$ ^& L: {: ?2 ]3 ]
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
2 n! ?( c& N( s* b: {8 t  ]2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self._exception. H6 Q/ x% z/ _. m$ |% o, c$ G
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__) ?, ~8 w0 y  U. z' X6 \! ?
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = fn(*args, **kwargs)' f  a4 [# }0 ]
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^
3 h1 t$ e; |1 \" x+ {; I2025-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% c. _) R" _8 l: t) z' J# O
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.NotFound()
! j% H' w4 D0 H9 X% u, C2 g! [2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server cinder.exception.NotFound: Resource could not be found.+ }  f2 w4 ^3 R& I
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server 5 y; q! c6 F! a0 x1 u- H2 S8 R
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:9 N& j5 w) Q2 U
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server
3 b# x+ |# ^( q9 [- v5 V# b# _2 d2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
, K; B( {: r* A) ]) }2025-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_incoming0 u% E# m5 T( ]+ m
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
! `& i8 q% e! K& J9 u' P2 z2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
. z; a' i6 e# h: J2025-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
& J# x: q$ ]$ {; v1 q" ?+ W2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)8 J6 z( |1 v4 Y" F! I+ c7 i# S5 v* h, P
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^4 [; x% N  q1 P  J# 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 229, in _do_dispatch' p8 y4 v+ p# h- j
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
- V& I7 ?, c. j5 r9 @+ c: i( }2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^^^^
& ]; z* F/ V# u. C3 K( P% V3 [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 4886, in attachment_update: e& d" a) h8 l& t
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     connection_info = self._connection_create(context,
/ b) ~: d. B4 p. `& N7 t2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^! q, D& |& G0 E$ O1 O5 N( Y
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
5 W9 _5 p, ~2 _' q2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.VolumeBackendAPIException(data=err_msg)
0 G, [4 E) J$ z3 X* m6 j2025-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 P8 l) R* M1 q3 e! L" l
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   d; p8 r6 U3 D0 K. Y( r
/ P$ q4 o1 v4 V/ t0 P, p

+ i/ r% |8 k1 S. \" C$ e$ v
 楼主| 发表于 2025-10-16 17:00:01 | 显示全部楼层
以下是nova-compute的日志:
' Z2 W% u2 ?6 M7 j9 J- ?+ h3 T0 ~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'
3 d' i  E3 i5 L+ ~3 B# ~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)# U! q' Y; L4 z. Y( E
2025-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)) L+ S1 d$ u% G
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584] Traceback (most recent call last):2 o3 D4 S$ [2 s! 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/compute/manager.py", line 2170, in _prep_block_device
5 ^; @; Z, i4 L2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     driver_block_device.attach_block_devices(
( c% a# I8 Y6 t) |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& O5 g2 _$ t/ i- H
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     _log_and_attach(device)! K8 s8 H3 W: f' L5 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/virt/block_device.py", line 933, in _log_and_attach% a# i$ x" ], s- `' j3 q/ ?
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     bdm.attach(*attach_args, **attach_kwargs)( s' ^3 x7 m# S& S! k) k# @" t
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
9 O6 Z" u& o  y" K2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     super(DriverVolImageBlockDevice, self).attach(6 O; ^; g/ u* h2 S8 z2 [9 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 46, in wrapped
& D3 L" N& {$ a9 r, B( Y: A6 @  Z2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     ret_val = method(obj, context, *args, **kwargs)
; A3 \% f3 S' R2 X; n2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^. P0 o8 ~1 N8 `' S& o$ M7 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 734, in attach7 ^& ~( b" e  W2 J3 V" h
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,, E, j3 V' B: M. 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/virt/block_device.py", line 719, in _do_attach" s& J7 s5 ^- J& n3 b
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,
5 H! y; f( I6 {, 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 633, in _volume_attach
7 p& s. A' w: d6 Y3 p! M' U4 A2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     connection_info = volume_api.attachment_update(
& w. l) p* v6 T6 r9 P2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  Q. }/ q! z4 j4 a+ F% w$ m" U4 x2025-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 wrapper
+ o2 {% `8 m& R7 f; X4 ]2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     res = method(self, ctx, *args, **kwargs)+ D9 o- D5 L6 I# B$ [7 p
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ q& }2 @& A( W% b+ s+ G2025-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 wrapper7 K+ }4 f/ v& Y+ z/ ^. a
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)
7 M" o2 S; l7 z& a3 H: ^' j0 y* U1 g2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^9 T$ I5 ~, z0 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 882, in attachment_update+ k/ A& n- l% m8 i& s* \
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     with excutils.save_and_reraise_exception():) Z8 {0 D+ y; j* G: T
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__
* i* r: s7 s. v" ~- q; t2 P2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self.force_reraise()9 [5 I/ M4 u* V8 G" T7 \
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_reraise5 F9 i" i" s' m8 g- g1 C9 k
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise self.value
. ?0 Z) l- |8 u7 C# W  F# O. j; 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' z/ j/ |0 M. E* M
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(! F$ O3 _3 \9 l
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                                                           ^^^^^^^
5 |  _& J' H* u( H' d6 {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
' L! ]  |' W8 S2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return method.func(obj, *args, **kwargs)
, t) w  h) B; Q+ C2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^. L5 Q8 z3 y4 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/v3/attachments.py", line 75, in update4 d- b( U& A0 @9 ~
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)
3 ~, T! ~1 S4 e' S9 j4 x" l2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# o( M( k$ t2 Y. |* R0 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/cinderclient/base.py", line 318, in _update- Q. ~, _& Q9 d$ u
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)- O; {% N# e& M; A5 {7 d$ o
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^) a" \# `( |1 @& t  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 226, in put  C$ N/ E4 O+ U8 }7 X, O
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)
3 C5 S, y+ a( h  m3 m: M# O$ G& e2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^, }! t; }# X% i; K  ]& I+ 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/client.py", line 211, in _cs_request3 j! J* K3 K! s) A. ]4 G
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return self.request(url, method, **kwargs)
4 B2 t; N) U0 a# R/ k* Z2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  T7 U8 o& n. ~" p7 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/client.py", line 197, in request
' r. H1 S9 j) p% F: S+ Y. ]2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise exceptions.from_response(resp, body)' n0 i) x- U7 Z1 l! G
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)
6 `' y, V4 X, O5 \8 j8 @6 y2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]
" Q, `4 f( F. H  d5 G2025-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)0 U# K1 K3 N" T
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')* Y5 u0 W9 V2 @: V+ B
 楼主| 发表于 2025-10-16 17:00:02 | 显示全部楼层
调整cinder.conf文件,检查服务tgtd,target服务等。
4 r; U6 H% {, p8 Y
: D. }' N9 b. n; @) Y[lvm]
) s- Q' G' S7 Niscsi_protocol = iscsi
; L  O. H. A9 D, d  Q  qiscsi_helper = tgtadm
& B" s; x( ]7 zvolume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver" p! w  Z8 x, Z( E
volume_group = cinder-volumes  L- P, M! `! n+ J& i4 y
target_ip_address = ip9 |$ {8 \* L7 v4 ?
volume_dir = /var/lib/cinder/volumes
: F1 ]4 O. p" y$ {$ c0 `. T: Y" f

7 ?! `  ^2 B: B) A- o3 e2 E
 楼主| 发表于 2025-10-16 18:51:29 | 显示全部楼层
一、后端采用nfs
5 Q0 y- I7 B2 b& J9 U7 n6 e. e1、安装nfs客户端
# m0 r  d% G( E! E# E: p
* v1 t& M- o9 K8 e  Z1 d5 E# yum -y install nfs-utils
9 f6 D  Q# x+ i2 |% ]1
. b; \9 y" A  l9 F% F2 j8 V2、配置/etc/cinder/cinder.conf) r  c, ^5 G: D& ?# F5 {

$ ^. F$ y% X: F) {: Q[DEFAULT], E* Z( ^- E6 ?+ Z
backup_driver = cinder.backup.drivers.nfs
/ x3 y1 t% c5 n$ j  ^, g2 S , a2 t3 U! u0 d# s  B
backup_mount_point_base = $state_path/backup_mount  
" o$ m) `. e2 v* ?4 l8 U* Sbackup_share=172.16.8.99:/backup
" l+ R4 {0 R( ]! R格式:<hostname | ipv4addr | ipv6addr>:<share path># g2 h8 ]) g" ]5 u6 ?. z* k5 ~& e
二、后端采用glusterfs
1 {  Z4 J/ V3 i7 y0 |, T  t1、安装glusterfs客户端; j9 O8 n! _; ^" F

2 H- o4 u! r0 Y& Z) I# yum --enablerepo=epel -y install glusterfs glusterfs-fuse
2 M* ]  b" }3 x2 O4 k; H9 J2 b1
8 O3 ]) |3 |6 j2、配置/etc/cinder/cinder.conf5 c2 Y; K) H5 q+ ~7 Z5 e

  n# k' J; I, K5 _# f8 ~[DEFAULT]$ e! `, r9 ?5 U1 a# G& h2 K. y
backup_driver = cinder.backup.drivers.glusterfs
( i7 @3 K3 W, s2 c4 z1 Pglusterfs_backup_mount_point = $state_path/backup_mount
8 Q4 n# d# ~3 C& Z% h$ xglusterfs_backup_share = 172.16.8.90:/vol_striped4 f7 n# i; `* A8 R- L# L# ~
格式:<hostname | ipv4addr | ipv6addr>:<gluster_vol_name>
$ l( `; u2 C- f. R/ r: y三、后端采用ceph
, q3 U$ O) ~' K. S) ~4 x# p/ n: T- v( H, Y" S5 K
[DEFAULT]* M5 l7 Q2 Y6 S% h
backup_driver = cinder.backup.drivers.ceph# \' [# O) P& p  _
backup_ceph_conf=/etc/ceph/ceph.conf+ f( B+ e! U& d( B! B
backup_ceph_user = cinder-backup! n( U3 a6 o+ t+ D, T" `9 U
backup_ceph_chunk_size = 134217728
3 W$ B. Q0 L% Z5 ]/ ]; vbackup_ceph_pool = backups
/ h. g0 _7 ~5 o1 g8 |( \) Cbackup_ceph_stripe_unit = 0
8 ~1 T8 M. `( d! l  S; O9 bbackup_ceph_stripe_count = 0. P& q( [# N- I% I5 f: f* i
: D! s9 a, z  t# b3 B! e( Y7 l

8 h2 K2 r, O) c: X+ P- a四、后端采用swift3 }  z- u' ]* P# g( Z

: h0 t; z8 v0 X$ X' s; }4 h1 C8 C[DEFAULT]" C9 S( t8 R" Z4 T/ j( b. L* j
backup_swift_url = http://10.146.32.17:9024/v1/
( L" M8 w' {: {5 I' s$ [% _backup_swift_auth_url = http://192.168.0.5:5000/v3
2 c# i9 v5 z, K+ D9 \swift_catalog_info = object-store:swift:publicURL
% j" r! _* W$ i& Sbackup_swift_auth = per_user
+ r2 ]) P4 ?/ E0 [0 a. g3 Bbackup_swift_auth_version = 3" j1 `0 S5 a6 X
backup_swift_container = volumebackups5 Z$ Z+ E; E8 `9 i/ \% P: y
backup_swift_object_size = 524288000 L( Y; j/ U' b4 s4 I, \: Z& R
backup_swift_block_size = 32768
2 d% S+ ^& P( }+ }backup_swift_retry_attempts = 3, ^( J2 X  y. ]5 k$ s
backup_swift_retry_backoff = 28 H' \" s( h7 x9 ^3 W* h5 x
backup_swift_enable_progress_timer = true
/ P( M( y1 f! N* ?" t/ w7 C6 U  abackup_driver = cinder.backup.drivers.swift
3 Q; d% ~9 g- X6 I5 m" {( N1 X# v
) ^. y0 s4 q" t- g
* `0 m/ Q( [8 G7 z9 ^, b) D! s五、重启cinder-volume、cinder-backup服务( h. m  e2 O' D( o7 x  ]
& M5 M! P- c! |0 c" ]9 m
# systemctl restart openstack-cinder-volume  openstack-cinder-backup
8 B& D. I6 o# [6 F* Q1 l6 G2 C% S1/ x3 P" I+ v3 x$ @* W: u1 e
六、horizon启动cinder backup功能,配置/etc/openstack-dashboard/local_settings
) e, r3 z/ h6 y
9 E/ o; S* l3 B; x  ROPENSTACK_CINDER_FEATURES = {
8 n* ?7 s! d: n. d1 o6 p    'enable_backup': True,( b5 l3 x7 f. g
}
 楼主| 发表于 2025-10-17 12:26:42 | 显示全部楼层
可能是因为后端存储的问题,尝试部署ceph分布式存储。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 13:43 , Processed in 0.047482 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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