找回密码
 注册
查看: 250|回复: 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.: ~8 c" ~5 r' Q' _* S
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager Traceback (most recent call last):+ H+ |) ]1 ]$ k; l
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/cinder/volume/manager.py", line 4813, in _connection_create- {* Z) b0 s9 J; n& t% J
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     model_update = self.driver.create_export(ctxt.elevated(),, @* ^' K% h- z7 ]1 W/ G1 u4 b
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 q, t9 e! c3 S# s) K2025-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_export7 U( W, {1 |. p- A2 x  M1 O
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     export_info = self.target_driver.create_export(
8 r: Y" n$ @# X: g& f1 T( h2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- c( F8 P0 N8 S; H2025-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! n0 G2 x1 A) o4 G! `, P  H
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     tid = self.create_iscsi_target(iscsi_name,
8 a: b  M, x4 u3 {2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
" S+ D) H* w$ L- I& R  }: d2 ?1 u3 Y2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/cinder/utils.py", line 669, in _wrapper7 V- G+ p1 c' k, i
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return r(f, *args, **kwargs)* p  C. x% D; D
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^^^! n6 `5 Y- G9 [6 y+ ^
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__
8 |! f3 N# y8 Y: P6 [2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     do = self.iter(retry_state=retry_state)5 W7 `3 j& Y" b. _: K5 U
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
" _2 X- H" W8 X/ o6 s2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 372, in iter0 e6 L- Z, R- \% J5 m% |
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise retry_exc.reraise()5 j( S7 P1 M. g7 v
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^% q( o. ?" U6 a
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
4 _# \9 N+ c! S( @# O, J2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self.last_attempt.result()
& ^: l( m9 Q: E  X7 a2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager           ^^^^^^^^^^^^^^^^^^^^^^^^^^6 ]; F. e' C! j
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' o( s2 F( V: i/ C6 P1 Y
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     return self.__get_result()
6 o7 p, K) H1 e% [# E6 t( r2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager            ^^^^^^^^^^^^^^^^^^^
  E/ N) I- Z" N- \7 d& u3 j2025-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
, {( x+ o1 ~9 U2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise self._exception! ]" ?% H6 v' r; S
2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager   File "/usr/lib/python3.11/site-packages/tenacity/__init__.py", line 426, in __call__
0 C: b8 B; Y- B2 F& h2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     result = fn(*args, **kwargs)
! z! i$ P/ q& a; @7 f9 F; C; f" w2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager              ^^^^^^^^^^^^^^^^^^^
7 d7 s& Q+ c9 p8 w2025-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
0 i- U6 s' ?, w7 r) M1 Q1 h' b2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager     raise exception.NotFound()
2 J' i2 Z; P( e& b* |- a$ g2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager cinder.exception.NotFound: Resource could not be found.
/ \- n8 z# c9 m2025-10-16 16:01:41.089 13596 ERROR cinder.volume.manager ; X8 J. y& Z; R& q( ?8 k
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.).
% V* d) P$ \4 R8 ~4 b2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):" p, l8 O/ X- }0 C! T
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.11/site-packages/cinder/volume/manager.py", line 4813, in _connection_create
5 v* w5 y+ ]5 X# E0 i2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     model_update = self.driver.create_export(ctxt.elevated(),6 i: A& N' r" U3 j6 z
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- ]" V2 o# |- x, U9 h, W5 i2025-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) U" o/ n) B- ?$ ?( \2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     export_info = self.target_driver.create_export(' p/ I6 b7 l  s* Q+ O0 \  g% I9 l
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# s8 N6 P% t, \5 b5 p8 _# W' o4 G( p2025-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
* `* x+ b3 m  j5 K: y% l5 f4 U2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     tid = self.create_iscsi_target(iscsi_name,0 C3 m# U2 ~( x& z% M1 g
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5 t  k/ P1 ?) z% s% k$ S2025-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 _wrapper0 K2 x/ [5 t9 D" ^/ |3 z+ O/ l6 x1 _
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return r(f, *args, **kwargs), N% F0 S9 H  A
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^
; z6 ]6 Y/ U' f  J2025-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__2 D2 n9 a' S  y. d/ N$ }4 L
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     do = self.iter(retry_state=retry_state)/ L2 T3 s# D' a
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 x. e1 t7 l( _. M: Y* N. ]* v1 a2025-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
9 p  i% z  S( i* G  e2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise retry_exc.reraise(); d5 U: ^+ v, Y; V
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^! e) B; l. D3 j1 d9 g& d
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 reraise2 y& c) B; ^4 h* F% N: L
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self.last_attempt.result()! h; _- J/ w% N/ I$ f# C
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^4 ~0 i8 L8 R* E( x  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
, y) A* d3 C! Y6 c2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self.__get_result()) f/ N% u' F2 P( x& H  x3 I
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^; K& \, [* G4 ~# R' h# _
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) F, c$ ^" W, Y/ F& ]5 r! o
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise self._exception7 u) i9 r+ `& }# }# W
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__. r( d! u  r4 F- H6 C% E4 i
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = fn(*args, **kwargs); ~" a! {# r% [8 I
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^
3 }. [' I/ ]1 P2025-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; X! Z3 U' ^. l! Z* S
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.NotFound()8 A+ G0 G( t) M4 Y
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server cinder.exception.NotFound: Resource could not be found.
1 E& H( M; U0 l$ a- a$ ^/ P. }  E2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server
/ u6 H. z7 ]5 {0 m" p2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:$ H# Z0 M: g3 G0 @) y5 S7 I4 q  u
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server
! U8 a' H8 d+ Y  a1 B* k5 I2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
$ p0 c( `6 {' X1 i  d* |  n2025-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& A' X) ?5 i9 `8 Y2 j  {, h, T
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message), h0 D5 p, M0 P6 @/ c6 L
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- H6 a0 r# R; V. z, f
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" g$ S- _8 r! F. N6 a- C3 K
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
' ~" [, ?' v4 J7 Z' J1 k2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^( G' q- {: d* G, b
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_dispatch7 u4 Q4 n- c. [$ {/ u
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
( X1 v2 u0 _$ ^- w! c7 X* B2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server              ^^^^^^^^^^^^^^^^^^^^^^
( k5 e9 U2 x) q5 R7 z* D5 a+ R) j2025-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
3 {: t3 S. }& u+ j5 D' ]& V2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     connection_info = self._connection_create(context,6 V6 X: P6 o6 G7 i9 q
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^. k9 U  M1 g, v9 e+ }
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, {! a4 R% H, o; ]
2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server     raise exception.VolumeBackendAPIException(data=err_msg)& s( E, q: c$ k( {" p! c' V; |: L
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.).
5 l0 A7 I  U7 _& g! e; n; K2025-10-16 16:01:41.091 13596 ERROR oslo_messaging.rpc.server * [8 j7 `) O1 n% x9 I
8 t7 h: h. Q; i! b: @
1 J: i% C4 o$ A/ O$ @5 m

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-10-16 17:00:01 | 显示全部楼层
以下是nova-compute的日志:
1 _3 [6 v- x8 y" R, B; p9 E( {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'
; o+ Z' \! ]" J, W0 _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)
% \4 T; e5 J0 s0 X, f. l2025-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)3 N1 i% ~& b# \9 r
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584] Traceback (most recent call last):. w  e8 i+ ^* I: ~4 s
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
# N6 B2 x0 \. J# ?5 j' H& r. k& l2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     driver_block_device.attach_block_devices(& H! L- k# \7 K' T
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/virt/block_device.py", line 936, in attach_block_devices! ~" B( |2 D% Q4 e& S; j
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     _log_and_attach(device)
- E* b% g  X. c! d7 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_attach4 Z9 t/ i. m+ o1 K( X
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     bdm.attach(*attach_args, **attach_kwargs)
8 D+ i8 R  ]5 E4 Z* 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/virt/block_device.py", line 835, in attach0 V: S3 K1 n; y9 ^# y* y0 G
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     super(DriverVolImageBlockDevice, self).attach() h; I% i) B# Y8 G1 {) m$ c
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
! A; c  ^. Y2 h5 }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)& Q1 x* W: G* D
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 a$ D8 A; _) q$ ?) W# q# f2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/virt/block_device.py", line 734, in attach; B. u' B7 U& [/ \' t: j
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,
. m/ i' F8 ?( {/ 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 719, in _do_attach
2 G; G( `, p  z, w0 P2 I2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self._volume_attach(context, volume, connector, instance,( D  M  `8 s. Z6 S& q
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/virt/block_device.py", line 633, in _volume_attach1 |' L6 J; v  d9 ^
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     connection_info = volume_api.attachment_update(' \9 B1 E! A8 @7 V
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^$ A% H. Z/ x4 Y" r( F# _, z( M
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/nova/volume/cinder.py", line 397, in wrapper+ X  h$ |6 m3 b8 `; J" B/ z$ b8 {
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     res = method(self, ctx, *args, **kwargs)
7 i; I) o  R& S! f2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^& b' \* ^5 P  l0 U
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
. I- V- H% a8 i7 l2025-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)
/ v( K) Y: l+ m* V0 m2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/ E- U" ?# l6 Z* c2 E9 ^4 z' N2025-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
7 A- i  X- B0 K9 ~+ k& u2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     with excutils.save_and_reraise_exception():1 M. P6 m% ?: A8 N3 @
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__
; k- ?# z7 l1 H# [4 H+ P$ A; _2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     self.force_reraise()0 A) a$ a  Z5 v! 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/oslo_utils/excutils.py", line 200, in force_reraise
4 J+ ]9 _4 C+ d; Z2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise self.value5 r$ g+ t1 \7 `" ]/ K# J0 ]
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
+ p1 d7 ]- {- P2025-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(, @. b: w+ o9 K0 A# v9 J
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                                                           ^^^^^^^
; a, n* ?! D1 ~# p2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]   File "/usr/lib/python3.11/site-packages/cinderclient/api_versions.py", line 421, in substitution
) K- q" `- S9 ]* m6 \2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return method.func(obj, *args, **kwargs)1 M; z) n- v# D" i
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" P% H, f" Q, C) |" @7 p, `9 ]6 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/v3/attachments.py", line 75, in update- l9 @9 D# d: e3 c/ b2 q
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); K$ d9 n" r; u# P7 E1 [& W
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^! @! |4 n7 i% 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/cinderclient/base.py", line 318, in _update5 Z% I3 T1 t8 |% Y7 }9 r
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)
) Z2 l$ Z3 C) ]6 F- }2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^7 \$ j  d# i1 k7 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/client.py", line 226, in put
+ P# N' F8 Q8 @* h- P& X9 V9 m; A$ ~2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return self._cs_request(url, 'PUT', **kwargs)3 d# Y$ S9 B* p7 F
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
( M5 u  h  P5 B0 k6 t2 |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
- [- d# n, m7 v; b4 t  v2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     return self.request(url, method, **kwargs)
! K' {# {; L4 b* m& [2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  s9 b& A% L( X( c8 H& 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/cinderclient/client.py", line 197, in request8 @( a7 ?1 @$ [) t7 o# C
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]     raise exceptions.from_response(resp, body)
8 z$ r. I& d$ K. K; B2025-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)$ q6 N% j7 ~9 y7 D& h4 c" ?
2025-10-16 16:01:41.122 24662 ERROR nova.compute.manager [instance: 2ffde1e1-87ac-466d-bd21-870dec53c584]
, B3 u4 |# f" U6 Z6 ~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)  U3 `# f! H& H' H8 D( K% J5 j+ J
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')/ Y1 [. U1 p5 |. ^$ r

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-10-16 17:00:02 | 显示全部楼层
调整cinder.conf文件,检查服务tgtd,target服务等。
& z6 \% u$ g% F8 B4 @6 [
+ X# l% f( g) {6 m% b) y[lvm]
, ?) u& X/ p# f6 ]! @2 p8 `iscsi_protocol = iscsi
8 B/ ^8 D* n& A/ liscsi_helper = tgtadm
7 T7 D% h6 E6 e0 _  [6 ?+ C8 s/ c% Bvolume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver) \  v1 H( j& W1 h9 E3 E/ q
volume_group = cinder-volumes6 a6 S, I  j/ W% e/ ]! U* f
target_ip_address = ip
  F. S* u: |/ L' Mvolume_dir = /var/lib/cinder/volumes
