|
|
WARNING keystonemiddleware.auth_token [-] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.
5 f6 K$ y' ?9 W2 E% K在控制节点执行这条命令:, S" ?" j$ u4 ]! L* t4 d
' k; @1 D3 L. `: N! t
nova-status upgrade check
9 h" Z! x4 u3 K0 _Modules with known eventlet monkey patching issues were imported prior to eventlet monkey patching: urllib3. This warning can usually be ignored if the caller is only importing and not executing nova code.
/ y2 L d! Q; ~% K! Q8 b& R' H' I+ |- J/ J; R3 A4 K& R7 k
在placement日志中报:
4 k& d6 R& W2 _. ^% \tail -f /var/log/placement/placement-api.log
; l9 g4 Y- e6 Y- ^
. ?! u! l& O# ^ {! W& |: W4 [) L0 Z$ K& v0 n& o4 C: k! F3 z+ ]+ C
2025-10-13 22:35:04.485 143054 WARNING keystonemiddleware.auth_token [-] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True. ~9 |* {; ~+ g9 o" L: P. W
2025-10-13 22:35:04.601 143054 INFO placement.requestlog [None req-645501b3-c865-47b8-b000-6d47383d130e - - - - - -] 192.168.16.70 "GET /" status: 200 len: 136 microversion: 1.0
% Z' m8 n& i. x+ l, |% i f o/ f8 N# R# H! ^/ d, s7 n$ N
: g: Q: o: u3 V# @# z$ W9 q# y6 @! V0 v) D2 a4 v( K1 }' v
这里应该是配置文件的问题:+ [) {9 J; ` d4 T- s/ n* U1 G
修改下- ?0 [ T# v% }# ~! }$ X
vim /etc/placement/placement.conf
/ j0 n9 K; d) m2 e: M5 J C& l( j1 D4 d1 M0 n; T3 I0 f+ i( n/ y
[keystone_authtoken]
% @5 D K/ Z* {. Oservice_token_roles_required = True. m8 t M5 M* t& Y- `
0 B& r, Z7 R- r" ~: [$ l! @再次访问:
% ^ x2 X3 n# Z) [; Z3 G; a' I# ]+ ?/ O: i
nova-status upgrade check, |4 d/ \) b* K% `
Modules with known eventlet monkey patching issues were imported prior to eventlet monkey patching: urllib3. This warning can usually be ignored if the caller is only importing and not executing nova code.; b$ [' X4 r4 A3 T4 @( _
, h7 l+ _0 |: x$ I8 ^" L" a ]: `+ _
日志不再报错:
0 K+ ^% M) X3 G/ m% w- H d0 w3 e4 `3 b& [2 q# e4 I# c3 r
2025-10-13 22:41:06.764 145104 INFO placement.requestlog [None req-6848ac05-1676-479b-94d0-8f8973cbbe95 - - - - - -] 192.168.16.70 "GET /" status: 200 len: 136 microversion: 1.0! d* @- W/ d$ O% i- H1 x: u
9 Q( N& P: n, _
1 o2 O: O' e- Y |
|