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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2025-10-16 17:00:00 | 显示全部楼层 |阅读模式
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager [req-8d0ba048-3f77-4830-8c21-31e02f48c2b3 req-f7037aa6-ba98-4d12-be17-2a3461a18c07 99649cadcde24076a14eb901ff14b52b 837e526fffed46ec9b49f52410633bdd - - - -] Create export for volume failed (Resource could not be found.).: cinder.exception.NotFound: Resource could not be found.: V3 Y5 @& l% ?7 ^" `0 ^; S
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager Traceback (most recent call last):
. [3 P. K' ]! C6 Y$ d- W9 O/ 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_create9 E: d4 [, R/ _! S1 S) E7 ?  U/ o
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     model_update = self.driver.create_export(ctxt.elevated(),, ~; Q+ A. I! n4 b* k3 T
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^' O$ m0 C/ ^+ o4 E& H
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
0 ]! _1 ]* z6 q6 J2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     export_info = self.target_driver.create_export(! g; U) l; M, S% }" W9 X& s" V
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 G! r! D2 Q8 y9 c2025-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  f# W' W2 q/ C1 \* H  F
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     tid = self.create_iscsi_target(iscsi_name,: p2 p( |. F9 c
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^# G3 _/ R2 |& d  ?8 F6 \0 R
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 _wrapper1 v' i; u! E( C+ U+ X
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return r(f, *args, **kwargs)
  a7 d) ]. G; X1 ?: m1 ~2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^^^& `& C8 X! p$ k/ t4 m
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__% B, _) N/ ^% q7 G+ t& {" t
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     do = self.iter(retry_state=retry_state)
# c( g  [9 O- ~& E9 |7 K: A& v4 D( S2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^2 L) h0 B. E7 h+ K( c4 B
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
  u1 z  c' z) o8 h& _8 R4 i2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise retry_exc.reraise()2 q: `7 I$ E- p$ N2 V# U
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^
1 |. K" w5 l" C2 T3 M! _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 reraise4 D" y* @1 n5 S, E
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self.last_attempt.result()
* m- Y- \4 v5 |4 H/ t5 F. f2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^6 M0 F, k/ v- p* l$ S
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib64/python3.11/concurrent/futures/_base.py", line 449, in result' M* e* l% o0 w4 J+ o+ t8 F1 {1 E
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return self.__get_result()( D( A+ a# D& B6 s# v
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^
* }. ], B& Q/ Q2 S# H; y4 |3 B2025-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
2 {- E8 B, M" |$ r, e7 @6 r2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self._exception) |& L; ]; E* ~
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__
) A' P. D8 W, U9 S0 G2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     result = fn(*args, **kwargs)8 ^8 m2 j- z5 g7 x# {
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager              ^^^^^^^^^^^^^^^^^^^
, ]5 D% o9 e0 _% E; c$ V6 I2025-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_target9 i( M& }4 k' y5 ~! d( W  J9 g
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise exception.NotFound()4 Z* }1 {  }5 w" {8 m2 g
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager cinder.exception.NotFound: Resource could not be found.
0 [6 A& }) f, z8 @2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager ' o2 U; p) Q/ [! w- \
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.).
* w; x! @7 }2 k1 ^& U3 g" z8 l2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):( c" T  U  t( p2 a: J
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$ B+ ~7 c2 W: B, X. R0 l
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     model_update = self.driver.create_export(ctxt.elevated(),- r8 a( |/ \* @. |$ @0 a
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^1 ?3 K) v' [# j. y: g
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' T. C1 t; W% H0 U( V
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     export_info = self.target_driver.create_export(4 R# q2 s, V9 b" D" a0 E/ O
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^1 p8 Z, j( m: S! n$ r/ T0 }  h- t
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# Z) N+ A4 t; J! n8 V
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     tid = self.create_iscsi_target(iscsi_name,
# {2 k) B* E; n; W5 O: m2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
& `* [# G0 e7 J& N6 t; b/ H" p3 O( q2025-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. J5 m/ D1 `6 G5 h! s
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return r(f, *args, **kwargs)3 T- C9 Q! I. h, @) I
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^
5 t1 s0 \/ Y/ z& l' }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__6 {' u1 G1 S* [% {
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     do = self.iter(retry_state=retry_state)# U9 \$ d0 r/ {! ]
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^0 X2 ]" k6 D0 c
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
' o- T8 M' R& `: |$ q2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise retry_exc.reraise()) V- p1 h0 ^' H& g! U- V( W: W- W5 q, P
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^6 x$ U0 z$ V# e5 j
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
$ @+ e3 P+ D& F* n# ?$ F) F2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self.last_attempt.result()7 _( ^/ i, \7 L1 c# m/ z
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^: n. |! {, y! m6 U
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
( t4 n% }/ w. e2 N2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self.__get_result(). k( h6 S& o  i1 {: z9 |; y; \% H
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^, Z, r* i! ^# f- e4 ^1 r9 r' G
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# K) a# r) `- d: K7 D& v
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self._exception
/ {! o: f' y! u  B( J2025-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__. v; Y; j- l" Z
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = fn(*args, **kwargs)+ q( K5 F& E# N* b0 y/ H4 }
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^& F5 j: x3 |, n( z$ {( \, H
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. G1 U8 f: f9 Y) V8 l8 ~, P
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.NotFound()6 L% y; X6 R& T0 l9 m
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server cinder.exception.NotFound: Resource could not be found.* A' w& C; ]+ D$ x# ]
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server 7 Y7 t  j0 f' N# D9 R, Z; G
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:! I( Y! |! O# K5 T* d
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server 6 I' L# i3 X) p) r! P
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
& s  n  _, H2 Y- _) J1 j9 ]2 L2025-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
8 S* {8 b+ U) G2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)9 E6 z$ C( p7 R
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
! b  l- j  `& s9 u% C' S# R* m; I. f+ m2025-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
" {7 ~' E& t3 d2 u2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)7 x" X! I" ]: t) J, l% ^/ F' I# q
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
" k7 ?# _. W9 e2025-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_dispatch8 V! g9 T4 Y4 y/ D0 X* y
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)) `: t0 D# Q9 G2 O3 V
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^^^^. d1 u9 S6 Y  N7 V  O) H, 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_update6 @+ K; i0 t5 |* S, |
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     connection_info = self._connection_create(context,7 Q8 v% U# e7 k$ z
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^3 E# \; W; ^# G3 J. }- s  F
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
8 P$ ?+ o. O4 {6 E9 a! O2 f! A2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.VolumeBackendAPIException(data=err_msg)2 c. P; b% l7 n4 c2 i9 O  G
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.).1 H6 T+ G8 B5 N  M" Z0 @
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server
( p1 H) V. O$ k1 F/ Q* S+ ?4 z5 D. R  b- }  w+ e. l
! R7 P. X) t; A8 L$ y1 j( w4 ]' w

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-10-16 17:00:01 | 显示全部楼层
以下是nova-compute的日志:
  U3 o& u) X- ^- N: e5 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'  [" b8 o5 F! q( i1 k6 i
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)* W7 a0 `, q; r
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 w. }: D1 ?4 E# W! p! q2 p2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584] Traceback (most recent call last):' c' T6 \  @3 m3 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/compute/manager.py", line 2170, in _prep_block_device
1 L4 A. y2 d% S( Z9 a% J2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     driver_block_device.attach_block_devices(
& ~7 Y( [, p2 K" f0 f; a, Y4 `; C1 }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! u5 k; X4 e: U6 n
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     _log_and_attach(device)
  I! A4 t. m" M) J' V% n7 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/virt/block_device.py", line 933, in _log_and_attach2 {$ }. \: Z% I% Q$ R
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     bdm.attach(*attach_args, **attach_kwargs)
5 Z2 L& o2 Q/ p7 K/ B" q/ [2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/virt/block_device.py", line 835, in attach, ]" _) p# ?; u, e" G. B: S+ u4 B' }
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     super(DriverVolImageBlockDevice, self).attach(" U3 N; l8 @3 k+ X* 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/nova/virt/block_device.py", line 46, in wrapped* w1 H- X# ?$ r* x) O
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)
6 u& R- k. H6 Q+ ], s! [2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^$ G5 C: o4 q# x  N+ s- 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 attach* L4 Q- [! ?# G5 J% a
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,
6 c8 o8 W" r7 s, m/ y  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/virt/block_device.py", line 719, in _do_attach
1 @& `7 h6 Z- m" S: s( q2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self._volume_attach(context, volume, connector, instance,
2 W: z! s- v6 z# x, `7 W2025-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/ J( f6 R" T7 ~, N$ Z
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     connection_info = volume_api.attachment_update(: I% x6 t1 n+ e6 j
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 C; F2 y3 o3 n3 g3 _( P6 R2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/volume/cinder.py", line 397, in wrapper
8 w3 N% s( V5 H# q2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     res = method(self, ctx, *args, **kwargs)
- Q& t% d; e. N$ P9 q/ U. A( n2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  c2 M# E6 c; q6 W8 p8 i) J" 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/nova/volume/cinder.py", line 451, in wrapper
. v+ Q' ^3 Y. W, \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)
, K7 u) @& [0 Y" q/ _2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^9 D1 ^& G* c# e, f9 O0 T- z3 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/volume/cinder.py", line 882, in attachment_update, {0 p# _' W" U
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     with excutils.save_and_reraise_exception():
1 e2 U' L* Q  C+ L2025-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__
9 B# b: Z& D2 y3 B2 y, ^2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self.force_reraise()( a9 A* E6 e6 r$ |9 q* N( 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/oslo_utils/excutils.py", line 200, in force_reraise
; i% z$ }* L2 h' c/ e! _" h2 a7 ^2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise self.value
0 I/ A+ W; A' R5 w' l% d8 `1 s5 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 876, in attachment_update
4 T" e% T- Q! z" m5 p( s9 E2025-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(7 l( a+ `3 U* F
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                                                           ^^^^^^^" f$ |1 j  V1 E, o3 i- 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/cinderclient/api_versions.py", line 421, in substitution3 U3 d' J5 B+ @+ p" N
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return method.func(obj, *args, **kwargs)$ ^& J" B& {% B5 w0 V
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
! r- v* X2 P/ X4 }+ Z9 ~* q2025-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 update7 i4 |2 @( V1 a' e+ u) U9 d
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)
% Q* _9 z3 q+ u( |5 Z6 M7 K0 }7 V2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 I8 O1 N  P4 H' u  _* b2025-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( [/ D, X6 Z+ a1 ]" l6 o
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). _! l( J$ ]+ {( Y, H/ d$ G6 u
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  W+ O. A# |  E1 N2 ?
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
% E+ ?7 S/ P7 |# J. u$ j+ ^$ Q* r2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return self._cs_request(url, 'PUT', **kwargs)
; O4 o  s- `8 B: k' g$ Y- e" A9 z2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/ A+ N  O. b1 I! P$ [) h
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/cinderclient/client.py", line 211, in _cs_request
$ k5 o1 D/ K/ C  O2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return self.request(url, method, **kwargs)8 l* _+ t% x7 k( B# F% c4 ~, Z
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
, j) t9 O" H1 [, I) W( r  W2025-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 request5 k' }  D4 l2 l; K( D6 E4 L( p
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise exceptions.from_response(resp, body)
  w) p# u/ i0 g" L& W7 _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)
- ^; P( ~, n' o0 j$ X2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]
% g8 R- U% P. S* H* |  G; |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)
) C7 d6 d4 o" B  N2 C, I0 L2025-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')
" t& Q: l  I6 [% C

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-10-16 17:00:02 | 显示全部楼层
调整cinder.conf文件,检查服务tgtd,target服务等。) G$ [) b; K: f' c5 d2 p
; z/ P# M" a8 ^( V8 p8 G0 W9 f
[lvm]
  v% o  D" U8 c& q4 I2 i% m+ Niscsi_protocol = iscsi
0 P5 Q- Z1 E4 k2 S. a# T' ~3 u$ ]iscsi_helper = tgtadm3 c) _  r) v: \7 g: ?& x
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver7 m3 w9 E4 M, {+ n
volume_group = cinder-volumes# r0 ?  N  ^$ l1 f
target_ip_address = ip
1 G' |) d. X3 z1 E( q( Yvolume_dir = /var/lib/cinder/volumes6 v4 P' a% ], p+ p' J; x' j
  E4 J6 F3 z2 ]) t( b& C

2 w. c% S9 j/ u  N2 t- u

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-10-16 18:51:29 | 显示全部楼层
一、后端采用nfs6 r$ b# i6 n0 j5 `2 ^% O$ e0 m
1、安装nfs客户端
+ Q, n# {4 {4 ~  ]. J+ Y2 Y. V9 S6 t! i' l6 @$ P( M' r; k
# yum -y install nfs-utils3 |+ ^( t1 ~$ r* `) Y0 F" r( ^, [, N
1% }: N: ]; B' c; u6 p
2、配置/etc/cinder/cinder.conf" O' S, D& [% Q% p. G+ p; {0 C* y/ @
. o( I; @( l) o+ J
[DEFAULT]
3 R1 g8 l# q4 N  ^3 Ibackup_driver = cinder.backup.drivers.nfs
4 o9 o9 u4 X% |- r3 q % O$ @+ u" S8 p5 Y2 Q4 v
backup_mount_point_base = $state_path/backup_mount  & n+ a- t' x+ s" o# ]/ v6 R
backup_share=172.16.8.99:/backup2 {# f0 Z) }* V4 L$ @- ~
格式:<hostname | ipv4addr | ipv6addr>:<share path>
$ p# |0 E+ ~, `7 g+ o) _2 v. Y5 l二、后端采用glusterfs
. U- k& \+ ]7 a8 W: g  h1、安装glusterfs客户端0 O7 i# q6 f1 p* q$ h: K* D

& u! Y& e4 y' x8 h9 Y5 b( t4 k; R# yum --enablerepo=epel -y install glusterfs glusterfs-fuse
4 Z6 O/ L6 s* H! W7 l; k/ s5 {1
% U2 ~( t( h0 R7 V2、配置/etc/cinder/cinder.conf
0 r! I8 i3 W% o( W
5 z7 b1 S8 O1 |/ X[DEFAULT]
2 ]7 E0 C* H% a9 s6 c$ Obackup_driver = cinder.backup.drivers.glusterfs
1 a* q% b3 {0 _' w8 S7 c; N( C0 eglusterfs_backup_mount_point = $state_path/backup_mount# `3 c2 n4 V  m( l8 n5 }4 P3 u. M
glusterfs_backup_share = 172.16.8.90:/vol_striped6 j6 N! s7 ?& \+ q
格式:<hostname | ipv4addr | ipv6addr>:<gluster_vol_name>, A$ A; ^8 ~5 S1 s7 ~* O
三、后端采用ceph
8 z0 w+ f0 X' T% n3 @
! ~. K1 b  G8 Z4 b) f( \[DEFAULT]) @% q+ M/ Q$ l
backup_driver = cinder.backup.drivers.ceph
$ ]  E  p( z+ tbackup_ceph_conf=/etc/ceph/ceph.conf7 H; l" G8 j0 ^5 Z* w6 x" D
backup_ceph_user = cinder-backup' l1 J. D' h2 u) E+ J# w* c3 x
backup_ceph_chunk_size = 134217728. h1 A& I6 D- e5 i9 N9 M6 E
backup_ceph_pool = backups  h$ \# Y9 n# J
backup_ceph_stripe_unit = 04 a' o3 I9 e' q0 [( X) A7 B' Q
backup_ceph_stripe_count = 0! z; k7 u6 v$ z+ w0 k( R" l
( v. u* \* q* a, B% U* x

0 [' f) ^1 r4 u% n( @3 E) `四、后端采用swift
/ N% N8 y6 O9 S* G+ ?
: _+ G# k. l9 W  ]* G3 B6 D) Y, u[DEFAULT]% [$ k4 B4 ~* s
backup_swift_url = http://10.146.32.17:9024/v1/
: K3 G9 D% D+ f( gbackup_swift_auth_url = http://192.168.0.5:5000/v36 V6 v( z* u- U) m0 k- N* h( {
swift_catalog_info = object-store:swift:publicURL
" k7 K; f1 |: w; Bbackup_swift_auth = per_user
( e- p6 }2 }+ I  d+ I8 Rbackup_swift_auth_version = 3" r, r0 @& f, w4 P3 n' N( Z# c
backup_swift_container = volumebackups
0 z0 [0 g. Q' E9 i& P* Nbackup_swift_object_size = 52428800. E" ]1 q7 `4 e* u2 d( ^
backup_swift_block_size = 32768
& l$ w$ y; y0 cbackup_swift_retry_attempts = 3; q& J5 x; l! A+ U+ r1 h
backup_swift_retry_backoff = 2
' y- j- j. Q0 d/ y/ n, bbackup_swift_enable_progress_timer = true9 T0 l/ G( U5 P' @) h
backup_driver = cinder.backup.drivers.swift* O8 V4 f" y  s, N

' R! G* I: x+ F" {9 ]
* H+ e- e) V% }3 P  e1 V5 I! @$ m五、重启cinder-volume、cinder-backup服务( f" b) d7 L1 o

, d4 B* J3 `$ d. P, I# systemctl restart openstack-cinder-volume  openstack-cinder-backup
5 Z& y/ Y1 u! x. ?3 [) m3 H, A5 I1
- _! r" f. q# Z% `% S六、horizon启动cinder backup功能,配置/etc/openstack-dashboard/local_settings% W! ~$ \& |# U9 q* x6 S

5 Y8 C8 ?; @' W( G& O: d6 ~OPENSTACK_CINDER_FEATURES = {% L. q9 t9 c$ C& \+ j8 V# T
    'enable_backup': True,
% Y" r' D2 h! o) w& b}

1

主题

0

回帖

12

积分

管理员

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

本版积分规则

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

GMT+8, 2026-6-12 00:10 , Processed in 0.021543 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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