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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-12-26 22:06:37 | 显示全部楼层 |阅读模式
[root@controller1 placement]# curl http://controller1:8778
/ Z1 ~1 Y( ^6 Q8 Y. y< !DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
& o" Y9 B' y& }% O; O< html><head>1 ^3 P" F& |/ I1 T+ T9 l3 k* U- K
< title>500 Internal Server Error</title># g2 p- S6 Q  ^3 Z3 U( X1 a8 `& d
< /head><body>
' L* E8 U- l( T/ c- {< h1>Internal Server Error</h1>
" G4 }- r3 W) `< p>The server encountered an internal error or" j  [5 ]  u* n4 _" {( V# f' E
misconfiguration and was unable to complete
7 e( G- w1 o' f! L your request.</p>
+ e) z0 I# o" J. `& d8 e< p>Please contact the server administrator at 4 X: {' D" x+ q- T* T8 x3 E5 B
root@localhost to inform them of the time this error occurred," D: R& \  m( n7 k7 ]/ K! L9 E2 L
and the actions you performed just before this error.</p>
4 U2 n: D( V+ C7 v< p>More information about this error may be available
( @" V% B) L5 @0 | in the server error log.</p>
1 v8 W* M& g: Q! f. g% ]< /body></html>; v; W7 {5 _/ W8 H& H5 i
控制节点上curl结果:6 K& K9 o7 L: Y/ K5 j1 h
; M" J1 ~9 p: E" U- O- h/ N0 j$ X
修改是placement配置文件的
- P! \6 v2 m4 n( z& ~' lvim  /etc/placement/placement.conf
1 Q6 B3 O! _4 Y[placement_database]3 u+ h& _/ u, _% Q( ]
connection = mysql+pymysql://placement:victors2022@controller/placement
; X. _$ @* d( ~( f [api]  Q3 x( D+ p5 l
auth_strategy = keystone, Y; Q/ j0 g$ S! u& R) i5 c
keystone_authtoken & {# }% z0 d/ J' {
auth_url = http://controller:5000/v3
: F4 F7 R1 Z# v- v2 E  v memcached_servers = controller:11211
9 M; V' c( |! u( f* |  X auth_type = password
- _2 ^# w. t/ T' f   project_domain_name = Default
" P2 D, S4 x3 ~4 f: ~2 D   user_domain_name = Default
1 `  q2 H% X, Z1 r0 Z3 o   project_name = service
) F. r. B% u2 G! c) c6 H: L   username = placement
+ ?2 L% A+ `. n- [* C+ w! f password = victors2022& P" {+ g' f- w; `- i: }& @# {
. P, k! b0 X6 n7 D, _" p, j
重启后结果如下:
3 T: W! g. A  Z+ j- @% t[root@controller1 placement]# systemctl restart httpd.service
9 V/ q# a& o2 ?/ h1 l- _, P [root@controller1 placement]# curl http://controller1:8778
. ?" D) Q* x8 g- p  f" q {"versions": [{"status": "CURRENT", "min_version": "1.0", "max_version": "1.36", "id": "v1.0", "links": [{"href": "", "rel": "self"}]}]}[root@controller1 placement]#: U8 ^' @  x$ [! C) X7 B

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-12-26 22:07:10 | 显示全部楼层
有一个问题关联次文件:
5 s, f! d0 T  J3 Z9 I( R# \  yhttp://www.bbs168x.cn/forum.php? ... tid=2058&extra=
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:27 , Processed in 0.015989 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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