找回密码
 注册
查看: 4979|回复: 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
3 l9 \# |# H1 }" s' Y4 T( b5 p; t2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd Traceback (most recent call last):
  F) k) c1 L! h8 s# N; }2021-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_conn
+ f% T" i  m$ k2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd     client.connect()
! m% U% s  F- o2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd   File "rados.pyx", line 796, in rados.Rados.connect (rados.c:8989)
7 m  L. v8 a3 b- M1 [& S, M7 x2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd ObjectNotFound: error connecting to the cluster6 g, y& j% N( o* c; L  z& G# `
2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd
/ l3 e4 Z; j: D" k. M3 N2021-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., e0 S) g% [6 U
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager Traceback (most recent call last):- ~% V) U( V4 X" o
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
2 r$ Q" M4 g. U2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     self.driver.check_for_setup_error()
6 ~9 Z  J1 H6 l. }: b2021-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
5 R: n: N  d5 Q# k' t& T; R' @% @2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     with RADOSClient(self):
$ ]/ {7 t' r, ?* C* ~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 177, in __init__
4 z. A# Y5 R0 s2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     self.cluster, self.ioctx = driver._connect_to_rados(pool)
/ ]- b. O2 |+ j) u% B+ p2021-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_rados6 @' O% `3 W4 V9 S, E# U% T+ t. d
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     return _do_conn(pool, remote, timeout)
. ~, h. `1 J. W* d2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 818, in _wrapper- F+ y  ]9 q8 E- N% o, T. b
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     return r.call(f, *args, **kwargs)
' ?2 b& k0 }8 n2 t& v" e2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 229, in call6 ~3 q0 e. _, B) O* l
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     raise attempt.get()
. g7 ^# h- \" `2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 261, in get9 o# m# B, o+ D6 f4 w& Y& K
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     six.reraise(self.value[0], self.value[1], self.value[2])
5 s4 ?+ C; Y. e" H: N- c- _3 z2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 217, in call/ s6 Z7 _" m" E
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)9 s, S, m5 L$ W% K* Z0 N
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 351, in _do_conn% U* J- c( x: _) A0 G/ d
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     raise exception.VolumeBackendAPIException(data=msg)
- i9 y3 |0 K/ v- H  e3 g2 S2021-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.
; ^- S3 I; z( a, `1 N2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager $ I& |8 h5 W' v; e: v+ E- Y
2021-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)
. U. \' C( i. d9 a* w$ b2021-01-14 23:50:19.700 164029 ERROR cinder.utils [req-34b29d6e-c90b-4224-b63e-f62889587026 - - - - -] Volume driver RBDDriver not initialized
' s0 C7 `' _7 ^  \+ \2021-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./ X3 I1 c  A2 }( n+ i0 q
2021-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".
( Q$ g" M+ m6 J) I% N. t0 m2021-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".
0 a! s* \6 P+ w6 j+ V" M2021-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".% R! u. y4 D; A1 \. ]* P
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".$ ^/ W4 o7 n" r/ }( E
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.) H# c8 G) S% w0 t
2021-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".+ J  }0 _: {) i% t- P
2021-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".
' _3 U6 R9 d$ I( V( x" A9 s: j
1 @" n4 N! G4 A4 K( Y
' r) y' \6 R1 ?% N5 w7 O4 z& D解决办法:
; Z& s2 w$ n% e
/ n* v( D3 b) ~" X检查ceph.conf文件权限是否能正常访问。修改好之后重新启动cinder-volume服务:* m: h* E/ V- \& |7 l
systemctl restart openstack-cinder-volume.service: f* d! k2 b/ m; M2 b

) w/ u( X  x$ r. |

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:3314 s9 E3 S6 Q, b" ~# G" F" p8 ]7 o
2021-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
9 {6 w8 R! W! U: Q4 {2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd Traceback (most recent call last):3 W+ d2 r1 S6 F5 @; F# O* G; s
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: K+ k1 M1 X, u  m$ w* v  N$ ~
2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd     client.connect()# @( k7 L9 d& P* L! t& q
2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd   File "rados.pyx", line 796, in rados.Rados.connect (rados.c:8989)
8 F! b7 R. W' n9 c1 c( R2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd ObjectNotFound: error connecting to the cluster
$ `$ Z$ B* A3 Z9 M. X: N8 r2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd
8 I+ E3 T& B1 _; I* {2021-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:802
5 n! b9 {6 D3 R" g4 o2021-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
: \% r4 t3 ]& {. s2021-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.; x" C9 x6 U4 ~) i. h
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task Traceback (most recent call last):
+ G- u) a1 Z$ H9 @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: _; r7 f3 b$ @
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     task(self, context)+ a- b( l4 L) E) O$ ^0 P
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
* W  q  ?3 q0 k8 Z# G6 |2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self._report_driver_status(context)# U- s/ w  ^  s* L4 l. p5 j$ ~
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 2463, in _report_driver_status0 W$ P7 }( h; W$ m! W
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     volume_stats = self.driver.get_volume_stats(refresh=True)
0 [' |: a1 S/ M, _, P* 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 521, in get_volume_stats) l1 v% ?' b) {8 C8 F/ o; f; {
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self._update_volume_stats()& I, P! f0 r# H. L9 l; v
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 473, in _update_volume_stats
) ^% f: `# H5 r! @2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self._get_fsid(),
/ G0 ?; U+ k" X6 h1 ^7 f- i: f2021-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/ m% C# F' B/ f" r$ Y* r
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     with RADOSClient(self) as client:
- i9 r! c" W  t+ c" f9 }$ 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 177, in __init__! o; V+ p9 c6 J& d
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self.cluster, self.ioctx = driver._connect_to_rados(pool)
3 O3 o% ]9 m/ ~6 p2021-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- i) \, i* R5 q; \
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     return _do_conn(pool, remote, timeout): t+ {( h/ {. U5 [2 [
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
# {7 Q" u- Q5 {8 Y2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     return r.call(f, *args, **kwargs)  X: l  [; t; l. C
2021-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
6 r) y! @3 y7 Q2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     raise attempt.get()1 J1 }. j  U- k! J' X+ G& K" T9 h
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
: R. W$ [: d( ]& n% k  g+ H2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     six.reraise(self.value[0], self.value[1], self.value[2])
/ w) }+ s$ a. u7 D; E$ U. u2021-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
# a* O4 R3 @4 @1 Y$ v2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
4 \& U, M( [. D* D, ^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 351, in _do_conn
/ |& G" @) x+ M2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     raise exception.VolumeBackendAPIException(data=msg)9 w, s6 Y9 `# a
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.
9 l& @) L- u8 \; \" n2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:09 , Processed in 0.019428 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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