- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
AttributeError: 'NoneType' object has no attribute 'getcurr' x% M/ |: L5 H# \1 u
, f! W4 e6 x" f# Z8 v6 x
% r3 K' x! f3 B. V L
Exception ignored in: <function _removeHandlerRef at 0x7f17
1 ~# q% g3 g2 M" l \Traceback (most recent call last):
% I+ I$ ]% e% r c8 R: t File "/usr/lib/python3.11/logging/__init__.py", line 855,
. ^. ]" `! {. v! i File "/usr/lib/python3.11/logging/__init__.py", line 235,
; Z3 S9 u# ?/ o# V4 B File "/usr/lib/python3.11/threading.py", line 164, in acq$ W3 N' w( l) b) @! B
File "/usr/lib/python3/dist-packages/eventlet/green/threa+ z/ @& j. N& K7 T4 B% L/ b; o
AttributeError: 'NoneType' object has no attribute 'getcurr
* J# y) X3 l% N0 Y( }( n2 |
- P; }/ Z/ f0 T7 H0 Y
( w; O+ D9 p) \& [9 o; T& O( P( C7 Z. ?: Y
root@controller:~# keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone5 v6 g) Q4 a6 ?' Y1 i/ n! |" K
Exception ignored in: <function _removeHandlerRef at 0x7f1718ed9580>
' b: t8 @" z( B( R D3 u, C( J, wTraceback (most recent call last):% @* V$ s! n0 L( e8 d
File "/usr/lib/python3.11/logging/__init__.py", line 855, in _removeHandlerRef
9 w3 o2 l9 g7 T5 r% | File "/usr/lib/python3.11/logging/__init__.py", line 235, in _acquireLock0 S% A! v7 W; b6 z
File "/usr/lib/python3.11/threading.py", line 164, in acquire: |. [" T0 o: J
File "/usr/lib/python3/dist-packages/eventlet/green/thread.py", line 34, in get_ident% y* k4 T# `9 g$ x* l
AttributeError: 'NoneType' object has no attribute 'getcurrent'3 U8 H5 _% W1 @) X j- l
+ A2 D/ |9 }- x: q* R4 }+ W
0 t3 x! `0 U; {# o8 Q3 n$ d5 Q0 k8 p; |
/ i0 ^/ A& f9 i. i, W找到文件:修改
" m( O. l9 b1 a2 i, W7 M/ qvim /usr/lib/python3/dist-packages/eventlet/green/thread.py " _$ S# A9 |. \, N
0 Q4 n$ z1 g& z
def get_ident(gr=None): e4 h/ [" f R) f
if gr is None:& ^4 u% B1 Z7 k: N0 v5 E% W3 o
return id(greenlet.getcurrent())
# M4 F5 _0 b, @3 H! F else:
* \3 t& z! J' A" o" g# @5 a" A return id(gr)
2 P+ [6 e; E- T# v8 {6 I2 r+ z& m+ Y# n6 l
修改成:5 f% B' e3 A" [& v ?
vim /usr/lib/python3/dist-packages/eventlet/green/thread.py + ^3 q4 w# J7 [9 k# r1 Y) N
; s$ ?2 j+ |" s O2 |$ ~6 x) @, [0 d. r$ y. x) T) j1 f( W
( m6 }* r2 n2 o% Z: b; u, [7 n2 v
def get_ident(gr=None):& s. K# K6 F& p% A" B8 `4 Q
try:+ V! i) C$ m$ j( T# J
if gr is None:
0 f1 \8 ?( k# B6 z return id(greenlet.getcurrent())
+ j. a5 O5 b7 k+ @& v( x+ q' c else:
8 @3 [: ?/ |- f/ u return id(gr), j1 D3 x1 w9 ?% @7 S K
except: b+ o7 F8 V6 F$ b5 I% O
return id(gr)( _9 y: }" ]2 x8 T1 r
& j! v8 Z2 o1 A! b* x- {5 {. {; ^* H
* E! I3 H6 b) B( O9 Z- s一定要注意缩减,不然会报错哦。
) Y0 e( |5 e' f0 v2 n9 \# y4 l+ |: {: x8 k3 t3 Y O' {
& N9 s/ U; `: ]: B
root@controller:~# keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
9 @. D4 s2 c7 Y. Z' O( `
2 [! d1 i, `8 R* h" j7 `
/ h' ^6 H, d) G2 I# v. H5 J问题解决。/ f$ O0 H' [1 P
9 L- O* t g) G. C3 k
|
|