|
|
[root@controller1 placement]# curl http://controller1:8778
& t4 s2 s$ W8 `8 o< !DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">9 X$ U- Y' \" L2 V7 ~
< html><head>4 Y r# ~# S; g( {% Z
< title>500 Internal Server Error</title>
( M4 D5 q: z8 p0 F. [< /head><body>
$ L5 y0 c" o6 E' f0 h< h1>Internal Server Error</h1>
, G0 A. O; n, u1 ?8 `/ e< p>The server encountered an internal error or5 E$ }2 e9 Q4 D2 Y' y5 ~
misconfiguration and was unable to complete! L4 S, {0 y% z* z& L
your request.</p>
! x$ U& O3 M3 m7 p< p>Please contact the server administrator at
8 _" l% Z5 j6 D! hroot@localhost to inform them of the time this error occurred,+ T$ R8 I5 C$ q' i4 V3 H Z
and the actions you performed just before this error.</p>
1 C# h7 h4 Y( d$ ]8 \6 U< p>More information about this error may be available% g: r, G$ c! w+ Y$ l
in the server error log.</p>
( Y: S5 s5 X3 f+ W< /body></html>8 E- z+ `* O$ b
控制节点上curl结果:/ G5 U: {! a; O$ T! _2 L
, b. b1 w# J, o q G
修改是placement配置文件的 W& v' M" m' a. R1 h3 \$ e' l6 p
vim /etc/placement/placement.conf
" Q% u5 O3 M' `$ g% f+ W[placement_database]) r; r+ k4 Q5 M* u4 C
connection = mysql+pymysql://placement:victors2022@controller/placement% A6 G( C2 T7 [* `4 {* u
[api]- x- F7 h5 ^8 l+ M3 c
auth_strategy = keystone
( Q0 j$ I6 c2 g0 g! C3 t2 y keystone_authtoken # [* k* p& w( O& N
auth_url = http://controller:5000/v3
( J& s9 n9 [+ S/ \ memcached_servers = controller:11211+ M4 d4 s6 S5 Z F5 g' a
auth_type = password
' M/ b: @+ j2 U8 q project_domain_name = Default0 Q. V' J; c7 a/ P7 L4 {
user_domain_name = Default
$ H9 ^$ y& @9 s project_name = service
! c8 d8 o( h. r# R/ V* r username = placement6 H! F9 i7 X: ]6 Z1 r
password = victors2022, R- r5 d. J: E9 D: b7 C: E' T
r) T3 _# V2 j- o- t6 y4 K g3 \重启后结果如下:8 j9 o0 ]) ~) X, ~; a+ }; N
[root@controller1 placement]# systemctl restart httpd.service 7 j* J8 r3 T) C+ m
[root@controller1 placement]# curl http://controller1:87783 ?! d: `: R0 O, D5 t( K$ y# Q( C8 G
{"versions": [{"status": "CURRENT", "min_version": "1.0", "max_version": "1.36", "id": "v1.0", "links": [{"href": "", "rel": "self"}]}]}[root@controller1 placement]#0 N: ?* a% Z! V ^4 r
|
|