易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 58|回复: 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.
1 h& g" O' z0 G, [在控制节点执行这条命令:/ f: V( u8 x! J& g3 {
% W/ c& G9 g5 Y" c# f; i2 Z
nova-status upgrade check" A0 f" P  @0 o, Y; Q2 ?+ Q+ A
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.
- O- d& V; _$ S+ x% s6 [- H* O9 K% z4 `" c3 R0 V$ _  D
在placement日志中报:
# U# N, O& H5 r1 Jtail -f /var/log/placement/placement-api.log
4 K3 N! J: e7 `+ l
. u, k! s6 i5 I, Y5 X3 u; y
( ]8 [, W0 B& g2025-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.
, T$ C* o7 T) ~7 A2025-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.09 }% Q4 i! O1 L) E3 f8 T1 D; M
- Q" [! y) o% k$ D2 y( V- }6 }
8 i6 s$ O! t) V" k
& T- H, ?7 [, j$ h  n0 o0 O
这里应该是配置文件的问题:7 j1 z- B7 U  o: q( W2 j
修改下
; w5 D8 j0 V% @+ x+ M8 i5 s vim /etc/placement/placement.conf
9 s4 K2 a7 {9 B8 z- Y' l3 v8 |& ~" ?$ E- Z
[keystone_authtoken]1 M4 z0 i; T4 N: O3 f
service_token_roles_required = True
2 M# o& e! C3 Q% b& \+ V0 a8 H( j4 |6 |) x5 A+ u
再次访问:
; z; E  D: C' f4 y/ l0 \9 C
' \: F$ }# ?% Z+ {5 |2 q; anova-status upgrade check
1 W& K6 \& U  h% ~/ d$ }9 a+ VModules 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.  t- V! K. b8 b. E, H
1 D: a& Z1 r; x" g' n6 B

( X" L6 M# Q* D+ y日志不再报错:: |/ u' v$ ]9 N. ?2 }8 t2 E- o

. v" B8 c/ ~) f2025-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
( \, H7 d1 q" i5 ~# G# c5 r5 e6 I/ g9 E8 N9 }5 V" G) W1 R7 v8 x2 ?

- A+ z" [. y) w9 k$ Z, |/ c/ o
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 19:52 , Processed in 0.124331 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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