- 积分
- 16841
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@controller1 placement]# curl http://controller1:8778
! ~" k% N1 H9 e+ j# |< !DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
' x/ W g; j2 f: _( S+ ?< html><head>
|- K# z; e; j, p/ c< title>500 Internal Server Error</title>
) V3 H# ~+ j' l" c& M8 z6 _< /head><body>
" o1 V8 m, }; ^* |! U. T< h1>Internal Server Error</h1>) F+ _9 l8 I4 a$ P
< p>The server encountered an internal error or, ^( w' X6 Y$ g/ O0 y: R. F
misconfiguration and was unable to complete! P' U! [ f0 ^
your request.</p>3 ^/ K* H6 A6 g! [( d
< p>Please contact the server administrator at + O! `. A' X0 f, K2 K
root@localhost to inform them of the time this error occurred,
+ e7 O0 o2 A# R: K* c6 W8 f and the actions you performed just before this error.</p>
3 s! ~ o3 Y5 J) ~. M9 Q- z, l< p>More information about this error may be available; u/ H( D S8 Q+ R. z' J7 y
in the server error log.</p>+ F% z) P4 s1 f2 m
< /body></html>; ]! P) v' ^' X4 F" Q' g
控制节点上curl结果:& c3 F% V) S: O G& i$ V
Y& s" k; E4 x+ t8 t8 d2 i j# Y V修改是placement配置文件的
& N7 W$ n& k! I/ n0 Rvim /etc/placement/placement.conf2 f* p0 x4 l5 \2 j3 O
[placement_database]
3 N$ F, m) [! [ z9 Q connection = mysql+pymysql://placement:victors2022@controller/placement9 K# u8 f( n3 [& s
[api]0 X, o3 s! B, s- L* O! h
auth_strategy = keystone
/ L8 I; N' P3 _! ?& ?) i keystone_authtoken
4 Z& H/ V' j. i6 `5 J3 o auth_url = http://controller:5000/v3
$ L' I/ c8 L! c- G2 p4 {) I memcached_servers = controller:11211
$ H3 o- |8 k @$ @ auth_type = password
E' Z, N8 B; v project_domain_name = Default3 E5 @# C. M4 i( Z, v; t6 K3 r x
user_domain_name = Default
3 ], i; w3 \$ x" x( N project_name = service
1 Q' c! V" u$ w username = placement
7 J7 `# B' U+ i, w0 t1 X, d password = victors2022
! x2 s6 S) X+ l" Y2 Y
5 B8 m; w! k: `5 z4 Y重启后结果如下:+ u- W4 w/ {5 {) u
[root@controller1 placement]# systemctl restart httpd.service ! A/ s* _4 F5 U; }; J/ g8 [$ G
[root@controller1 placement]# curl http://controller1:8778
+ O# {" W/ Z3 D) m# B7 C2 [ {"versions": [{"status": "CURRENT", "min_version": "1.0", "max_version": "1.36", "id": "v1.0", "links": [{"href": "", "rel": "self"}]}]}[root@controller1 placement]#2 z5 t) T [8 W7 m2 z6 |6 }( ~$ _; p
|
|