找回密码
 注册
查看: 1543|回复: 1

openstack trian 版本添加placement配置文件,并启动placement服务

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-12-26 22:06:37 | 显示全部楼层 |阅读模式
[root@controller1 placement]# curl http://controller1:8778
/ I0 M/ x* M( l. b7 v< !DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
# h* H8 _* Q) G. d7 g0 e< html><head>6 k: j1 o/ Q8 M# P: B- I5 e" |
< title>500 Internal Server Error</title>
. ?5 Y3 \! F3 p/ @' ?$ t. N< /head><body>9 ?  e  B2 _' d8 I6 i
< h1>Internal Server Error</h1>
$ m7 W9 N! ~: V; a' H! z/ e< p>The server encountered an internal error or
! ]  I8 L+ Z- X- i' E misconfiguration and was unable to complete
8 z1 N! G$ B2 R5 |  n your request.</p>
8 E' e& [4 ?( U< p>Please contact the server administrator at
. r4 a& g6 ]* o# f! c! d/ Proot@localhost to inform them of the time this error occurred,
' f/ m) Q/ M( l2 b3 `, V% V3 F/ G and the actions you performed just before this error.</p>! L7 e  r( t( ^, ~, t/ L
< p>More information about this error may be available) ~, a; Z- Q' G  I: S6 o
in the server error log.</p>+ Y4 a: B' g. m
< /body></html>
$ r2 L. G. C/ l7 F% P控制节点上curl结果:& g  N7 L' G" u5 H/ @$ H

: D) N9 y0 U* D2 D. y4 A5 b+ G修改是placement配置文件的! [  P( c9 K! s
vim  /etc/placement/placement.conf! n' [' x- F& ^# T8 H
[placement_database]
  w0 a+ V# e& t0 O( t connection = mysql+pymysql://placement:victors2022@controller/placement4 a( \. F; ?# n7 ?- \' P. ?  A6 @
[api]( D* x/ ?- G7 K
auth_strategy = keystone
) |9 c4 w: Z3 g" w" K& v keystone_authtoken / M& i% G5 {4 e
auth_url = http://controller:5000/v3' n" f. t9 {) G# _, b4 Q
memcached_servers = controller:11211
, G* y( }, |& X" r3 K auth_type = password
' _$ w0 A- R+ }$ q: v  e   project_domain_name = Default& q: @: c3 `9 H; ^9 \! T0 ?7 r
   user_domain_name = Default
) S; x1 S) e' M( X   project_name = service1 D7 d# Q- l' ~7 o8 t9 @
   username = placement
! `2 ]: c" k6 J) \6 o- U* B$ n password = victors2022
' f0 f' ~7 V! `# }9 h9 H
/ @% [% A+ s* X重启后结果如下:7 X7 O: S( @5 ?  L/ b
[root@controller1 placement]# systemctl restart httpd.service
- x; @" Z3 q7 I5 ] [root@controller1 placement]# curl http://controller1:8778
. n1 R3 v8 N3 P; p9 @  ?% m {"versions": [{"status": "CURRENT", "min_version": "1.0", "max_version": "1.36", "id": "v1.0", "links": [{"href": "", "rel": "self"}]}]}[root@controller1 placement]#
3 ^9 b! b- ]( D6 ~  @+ A4 w

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-12-26 22:07:10 | 显示全部楼层
有一个问题关联次文件:
7 o  P  r: q( Ghttp://www.bbs168x.cn/forum.php? ... tid=2058&extra=
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 03:22 , Processed in 0.016006 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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