易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 1538|回复: 1
收起左侧

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

[复制链接]
发表于 2021-12-26 22:06:37 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

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
 楼主| 发表于 2021-12-26 22:07:10 | 显示全部楼层
有一个问题关联次文件:; q3 ?5 B0 L) G- x3 f8 ]! D
http://www.bbs168x.cn/forum.php? ... tid=2058&extra=
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-3-9 00:09 , Processed in 0.051095 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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