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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-12-26 22:06:37 | 显示全部楼层 |阅读模式
[root@controller1 placement]# curl http://controller1:8778
/ V1 ~2 W; H- k- s( |- @< !DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
$ @6 n3 H5 ^6 s! D' m" o8 ?8 |! H- P2 ^< html><head>" C1 ~; O" ~  i$ I" I, H
< title>500 Internal Server Error</title>
( C* c+ R6 z& y< /head><body>! x2 p7 ]; l; I- A/ {
< h1>Internal Server Error</h1>1 z; z  Z: ^& K8 c8 Z
< p>The server encountered an internal error or7 p8 }& G; B& U1 n4 l* T) O
misconfiguration and was unable to complete
5 \! ^8 S% E: n your request.</p>
/ a% w* P% Y0 p  l< p>Please contact the server administrator at
8 z  C1 {( v( j3 O) T6 g/ aroot@localhost to inform them of the time this error occurred,
. l( C3 v1 w" I; R3 P: P and the actions you performed just before this error.</p>
/ q3 G' h8 R; S; j( x8 Q% g< p>More information about this error may be available  [$ ^. L! g2 `4 l& w
in the server error log.</p>
" M0 n% o; I8 T& N7 T< /body></html>
7 U4 s! ?* n; M; ?控制节点上curl结果:
7 U1 d3 n4 A, q0 S( w3 q  r, T! ~0 E7 D" W
修改是placement配置文件的) S- [% k8 }# E/ L6 h
vim  /etc/placement/placement.conf
, @# m9 d9 w+ W. ?. l# B1 ^, k- \[placement_database]
; Q! b0 y+ h6 z# Y connection = mysql+pymysql://placement:victors2022@controller/placement% _! k6 S- P/ f$ l4 N6 H
[api]
; ]$ B9 f! Z" ~; ?( C0 d/ o auth_strategy = keystone
0 s+ l9 h% `" `$ Q6 V  ? keystone_authtoken 5 x- t, Q+ C$ d( q- m% K1 |" t
auth_url = http://controller:5000/v3
8 W3 u" I( S& A% n/ t' z- ~ memcached_servers = controller:11211& ?- R" s; E$ A# [& c
auth_type = password6 Z0 }$ R2 [5 r" l+ {  S+ L2 U' u+ l4 `0 t
   project_domain_name = Default! y- Y+ t" @. w% x
   user_domain_name = Default
8 K. h8 a% f  c6 L4 s  r   project_name = service- F7 n+ y6 O. w# Y" D% |1 u  P
   username = placement
1 N2 ^$ T7 J6 W6 n  K+ a) V password = victors2022. _! ^8 |- C. }+ R$ T- e
0 s6 |$ O) u: }8 ?( @
重启后结果如下:' t" V: @( i. B8 X3 H2 s; I  u
[root@controller1 placement]# systemctl restart httpd.service
% G; ^# Y6 N; U. o; Y [root@controller1 placement]# curl http://controller1:8778( E0 Y% d( N5 |0 }8 M8 D
{"versions": [{"status": "CURRENT", "min_version": "1.0", "max_version": "1.36", "id": "v1.0", "links": [{"href": "", "rel": "self"}]}]}[root@controller1 placement]#
% B! N7 d2 `% h$ P- R, _

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-12-26 22:07:10 | 显示全部楼层
有一个问题关联次文件:
6 B* W. U3 |1 |9 {/ \http://www.bbs168x.cn/forum.php? ... tid=2058&extra=
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:04 , Processed in 0.017003 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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