|
|
AttributeError: 'NoneType' object has no attribute 'getcurr$ n4 o4 H! I" V; K% m& Z
* S0 A% n: T2 E- s$ a% t
0 b9 d5 n w9 U
Exception ignored in: <function _removeHandlerRef at 0x7f17
# Y1 b0 J8 H! |$ B" o/ `* A( WTraceback (most recent call last):
" }/ T- I. Z. M) ^$ _8 p/ } File "/usr/lib/python3.11/logging/__init__.py", line 855,
. K, F4 P$ x5 P File "/usr/lib/python3.11/logging/__init__.py", line 235,
5 B: A2 }, N3 k) ~ File "/usr/lib/python3.11/threading.py", line 164, in acq7 @! F- o( t( i7 @3 z% j
File "/usr/lib/python3/dist-packages/eventlet/green/threa
c H$ x2 n/ P( _AttributeError: 'NoneType' object has no attribute 'getcurr
% O A9 G& O2 o4 b2 r5 ^
9 \" F/ n# k5 g( ]' ^9 I; h/ f4 `( O2 z7 ~ a( U2 T
( a6 j6 p( q+ P- o4 U% q3 _8 v
root@controller:~# keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone0 R$ l* N, u& g& t: N
Exception ignored in: <function _removeHandlerRef at 0x7f1718ed9580># o% t6 B* G# Z( s/ e1 n
Traceback (most recent call last):
+ D$ l- O* a4 z* W File "/usr/lib/python3.11/logging/__init__.py", line 855, in _removeHandlerRef. o! x2 K: e. G0 `$ I* X& j- I& c
File "/usr/lib/python3.11/logging/__init__.py", line 235, in _acquireLock" F, B* ~: O0 c
File "/usr/lib/python3.11/threading.py", line 164, in acquire
3 V+ {+ p* F" p/ [! p File "/usr/lib/python3/dist-packages/eventlet/green/thread.py", line 34, in get_ident9 m+ Z4 s; y, C8 [
AttributeError: 'NoneType' object has no attribute 'getcurrent'
) s9 L! G5 ], X) ?; ?) G' A3 x3 g! _9 T9 e' o
3 _! f9 V# r- t( T7 ^$ a: X3 j. |# y8 m( s4 e8 o( b
; n {; Z) F! ~' T7 U% g/ ~
找到文件:修改: K z4 t2 P3 b$ m0 g& a* z
vim /usr/lib/python3/dist-packages/eventlet/green/thread.py
: H% S# L! O- j$ h
) Z# a) F! W. m6 P" }def get_ident(gr=None):
0 C O% G: X) u& o& m8 | if gr is None:' Z V4 T2 z9 J
return id(greenlet.getcurrent())& v9 ^ M/ ]4 f! ?; B4 R" R
else:
: ^* x) B1 I. v! o0 L. y5 Y2 v: A7 J return id(gr); Z) P8 \+ n. l# L. k, H, C/ R
' z4 D# I/ \2 G" y1 p8 Y
修改成:
3 c" @/ }, u5 u/ e0 Jvim /usr/lib/python3/dist-packages/eventlet/green/thread.py
9 I. e; k/ r5 }2 B" Q' V! Q0 @1 n! g9 j- S4 H; U/ N* t3 N3 {1 K% ^" w
: V4 J" z7 B& A# d; P% ?
) L5 A! c; n; z* [def get_ident(gr=None):) g, i" z. G- ~# X4 s, |
try:
4 l( v ~3 i1 Z _; |1 P if gr is None:" G: o9 I, u c& r4 v* H
return id(greenlet.getcurrent())2 Y1 m8 m! I4 P5 x
else:
8 f0 Z1 s9 X3 j) ]$ B return id(gr)
6 s4 k5 x/ \7 N$ s! B% B except:
* o$ z7 l2 N7 Q% \' k return id(gr), O9 P- l z S+ ^# f7 \8 T9 @
- N, T- T' q0 l2 e$ F1 k$ I$ p3 { B8 p2 b2 E( O% h9 P* I# p
一定要注意缩减,不然会报错哦。
: U" F1 l" F, o. V' l, N1 S4 K. @
+ ?- ]2 B% U) E' x! \! h S
$ M* J/ c4 a: \+ d: Groot@controller:~# keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone0 l0 W9 K5 `9 h9 P5 p+ h
% N" Y2 ` S: T7 M( {# |
) G9 }# f0 Z3 Z- `
问题解决。
5 s( ]' r' ]* V8 w+ v+ L0 I7 [/ t" r
|
|