将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

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

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

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

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

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

x
[root@controller1 placement]# curl http://controller1:8778
2 x- D' Z& i, f9 E" v< !DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">: t9 ^9 t* Y& a2 K9 }
< html><head>
+ O* q' q  ~$ r! {) H< title>500 Internal Server Error</title>, S! q3 i9 ?/ w) E- v  m
< /head><body>2 j: C) s, M5 s- `2 c; q
< h1>Internal Server Error</h1>+ t$ P3 h6 V) A7 c
< p>The server encountered an internal error or
; w9 L6 @5 A0 R# L% H' C3 _ misconfiguration and was unable to complete
. t# `* V9 Y1 b9 ]2 w. n/ S your request.</p>+ l3 K# ~! R6 P2 ~7 t
< p>Please contact the server administrator at 6 M2 C; c7 \. e* m2 n, G
root@localhost to inform them of the time this error occurred,5 l7 k7 O# ?- }; t* J  N
and the actions you performed just before this error.</p>, ~6 l# B( L3 i  q
< p>More information about this error may be available
) H/ v' W8 c1 _2 W2 _2 J3 \2 B( ~* V in the server error log.</p>
( E5 u# N  C, v2 v; @# E< /body></html>
7 B/ i% l% L% u: g0 _控制节点上curl结果:4 v. S, A" n  P6 n; O
* O& i' S+ ]! h, I9 j
修改是placement配置文件的  |* G' k2 f2 g3 u
vim  /etc/placement/placement.conf9 U$ \+ S) r+ c
[placement_database]
7 Y9 m! t- a. Q- @& D! j connection = mysql+pymysql://placement:victors2022@controller/placement6 @& A& E  ?3 N5 u/ i& Q
[api]9 s1 l$ c9 q, p0 B7 f# a
auth_strategy = keystone
' }# ?+ g* Z, i( Z! b% R7 M0 L$ T keystone_authtoken   F* T$ q" b& C- w: C+ f  c
auth_url = http://controller:5000/v38 L; z( K9 T( ?* E! v
memcached_servers = controller:11211; l. l) b, F6 _: e- Y6 ?5 c6 j
auth_type = password+ l$ b  c0 K7 |6 _
   project_domain_name = Default
' i) m, k3 [8 W( V6 ]3 i+ A   user_domain_name = Default
' _& U% e, N  d$ m1 U4 m7 [; L* G" z6 Q   project_name = service) u  F) L6 t5 K
   username = placement, O  J3 G- S, F& B+ I. g
password = victors2022
) B' r. j% y* x/ \
: e+ \1 d0 J1 l$ b2 _重启后结果如下:
* B& d. P3 y/ D[root@controller1 placement]# systemctl restart httpd.service 4 z( v1 G' Q$ Z, Q3 I# _! k3 y
[root@controller1 placement]# curl http://controller1:8778
3 g0 j  b- ^6 v {"versions": [{"status": "CURRENT", "min_version": "1.0", "max_version": "1.36", "id": "v1.0", "links": [{"href": "", "rel": "self"}]}]}[root@controller1 placement]#
: s2 J2 d, B9 h. q% N1 `8 o
 楼主| 发表于 2021-12-26 22:07:10 | 显示全部楼层
有一个问题关联次文件:
5 c" ~- t* ]; S% F: u$ K3 Rhttp://www.bbs168x.cn/forum.php? ... tid=2058&extra=
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2022-1-22 14:18 , Processed in 0.041503 second(s), 21 queries .

Powered by LR.LINUX.cloud bbs168x X3.2 Licensed

© 2012-2022 Comsenz Inc.

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