- 积分
- 16841
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@controller1 placement]# curl http://controller1:87787 S" J) S& @: I v- v' q& o
< !DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">7 d" A8 C3 M# H. i' i( ]0 L$ }' l
< html><head>! h) l: \8 o( p/ u4 c; N
< title>500 Internal Server Error</title>( F4 a1 C' W0 O6 O5 H% O6 ?
< /head><body>
C5 l9 q/ Y1 }( m4 I& H J3 r< h1>Internal Server Error</h1>
4 d$ Q0 N" _8 Q( s( U< p>The server encountered an internal error or
A" u* M! N8 E/ g# A misconfiguration and was unable to complete
7 L! w* r, g# \. S+ @0 V$ }( W7 I your request.</p>/ B0 K, C8 l+ |
< p>Please contact the server administrator at 5 Y8 Y: f+ }+ x. ]
root@localhost to inform them of the time this error occurred,1 {& w: c* a# W
and the actions you performed just before this error.</p>
6 P$ `" U9 C2 D; {9 e2 Z( W< p>More information about this error may be available" d" j+ V% }8 O$ K5 J
in the server error log.</p>
% \! s* r6 O: C, K7 h< /body></html>& y! N4 a( u9 r1 f
控制节点上curl结果:& \" O+ t* P3 X5 s1 ~, `' o5 G
7 S2 [+ V i: z0 N( L6 V
修改是placement配置文件的9 p ]' y" B4 |
vim /etc/placement/placement.conf
( R4 P: e% C: a( E+ V+ ` a[placement_database]3 J8 D3 n" x' w; E
connection = mysql+pymysql://placement:victors2022@controller/placement
4 u8 U0 L/ e! x& \5 ^4 _: O1 G5 k# n [api]; R6 Q4 A2 f, [' ^: W2 x1 N9 [2 [
auth_strategy = keystone
, M. F6 L- p0 P" d keystone_authtoken
" n# V3 s" S2 X- \. Q7 b2 _- T auth_url = http://controller:5000/v3) j0 V0 s: ]9 d8 u% ^7 J
memcached_servers = controller:112114 C) ^2 M3 g; v+ `) G9 W
auth_type = password
+ }2 Z% i) K3 q project_domain_name = Default0 R4 ]5 z f3 _; n. k- L5 W" o# j
user_domain_name = Default
& j1 x( E j8 ^3 u: L project_name = service& t% p4 W" T, e1 y4 Z) A
username = placement
" z a( M7 ^( t% g7 { password = victors2022
4 F I* I( B6 T
/ S) U1 u1 }5 K4 P; n9 p重启后结果如下:+ ]9 ^. E1 R' {. f
[root@controller1 placement]# systemctl restart httpd.service
' B6 b! D B: Q [root@controller1 placement]# curl http://controller1:8778
& O, o: O; V( z7 H9 v' U5 N {"versions": [{"status": "CURRENT", "min_version": "1.0", "max_version": "1.36", "id": "v1.0", "links": [{"href": "", "rel": "self"}]}]}[root@controller1 placement]#
- K8 [: @( @& E2 I* Q% X h |
|