|
|
11.gnocchi status(这里验证一下,后面的验证就没问题了)
# g0 V, Y4 Y# ~####四.下面都是在不同的组件中进行配置,cinder$ Y2 @* Y0 s' z9 j/ {0 L9 H) `- o
1.vim /etc/cinder/cinder.conf5 V' J) s6 w' |: f9 l5 e5 Q
[oslo_messaging_notifications]
- T. V5 s- }/ g+ f& i3 A/ Ydriver = messagingv24 j' p5 z; Q9 g5 o+ l- f: J6 {; w
$ s/ W+ |" a9 D" [1 J0 j
#######收集数据时间1 t+ R# e5 n( N+ W- t( l# w
$ cinder-volume-usage-audit --start_time = '* / 5 * * * * / path / to / cinder' - volume - usage - audit - send_actions( g1 Q; o; A; y/ `
8 w2 Q7 {0 C+ k! u
" A, G1 Q1 L& m# C9 p2.控制节点和存储结点重启快存储2 J" k4 n5 i+ c, `% z: l( Y, B$ {
# systemctl restart openstack-cinder-api.service openstack-cinder-scheduler.service/ j5 u1 N; ^5 o1 K
# systemctl restart openstack-cinder-volume.service$ R. N. ^: n9 ]( K5 V0 m
" h: E0 _9 W6 s, [& O4 f8 Y( f) B, |7 c, L7 z. W0 Y
####五.在Glance修改配置
& m) _3 ^4 c, n1 v1.vim /etc/glance/glance-api.conf and /etc/glance/glance-registry.conf
9 u' k }9 I$ a6 t9 Y' `' U% C4 [[DEFAULT]
: m" T* I% Q7 Utransport_url = rabbit://guest:guest@IP
8 Q: ] Y _+ W- [[oslo_messaging_notifications]
; E5 z' G' p f) c2 y) ~driver = messagingv2/ _6 D* O7 o1 v, M8 f
9 ?2 D6 w O) f# U$ D; ]6 e" R6 S8 c) R
2.重启镜像服务
$ D8 S5 d+ f& M6 w# systemctl restart openstack-glance-api.service openstack-glance-registry.service
; V$ e& s1 { i' l9 X" K4 C! p$ i6 L9 K
# J2 s+ c7 t' |% L9 u
1 S/ f O5 T1 ~& z$ ~9 R
####六.在Heat修改配置- y& f0 R6 @: ^' r; Q a$ j
1.vim /etc/heat/heat.conf
0 K2 S4 h8 A2 X2 E9 ?+ v0 D[oslo_messaging_notifications]/ R) s0 |( v: h' \9 d
driver = messagingv24 |% K2 J5 z# N( E; U
: Y. w$ `/ t# h0 v% S( ?, b
% ?, U( B, e4 U2 h; ?2.重启Orchestration: e2 z) A/ P8 P/ e, n" J
# systemctl restart openstack-heat-api.service openstack-heat-api-cfn.service openstack-heat-engine.service Y' [% S/ O% l- u6 s( p* }
: E+ u, q) Z! w* S3 x
" |8 I6 M* [, w4 E3 G5 \* z
0 O# z% |: I) Q0 G####七.在Neutron修改配置' |2 {: e* M" I& z$ l2 ?& F
1.vim /etc/neutron/neutron.conf+ b0 a' A# V0 o$ ^# R( _8 ~
[oslo_messaging_notifications]
2 F5 s5 Y: f# _, Y...
1 @/ [ D9 y) v8 F, b+ r7 Ldriver = messagingv2& H, n# P) V& P% Q8 z1 |
$ E/ [( f# H* d7 O6 E6 N. D @ x
1 y5 H8 B: R" M: J, C' z2.重启网路
1 W! J1 i) G }* p% H$ x) C# systemctl restart neutron-server.service, L& H: ?4 ]8 e6 R% @
. r5 [8 V+ P! g% ]6 P
2 J( ~7 G9 s1 g }& x# ^) v( R! q& l3 e: B( f& a
####八.在Swift修改配置(这部分一般都没有安装)0 |. h( L7 x& H
1.加载admin配置文件
, L) G6 ?/ t. d) ?: K x0 C1 @$ . admin-openrc; B y; H* y; U* s, ^) h
$ openstack role create ResellerAdmin
6 B1 l @5 `3 r5 b' x9 ^$ openstack role add --project services --user ceilometer ResellerAdmin
: H7 b0 k2 t! E, z$ C6 s$ openstack role add --project admin --user ceilometer ResellerAdmin2 _7 u8 Q7 l, u" O
# yum install python-ceilometermiddleware
9 q9 [* [- A$ L
' q' L, R, Y# i$ ?: h1 d; W& H/ R# I6 H; r1 I
2.vim /etc/swift/proxy-server.conf" P1 m; G" q: U/ \5 E
[filter:keystoneauth]
- U' x% m, x# \+ y o8 Q...1 Q8 J7 _/ y8 Z+ R
operator_roles = admin, user, ResellerAdmin
4 h+ z8 X1 z5 t/ X[pipeline:main]" s4 t" ?) J2 @. U
pipeline = catch_errors gatekeeper healthcheck proxy-logging cache container_sync bulk ratelimit authtoken keystoneauth container-quotas account-quotas slo dlo versioned_writes proxy-logging ceilometer proxy-server
+ s: Z* h/ H% q- ?0 L. P. w[filter:ceilometer]+ D% J- M8 B6 |8 h* R$ G. d
paste.filter_factory = ceilometermiddleware.swift:filter_factory, R: F" f" ^: k1 Q/ H
control_exchange = swift( L( E' A. x1 p% W2 C
url = rabbit://openstack:RABBIT_PASS@controller:5672/
1 B) J/ ?0 Y6 P& |. x; Xdriver = messagingv2
; Q% }$ R. p4 E0 j5 d2 z3 K: Ktopic = notifications
6 r5 G9 p" i& t Y) ^log_level = WARN
# ]5 I% T$ i. q5 l1 h5 z" `5 h
* {2 N: r$ `) t& s- r4 G2 R8 K
9 X, ?! x" E( q% c2 @' Z1 L3.重新启动对象存储代理服务:
5 C" ~; {( L" V; J; p3 H; D# systemctl restart openstack-swift-proxy.service5 S/ F& |: O t
####九.验证操作
6 Q! K& t4 c- i# Q) j1.加载admin配置文件& [, a! W5 S" u, Z1 x7 A; G
$ . admin-openrc/ j5 l; q( d! \$ m' W
$ gnocchi resource list --type image% I4 X# W' f, |/ Z, r
$ gnocchi resource show a6b387e1-4276-43db-b17a-e10f649d85a3
- R& m# m1 J- Y2 X2.从Image服务下载CirrOS映像:
+ X8 g" d9 s, {$ ]$ IMAGE_ID=$(glance image-list | grep 'cirros' | awk '{ print $2 }')
5 X' G# T/ J4 E! S( P& m# O+ u$ glance image-download $IMAGE_ID > /tmp/cirros.img
( Z: m. ~/ G3 W P! _1 k: p$ gnocchi measures show 839afa02-1668-4922-a33e-6b6ea7780715$ F. B0 r8 J0 d: \
$ rm /tmp/cirros.img
) D: X7 L, g! }' C2 G2 l8 U
2 s% q$ p! h$ [; | |
|