找回密码
 注册
查看: 4980|回复: 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
" ~& e. O5 C) y$ s  Q( o% J% c2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd Traceback (most recent call last):: _# g  ~# D9 U* f/ ^6 q" ]: I6 Q
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
; T" m" l$ \4 @4 J5 Z5 R$ U2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd     client.connect()
* p8 f9 U+ o) I) G+ @. w5 `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)5 n6 h2 [( j! g% K2 I
2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd ObjectNotFound: error connecting to the cluster3 f' n0 |& y& U* U
2021-01-14 23:50:19.440 164029 ERROR cinder.volume.drivers.rbd 7 N; u8 {4 w$ h- ~
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.4 C1 v& s; j" n2 m9 O# G; I, d
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager Traceback (most recent call last):
4 g$ |- l" q3 K2021-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
5 r2 k1 C% Y& q  O3 }, S6 ^9 k' e2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     self.driver.check_for_setup_error(). F' _) l1 z3 g
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" P$ Q2 G0 N' l3 X- \/ {( }: z. e
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     with RADOSClient(self):: S2 T$ f0 w1 h, y) C) 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 177, in __init__( A* ~* {' J" N+ F6 {/ g: C
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     self.cluster, self.ioctx = driver._connect_to_rados(pool)
; h9 n$ W" m1 H& W: R9 d5 _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_rados
$ L* u0 v! ?$ O- ^2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     return _do_conn(pool, remote, timeout)
! }3 u3 M2 s; w, o2 Y" B( G2021-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' b: B* ^: b: X) B% m/ x5 O0 \% b4 `
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     return r.call(f, *args, **kwargs)/ d* F" K+ V, t
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
1 T- h0 ]) k5 v, ^) R9 t2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     raise attempt.get()
2 O/ T& J/ T# s: F2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 261, in get6 _: Y) }7 z# T( L
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     six.reraise(self.value[0], self.value[1], self.value[2])
4 h" R/ y- h3 m" y9 V0 l2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 217, in call- T% P. l) ?7 u5 I
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)2 w- G6 B5 v4 r# z. j% G; T/ 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 351, in _do_conn
% H& X% h0 K8 k! q7 S2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager     raise exception.VolumeBackendAPIException(data=msg)4 @. k1 f! q" J4 `6 a& p
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.4 z. J% e- r7 Y+ P7 ]- a' K
2021-01-14 23:50:19.445 164029 ERROR cinder.volume.manager
) M! T* z  a9 `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), d$ P, i) G7 }
2021-01-14 23:50:19.700 164029 ERROR cinder.utils [req-34b29d6e-c90b-4224-b63e-f62889587026 - - - - -] Volume driver RBDDriver not initialized1 C0 w2 n' U( u/ K* W0 v) _( \
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.
7 Q) i& h" S8 S* ~4 V6 e6 v4 M2021-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".
2 _) Y  W% q: e# ]. _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".* [% P# y6 o& u+ W  w4 E( X
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".1 o7 P& A" j# [  e. N) J
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".
$ o3 W, T: ~# i. X& J) m3 R+ b9 y2021-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 ?. p. A" Y/ h- K( \6 o
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".8 y& s& t) T/ i1 d% l5 z# Q" 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".! }9 w+ N5 e3 x& x+ _
$ Q* }4 O4 Y: T
# `2 U- S' X& e
解决办法:
" }. v& u( A% R& _/ @/ W2 h
9 z0 W2 i; b, h( x检查ceph.conf文件权限是否能正常访问。修改好之后重新启动cinder-volume服务:
% O. f7 p1 L* H$ x$ U, bsystemctl restart openstack-cinder-volume.service
! v1 f0 Z8 _5 x* i1 }$ V( k) j# x- h  Q( ]) V. o

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 A) S) \6 F9 x% ]+ G+ \
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 cluster8 B% j, X  D3 y5 Y; |' I! m
2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd Traceback (most recent call last):
2 |: \9 s3 O* ^2 E0 S2021-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; |4 f5 |9 ^+ U! j
2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd     client.connect(): P, `, p! [  L+ p3 o
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)/ d/ X7 t4 S9 |
2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd ObjectNotFound: error connecting to the cluster6 f3 T) _2 j2 L! S' A5 t* p7 q5 \
2021-01-22 20:02:44.957 2681 ERROR cinder.volume.drivers.rbd 7 k% s4 u0 f2 c8 y, E; g# b" M
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
2 ~1 G7 w) Z1 |: c0 ?9 U2021-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
6 k! E' R2 v4 l  E* c( 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/ b& {" t5 D; U% s# D
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task Traceback (most recent call last):
7 |& L. I7 \# w8 d8 l, }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
' n$ Q/ l# p2 b2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     task(self, context)
$ H! X3 x; k6 H( U) F5 q$ |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: Q0 p. c4 A! K( J; K
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self._report_driver_status(context)7 I, f6 Q+ J6 ^# z) }. e
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: |3 ?. U5 x: d, w0 z, [
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     volume_stats = self.driver.get_volume_stats(refresh=True)$ T& B) v% h/ o0 n& 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
9 }3 o! N& z4 d2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self._update_volume_stats()0 G( d: ~) w. D' d+ x4 K% W
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
& ], G- l, I" A7 l5 u4 _3 P4 r2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self._get_fsid(),
4 C6 e% X- o, g- I5 f7 a( ^# F# e2021-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_fsid3 q9 \  |; d+ J) w6 H, ?
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     with RADOSClient(self) as client:$ A+ `$ Q7 C& `4 Z  C9 |  L
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__
+ V* T' o. Q/ R2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     self.cluster, self.ioctx = driver._connect_to_rados(pool)
4 g/ N2 F1 G% P$ H3 l* e9 B2021-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_rados1 n: d5 I3 F: U6 B. {% ^, j
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     return _do_conn(pool, remote, timeout)
% x2 z4 x. j7 q5 E' g8 r+ K3 o, N; I2021-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# d0 H: R/ A) u( P3 b2 L
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     return r.call(f, *args, **kwargs)
3 I5 p1 k$ C. H2021-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' @/ T" P( B# E
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     raise attempt.get()
# z( D# W' F. c; c8 R2021-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
. X: a- T2 C# G2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     six.reraise(self.value[0], self.value[1], self.value[2])
: c9 q; A( y8 p0 C: _* b' o7 m2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/site-packages/retrying.py", line 217, in call1 K$ @9 l8 Z1 e$ A0 s5 Z% ~
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
, O! O; }: p: U9 f* m2021-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
* b' ^- X+ ~& c1 w2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task     raise exception.VolumeBackendAPIException(data=msg)" E' `  Z( T/ P
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., t. F5 R4 {4 i" U
2021-01-22 20:02:49.961 2681 ERROR oslo_service.periodic_task
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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