找回密码
 注册
查看: 4981|回复: 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
( U1 p5 D* u% k8 o1 M% y2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd Traceback (most recent call last):
* l* ^$ U( x5 @) S; u2021-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" q" n/ f# _, Z* l8 H
2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd     client.connect(), u6 L6 k- }% _; e) H
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)
4 F5 g  y: L" S9 {' P2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd ObjectNotFound: error connecting to the cluster. B: E; g* L2 i
2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd
7 O, d9 H4 u; g: n5 O9 ?' Y2021-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.
8 D  O) n* G; _0 f: N3 H+ F& B2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager Traceback (most recent call last):' `* b# S, x5 L0 ]) H
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- T& X$ M: s9 h0 `7 S7 @" J
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     self.driver.check_for_setup_error()
9 u+ x  c* U# K$ G; V/ S5 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 295, in check_for_setup_error5 p' U. z: q0 \# u0 E% b
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     with RADOSClient(self):
% e- m3 ?! ~- q1 C8 X2021-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__
# d& F$ G# Z' u2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     self.cluster, self.ioctx = driver._connect_to_rados(pool)% `4 N% l, P' d4 l0 }  D& j
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 353, in _connect_to_rados1 b+ n& I2 O8 M5 m/ b2 j0 x8 R: h  E
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     return _do_conn(pool, remote, timeout)
: H, o. S; [& C. h4 n  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. S: c4 h, P0 j6 `
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     return r.call(f, *args, **kwargs)
( L3 {' ~) C: X( {2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 229, in call. i0 f- ?- l/ E! y0 o
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     raise attempt.get()
# i9 L, X: j% f5 R$ O2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 261, in get7 e" V3 Y. O6 E# w( G* @
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     six.reraise(self.value[0], self.value[1], self.value[2])" h" V9 ^/ s; |
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 217, in call3 \( A7 k. o4 _! I  V" T; s
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
9 m) {# x6 u. V" r2021-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_conn7 k; |$ Z- |4 J
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     raise exception.VolumeBackendAPIException(data=msg)
; J4 Y9 r4 r3 s: C2021-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.
- P* Y( F! g9 J; J. Z6 x! ^2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager 3 t3 ~% q3 ^. g2 d; `2 I  a& y8 x
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)5 i1 V# \4 Y% z1 x: Q% M
2021-01-14 23:50:19.700 164029 ERROR cinder.utils [req-34b29d6e-c90b-4224-b63e-f62889587026 - - - - -] Volume driver RBDDriver not initialized8 r$ E3 g3 ]" N$ h& Q' n
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.
5 q5 v7 s- C2 y! @- C2021-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".
! y6 O+ s  m5 P2 i/ w9 L+ F0 A2021-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"., p- }/ b2 G- n0 b
2021-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".' s. m  ~5 r; O& x3 h* A
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".* C' R4 V0 Y4 m+ i. E2 r
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.
5 b  E+ V( H; [$ F: M, V2021-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".8 m  z8 V* U1 L+ v( C2 j+ W8 C! L
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".9 \/ M  e. ?* n: o" J4 ~, H
3 S( c) A2 [% i/ u; A. l- V6 j$ I2 u. M

# g5 p, L3 v2 W% {( w" H6 \解决办法:8 q8 q- ^, [8 j
, V- x; W- g% U( @; n
检查ceph.conf文件权限是否能正常访问。修改好之后重新启动cinder-volume服务:
% e/ F2 m: w" o2 c/ Ssystemctl restart openstack-cinder-volume.service) n! z  [$ f8 m. R! T5 U1 V$ B

1 H5 k5 W; o7 W

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
# ]0 q6 d# b  Z/ ~" N0 j$ m2021-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" R* f9 ]4 c. R  C5 [) E) A) P) Q
2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd Traceback (most recent call last):
" K: u. a& u' v3 J9 X" t2021-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  S  _$ n4 o6 {- Q
2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd     client.connect()$ O: q  z- }" v( _9 s9 |- r9 H
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)
# z/ e" p1 q% `2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd ObjectNotFound: error connecting to the cluster
8 l  V: m2 f" L& D- ~2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd
# A' I- }9 L' C0 {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
0 _) {2 u) h4 T5 i* `7 a2021-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+ Y2 Y7 S" b5 h3 h$ M' n  K; @! ]
2021-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.% h8 C( J" h9 y* U" K
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task Traceback (most recent call last):
% \$ S3 U6 {3 D5 h3 \* Z2021-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_tasks5 o5 a: M2 l. z: e
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     task(self, context)
9 b' a" \4 d0 G+ L2021-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' X  N; b+ H5 d7 R3 J  a
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self._report_driver_status(context)! j/ [. i$ Q: K- v1 d
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_status  C) Q3 _0 [5 W; y9 w
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     volume_stats = self.driver.get_volume_stats(refresh=True); m3 B4 m0 J! e. A0 y6 i8 e
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' g9 o9 {5 u1 o( l% }
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self._update_volume_stats(), E/ ?3 M; Y3 i
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
) Y: Q/ N; F, X% Q9 L2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self._get_fsid(),/ P0 x! u9 R: i' i
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 1273, in _get_fsid6 Q4 [3 t6 M+ I% b. t$ @; n/ C
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     with RADOSClient(self) as client:
# W( {$ m, p" {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__  t% s# i$ M7 R+ v
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self.cluster, self.ioctx = driver._connect_to_rados(pool)
3 V. G# V) r. U. q$ W2021-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
1 L1 n: ?9 q6 K6 u) w5 V2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     return _do_conn(pool, remote, timeout), C/ t0 n% D3 e0 X4 B( ~' \" E; a
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
8 y( u+ }1 R7 w) _2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     return r.call(f, *args, **kwargs)
4 A1 g5 r7 ^) ?  s( X9 j/ M* K2021-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
# i/ ]' q- n' Q3 o8 h' X. \- i2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     raise attempt.get()  }! b/ c9 {  m  A" ?
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
; L4 S' f. J4 u. n& C2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     six.reraise(self.value[0], self.value[1], self.value[2])4 x/ _6 y1 M( l8 {
2021-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
( G" t  B) y, |' l: e% r  N2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)9 n. @: ~6 ~2 f8 M  F
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
6 \* p3 s7 M1 L% [2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     raise exception.VolumeBackendAPIException(data=msg)
* Q' W8 B" D' \, g0 `/ E2021-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.  C  \6 ^$ @/ c& |/ ]5 |0 [
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:05 , Processed in 0.018967 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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