- 积分
- 16841
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
AttributeError: 'NoneType' object has no attribute 'getcurr
0 ^* E1 t% _& e' m* W
8 w9 w, g g; Z/ G, G' Q4 j: h6 j: ^+ J
+ h* ?* M! w" e+ g' a) fException ignored in: <function _removeHandlerRef at 0x7f174 [( z, \0 w: i- p3 D: i- ?" \
Traceback (most recent call last):; w2 s: l3 V5 M& [- V0 Z
File "/usr/lib/python3.11/logging/__init__.py", line 855,2 @) b1 S- d( v# a
File "/usr/lib/python3.11/logging/__init__.py", line 235,. X: C, S6 S( p+ l5 o7 o5 I9 `
File "/usr/lib/python3.11/threading.py", line 164, in acq) a5 }2 G7 \* L
File "/usr/lib/python3/dist-packages/eventlet/green/threa
2 d: T4 _" P( _4 S5 W* DAttributeError: 'NoneType' object has no attribute 'getcurr8 D+ W( F. |3 t/ K: f
/ P8 ]9 m9 f5 I4 C/ I l1 o, R, j+ A0 @) u8 ]/ w2 s# n
8 r# u8 o; L0 v8 b4 H: S# ]
root@controller:~# keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
- O' f }$ d y: l @Exception ignored in: <function _removeHandlerRef at 0x7f1718ed9580>
( c0 g; J6 V! ^# p. fTraceback (most recent call last):
& |+ s5 W' g! v0 r$ k |5 X File "/usr/lib/python3.11/logging/__init__.py", line 855, in _removeHandlerRef
9 {0 M. v# o- { File "/usr/lib/python3.11/logging/__init__.py", line 235, in _acquireLock
6 J0 b; o0 y5 g' c File "/usr/lib/python3.11/threading.py", line 164, in acquire
# [* B: w: a9 x7 |( }2 N File "/usr/lib/python3/dist-packages/eventlet/green/thread.py", line 34, in get_ident, d. w6 u2 z0 G7 G6 J! P
AttributeError: 'NoneType' object has no attribute 'getcurrent'7 M3 a6 r( U* ?! L7 ]) y$ ?& `
) N8 m- w2 D; B7 Z& x+ x1 r0 A& O* j
X! l0 o1 X# `, C1 ^4 _2 J
( x+ |; e8 J) z# `: H找到文件:修改
: x& J }, }" t* f: qvim /usr/lib/python3/dist-packages/eventlet/green/thread.py ! \0 k. x; }" n0 g+ \8 J
1 k8 Z5 L4 B: [5 n
def get_ident(gr=None):
# e' |$ W' @ o$ ~4 v+ p' F% t: g if gr is None:1 U7 N) T( o6 y, i/ m7 z, I
return id(greenlet.getcurrent())
8 t: y% D: W. U6 ? else:
( ^2 r* k! A% x( X7 }# W$ w1 d( a$ b9 | return id(gr)9 i5 h+ t; j/ T" \# N+ O) M0 R1 D; H
# K. \4 I# i I5 f修改成:
! V# \% I5 w8 l% M7 `2 Xvim /usr/lib/python3/dist-packages/eventlet/green/thread.py h; ?6 C _5 ]- P
* Z+ I- C! A' z5 _' v# ?4 m$ L
% ^2 m2 Q/ K8 I. N8 R$ d5 H2 z* Z) h
5 C' V T5 O1 \& Z& o& f0 ?def get_ident(gr=None):; ?$ `) T: @) o. ^0 a
try:2 Q1 k( N1 u' e8 G( o
if gr is None:+ T( M: ~ `( m
return id(greenlet.getcurrent())
' T8 M" ^# Q. `/ k else:% |) \; _7 O7 t! ?" k
return id(gr): h) k) j9 x7 g8 k9 w
except:7 G* t& Y9 G! E) _/ x
return id(gr)
8 X; S- q+ _* {7 ^9 M N, `* {2 U9 K6 x( Z6 l
6 S! b0 O+ g6 d
一定要注意缩减,不然会报错哦。% @) d' t! E3 G# A2 ^+ R2 l9 L' I
/ l, A6 @9 h3 B$ V1 R4 Y* z! `
, J3 M: R/ q; R, H5 c
root@controller:~# keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
. _3 \7 s& a) x4 X# n
+ }) t e4 [4 n0 r; f! ?& w$ V/ y' Q* _: |/ U2 H6 o" c3 s, M
问题解决。& l5 V$ p3 @' l1 w" e& y$ w+ S8 t
- S0 M- `+ c, E6 m
|
|