找回密码
 注册
查看: 64|回复: 0

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2025-10-13 22:36:07 | 显示全部楼层 |阅读模式
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.8 _8 q8 K5 X- Y$ c; V1 V- ~* p
在控制节点执行这条命令:& s0 L5 d# q3 l7 c0 a
  W9 ~, a4 E, `" ^( c
nova-status upgrade check7 f0 R/ y& R$ p  d' }
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.# }2 A. }0 f8 y4 ]2 e" P2 ?0 P

5 Z* k  V8 b$ l; [$ u# T$ X在placement日志中报:7 r* n8 w( L1 @' Q! v- S
tail -f /var/log/placement/placement-api.log
' @3 Q( O# t! h7 D8 f# O( |0 x$ U1 d8 ^1 i

5 D; _& ]3 z$ s  j% s) `3 u2025-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.+ ^+ U3 C7 |3 D5 K, g
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, S: A3 o  H* Y( h- G
7 U/ _7 H* ~: |. J3 n( g& k# ]( f
+ i7 A( B% F& D0 X- i
! s4 w9 }4 b3 _) N9 n7 E
这里应该是配置文件的问题:
8 c  A- e) N; M6 N; ~修改下
% y: J3 Z, U1 n% o* O) c: ]) x/ v vim /etc/placement/placement.conf7 U. {1 X3 b( k( I4 r& }" P6 p8 Y9 C
) a, B9 \& s. j/ ~; f  K5 `1 p
[keystone_authtoken]. {7 d/ B# W; A* a9 g  ^
service_token_roles_required = True* G4 W, u/ ?. B8 g) D7 S
& Q$ `9 V4 @* h) u  {5 E
再次访问:
& }, r5 k1 A5 c: }* I% O, o) f
9 q4 l, y) c; J- i1 Q/ qnova-status upgrade check7 v# W' w3 T# M3 C# s, t3 K- J% H
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.
4 p& X6 s* D- J  b
" x9 y& z  u$ q; k: d' e; Y
) i4 y$ K  o, L5 O日志不再报错:0 c7 k: |# l+ W1 I/ W+ _" d- Z3 c5 z, C

; Z7 a$ j4 f: v' K  B2025-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
0 u4 a7 V3 b" }1 f, ^9 L
2 Z1 A' R' E# T9 j; B% G5 z$ p
- t' o5 Z5 \6 O3 K/ M( T8 q2 @" d
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-11 23:03 , Processed in 0.016704 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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