|
|
11.gnocchi status(这里验证一下,后面的验证就没问题了)
. k) r2 n% [9 r( z: N- e####四.下面都是在不同的组件中进行配置,cinder% |7 M% m/ ^2 X/ q: Q3 K
1.vim /etc/cinder/cinder.conf* R) j- [* E( c0 L! K
[oslo_messaging_notifications]
/ { Q5 ~3 }# o1 e- C2 E# jdriver = messagingv2( ?" |- j) D. p2 l
3 B" Q( ?2 t" O3 L# N, h5 T- R7 W
#######收集数据时间
( {* v O8 M* z% ]( k$ cinder-volume-usage-audit --start_time = '* / 5 * * * * / path / to / cinder' - volume - usage - audit - send_actions% B0 \* }4 `: s" V9 `0 I6 Z# G
$ k8 h7 f, b! p, _" o/ S% T" `
8 ]9 A$ u \5 J. @
2.控制节点和存储结点重启快存储
2 |0 j% X/ r# i# systemctl restart openstack-cinder-api.service openstack-cinder-scheduler.service- L' n4 ]5 P' ^6 y9 l; \4 a
# systemctl restart openstack-cinder-volume.service# B# B( k8 Z5 T7 e" N4 t* K
. t+ g" l5 r0 t/ J+ C% p* Y
3 Q. A1 [% r$ [7 X####五.在Glance修改配置3 } ?4 W0 z* [, ~7 ]8 |& o
1.vim /etc/glance/glance-api.conf and /etc/glance/glance-registry.conf
% i4 k1 i$ p5 E, }# N' x% J) t# C2 O[DEFAULT]
3 i X8 ^. j/ y! D/ htransport_url = rabbit://guest:guest@IP& L$ h& b% i) N8 M. V# l( p) _) ^
[oslo_messaging_notifications]
8 M3 Y9 a6 K, o3 {driver = messagingv26 E9 D! ^! y5 [# t3 e
5 a: m; b4 K+ `5 A- x; e/ G4 L2 B3 }/ t
2.重启镜像服务
* z/ _7 N! f2 ^( N# systemctl restart openstack-glance-api.service openstack-glance-registry.service n' }% Y3 K: Z, U1 L" B( a& P, E
9 ^# d1 ], Z- q+ A3 y# e
" |$ }, t# ~( j: M/ [) Y2 h9 `
* A) s8 g5 Z3 b- M####六.在Heat修改配置 E( U, m. ?& x, f I
1.vim /etc/heat/heat.conf' u! U1 j: C3 X3 ]
[oslo_messaging_notifications], ~& l* X1 _+ x* @5 d% ^* g
driver = messagingv2; d, p$ E" g, I) \% S; W% s/ x
5 ?; A& |9 b1 H6 p7 h. r
: x$ x5 h8 A1 n2.重启Orchestration! Z! T r/ ?1 J0 u' e% n; [9 @* X# Y6 y
# systemctl restart openstack-heat-api.service openstack-heat-api-cfn.service openstack-heat-engine.service
/ a4 o- ]$ U& N9 i' |2 Z+ g! @* V/ K
4 r" Q7 {" T" v0 e P) T/ `5 p
) |1 t( s2 D/ U' G, W####七.在Neutron修改配置
$ \# I1 N) W1 p1.vim /etc/neutron/neutron.conf
1 O- R& P: `; y. v[oslo_messaging_notifications]8 Y8 E8 W$ D4 |5 B8 e
...
; F* @8 v H: @. c0 ^0 Hdriver = messagingv28 m+ F& ?+ y( B4 y
1 V% y& b: _, S/ C! q" [
" L- `, k. @4 S1 Q C2.重启网路) Z9 N: x0 E" W3 z' f& @
# systemctl restart neutron-server.service" _7 m# m$ X, o( Q1 D
/ S; w) Y$ r H4 F: B9 {4 h
( b$ W5 q" |- H: h6 |
v F$ [8 d( o" T% Z/ {1 s####八.在Swift修改配置(这部分一般都没有安装)
- ]2 Z# L5 r4 z1.加载admin配置文件
' l1 p/ B/ m6 s9 z$ . admin-openrc" ?& d, x W) y2 K! K0 k7 E% J' C/ ^* k
$ openstack role create ResellerAdmin, @ R. I5 o& c% X
$ openstack role add --project services --user ceilometer ResellerAdmin
! u! t; g2 k" M# m8 }$ openstack role add --project admin --user ceilometer ResellerAdmin: U' H4 V/ o1 _4 k" }1 |
# yum install python-ceilometermiddleware
: L- ]5 A/ Y/ G$ V9 i G' o- a3 K
m3 {& @2 M9 K* z
7 m, A$ g1 O* ~ r- p2.vim /etc/swift/proxy-server.conf
" j' a4 V6 O+ N j[filter:keystoneauth]
$ l( a) T2 \1 r! `9 |1 `...
$ h- Z* `( F) zoperator_roles = admin, user, ResellerAdmin6 Y l1 C/ n5 z+ n# r
[pipeline:main]: P6 K; Q4 r+ a H3 ^
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
7 `3 `3 l; d& z$ e3 V[filter:ceilometer] f- H4 n& V* L3 V; E2 d7 F
paste.filter_factory = ceilometermiddleware.swift:filter_factory6 Z* q1 l- t9 k" O
control_exchange = swift2 B2 o0 @# E A& s; U
url = rabbit://openstack:RABBIT_PASS@controller:5672/, a$ T- c& p% o# W/ @
driver = messagingv26 L$ I) x, }1 Z g' c$ S- Z
topic = notifications
* ^: d! |9 \6 R! E6 Clog_level = WARN
# t2 o) j8 _2 k9 j% H' }' p* J$ H7 o1 j( m e4 k
" c0 q2 i6 b2 x e" M+ x3.重新启动对象存储代理服务:# g* I- t' y, ?* y$ s! H+ Q
# systemctl restart openstack-swift-proxy.service
( j; d: d0 W Q5 B####九.验证操作
6 [3 W9 P5 @ v1.加载admin配置文件
2 F1 x- h4 `5 a, E. }2 g/ @# j. l$ . admin-openrc* r- I( E% c6 `2 j
$ gnocchi resource list --type image! {7 @) b, U. u9 @* E/ ]- [1 z) i, G& a
$ gnocchi resource show a6b387e1-4276-43db-b17a-e10f649d85a33 E. o3 @; i0 ^8 C/ O
2.从Image服务下载CirrOS映像:
+ n0 _' F1 e" E) D7 i$ IMAGE_ID=$(glance image-list | grep 'cirros' | awk '{ print $2 }')! b% c3 X$ t( f0 T0 _1 w
$ glance image-download $IMAGE_ID > /tmp/cirros.img7 \0 _3 l' c8 {$ h* ]
$ gnocchi measures show 839afa02-1668-4922-a33e-6b6ea7780715
; N1 }% j; K7 Z8 ^; l q$ rm /tmp/cirros.img
3 @8 @; X |' ^8 V s0 k7 N; B* P2 Z Q
|
|