|
|
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.
$ u) p; p3 z4 @1 S+ H. P在控制节点执行这条命令:4 Y, U+ D# @+ d2 G+ I* @
1 ]$ |+ [, y4 S- I$ m
nova-status upgrade check
: a/ L; R5 c5 a2 K; AModules 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.
* g& n+ ~. N0 c3 h" @# ~( h
# D% b- v# J1 U" S( [在placement日志中报:, z7 `$ B6 d2 O8 X- |: A! f
tail -f /var/log/placement/placement-api.log0 K$ `! g+ I V8 b7 Z+ v3 \
* L- {/ x0 V. U0 {* E
# R. Z' B% X4 G0 Q2 b+ [
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.7 i* m( u# B5 I5 Y
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
0 d3 d) V) f' Y9 |( `. Z T, L9 H8 C3 M* P3 v
. \8 Z; k" x3 `# u7 V% M4 I8 F5 i) ^/ s5 [. v% J
这里应该是配置文件的问题:
/ D- @7 x% q- P3 m K( ^* ~修改下) T* b% T7 i2 V; D" `' r
vim /etc/placement/placement.conf
/ k: J) M% y( I# u: f
" K- h3 L8 J2 Y$ U- W% z[keystone_authtoken] d) K7 p% Y0 N
service_token_roles_required = True& m* [# u# |$ M: N' Z% A, x/ ~" N! |
$ T6 ?7 o( U" g2 M, \再次访问:
; g5 U6 J; U/ f: e4 m/ o/ L
$ Q& Y! r/ D% U3 P( H0 Tnova-status upgrade check
) \! S! S, v3 _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.- d% P3 M* [" }* _4 j. l o
7 d7 q! G8 G. F: R3 G: p+ c' S# X) R$ K1 o3 f+ b* \; x
日志不再报错:7 f% [; i! Y$ t3 O" K
) n2 [" z$ T2 \7 I$ x2025-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.03 @6 A7 N; C. r
. M- i$ J. v" c* Z+ P3 H& I' h9 W5 [' ?
|
|