, f+ m: U2 p# n
# a! k& S; A) I9 [0 Q4 f' d9 S* d% R( l8 O0 q" `2 i

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-10-16 18:51:29 | 显示全部楼层
一、后端采用nfs. G& S' n7 w) f, L
1、安装nfs客户端$ p" E% J+ [. y
$ s) D$ h- Y$ w9 g( x
# yum -y install nfs-utils
( V. l: e  C5 }4 B1
  n! m$ }+ L8 s: c( l* z' Y7 T2、配置/etc/cinder/cinder.conf
; W* p" A: b  _# }! V$ v
9 P9 v; ]1 X9 c6 N[DEFAULT]4 n5 Z7 X! l# {$ S0 H4 u! T
backup_driver = cinder.backup.drivers.nfs
; X  k! G9 T$ a0 o/ ?; H+ k8 @
( L# v- W$ w6 i; t; I8 g! Pbackup_mount_point_base = $state_path/backup_mount  ; r8 L' I# O; T7 M2 t9 H
backup_share=172.16.8.99:/backup
4 |* ?7 k6 D4 }# f格式:<hostname | ipv4addr | ipv6addr>:<share path>: l: j( S& e8 E
二、后端采用glusterfs7 o3 {! R( `. Q( o& `" o  j" C! L
1、安装glusterfs客户端
  O; }' C: m9 ~! i) A1 P1 \1 L- ~1 e1 E  }9 u% @7 P
# yum --enablerepo=epel -y install glusterfs glusterfs-fuse
5 q$ h* u6 C) m; E, R+ M10 K+ F3 K( f" e
2、配置/etc/cinder/cinder.conf
5 {" k: O5 D: a& ?) r0 c
4 ^+ B. O) S* k! ]9 @[DEFAULT]
1 t  K1 P3 p' \  m: ^backup_driver = cinder.backup.drivers.glusterfs
& U2 K* C* M- b) T) ~8 Zglusterfs_backup_mount_point = $state_path/backup_mount
( b! B: J  i. @& z# b) {8 \5 ^+ T  N3 nglusterfs_backup_share = 172.16.8.90:/vol_striped7 w* M( J" c, `2 j, Q" @
格式:<hostname | ipv4addr | ipv6addr>:<gluster_vol_name>& H! L+ k- J# m1 w( V+ m' A) @
三、后端采用ceph
( o5 I) P4 @7 z/ p. |6 P7 G, t" `/ p. Q1 r- x
[DEFAULT]9 W5 n  v; U6 |- v+ K* x
backup_driver = cinder.backup.drivers.ceph" b- G7 I* d8 d+ T' T
backup_ceph_conf=/etc/ceph/ceph.conf
0 A1 }& S7 c4 W7 V% T/ ~4 Ybackup_ceph_user = cinder-backup8 [5 b8 j) n& f" v+ J6 O+ a6 F
backup_ceph_chunk_size = 134217728
5 Y9 f8 ?" m  l& E( m% Nbackup_ceph_pool = backups- D) y/ }- [8 Q9 L7 \& U/ p3 M2 S
backup_ceph_stripe_unit = 0
) Z" S+ M- }  Qbackup_ceph_stripe_count = 0
+ P/ b8 h6 H0 {* J
* N) I, q8 F  L6 b( ~; Z/ K; g  Y) p
四、后端采用swift
) D0 J: |* `$ S5 D1 T- _/ t
* y1 a1 @5 y5 m" n" c[DEFAULT]
1 E# F: Q* i% h. wbackup_swift_url = http://10.146.32.17:9024/v1/" J8 l- v1 I- T& ?; Y
backup_swift_auth_url = http://192.168.0.5:5000/v3- }, a. m4 c' A9 R3 a
swift_catalog_info = object-store:swift:publicURL
0 ]. [; u1 \; Rbackup_swift_auth = per_user
8 N0 {* y( V! B8 t, e& gbackup_swift_auth_version = 34 l, u0 K8 ~& l! ^2 k# K
backup_swift_container = volumebackups
: M' k# `: s- b" nbackup_swift_object_size = 52428800
$ `3 }% @2 ~$ Y; c0 }9 Hbackup_swift_block_size = 32768
" _, f" v* Y& p1 |# R% ~0 K4 Ubackup_swift_retry_attempts = 3- ]1 [% G0 }3 G* `
backup_swift_retry_backoff = 2" v! U# g, m* d- o1 T
backup_swift_enable_progress_timer = true
+ V/ u3 q4 {2 C6 ?% b4 Xbackup_driver = cinder.backup.drivers.swift! ~) I" r5 c+ ~1 R& `+ d1 L
1 u2 y* G* y. K4 f) x! s# V
' c# ^$ [. e" H2 \9 O
五、重启cinder-volume、cinder-backup服务
8 W: R# J6 ^1 u1 k1 i* I, ^$ |0 @0 t0 [5 ?
# systemctl restart openstack-cinder-volume  openstack-cinder-backup
5 a1 v4 u& S; h/ A; n19 ~) T" ~( D  _- _
六、horizon启动cinder backup功能,配置/etc/openstack-dashboard/local_settings
/ O+ f; r$ d' ]" I5 f& @' B, @. Q* l. o' }1 ?8 b6 P
OPENSTACK_CINDER_FEATURES = {
, K( n8 n9 O$ b* i1 R; L    'enable_backup': True,
% ]; K0 b& s- u! q; j}

1

主题

0

回帖

12

积分

管理员

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

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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