|
|
[root@controller1 placement]# curl http://controller1:8778) _8 _3 G) A' O1 W6 c+ l7 f! _
< !DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">% l( l) K3 f5 ~; q) J
< html><head>
3 F$ U O; @5 o# Q* n! G: n" @8 N< title>500 Internal Server Error</title>
7 L5 j5 Z( [0 t4 l< /head><body>
3 ]& T6 J$ K5 }3 v" o% R6 T9 s$ d( W< h1>Internal Server Error</h1>3 }+ S0 ?5 `. z/ @: O
< p>The server encountered an internal error or1 ~- } q5 k* X$ A3 G# w" s
misconfiguration and was unable to complete
: A# Q7 J/ p3 e9 X4 S! A your request.</p>
d1 S, F) X$ i- p4 O2 P3 y< p>Please contact the server administrator at ) f- G* D; i+ m! X9 k
root@localhost to inform them of the time this error occurred,# {( H3 ?- n' F8 C. c$ O* x) E
and the actions you performed just before this error.</p>/ f7 L0 M {. g. r. D
< p>More information about this error may be available O l ` D8 E
in the server error log.</p>
# |0 X+ G8 [- B, n< /body></html>
: ?/ I! u7 t: j9 y0 Q; b6 R$ f控制节点上curl结果:
w h; K+ _ V/ c5 e
6 K% g' ^* u. ?: P# [( @: A S* p" G修改是placement配置文件的& X; K& }2 E" G) T9 m) I1 }
vim /etc/placement/placement.conf
" v6 _& }7 B) d8 j& w7 o/ b[placement_database], r* N9 t( q) y @9 f" S/ J& K
connection = mysql+pymysql://placement:victors2022@controller/placement0 F8 t9 m$ U$ f. v* {5 Y
[api]
% [5 J; g/ Q2 b a) |! Y auth_strategy = keystone
: c( \% }+ c8 _5 l9 h keystone_authtoken + [ i/ W; j) x
auth_url = http://controller:5000/v3
7 `# U4 N' a/ s# J' G memcached_servers = controller:11211
9 S( V& ?" f1 ^# W5 K: m" L auth_type = password: U7 \9 d* s4 {: N8 r0 M
project_domain_name = Default
: }1 x6 ]" t/ p% `5 w* D- O user_domain_name = Default) {0 T% p8 {# ]
project_name = service
3 ^4 [2 C# _5 U username = placement
* z0 R; D e+ y/ } password = victors2022 w7 i7 w. r' Q9 S. h i
4 A, B/ ]. w C6 |2 C8 z9 T9 x" H重启后结果如下:8 r- C: c) l# E& e
[root@controller1 placement]# systemctl restart httpd.service 1 C/ P Q5 M L* y1 U
[root@controller1 placement]# curl http://controller1:8778
9 O4 o# |0 z. s/ q4 V {"versions": [{"status": "CURRENT", "min_version": "1.0", "max_version": "1.36", "id": "v1.0", "links": [{"href": "", "rel": "self"}]}]}[root@controller1 placement]#
/ M8 p3 }1 U& j |
|