- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
AttributeError: 'NoneType' object has no attribute 'getcurr. e9 c/ s8 T$ G1 t, M8 ~: V$ M
3 h5 H% v/ k' c+ p
5 _ h+ M* O$ D1 R9 dException ignored in: <function _removeHandlerRef at 0x7f170 G) Q0 j5 y4 h* z3 i
Traceback (most recent call last):) f( | K _- X/ }3 L1 m, h4 h
File "/usr/lib/python3.11/logging/__init__.py", line 855,& s( B% ]6 k- {! ?& K" \
File "/usr/lib/python3.11/logging/__init__.py", line 235,
: W% G) S/ b* s* b7 O" B# q9 E File "/usr/lib/python3.11/threading.py", line 164, in acq4 D& ~5 x: P; [/ ^) J! q
File "/usr/lib/python3/dist-packages/eventlet/green/threa' ]: P/ \( c( e& G+ o
AttributeError: 'NoneType' object has no attribute 'getcurr
- I/ j+ x$ W( q2 H+ [
" n; ^2 q- ~' j: V' i
: g" A% Y/ g& W/ f
4 \& n- @' N% E/ S7 j* Yroot@controller:~# keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
! `7 E* D" u! j9 G( ]& M' oException ignored in: <function _removeHandlerRef at 0x7f1718ed9580>
! P% W+ `, Z/ l& J8 ^. {Traceback (most recent call last):
4 |$ G+ g. k+ f File "/usr/lib/python3.11/logging/__init__.py", line 855, in _removeHandlerRef- ^/ h1 ~; J) Q, p4 K+ k0 U; a
File "/usr/lib/python3.11/logging/__init__.py", line 235, in _acquireLock2 p2 C' k! |7 T
File "/usr/lib/python3.11/threading.py", line 164, in acquire
! W" _% E% A8 n- f$ A File "/usr/lib/python3/dist-packages/eventlet/green/thread.py", line 34, in get_ident
9 p2 y9 c L) x6 ]9 QAttributeError: 'NoneType' object has no attribute 'getcurrent'
( i/ ~6 y- h! a9 @$ T; {: U- z: U' Y" b# ~5 U- Y! m% x9 t
4 e" ~- A) V2 N9 B( [ c$ B/ {1 p+ J ~. Y7 }, O
( j' ^' n. m) b# H% Z找到文件:修改0 V6 g& q/ b" n$ A$ c
vim /usr/lib/python3/dist-packages/eventlet/green/thread.py : ?, k1 g: Z8 P
, \& O5 _7 ~1 N( i' q; M
def get_ident(gr=None):. B! a3 Z, M8 s
if gr is None:
& n; _4 }/ i; x/ g return id(greenlet.getcurrent())
8 b# c. F+ Z* R/ ?6 s( I: L0 j else:
. M# w& L! r, M return id(gr)
" E5 {+ I n. I- O9 G. y5 ]( W0 f- k# ]& [6 Z7 K" o; G
修改成:
8 Z1 i9 J( B8 t* @( W& `/ ^* yvim /usr/lib/python3/dist-packages/eventlet/green/thread.py
* g8 y/ J3 u2 b4 C( v- e' s& Q! \, A# E9 H- p. Q
- w4 }' [& F) b& V5 }% W' ~
/ d& I4 u+ ?: m: m. K+ @def get_ident(gr=None):: B, |# i0 Y! d$ I7 |" v
try:
6 ^6 c( ^$ r, b% a/ I- y) r if gr is None:
- M9 U1 c1 }! I4 |5 P return id(greenlet.getcurrent())$ z5 u0 O$ n. V) `
else:
3 J/ H$ ~9 C' S# c- ]2 t9 S return id(gr); _7 {5 c/ f- v4 I% C8 k# Q
except:
: O2 I/ S# I5 E* {$ ] return id(gr)
. m1 ^( B0 |' m1 k4 n M" g- i. f& @( |, O) Q; A7 x6 U4 S5 C
4 H9 C, j; N, _, t$ N
一定要注意缩减,不然会报错哦。7 G+ d: ^; G; `4 v
8 d \* C/ I, {5 l0 n3 I V( ]; a/ O$ S
root@controller:~# keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
4 e! @! j/ S x) e, U9 i
7 p7 `6 ^6 ]5 l/ M4 w1 O8 R8 i9 w- d
问题解决。
2 m/ I" Y; [. I, u
( N/ C2 P4 O- B* u+ ~1 Y; {' Z |
|