易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 66|回复: 0
收起左侧

keystonemiddleware.auth_token [-] AuthToken middleware is set with keyst

[复制链接]
发表于 2025-10-13 22:36:07 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
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.$ J/ g# [) w! b' l* {
在控制节点执行这条命令:
. @0 a9 S/ G" S3 a: ?& q( s3 u+ j
nova-status upgrade check
2 G+ ~, h9 @, K7 rModules 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.2 p& c' P8 @' X

( {# z/ c2 d: ^: b  J8 I6 |在placement日志中报:
" ?9 D* ^4 P+ }, K, m5 [6 y% ytail -f /var/log/placement/placement-api.log
& A: S: v1 h0 c% d  k$ N! a% r, K1 o% `5 u& |6 I5 G

# G* ~* N! n% N/ J4 m! z: S2025-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.
" k; ~( `/ J) c* X2025-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) x2 ~0 M0 k8 {# H

. j# u. R/ u7 x. B! B$ z# O4 ]( Z' j1 t; f* H3 n; ]: N

) l+ [8 O. `, G- [这里应该是配置文件的问题:
7 s/ d- D4 {: @3 Z2 P( ?修改下
9 t8 l! S% a" q& M# S" J  g vim /etc/placement/placement.conf, _* t5 E. ?* A( R2 P$ g/ f+ c

8 L$ H6 s; R+ n/ ~4 @. M[keystone_authtoken]
' A8 n8 w; E( _# p. C8 Fservice_token_roles_required = True
" a' [/ u7 E" Z6 f. m7 A$ p4 _. U# e/ a) J& @6 G
再次访问:2 Z6 ~. }- e: T% O( h- F# [4 F; a- H6 @

4 O1 M7 {9 R( t5 Z; y( Anova-status upgrade check/ A* J% u* o" }+ @0 o& u+ x" ~. c
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.
( l+ A- i  r! h$ D0 G/ g
- V. }1 _, b  [( u6 R1 T% Q" Q+ F, U
日志不再报错:. g' N0 o7 x  j( D  @3 F
# P5 D  q: W" Z4 `) J: N" j( O" z. n
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
5 s3 x8 ]3 i  Q* Y4 j
1 [' g2 W% |1 M% O
) v: V, G7 t, @6 w; [& x. L
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-8 13:44 , Processed in 0.038208 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表