|
|
11.gnocchi status(这里验证一下,后面的验证就没问题了)& {7 Q% N/ _1 f6 P
####四.下面都是在不同的组件中进行配置,cinder
) |# O6 K$ s) R4 ?2 m1.vim /etc/cinder/cinder.conf
& Y" \4 b: Y- Z9 F7 b' w6 n- n[oslo_messaging_notifications] # G* U& V+ s* N3 }1 b8 U
driver = messagingv2
* P; W% x0 `! r' Y5 e% `+ q& K* g% v0 S8 {- B+ c
#######收集数据时间
4 S, v; ` N& y% n3 @$ cinder-volume-usage-audit --start_time = '* / 5 * * * * / path / to / cinder' - volume - usage - audit - send_actions
6 T) w# P+ T% ~- F* X
$ N2 _& t8 d2 P. }+ |
* |7 ?7 S$ I6 W2.控制节点和存储结点重启快存储" q; m9 x6 {' M
# systemctl restart openstack-cinder-api.service openstack-cinder-scheduler.service3 \: a/ z/ _" t; u5 l# a: p
# systemctl restart openstack-cinder-volume.service
& g4 J- }6 E- V1 c8 B' D o( O0 P; g- w
L2 V* q6 c! M7 t9 }0 I
' R$ X( Z1 E# K0 L! a####五.在Glance修改配置
6 @0 f. T. ^2 i" J1.vim /etc/glance/glance-api.conf and /etc/glance/glance-registry.conf# Z, J7 E' w F* ?
[DEFAULT]
$ Z. g. s$ K/ V% i% Q6 ^* \ `& Ntransport_url = rabbit://guest:guest@IP
( L5 m& i& u+ K[oslo_messaging_notifications]
( W ~1 P+ s; b5 J0 m( odriver = messagingv2( a- C, ~7 z1 Y
. d" h- v+ O. r' b
7 E1 F5 [3 m& Z! d! x$ R ~
2.重启镜像服务
4 d. Q: x7 k) t, S# systemctl restart openstack-glance-api.service openstack-glance-registry.service
/ L+ t' {) j4 l+ r! G2 }, H' @" V$ ?$ z7 y& G: H2 X1 e- \, O! x# Q- H
7 F T$ s. j9 k* Q
/ o0 q p6 W( d2 h####六.在Heat修改配置
9 K6 R2 Y$ p ]6 m. k4 M% ?1.vim /etc/heat/heat.conf* N5 C9 w/ v0 S( i, A
[oslo_messaging_notifications]6 H9 R3 U( c, A8 G$ M0 @2 R3 c# N
driver = messagingv2
. |: n C7 \" h) c' _6 J
) t8 ^9 ]% V/ K5 m# _) p j$ ^, @1 `9 v8 l
2.重启Orchestration
: m, V) {# i/ j) n# systemctl restart openstack-heat-api.service openstack-heat-api-cfn.service openstack-heat-engine.service- y' i' c# I3 F, _
8 Q/ C. ^7 i$ {, a9 y
, I+ ?0 J. P& V' _ ?3 V$ j p0 ]6 d; ]
####七.在Neutron修改配置9 h) F% z; y" U( u8 b" U
1.vim /etc/neutron/neutron.conf
0 i& }$ [9 t4 E2 ~2 x, v" N# g' ][oslo_messaging_notifications]( n1 I- ^+ j, T$ k; l
...) Q9 S0 [& s4 Z1 f- s) N. P! \
driver = messagingv2+ T1 B7 c7 | |7 W6 F7 R7 |
5 O$ ]- a1 s, M0 A( e. N/ ~ i+ t+ }- q0 {) Z" W3 g0 p6 {6 p$ f
2.重启网路
* |1 R- i+ o1 e* |( F* w) c# systemctl restart neutron-server.service3 X8 K7 v3 t8 E
: Q$ a4 |6 i5 Z1 k3 \
% f B, |) c* d3 K, C8 G0 a, B; { g5 A% L& b) m: x
####八.在Swift修改配置(这部分一般都没有安装): N8 U' W& j" w" g; t5 G5 S7 ]9 Q" x
1.加载admin配置文件
7 V3 p/ }+ o) ~- H5 L( b7 \2 h$ . admin-openrc8 R- U3 q3 w8 S. w0 A4 N, d1 L
$ openstack role create ResellerAdmin& k" }% `$ b3 U2 a# l0 _$ N/ B
$ openstack role add --project services --user ceilometer ResellerAdmin
2 C" T' O) g7 X' c; r$ openstack role add --project admin --user ceilometer ResellerAdmin: Q8 Q% L3 O+ o7 P8 I8 y
# yum install python-ceilometermiddleware
6 j: l u, l/ @# B5 f
! @/ ~2 U2 r( J+ o* {
2 u# D) I, R# u. V; V! W2.vim /etc/swift/proxy-server.conf9 x( r& c1 [7 d& _
[filter:keystoneauth]. Y9 J- B5 e0 O, Z5 P. b3 t
...
$ k2 W, g( t8 C0 @$ V2 s5 w, woperator_roles = admin, user, ResellerAdmin
) ^' @ ^% _. \$ Z' Y- u4 ][pipeline:main]
1 i1 \5 J: @/ `" C- w$ Q! G5 H1 }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-server6 s! h# {- U. X' l3 U/ w+ Z; C
[filter:ceilometer]
$ [2 I2 D0 b3 j3 A; @: E7 C( [paste.filter_factory = ceilometermiddleware.swift:filter_factory' l( L, i: j; I5 v
control_exchange = swift5 Z0 ~" V1 b: _6 B
url = rabbit://openstack:RABBIT_PASS@controller:5672/) d5 [1 k; a; q% X3 P
driver = messagingv2
9 Y" n) V8 _ M& ftopic = notifications* C6 b' B* L) t* a" W A
log_level = WARN
. {3 ?& ]! O- f) E3 c* d" O0 P5 k& K$ E
N& y7 S) J4 F
3.重新启动对象存储代理服务:
% q5 x9 V4 d4 w, I# systemctl restart openstack-swift-proxy.service
3 U2 x; P9 @* m# |& X9 M& U####九.验证操作# |2 s8 ?: V7 y( R/ k' i) e
1.加载admin配置文件
" V' g7 [& d6 T; ^6 x; f$ . admin-openrc; b+ E1 i6 I9 X2 z5 ~, V3 `$ V5 u: p
$ gnocchi resource list --type image
7 G- \$ _% y* H6 D! a3 W$ gnocchi resource show a6b387e1-4276-43db-b17a-e10f649d85a3
, S7 e# z8 R' N2 |1 @8 I( B( ]* @2.从Image服务下载CirrOS映像:
+ [5 Y2 s( C* U; C* A$ IMAGE_ID=$(glance image-list | grep 'cirros' | awk '{ print $2 }')
* \7 n H* v! i) Q/ ]$ glance image-download $IMAGE_ID > /tmp/cirros.img
! m. Z3 K5 t1 T$ gnocchi measures show 839afa02-1668-4922-a33e-6b6ea7780715
I- H; _7 r+ h2 o& ]3 r$ rm /tmp/cirros.img1 I' B8 K# g, c, }
5 F y$ ?- l8 z K) B* I6 Y
|
|