找回密码
 注册
查看: 4978|回复: 1

-] Failed to initialize driver.: VolumeBackendAPIException: Bad or unexpected re

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-1-16 18:26:25 | 显示全部楼层 |阅读模式
2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd [req-34b29d6e-c90b-4224-b63e-f62889587026 - - - - -] Error connecting to ceph cluster.: ObjectNotFound: error connecting to the cluster
, p7 l, {, k% K0 r2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd Traceback (most recent call last):
: \! [' c8 s2 z  S2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 344, in _do_conn2 m% `/ F3 [) x; Q
2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd     client.connect()+ d3 g' @' W; k
2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd   File "rados.pyx", line 796, in rados.Rados.connect (rados.c:8989)
( S6 F! v" S7 y! h  V8 C% U2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd ObjectNotFound: error connecting to the cluster+ ~# O3 v$ @0 N2 o, s2 ?6 B
2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd
$ I) G1 l8 {8 ?3 P+ l* E0 \2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager [req-34b29d6e-c90b-4224-b63e-f62889587026 - - - - -] Failed to initialize driver.: VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Error connecting to ceph cluster.
5 H* e( b/ \' [% c: v: R3 D2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager Traceback (most recent call last):1 ~9 K7 X; e6 B- S
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 457, in init_host
6 i# S2 T/ D; B, U- q, j2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     self.driver.check_for_setup_error()+ `$ b* X( P( |' W# m/ P# ~' O
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 295, in check_for_setup_error) F) W+ p! G/ B& T6 O
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     with RADOSClient(self):
1 x) y& ]& E4 S1 ~9 S2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 177, in __init__
9 ~- w' p* x$ x( c. k6 w. W2 C2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     self.cluster, self.ioctx = driver._connect_to_rados(pool)
& e. q  ]% F% m6 M2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 353, in _connect_to_rados
( X) K1 ^8 O; e+ \2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     return _do_conn(pool, remote, timeout); d; K) K$ u2 i: k1 L0 P; |( \! P
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 818, in _wrapper5 c( J3 n% R) h( X
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     return r.call(f, *args, **kwargs)
# c7 ~% C" [- }* Y2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 229, in call$ P% V' j8 x- j( u$ @
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     raise attempt.get()
* ^" r; I6 s! x2 A% A" Y/ t9 ^: H2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 261, in get* q' U1 v$ Q; w; t7 |5 k5 ~
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     six.reraise(self.value[0], self.value[1], self.value[2])
6 z# x1 n# h& `7 m  \2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 217, in call
- B0 [( |) \2 P5 ]2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
/ r( S" u1 [8 L: y; A2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 351, in _do_conn
$ k5 q5 m5 }+ b9 S" c$ q2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     raise exception.VolumeBackendAPIException(data=msg)" M- K' ~/ E+ r5 ~9 u
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Error connecting to ceph cluster.
% t9 m% q8 ]" q+ P4 i2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager
2 j' P  R3 @. b: J2021-01-14 23:50:19.698 164029 INFO cinder.volume.manager [req-34b29d6e-c90b-4224-b63e-f62889587026 - - - - -] Initializing RPC dependent components of volume driver RBDDriver (1.2.0)
9 B2 h7 U3 X- w: Q1 Q7 i! f2021-01-14 23:50:19.700 164029 ERROR cinder.utils [req-34b29d6e-c90b-4224-b63e-f62889587026 - - - - -] Volume driver RBDDriver not initialized
/ E7 j( Q0 ^2 H5 R8 V( D" z6 V1 q2021-01-14 23:50:19.702 164029 ERROR cinder.volume.manager [req-34b29d6e-c90b-4224-b63e-f62889587026 - - - - -] Cannot complete RPC initialization because driver isn't initialized properly.: DriverNotInitialized: Volume driver not ready.
) c" m) m+ b0 J2 G- J2021-01-14 23:50:29.705 164029 ERROR cinder.service [-] Manager for service cinder-volume zxm1@ceph1 is reporting problems, not sending heartbeat. Service will appear "down".& Z" |6 s! l4 v
2021-01-14 23:50:39.707 164029 ERROR cinder.service [-] Manager for service cinder-volume zxm1@ceph1 is reporting problems, not sending heartbeat. Service will appear "down".
5 R- P0 j0 P9 b5 I2 F2021-01-14 23:50:49.708 164029 ERROR cinder.service [-] Manager for service cinder-volume zxm1@ceph1 is reporting problems, not sending heartbeat. Service will appear "down".6 }. s, Y3 q& Z
2021-01-14 23:50:59.712 164029 ERROR cinder.service [-] Manager for service cinder-volume zxm1@ceph1 is reporting problems, not sending heartbeat. Service will appear "down"., j; n' d: R' d$ D
2021-01-14 23:51:03.708 164029 WARNING cinder.volume.manager [req-d67bdea0-18df-4362-82cb-929c557d8660 - - - - -] Update driver status failed: (config name ceph1) is uninitialized.
9 z# ]* E  {2 v9 h. {: B. j# f2021-01-14 23:51:09.707 164029 ERROR cinder.service [-] Manager for service cinder-volume zxm1@ceph1 is reporting problems, not sending heartbeat. Service will appear "down".
  F6 G4 a6 D3 V: q2 F- ~2 v2021-01-14 23:51:19.709 164029 ERROR cinder.service [-] Manager for service cinder-volume zxm1@ceph1 is reporting problems, not sending heartbeat. Service will appear "down".
" q4 h+ t7 ?% K
9 j; [: K+ C0 I/ k' O1 c# _' s- ~) @. l0 {* {0 t; d4 `8 u& @' S
解决办法:7 f* o% Y* `7 U8 [9 _! v

. L* D' a# j  |1 B检查ceph.conf文件权限是否能正常访问。修改好之后重新启动cinder-volume服务:
1 r" z' l0 v/ f% j. _# j4 n) psystemctl restart openstack-cinder-volume.service
' K9 \1 w8 O" D! g: v! z/ t8 U3 q2 Z) ^6 H8 T& c& Q* P

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-1-22 20:03:32 | 显示全部楼层
2021-01-22 20:02:44.935 2681 DEBUG cinder.volume.drivers.rbd [req-bc048270-671c-494b-9c20-f7bf884c174e - - - - -] connecting to ceph (timeout=-1). _do_conn /usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py:331
' v8 a% Z- U! _7 r' }, K2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd [req-bc048270-671c-494b-9c20-f7bf884c174e - - - - -] Error connecting to ceph cluster.: ObjectNotFound: error connecting to the cluster; U3 I: b" @' o& ]- d5 }2 B$ U( n+ k$ l
2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd Traceback (most recent call last):, F4 L0 {/ v. p
2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 344, in _do_conn
, M  i- P& N, ]( C8 z; [2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd     client.connect()
8 ?. p" F. G' S2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd   File "rados.pyx", line 796, in rados.Rados.connect (rados.c:8989)
, V, u# [6 n8 |. E& l) B5 A% y2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd ObjectNotFound: error connecting to the cluster8 P8 L) t8 V; u0 @
2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd
9 p/ \7 f( e6 U% U2 y' y8 h2021-01-22 20:02:49.960 2681 DEBUG cinder.utils [req-bc048270-671c-494b-9c20-f7bf884c174e - - - - -] Failed attempt 3 _print_stop /usr/lib/python2.7/site-packages/cinder/utils.py:8025 ?/ s# g- x+ M- n- B8 e! Z6 A
2021-01-22 20:02:49.960 2681 DEBUG cinder.utils [req-bc048270-671c-494b-9c20-f7bf884c174e - - - - -] Have been at this for 35.09 seconds _print_stop /usr/lib/python2.7/site-packages/cinder/utils.py:804
' o1 M% F: d5 I3 @: d2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task [req-bc048270-671c-494b-9c20-f7bf884c174e - - - - -] Error during VolumeManager.publish_service_capabilities: VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Error connecting to ceph cluster.! z# W! }3 H# A: i* h
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task Traceback (most recent call last):) N3 t5 e) L& j; K! }
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/oslo_service/periodic_task.py", line 220, in run_periodic_tasks( }4 O/ S9 w. B" ]- S" j+ O# f! S5 K
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     task(self, context)$ V# T% z5 M$ a
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 2566, in publish_service_capabilities
( \1 o. C. B7 F6 h$ f5 W$ _9 J2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self._report_driver_status(context)
. }& n1 L2 r+ a  Q6 k2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 2463, in _report_driver_status
6 i9 w2 g! X0 E8 f! Y7 J2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     volume_stats = self.driver.get_volume_stats(refresh=True), d" D: M' E' v5 L! H
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 521, in get_volume_stats
  q$ I7 S0 m: {* x; k1 }7 |% H3 f2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self._update_volume_stats()
; K$ W' i* @* Y- A5 L( c2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 473, in _update_volume_stats  ?& @: `3 A# u, C
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self._get_fsid(),
( v3 q/ _  x% I( C0 H2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 1273, in _get_fsid
" v/ M! v) o: R$ c+ J  e2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     with RADOSClient(self) as client:
% K, c5 t  ?6 o4 \2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 177, in __init__, K! e) d4 m% [: ]
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self.cluster, self.ioctx = driver._connect_to_rados(pool)3 ]; p, V8 z- G  G
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 353, in _connect_to_rados! n) ]( L0 h2 X% ]% s2 C& n; e
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     return _do_conn(pool, remote, timeout), `" O% `( Q+ C
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 818, in _wrapper' f6 `: b2 S% A' Q& P3 n
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     return r.call(f, *args, **kwargs)
4 e6 S, s. V3 V0 E2 z2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/retrying.py", line 229, in call& s& A* D+ f* P7 S9 j
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     raise attempt.get()* Y5 E6 H( O2 A+ @% D
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/retrying.py", line 261, in get
0 K' ]3 }$ ^- @1 l- E/ w2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     six.reraise(self.value[0], self.value[1], self.value[2])
1 x6 Q) j* X7 W) t/ C+ a8 n2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/retrying.py", line 217, in call" n; a* L* j& c8 @0 u
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
+ d7 z$ x" G* b+ _! `3 A2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 351, in _do_conn% l, P2 `  j. n$ x  r
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     raise exception.VolumeBackendAPIException(data=msg)* t# L( s" s/ `/ u1 O2 {
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Error connecting to ceph cluster.
6 x- O: J* M( h' }) D( @% [2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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