易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 242|回复: 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.! k! W0 b0 c' L* N6 \
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager Traceback (most recent call last):
' K3 @. S6 v, m1 \, s2025-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
2 G9 T* @! \/ L, x8 q) d. R2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     model_update = self.driver.create_export(ctxt.elevated(),
. u5 s8 m/ E: X0 B/ R2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^9 \0 p% \" X! g/ ^
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
, M6 x/ j# ]' Z5 N9 ^, J; P2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     export_info = self.target_driver.create_export(! l' s: z& T3 A  F
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^% j' U, B8 G6 h* w, D( a* c% F
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
, v5 n5 M7 Q, X( i. M2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     tid = self.create_iscsi_target(iscsi_name,
5 r% Y; E) m+ h& K* L2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
' p2 M8 W* ~- I" R8 M2025-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
# r! u/ u" w& f2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return r(f, *args, **kwargs)
% V& j0 p. q% f( t. ~6 X2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^^^& j3 d5 Z3 R; d% T( ]) R
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 423, in __call__' w! z4 ~% C; Y  I" K; q
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     do = self.iter(retry_state=retry_state); r8 V3 m1 `% n; p! f
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^6 e3 n$ P, ^' j0 Z+ O3 X) O
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
3 o2 d  K6 S8 _" t2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise retry_exc.reraise(): c6 E  ~$ `- }1 p4 J8 g/ Z
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^
" d* \& U+ P  ~8 J* \/ h" f2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 189, in reraise7 V1 \8 }. L) @- a( E
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self.last_attempt.result()3 T1 u% K: i  x  S/ n
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^
* q: h% F: p( D5 E8 A% a9 z2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 449, in result
5 `- Z2 f5 D& o, B7 [2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return self.__get_result()
0 U" M, M& p' c% t, m' W' x) `2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^/ J: x4 R& Z! u& n5 ~+ C2 U+ R: d
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
/ ?6 V! c6 {1 E6 n9 m4 Q2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self._exception3 J' \# T9 _; d) t9 @$ g' H7 d% X& y- P' m
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__
( J" e: o. _% b: O* w2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     result = fn(*args, **kwargs), ]% m; Y! ~) k. X% V
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager              ^^^^^^^^^^^^^^^^^^^
* g! L# h$ M$ b- ]' q2025-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 t/ q" F# x. L7 t5 [( Z( Z: \9 w2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise exception.NotFound()' ]) G) K7 p  y; Q* d+ T3 F
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager cinder.exception.NotFound: Resource could not be found.
4 M* w6 v. P. ]& X8 B% r: k7 [2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager 4 P+ }- o4 S( R+ {2 Y- C
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.).: O& D2 t0 c2 D* \6 P, B
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
6 }1 Q4 i6 p0 l; y8 \% S- q2025-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 M, M' _4 e) T. V3 G0 t3 k
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     model_update = self.driver.create_export(ctxt.elevated(),5 P+ O: \* z. A0 U) O0 P
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ L9 r% D, @9 c- P% N- s0 Y2025-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" Q( \. [: M( n, Q8 y4 v
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     export_info = self.target_driver.create_export(
# C2 [8 J) @4 s; y+ ~2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5 D' t" v( r) f, g- E2025-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
7 @! e" ~  f; ]& |$ g& w2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     tid = self.create_iscsi_target(iscsi_name,
2 ]; ~1 k9 a5 P  L' {2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^4 G9 h. M  H8 Z9 S9 U- L$ m
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
1 l2 h6 m+ T3 |& ?. M* b( o2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return r(f, *args, **kwargs)8 W% ?2 B. K$ f( h: q
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^
) K- E4 k. z- Z1 T6 o2025-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__! W) v2 L3 J% @3 Q" g
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     do = self.iter(retry_state=retry_state)
+ k1 e4 M* a: Q9 D; x7 r: @2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^+ x  A" E" w7 G* m: R; _/ 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 372, in iter
4 L% v: [- j4 g2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise retry_exc.reraise()
5 G) c& ~2 c$ ^" d$ r' F! r# z2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^
5 U+ `6 z# L7 Z8 ]4 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 189, in reraise& K) t0 C0 ~2 f; k
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self.last_attempt.result()3 q& Q4 e% Z  c6 I$ R2 F- l
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^: k+ _+ F8 I" P' I( G) b6 N
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
: N8 o( u7 J4 _& i7 t# x2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self.__get_result(), G0 a* k& R# A
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^" Q4 N7 G  Z' f" N
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
$ \: i' ]9 o, n; y0 H. G2 v( ?2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self._exception, p$ T4 r- Z# ]- [* A2 ?0 v
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__- H. F1 S, [0 p  [% v# Y4 v
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = fn(*args, **kwargs)
. S1 X+ a! u0 V2 `( y5 `  O8 P2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^
- R% X8 r( \7 W" F2025-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
+ m1 W+ I/ {6 H9 P2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.NotFound()
6 x/ z, S4 x2 Q3 a% G# a2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server cinder.exception.NotFound: Resource could not be found.
- U( O: M8 p" [& W6 P& [# v1 a2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server
: a* I! C5 ~3 c9 A8 C1 V  l! d2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:
9 L  P; Z5 X- n" ?. y9 d$ m2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server % M# O; g6 l; }% k4 D9 p+ y/ {
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):" s' z, Q' q& ?2 e
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+ ?! u( r" p$ B! U# b5 p9 w6 U
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)& X, }/ P7 Z& E
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^: M# E1 T0 N2 V& ~
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" Y6 Q7 C- C, C4 ~
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args), l$ J$ c2 X* V1 m
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/ B' f# k1 h" }; h! |+ w$ i
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
+ G6 k( L! {1 U2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)' G1 n) ~, P  h1 i; I* z
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^^^^
7 i5 y! Z; q1 X0 H8 V2025-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
9 G& u9 a' H, C2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     connection_info = self._connection_create(context,
' ~: Y+ w2 A5 [2 u) U* }2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
" o6 z* u& F! ~7 q0 ^) P8 Z  A2025-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
, s, c# D& N9 [2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.VolumeBackendAPIException(data=err_msg)' P' F5 a/ c. b3 u6 ^
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.).
+ h* W1 L* y/ a' z9 B9 d( S9 X. X2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server / c3 K7 q/ c7 ]/ w2 S
9 l7 K2 D7 u2 R8 X. C! R

3 n! h9 v; k1 P9 y
 楼主| 发表于 2025-10-16 17:00:01 | 显示全部楼层
以下是nova-compute的日志:
% A, y! Q5 ?4 X2025-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'
* D$ J; D. i3 v4 d, Y1 h2025-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)
" J+ p4 @# c  `0 E# a' K9 _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)1 N8 Z3 w: h' \9 l6 l
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584] Traceback (most recent call last):6 O, s, j& \2 d9 z, k( J7 F. 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/compute/manager.py", line 2170, in _prep_block_device
' V. k' p, m! G! u/ l2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     driver_block_device.attach_block_devices(4 K8 P; b* K9 ?2 _
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' y7 Q- f; ^% f: V1 ~, z4 j7 N
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     _log_and_attach(device)
* \: v! H  \* m/ L1 L8 w) 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/nova/virt/block_device.py", line 933, in _log_and_attach: h$ \! ?# c" |( D/ w
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     bdm.attach(*attach_args, **attach_kwargs)
  ?+ E1 v# s- _$ Q, c2025-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
; n& u2 W) z7 ^) s2 \2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     super(DriverVolImageBlockDevice, self).attach(
3 m7 _3 V+ x4 M  f' 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/virt/block_device.py", line 46, in wrapped
, [8 s, p3 ^7 J( \1 t) m+ n8 l) P" h2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     ret_val = method(obj, context, *args, **kwargs)
, F9 Q9 `: J' u9 y; ~, ^/ D$ r2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^1 Q' T& w0 p& r- X% A" G  S( j2 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/virt/block_device.py", line 734, in attach6 i' _7 {1 ~- Y7 _
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,( j! @( l1 @! x& o1 B, Z2 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 719, in _do_attach
0 O0 u- m( N5 {: d. V# j2 o2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self._volume_attach(context, volume, connector, instance,4 j. ~  v5 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/nova/virt/block_device.py", line 633, in _volume_attach
5 X8 u$ ]* r5 U  `) Y. e2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     connection_info = volume_api.attachment_update(
. @, a8 O1 P/ V' y  l- g( {2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^1 {( ?: S, v" \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 397, in wrapper- c& B" S) F( X3 }9 F/ B
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     res = method(self, ctx, *args, **kwargs)
+ i# s) ]9 C0 F+ K* }7 Y! U& i2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^$ L$ w9 b. b. |4 _$ j& k
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$ k6 y5 g0 b1 [, l) L+ }
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     res = method(self, ctx, attachment_id, *args, **kwargs)8 [* K) `% v& B1 H& u7 L
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^0 M  R2 G/ \9 e/ ^( ?
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  N) f$ w# T: y& C4 h: s/ E
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     with excutils.save_and_reraise_exception():6 I$ B) M# n' B9 ]/ f2 e- 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__
6 H3 a" D6 p! f8 w( N2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self.force_reraise()
0 i, n+ K0 ?! I& f/ i2025-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, g  m+ Z  S4 k
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise self.value
7 t/ ?- x, I: H0 ?! |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
0 d  t' C- ^# ^: G( ]# Z2025-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(
2 T- O: ^1 V1 ~" j3 l2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                                                           ^^^^^^^* N8 t5 ?/ z) L
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
: K( }* N6 m; u. O1 w2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return method.func(obj, *args, **kwargs)- U! w! a7 l& j' Y/ g3 z
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^! x; x! [+ O3 N1 a, Y7 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/cinderclient/v3/attachments.py", line 75, in update
6 |" U# \; J2 Z* o' X' Z2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     resp = self._update('/attachments/%s' % id, body)/ f) a6 t: I. J$ t" }
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^. _/ p; R9 ?7 b+ a& I2 ]: O+ L! x
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/ q) l  j5 I. K9 f: [  ~2 X. j' i
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)
, U+ T" }9 r# f! o9 T/ J2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- l6 Q5 m: K: Z, @6 _8 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/client.py", line 226, in put
2 T  Z" }0 b( x8 }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)
1 a4 K6 w+ ]8 H0 ^) u3 M* }2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^6 G. e- G# n6 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/cinderclient/client.py", line 211, in _cs_request
8 ]' e6 B7 E( k/ U* o8 [' c2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return self.request(url, method, **kwargs): C" a( [) n9 Y- `
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^) n- r0 p( u! Q# [8 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/cinderclient/client.py", line 197, in request7 B& O) A$ O; M4 {9 U- t
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise exceptions.from_response(resp, body)
' ^( c8 {5 t4 t2 ]7 |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)
" [/ I) B: o. \$ z& V$ h2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584] ! L, N0 _8 m; {5 m
2025-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); {6 P, \7 Q# @; r/ i$ `+ g- x! W
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')
. C  Q, E3 @1 U" k8 d
 楼主| 发表于 2025-10-16 17:00:02 | 显示全部楼层
调整cinder.conf文件,检查服务tgtd,target服务等。$ h' Z! N/ C! Q9 V& ~* |

7 w; i, n' t1 X% K8 T( u5 U  m[lvm]- O  f6 K- X3 n8 X0 D
iscsi_protocol = iscsi
+ D/ {' d: X& h6 U2 O, j% R$ c& {iscsi_helper = tgtadm  |3 I8 k/ h2 i) V. V, o
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
/ Y$ a  U  C3 g, `volume_group = cinder-volumes/ m2 A! `& ?' _% ?
target_ip_address = ip
4 ~2 m: Z, s9 Z4 a9 Lvolume_dir = /var/lib/cinder/volumes
; J% ?8 U% `0 z  b& c* Q2 q, W) W9 B( v) g8 M4 @7 T) a: C
) L6 n- d4 ~! V8 e
 楼主| 发表于 2025-10-16 18:51:29 | 显示全部楼层
一、后端采用nfs5 a% `* h1 e2 B9 G9 u' F( \
1、安装nfs客户端
: Z5 n+ U$ g  C9 `8 R( V
* v( q$ K- V  r. \; ]2 w% Y$ Y# yum -y install nfs-utils
" G% q; q! q+ @1 W1
8 w3 z$ b+ ^3 g' |2、配置/etc/cinder/cinder.conf. Z* t/ d$ l6 C% N$ f% d  \" R3 d
8 p. u% d0 @+ A: B& z- H* @
[DEFAULT]
8 _8 P! m8 L' O) Z" Pbackup_driver = cinder.backup.drivers.nfs" [3 Y5 k; q7 U4 \$ i: w7 P

; R( y( ^, D! Z% I: Hbackup_mount_point_base = $state_path/backup_mount  : i! ]# [$ r, A6 o
backup_share=172.16.8.99:/backup
8 V2 b: k3 j+ a& G$ ?格式:<hostname | ipv4addr | ipv6addr>:<share path>- ~6 ~7 J; i! i: X5 w
二、后端采用glusterfs+ Y- M  c; t# I
1、安装glusterfs客户端4 P5 p9 u6 n$ E3 ?
! I% c# q2 ^2 u; B
# yum --enablerepo=epel -y install glusterfs glusterfs-fuse$ p3 `* o) n0 z3 `" ]+ W
1( b8 S2 n/ [6 s  J, ^" }
2、配置/etc/cinder/cinder.conf
. Z7 K# E9 W9 G
5 s$ D; L5 I; q& \$ G[DEFAULT]7 m: q- X$ y* R9 B- z0 v3 b! [
backup_driver = cinder.backup.drivers.glusterfs$ I# I! g: D5 U+ K+ ]; n* |9 L
glusterfs_backup_mount_point = $state_path/backup_mount8 W: V' l1 Z9 y9 K
glusterfs_backup_share = 172.16.8.90:/vol_striped
! g) ~* H2 x1 c: |格式:<hostname | ipv4addr | ipv6addr>:<gluster_vol_name>" f' o! D2 X6 ]0 U, _
三、后端采用ceph
% S* t8 }/ ]! X% D, V/ T% j$ C" v5 B! {  w6 ]
[DEFAULT]/ w/ b4 e# Q6 _
backup_driver = cinder.backup.drivers.ceph3 c- T, p! n3 i
backup_ceph_conf=/etc/ceph/ceph.conf
; Y8 J- H9 k1 N7 ^9 F- T, ^# kbackup_ceph_user = cinder-backup
9 p. {- u; R3 v- ?backup_ceph_chunk_size = 134217728# y: N; s* {8 ~0 h0 }; Y1 h" b
backup_ceph_pool = backups% N7 ~9 \- Z2 \. J& n
backup_ceph_stripe_unit = 0
7 R5 u( [9 D8 ^! F4 Qbackup_ceph_stripe_count = 0
2 ]8 o2 p- P6 s' p9 l
0 o* L; N+ a* w; I+ l
) V6 B9 m6 A# [. y. k0 t# _7 f四、后端采用swift
$ C& Z2 x0 [& n- f3 I6 R7 C, m$ R2 A2 o- F# o1 Q
[DEFAULT]! x- @' Y; Z# m+ t: g
backup_swift_url = http://10.146.32.17:9024/v1/
9 G. M$ u+ p8 O# Ubackup_swift_auth_url = http://192.168.0.5:5000/v3
6 a2 N3 u; @% c$ v+ u+ p* iswift_catalog_info = object-store:swift:publicURL
& N+ A  e# _& H# Y0 Wbackup_swift_auth = per_user% l- S& \7 c8 P4 _( C1 I% Q
backup_swift_auth_version = 3
, n% G  X3 A* e% V% B. U0 ~$ T+ pbackup_swift_container = volumebackups
# Z' Z# x$ c( M( kbackup_swift_object_size = 52428800
/ K: S# h  q) x( Ybackup_swift_block_size = 327684 v* a( G1 e2 J: o; r8 m) ?
backup_swift_retry_attempts = 3+ e& S1 W+ T0 x
backup_swift_retry_backoff = 2
$ b' G. ~/ a- X2 J% i4 p8 }" {! cbackup_swift_enable_progress_timer = true
" c2 p5 T+ V# E# o' ybackup_driver = cinder.backup.drivers.swift: h, f7 ^! @0 [" g

9 @+ W1 I$ h4 R/ @! b6 x+ Z& ^# y/ \9 E- g) i* R
五、重启cinder-volume、cinder-backup服务/ k  f7 O( b: P. y% L" q) k

  O( w% a9 L4 C# systemctl restart openstack-cinder-volume  openstack-cinder-backup9 M: i  e! d( N3 W
1
2 x5 w/ V: n% l# G3 r六、horizon启动cinder backup功能,配置/etc/openstack-dashboard/local_settings
5 q3 i0 @. x( u2 a8 g8 c% Q7 {! t8 x9 C+ u# d. r0 G; |
OPENSTACK_CINDER_FEATURES = {2 ?2 K* I! w% p$ y
    'enable_backup': True,6 ~/ K: U5 e( \
}
 楼主| 发表于 2025-10-17 12:26:42 | 显示全部楼层
可能是因为后端存储的问题,尝试部署ceph分布式存储。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 21:10 , Processed in 0.056056 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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