易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 241|回复: 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.
1 J% @! N1 T: `0 x2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager Traceback (most recent call last):4 |# n6 }; S; m+ l# x& [7 D: b. q
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_create1 R5 d! W) @* U
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     model_update = self.driver.create_export(ctxt.elevated(),
# t' `- W- X- l2 H2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 R+ [. q# k) x$ O- H3 L2025-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_export5 H5 a- i" {. ^0 k5 B0 U% |6 N/ f
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     export_info = self.target_driver.create_export(
0 r3 n: o' c" O, y4 q0 Q& Z2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" _  E0 b9 u# Y( y/ F/ @, d3 M
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
5 G' v! S4 y: A. c2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     tid = self.create_iscsi_target(iscsi_name,! {& J) ]5 p' D$ O( }) R6 g
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^1 ~  O4 N  e) l) l
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 _wrapper0 p: O. u3 O* F( w7 A
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return r(f, *args, **kwargs)3 l# i# Q/ T$ p. G+ g
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^^^
% w( p& u4 q# Z# h6 Y2 n2025-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__5 _7 ]; _) h: D1 a/ e: p; N( Y
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     do = self.iter(retry_state=retry_state)2 ^4 p4 h9 k: }* K
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^: J: H" a" F9 M1 Y1 {, f( [
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
( M' e, K8 j5 O; }/ J( l2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise retry_exc.reraise()4 O4 Y0 \* ]. c! M: J7 }" J. G
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^0 R) u3 G" n* f
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% ?+ u* i3 u+ V, W# w7 K7 h
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self.last_attempt.result()+ q% p, A6 H# b; Q
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^
0 r* T/ _- K  w! ?. c2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 449, in result
8 o3 d3 o% A* N) F2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return self.__get_result()
1 o; P1 x; A$ Y; e2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^$ f# Q9 x" h4 G" H& w
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_result! _" f9 r3 O8 v& {6 n
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self._exception
$ ]: p6 a1 _* M+ R% f+ |  |/ o8 V2025-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__
& Y2 o1 w# p3 @3 Q2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     result = fn(*args, **kwargs)
2 M6 A6 n, l% N. T: u2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager              ^^^^^^^^^^^^^^^^^^^
1 J. M& A  S  Z2025-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
, L) u2 V- u# N  Q5 `2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise exception.NotFound()0 \2 I: |2 E, c$ R
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager cinder.exception.NotFound: Resource could not be found.& y- K/ Y. a! P9 O; U/ z
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager * K; Y( U+ q) }
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.).9 {. p$ O+ }  x# }8 i; O
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
' _2 w$ S0 z. H; B7 \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; n/ V: O8 h% O2 |
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     model_update = self.driver.create_export(ctxt.elevated(),
9 |' |' c; _. v( Q3 L4 v# R2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^# G3 E$ C0 R/ X$ x5 u% K
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_export7 j; ?0 i! L9 c; u6 }7 M6 F
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     export_info = self.target_driver.create_export(# U- C; f, y" M/ x, z7 p
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
. {$ ^3 o  z* n, s3 ]" {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. V' s: d+ i+ M6 O2 K6 M
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     tid = self.create_iscsi_target(iscsi_name,) s/ u4 m# ~9 L3 z8 a) `
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9 h; g. h0 U+ ?, B- Y2025-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
# d2 K! z$ @5 k; X* @* C2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return r(f, *args, **kwargs)* p/ ]; O+ o, L; w7 I+ ]; Q, \
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^
/ x1 H: K* n6 R( {7 N2025-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__' u) `4 G# J+ U6 ~
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     do = self.iter(retry_state=retry_state)
( o8 r+ y0 r/ M0 c2 Q2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
. T& u/ A4 h( O5 q( m+ ]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 iter9 ]3 b  o4 ^) q3 M
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise retry_exc.reraise()1 T! Q8 o9 g' }/ D
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^& j" B7 z& A8 L, I
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
/ q) |! t& b0 U, w( A, c2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self.last_attempt.result()! Z1 l* L- o6 P; s6 X1 _5 D
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^
2 O/ j  b* l; 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
8 l, d# ?& o4 D5 ~3 m" P! s7 B: F2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self.__get_result()
4 M: M9 z, k. d/ O2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^/ J+ |1 b9 l1 _: q) F- H" I( M0 a
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
. }% p( j& w# H+ n2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self._exception
6 z7 ?  r+ U7 P! y- u. M  R2025-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__
6 t2 m6 V, q' u/ ]- V9 G2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = fn(*args, **kwargs)3 b; D* S% B; p7 G( T1 h8 j( t) \- V
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^4 r7 M4 A7 ~; \/ N# h2 c- E
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
! \. s" V* |1 a: z. {$ i5 h+ `2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.NotFound()
; i4 o/ J# Y7 H! s6 N; `2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server cinder.exception.NotFound: Resource could not be found.
4 V* h$ c# ~& h/ f: K3 U* b6 D2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server 6 l& M6 ~3 ~) a0 J" l* [, J
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:5 u" _; [5 d/ V; G$ I6 g
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server * f- L! }" ]# A: U4 i) o6 W7 c/ _
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):5 Y( _$ m8 p- V; O. m# W- s; n
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_incoming( E7 g5 X5 ^. M3 G  R' g
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
2 r. S4 q6 z$ L/ m* W% D2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 p; M/ r! W& w- J- z2025-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 dispatch4 ]4 o  n; I9 V. D! T' _. ?4 X
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)$ F5 c' I: M/ v6 F, Z; f
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# v1 t' h3 {' C2025-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. L1 ?" F  H$ m
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
5 e5 b$ I2 B2 S4 B- ?9 }2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^^^^: f1 W1 x- p# D9 K
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
; w' Y- v* }- n) t2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     connection_info = self._connection_create(context,
8 `1 l1 X) e; c& E3 e. _; M2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^6 w! O* r0 @7 `! P+ M% s
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
  A& f' m' x5 _8 f2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.VolumeBackendAPIException(data=err_msg)8 V/ ?3 s( C4 ]$ M" W
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.).& V' ?; O6 |2 i; x
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server
3 c4 x1 f6 A$ K6 d  ^! z4 T0 q- w+ {' W) P5 D3 N5 f
& m5 G7 B0 L0 t8 T2 U
 楼主| 发表于 2025-10-16 17:00:01 | 显示全部楼层
以下是nova-compute的日志:- M# f0 s9 d! P  s: p
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'! {! R. v! X* o
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)
1 F3 V$ D3 ?8 F1 m% b2025-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)& N3 a9 z& ^% K$ S: W
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584] Traceback (most recent call last):
& @7 ^% P: ^5 |! D7 r+ 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/compute/manager.py", line 2170, in _prep_block_device
2 Y% E% d! W. g9 I8 J- H2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     driver_block_device.attach_block_devices(' s: l( w3 ^: D) \: L8 W
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
: q. `' k1 R2 \! p' Z2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     _log_and_attach(device)9 I% h- w  o% |  ^. 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/nova/virt/block_device.py", line 933, in _log_and_attach/ F0 ?1 [- b) h' v# V$ A% Y+ `
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     bdm.attach(*attach_args, **attach_kwargs)
' f, ^. @* w( c1 Z2025-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
* k: Z5 E" M3 |6 ^1 E9 |3 N2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     super(DriverVolImageBlockDevice, self).attach($ ^0 m" @" B  Q' V% u0 ]9 Y6 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/nova/virt/block_device.py", line 46, in wrapped& D" I: A. I$ C& v6 M
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     ret_val = method(obj, context, *args, **kwargs)2 _! O$ \1 X( d& Q3 w
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^$ J) l/ r& K/ 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/virt/block_device.py", line 734, in attach1 Z+ o- E9 \1 N  e' {& _2 S
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,
+ O5 n1 c3 c+ w/ N; J/ [) i# s, 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/virt/block_device.py", line 719, in _do_attach
* n, I3 H+ p9 j) T/ A2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self._volume_attach(context, volume, connector, instance,, U0 Y- l0 ?$ X8 e; f# F  I0 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/nova/virt/block_device.py", line 633, in _volume_attach$ K# m+ u# J# Q' o
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     connection_info = volume_api.attachment_update(
& S7 ]1 R. W, H3 T2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^5 G- o" ]$ ^0 J1 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/volume/cinder.py", line 397, in wrapper
+ z# {# o8 [) D* c- ~2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     res = method(self, ctx, *args, **kwargs)
  d# Q* ^4 b& Z2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 ~: c: j6 v3 T% p  w4 ?* u8 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/volume/cinder.py", line 451, in wrapper* s3 M, k! N0 B; Y4 Z
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)
% X. ^0 p! b, F' g2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |+ u) }& l% j! y% Z) z2 ~4 [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  u* K; c3 n, d4 k* g# C* J
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     with excutils.save_and_reraise_exception():, D' m* H/ D: e1 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/oslo_utils/excutils.py", line 227, in __exit__/ A) R5 A4 d- a& u5 z  V
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self.force_reraise()& F) T2 W3 y/ g+ k; H2 }2 B
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& _$ |0 s) ?. S- J' x/ ], d( a
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise self.value; Y# a7 j7 |- I
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
/ E# y3 L/ h# n5 b8 c0 g2025-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(
! {! C! H+ v: X2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                                                           ^^^^^^^: ]' X* A! V2 }- n1 C! S% C6 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/cinderclient/api_versions.py", line 421, in substitution
1 Q! p' T; M0 g* H  h$ N' b2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return method.func(obj, *args, **kwargs)
2 c4 U0 V9 V% |! }( w7 E* A2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/ F+ K0 U1 _7 t$ T5 q/ `7 S3 O' |* ]
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
4 s% @9 y3 G$ U) h+ G& B# t* p3 t2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     resp = self._update('/attachments/%s' % id, body)! t5 v$ i8 |! f( B, t  {
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^7 m: \+ W5 h7 K+ I  o
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: P0 x, H3 T! S) P
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)
/ P1 {& m! N% n( e5 y. V2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^. d9 m0 R; {2 ?( j$ V$ d# k: 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# L5 }1 Y. }/ y: [
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)# W5 E" ~9 z; J, X
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5 L! @8 m. m& o4 a* 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/cinderclient/client.py", line 211, in _cs_request
: B, l& v$ k0 j' u6 k! O) c7 O2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return self.request(url, method, **kwargs)$ [! {( f+ U7 Z- w3 S$ }+ c) g/ A9 r
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^& Q) \5 q2 O5 t' C/ W, S1 a
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
/ N% M7 F+ W9 e; \1 [; O! y$ z2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise exceptions.from_response(resp, body)
& Z# x$ ]- A3 l; B- f; C( p2025-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)
% L& I  g0 ?7 i5 W& F& d8 i2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]
9 L# Y- j! j- 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)
( K% Q! ~) v- ~$ P7 c6 X# v  a2 e2025-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')) J4 E+ N& b: n) m; J1 t6 K
 楼主| 发表于 2025-10-16 17:00:02 | 显示全部楼层
调整cinder.conf文件,检查服务tgtd,target服务等。% U: h1 }5 c3 v6 b) p; l5 J
$ o5 ^- Y; |# K7 g$ ^0 G& @
[lvm]
; S# p6 w* R, e5 f7 E( Eiscsi_protocol = iscsi
0 z- s  S+ k  d& D# T5 ?$ Discsi_helper = tgtadm
, t2 c: P' U3 G8 \$ qvolume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
" Y8 S  l: ]% j4 evolume_group = cinder-volumes
# Q, z  y8 A9 ~! J8 V, Dtarget_ip_address = ip4 C% d- n+ Z0 ~6 f* @0 y8 I4 N& h
volume_dir = /var/lib/cinder/volumes
8 z7 C3 J6 p  R6 B( H. u. `9 j0 g
# g: k$ _; R: j  T0 F6 ]/ j! u
 楼主| 发表于 2025-10-16 18:51:29 | 显示全部楼层
一、后端采用nfs
/ N- r' k" P5 D1 q/ |) F0 G1、安装nfs客户端
8 S1 O5 w" T  [) P+ N1 R% V1 s! [; e; u8 t( E
# yum -y install nfs-utils" h7 @% M1 V% ~
1
' X! k1 Y6 F4 d$ ^7 Y7 y8 e2、配置/etc/cinder/cinder.conf' r8 ?% D# P) l
6 X$ k% ~+ P8 }% N
[DEFAULT]% o. ]& s2 v. @% L; R9 i( i* v$ }
backup_driver = cinder.backup.drivers.nfs
$ C) {4 t9 J1 V ' ?6 B  z" |7 J- c5 W6 f) t
backup_mount_point_base = $state_path/backup_mount  
: S' `% Y) a( Q! A' nbackup_share=172.16.8.99:/backup! I- Q6 `- j  {
格式:<hostname | ipv4addr | ipv6addr>:<share path>
0 a# R) t- u1 A0 d' C1 f二、后端采用glusterfs
3 l2 Y5 r% @+ d4 n; j1、安装glusterfs客户端" I- k, i- D0 M2 L
9 A% O- ~  L4 r0 X, Z4 R/ K- _
# yum --enablerepo=epel -y install glusterfs glusterfs-fuse
% c: A* x+ ~6 K, O6 Y7 e1
, Q5 q: _& E7 q# j! @- I2、配置/etc/cinder/cinder.conf, k" c9 \9 Q9 e9 Y3 k* Y

$ X/ ]" B) f# e( U8 X; B[DEFAULT]3 [, Q/ }+ `; G7 w) v# G
backup_driver = cinder.backup.drivers.glusterfs& b$ ^5 N/ N8 @) ^
glusterfs_backup_mount_point = $state_path/backup_mount
% ?" l& S) u* ^9 S  n; fglusterfs_backup_share = 172.16.8.90:/vol_striped
6 Z0 ~6 z( n! r- H2 Y2 a7 G格式:<hostname | ipv4addr | ipv6addr>:<gluster_vol_name>
5 ]( M  C- Q. P) B& z三、后端采用ceph
! y- u0 p6 j& |, K! W
. w& ?9 R6 V8 i& a  k[DEFAULT]+ x; L  A+ ?/ h+ E# Y# ]8 `* _
backup_driver = cinder.backup.drivers.ceph9 z0 Q3 D5 G  Z5 U3 ?
backup_ceph_conf=/etc/ceph/ceph.conf" v6 K3 B5 [8 Y6 L- _
backup_ceph_user = cinder-backup2 Q- I5 e- L6 E) f: `. g; w# u
backup_ceph_chunk_size = 134217728: i3 e0 \1 a4 F5 t* j0 j
backup_ceph_pool = backups
- F$ r! S0 \4 x) f- wbackup_ceph_stripe_unit = 0
# V2 ~* h( D6 z2 o' Sbackup_ceph_stripe_count = 0+ }/ v  z3 ?7 o0 S; t5 e
, I  b: {* Y: Y+ r; l; R8 l+ S
% u" s. b! c/ t3 Z3 \1 K# g# Y
四、后端采用swift2 t& [9 k) N& i. }( ]* }

, ~, n& p. t7 g2 A- u[DEFAULT]
2 H5 ]8 x. h3 l. L9 dbackup_swift_url = http://10.146.32.17:9024/v1/
. @; z( J5 w" a' ?. Sbackup_swift_auth_url = http://192.168.0.5:5000/v3
: H& L, x3 B; |swift_catalog_info = object-store:swift:publicURL
" d3 X9 ~4 C4 c5 mbackup_swift_auth = per_user5 W  O' L4 M0 y8 S  g% r6 ?
backup_swift_auth_version = 37 j" q4 s# k8 l) u3 b/ y
backup_swift_container = volumebackups% g* k4 Z8 I0 y& |: }1 d0 t
backup_swift_object_size = 52428800
& r6 F$ H. n3 ?; m$ V  Z7 o5 Wbackup_swift_block_size = 32768% I- Q" ~4 ^; u) p
backup_swift_retry_attempts = 3
# u8 U% F, _4 H( L2 L( N6 obackup_swift_retry_backoff = 2  D  t+ K5 K* Z8 i6 Q8 W4 Y
backup_swift_enable_progress_timer = true
' w# m2 N3 Z" g9 r! z% abackup_driver = cinder.backup.drivers.swift
- \9 }. g. p7 x8 Z( V( x
. l, @- R' O: A# m6 A8 s! y4 D% ^! v& I& h
五、重启cinder-volume、cinder-backup服务+ S' ~/ @" }, a% a7 p; k
" A" P& W6 M/ \$ a/ q( H
# systemctl restart openstack-cinder-volume  openstack-cinder-backup& ]7 G3 A& u8 y# z8 X
1, D7 N2 v. ^4 e/ @# g# Y
六、horizon启动cinder backup功能,配置/etc/openstack-dashboard/local_settings
" Q' t# }1 p! V6 j! M) J. K! L( c8 `5 u1 S# q
OPENSTACK_CINDER_FEATURES = {" U2 b: Y" C* m) m/ K* \
    'enable_backup': True,
9 J. w! K1 C7 C  ^# P}
 楼主| 发表于 2025-10-17 12:26:42 | 显示全部楼层
可能是因为后端存储的问题,尝试部署ceph分布式存储。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 19:53 , Processed in 0.045014 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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