|
|
楼主 |
发表于 2017-7-9 11:25:55
|
显示全部楼层
两个配置文件模板:(对接EBS存储)
$ A5 c1 n7 z. K9 i控制节点的cinder.conf文件配置:* N" B k0 v& e/ u
[DEFAULT]
% M) ^& @# S9 N) U6 {' prpc_backend = rabbit
. }; R r/ J: D/ _7 x1 O7 Gauth_strategy = keystone
+ D: p5 r% Q v/ Y4 overbose = True
0 ~1 R0 T3 O3 u; O( @my_ip=192.168.12.26 g' Q9 t% G8 y& u; _ j }
glance_host= 192.168.12.5
8 i# [; P6 C+ {osapi_volume_listen=192.168.12.2
; g1 [% D5 h1 Z! Yosapi_volume_listen_port=8776
5 A1 \; X( L, t J( B7 N* }) ologdir=/var/log/cinder m" H. R b( q- X1 c% R1 d
state_path=/var/lib/cinder! D" X# ~$ e9 D/ l6 X5 @
lock_path = /var/lib/cinder/tmp
/ o2 `, B) I: B5 uvolumes_dir = /etc/cinder/volumes
' |' \7 f) o# `iscsi_helper = lioadm0 u8 K- m+ W# j1 _; P" t
rootwrap_config = /etc/cinder/rootwrap.conf: u; K0 j, a0 N* L6 g8 a
auth_strategy = keystone( r3 a, |8 M5 q8 t. ?; q- U: n
os_region_name=RegionOne
6 v2 {/ P4 R+ _" Guse_syslog=False- W% x- \( B/ k3 i) ?- r) S" j" T
glance_num_retries=0% Z' R3 N( }% z) X
rpc_response_timeout=6003 u- R: Z' v& v8 \& j) N& \" h0 o
storage_availability_zone=nova- s6 i5 Z$ _( o9 c R9 Z0 p* {: S
nova_catalog_info=compute:nova:internalURL
* u" m4 g5 G& y6 _os_privileged_user_name=cinder
- q! G) N$ I/ {os_privileged_user_password=c3dc20761f62d0cd19# E9 R r% `7 D; Y3 l
os_privileged_user_tenant=services
" O, f% `5 m. _5 c/ H% fos_privileged_user_auth_url=http://192.168.112.51:5000/' C$ }$ S) c0 p1 _2 C5 r: }
: v! ?# X, x1 b! t1 W) cdefault_availability_zone=nova
; k6 r9 x g+ k" W* m" fcontrol_exchange=cinder
7 V2 f% S; N& D* t/ v6 K }enable_v1_api=True! p: b6 r \5 ]
glance_api_version=2# p5 X7 {6 I3 W( ]% c& l
nova_catalog_admin_info=compute:nova:adminURL# K" Z& h9 h3 Z- a2 ~5 G
kombu_reconnect_delay=5.0
. z0 t+ @& F4 G" Y, t, P# J6 @notification_driver = messaging4 ^' i/ Z/ k: C1 ~8 c: t5 c% p
default_volume_type=ebs-sys5 \9 X" Z6 R5 V' m+ ?
#volume_backend_name=ebs-sys-backend
: r) Z2 b6 H( ?7 r) g0 @- C3 Xuse_chap_auth=false1 S3 h. D* r$ P9 j8 g% P9 k
#volume_driver=cinder.volume.drivers.sheepdog.SheepdogDriver
) ?( L( J# u9 C; E; F3 F( W
0 ]' K) R. E [! w0 H4 C" mquota_volumes=1000
1 @2 Y' o: l" Q# w" Y0 L1 H; g Tquota_snapshots=10003 E. U. M. O$ ?! @) O$ H8 S
quota_gigabytes=100000
: N: n6 I2 ~* F% rquota_backups=1000
- L* w. J* U% W+ Y$ F' bquota_backup_gigabytes=100000# J$ Y* n- N3 u
use_default_quota_class=false
1 [/ u" V) Z% Z$ L/ ]
! O: @! R: Y r- l |0 E* ~[ceph-sys]
/ W# Z/ R6 v) f1 Urbd_flatten_volume_from_snapshot=true, K/ T9 b; A7 t+ T; K2 _" b
volume_driver=cinder.volume.drivers.rbd.RBDDriver
* H+ m5 f% d ?0 C, \. Uvolume_backend_name=ceph-sys1 D7 R: @. s6 J, y, ]
rbd_pool=vms; h5 r8 ]" |6 q2 q! `- U8 Y
rbd_ceph_conf=/etc/ceph/ceph.conf: A$ ]0 ^) x8 P/ R2 t, C& l
rbd_max_clone_depth=5! G4 Y# T! c+ Y8 H$ m. O# l* t
rbd_store_chunk_size=4
( D+ S3 L- H% @# k, b, }rados_connect_timeout=-1
$ q' t+ j$ w$ a' H! rglance_api_version=2, r2 Z4 t5 t- k4 q* g6 V- {) q
/ T2 l) {: l) h2 x
[ceph-data]. n0 n+ d2 l5 G2 k( Q- b) ~* c
rbd_flatten_volume_from_snapshot=true+ K4 H0 y; h: i; ~' C8 y/ I
volume_driver=cinder.volume.drivers.rbd.RBDDriver4 ~0 q6 x3 Z/ A' g" k
volume_backend_name=ceph-data# f& H' _9 ?9 H% d3 u/ H# `
rbd_pool=volumes T+ t: H+ x: q, F8 @1 @
rbd_ceph_conf=/etc/ceph/ceph.conf
- T; R3 n) H7 z8 x/ E; g" ]rbd_max_clone_depth=5
& W ?. F9 [% Drbd_store_chunk_size=4. \+ t0 `+ O8 [9 b5 b k6 d
rados_connect_timeout=-14 f$ C7 ~1 V# G W! C/ ~) }$ h1 h- a
glance_api_version=24 I' b( [ y' l5 \8 O! ?# X+ o
" i: L h# g9 a b' o" c
+ h/ b) h" b2 S! b8 Q) l( [[database]4 p# \+ U& L9 C/ Z) N* g4 k
idle_timeout=36009 p7 F# s# q8 Y* s, z
max_pool_size=64. b3 Q4 I$ k* L; N8 [8 L
idle_timeout=3600
9 V+ e% v3 v/ w9 @( @! x" Ymax_pool_size=30
* _( s' T5 O# I1 _max_retries=-1/ ?8 A- S9 T8 S- ^
retry_interval=10
4 g$ ~8 {* o/ |$ x/ V* M. D/ fmax_overflow=128
# M& ?) G7 R( O5 J6 F% omin_pool_size=17 m3 Y8 N2 M! E+ ^8 Z
connection = mysql://cinder:f1eb153f803e7ad162@192.168.12.5/cinder5 a, P6 m M m+ e
2 b' }3 ?& \2 T' z5 \8 w$ R[oslo_concurrency]8 d- P# C+ V) }+ d
lock_path = /var/lock/cinder
' I& ^* b8 R0 D' h5 u3 e% m+ P4 R' e+ k3 K/ v+ E4 O; c F
[oslo_messaging_rabbit]
9 W" N6 d. C* \0 Crabbit_hosts = 192.168.12.10:5672,192.168.12.6:5672,192.168.12.10:5672
6 [7 c+ Z0 p6 ^0 k+ Arabbit_userid = nova
' t( P7 L2 u; t6 b$ M. Z. xrabbit_password = 3de39b16b65a322b19$ g! m5 K, c+ a+ u
rabbit_retry_interval=1/ _6 i. r1 ?) P, i, d
rabbit_retry_backoff=2
0 l/ m" k: Q. K+ Rrabbit_max_retries=07 X; E; R. a1 Z( P9 Y
rabbit_durable_queues=true, i) Y: ]! I' B8 J. z
rabbit_ha_queues=true
4 c; \0 y# G1 b
7 x8 e( L0 Z) ~5 _8 w$ ^7 s[keystone_authtoken] F$ Z6 X5 F/ u6 K0 x
signing_dir=/tmp/keystone-signing-cinder
5 V3 g5 T( z B( bsigning_dirname=/tmp/keystone-signing-cinder9 _8 J; s: Z' ] l* {
auth_uri = http://192.168.12.5:5000 7 j) X* r5 u8 a" S
auth_url = http://192.168.12.5:35357 9 c9 D: T" a# D/ L; H
auth_plugin = password
8 B% y% \5 [9 [5 B2 n/ b. eproject_domain_id = default
% n% z" g) t: g$ g/ yuser_domain_id = default+ B3 h3 h; W3 x; n0 Z
project_name = service$ _) H5 T: P1 l
username = cinder% P2 j* s+ E; ]3 Y
password = c3dc20761
! [5 {' [/ G1 O9 {. p
% v' h; a! Z' g# ~: W
* U( s& H/ i: N+ q1 V) x4 [$ B, i( f) K& _
volume节点配置:2 i' e* \' t2 {0 C! C
[DEFAULT]; S1 R/ z& S. t+ ]4 ^
debug = False
. t# f: Q" ]0 x/ _. W- |verbose = True! v6 T# y5 a# ^ s6 c
logdir=/var/log/cinder
9 u8 P W% c# O3 t6 _6 U8 c7 l0 vstate_path=/var/lib/cinder2 I0 N8 ^8 w+ d+ f* N8 K
lock_path = /var/lib/cinder/tmp( E6 g @3 O$ D# A
volumes_dir = /etc/cinder/volumes1 [/ m3 j V/ d+ A8 i; y0 E
iscsi_helper = lioadm/ u( G: V8 ~0 ]! [
rootwrap_config = /etc/cinder/rootwrap.conf
f/ a6 b$ G y: fauth_strategy = keystone
; ?" B a. D! y; d4 I8 P$ fos_region_name=RegionOne
! D) ]+ J1 D0 D5 t0 @. juse_syslog=False' A+ Q! K! b$ C8 ]
glance_num_retries=0
* M' r& i X: q; _2 hrpc_response_timeout=600
+ `+ b& n, }" Z1 s e3 i
: U. v+ @/ v, H7 u" w% \6 ]storage_availability_zone=nova
- e- G1 Y3 }5 a0 Pnova_catalog_info=compute:nova:internalURL
4 @4 B2 O. Y& N; x z3 y7 \osapi_volume_listen=192.168.12.5 ]: p0 X4 q* K) G- f) V
glance_api_servers=192.168.12.5:9292
' S& Z" z6 h# O3 R1 P# s) F+ b5 ios_privileged_user_name=cinder
V; ~6 _) e% b1 Dos_privileged_user_password=c3dc20761f62d0cd19; C! L2 w" [7 i/ U4 ]
os_privileged_user_tenant=services! I2 w( w) o+ m8 e
os_privileged_user_auth_url=http://192.168.12.5:5000/
7 P, u+ L9 F7 O! Cdefault_availability_zone=nova
+ B: ]& W4 N% e+ o" w; m; O! Vcontrol_exchange=cinder
" M% |7 j. w* t9 fenable_v1_api=True
) N4 V5 V. j6 A4 O9 I
4 Z: w4 q$ L! ^% l- L$ qglance_api_version=2
$ s3 U+ [4 _2 p! m9 l/ z6 H( enova_catalog_admin_info=compute:nova:adminURL
z" n* H/ F9 H$ @kombu_reconnect_delay=5.01 F) X& P0 `( }. ]; t
notification_driver = messaging
$ @' }" Q+ P: `+ A- u6 O! U+ fuse_chap_auth=false
* w3 H; Y+ ~4 F( c8 tquota_volumes=1000: C9 `5 w& C( K* W& d
quota_snapshots=1000; F: N4 m% @& B! u3 R: A
quota_gigabytes=100000
( Z/ `1 _0 r5 a& I; [. I7 Zquota_backups=1000
5 H1 ]" |$ n" Nquota_backup_gigabytes=100000
! `( _6 E3 a$ K: vuse_default_quota_class=false9 z& P3 ]- I- U1 `$ N
use_multipath=true
+ t3 f) b, L0 S) |) B: quse_chap_auth=false
* U$ j* d* ?; q& z5 O% {enabled_backends=ceph-sys,ceph-data
. U4 z) v2 C5 }2 _- y. E0 E+ M: l: m; a6 w' c! v% P- r
[oslo_messaging_rabbit]
6 s' e; u( y# erabbit_ha_queues=True* u l8 e8 @5 A" |) h: D, X0 F
rabbit_hosts=192.168.12.10:5672,192.168.12.6:5672,192.168.12.2:5672
# ^/ M% A, }* r8 m' Hrabbit_virtual_host=/% m9 z; _9 T7 J% B, {! C& E
rabbit_password= 3de39b16b65' Z' G( }- `+ y' y* ^
rabbit_userid=nova
5 a+ j" t6 D. ^' G4 o( l4 Arabbit_use_sslt_retry_interval=1
/ F! b, Z% ?9 j6 frabbit_retry_backoff=2
% R* h( b( h" `9 g% Q2 H. [8 t9 t& crabbit_max_retries=0
, O: G$ Q6 j9 [; Krabbit_durable_queues=true
9 m- [ W7 I" e7 ^heartbeat_timeout_threshold=60' x; y' B+ i1 s0 C$ [9 n; ^
( ^. T, v$ v$ I$ N7 y" e$ `[keystone_authtoken]
' }1 C3 F+ c& B) \0 }0 Isigning_dir=/tmp/keystone-signing-cinder
, o& f2 B4 _ L+ i" ]signing_dirname=/tmp/keystone-signing-cinder+ v }6 Y5 S, }) C3 ^
auth_uri = http://192.168.12.5:5000
4 e- B* G/ v x9 L$ j* Sauth_url = http://192.168.12.5:35357: `$ J7 }! T1 ~ Q. o
auth_plugin = password
$ T+ ]9 ]3 j4 z8 B/ kproject_domain_id = default
' M& B: D! G0 b5 S4 Zuser_domain_id = default
7 X* V! l8 V8 m- A; J' Y5 Z8 h7 p; G% Mproject_name = service6 a% M) C; V4 h- e# e0 D. J, g
username = cinder6 K. N3 {+ _( K( r4 V$ U" N: w) X
password = c3dc20761
: A# U, m+ f& D5 [, Z
- u6 e" {! r0 W0 h+ [- l[database]
4 n" o& \: E3 _idle_timeout=3600' `; k4 |+ K+ V7 h
max_pool_size=64
0 M0 B! x: z7 O' E$ xidle_timeout=3600
! \% E3 _. c L7 k) o/ qmax_pool_size=30* s- ]; N" p+ j1 ^6 \; L
max_retries=-1, z9 Y ]$ D: }$ Q
retry_interval=102 g0 R" `3 J3 L) A$ g% ?
max_overflow=128
' y4 Q* K$ S# B8 imin_pool_size=1* Y% t! C9 A/ L8 R5 Q
connection = mysql://cinder:f1eb153f803@192.168.12.5/cinder# M0 B* B( Y9 I
. ^' N0 ^9 a7 n[ceph-sys]3 {. D6 }2 C8 h* r4 s
rbd_flatten_volume_from_snapshot=true
, c% D8 p; D7 A$ \. C, U ]volume_driver=cinder.volume.drivers.rbd.RBDDriver
3 S- x! r! ]2 Q( \volume_backend_name=ceph-sys$ _- l( I0 z0 Q( [( l6 W/ F3 i: _9 ]% q
rbd_pool=vms/ G7 a& w" S, v5 W" g1 V
rbd_ceph_conf=/etc/ceph/ceph.conf
6 G, p1 S: S% c0 o( krbd_max_clone_depth=5
2 O8 Y+ B0 b/ c7 Z- Frbd_store_chunk_size=40 M! ~% v0 N& k+ A# s9 S) j6 ^
rados_connect_timeout=-1
8 k, i$ f( Z# R9 b; R$ Bglance_api_version=2: u4 a% h1 D' n, y
. G9 M# f: H6 q8 X2 g; Z% B[ceph-data]
& Z, ~ e; V" C6 r9 ^0 h$ }rbd_flatten_volume_from_snapshot=true
: b. D% s$ _' n- C* U7 a: Qvolume_driver=cinder.volume.drivers.rbd.RBDDriver4 M, {: m) H2 y' @1 p* q s
volume_backend_name=ceph-data
0 [$ W- u: Z) c1 W) c q8 qrbd_pool=volumes* Q& Z+ u0 k, m% |0 r6 O+ E* n
rbd_ceph_conf=/etc/ceph/ceph.conf
& `5 x; _1 r( W! b$ Q4 xrbd_max_clone_depth=5, r& g4 z1 i! y+ u1 p) X$ `
rbd_store_chunk_size=4' ]9 v$ X( j) M3 ]2 G) f
rados_connect_timeout=-1
# i- E2 t; v, `9 Q, Kglance_api_version=27 g# L' ]9 F9 D0 @
$ X0 S* \- o6 _$ S# o, K3 P$ y仅供参考,需要自己测试。 |
|