|
|
使用两个节点手动安装OpenStack的Ocata版本
+ a) v) O% C, U. ?' p10.1.1.3 controller 4 J3 F' ~! W# w& }4 A
10.1.1.15 compute
9 b* d, E! P' u, [
) \( ?' M: q4 }控制节点配置9 e' K: y" ?' z9 l
1、配置apt源
( Q. z1 P$ O- x9 l# apt install software-properties-common
k, _4 n+ D+ |* I9 U# add-apt-repository cloud-archive:ocata
) F0 l% U4 |5 N- F& R Ubuntu Cloud Archive for OpenStack Ocata
$ {* Y8 P1 D- q# _& {" ~' }- \ More info: https://wiki.ubuntu.com/ServerTeam/CloudArchive
* |3 T& u1 G' m* Z6 {Press [ENTER] to continue or ctrl-c to cancel adding it9 p* J R, g& E( B
Reading package lists...
1 N X1 W* n1 Y* y0 r" c5 v3 z, t8 cBuilding dependency tree...
, A0 l4 ^4 C$ x2 ~" mReading state information..., t- ^4 q- `& l$ u% k( [' M; Q
The following NEW packages will be installed:
; C, V3 U, I) t% d8 n: ] ubuntu-cloud-keyring
0 \4 I) t& M8 N& @4 _; D0 upgraded, 1 newly installed, 0 to remove and 147 not upgraded.. z1 m8 c# w! }
Need to get 5,086 B of archives.: R1 o) [2 `% B2 `3 }. g, I' P
After this operation, 34.8 kB of additional disk space will be used.3 P3 J0 k7 j, r- ^$ ^
Get:1 http://ports.ubuntu.com/ubuntu-ports xenial/universe ppc64el ubuntu-cloud-keyring all 2012.08.14 [5,086 B]
E3 @& j2 L' G, B* O& y* PFetched 5,086 B in 0s (5,433 B/s)
' o9 L8 d. Y$ O& {" qSelecting previously unselected package ubuntu-cloud-keyring.7 o5 w6 z/ T, _* E; m* n
(Reading database ... 52388 files and directories currently installed.)0 I$ _1 s" K- d W; U7 i/ W z
Preparing to unpack .../ubuntu-cloud-keyring_2012.08.14_all.deb ...- r+ B) h% Q L: w
Unpacking ubuntu-cloud-keyring (2012.08.14) ..." {/ I. C; x" z! Q3 e
Setting up ubuntu-cloud-keyring (2012.08.14) ...% r7 @3 w/ d) I+ h, X
Importing ubuntu-cloud.archive.canonical.com keyring+ }& l7 i/ L) X5 u
OK
1 f5 l! ?, I9 i! v& UProcessing ubuntu-cloud.archive.canonical.com removal keyring
( ?1 x! g. T) D( [0 `5 S0 Sgpg: /etc/apt/trustdb.gpg: trustdb created
* p% b, ?" c% ?8 `5 C0 ]OK& t, u* ~% k- W: w
/ e- K: D$ G. A0 Z: O
# cat cloudarchive-ocata.list
- {0 i" x3 J1 C0 n% Rdeb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main- K1 B& M' o5 l2 e
# deb-src http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main4 V8 ~ h: a( _
# apt update && apt dist-upgrade ' _, N5 y$ C4 y( q
# apt install python-openstackclient -y
3 Y; H' g* }( K
0 p0 J7 y7 U8 U) u& T1 t0 A2、安装配置MariaDB
3 a6 z7 ^2 H1 z" i0 K5 g B( l# apt install mariadb-server python-pymysql -y; Y: `; F) V: k2 r H; `
# cat /etc/mysql/mariadb.conf.d/99-openstack.cnf0 ^( w+ V' N+ `7 g- n
[mysql]8 a9 E* { \* X m* q8 S- l7 c
bind-address = 10.1.1.3" H+ Y( s3 F9 a8 s; ^/ ?
default-storage-engine = innodb$ i1 u, |3 S( }6 H: L7 _5 q' ]. J6 Z/ D
innodb_file_per_table = on
) M. D6 M$ }1 U6 F) h/ w: zmax_connections = 4096
2 t, I- Z' m8 T; T' [$ }' G* Hcollation-server = utf8_general_ci
" T, U) @" k1 n' {2 `8 T7 @4 T( Icharacter-set-server = utf88 T- v w1 P8 s/ a4 d; L" Z2 B
:~# service mysql restart2 }9 h$ Q' [+ M5 O
:~# service mysql status
: C0 i& W+ v% C5 V$ }0 S. Z
2 w5 C- o; H" q I4 ]! M7 i% K: R5 H3、安装memacached keystone nova neutron dashboard5 e; z' N$ X% [! H3 ?5 |! X3 m
apt install -y memcached python-memcache keystone glance nova-api nova-conductor nova-consoleauth nova-novncproxy nova-scheduler neutron-server neutron-plugin-ml2 neutron-linuxbridge-agent neutron-l3-agent neutron-dhcp-agent neutron-metadata-agent openstack-dashboard
, b" @7 r# o8 Z8 t8 N5 J
`! ~' A3 }' ]! s; s8 h. W% D4、配置Rabbitmq-server服务
; {6 H: u/ c6 N! X" V% V( E:~# apt install rabbitmq-server -y
P2 y2 p% W% f6 f0 c, P @' b:~# rabbitmqctl add_user openstack zoomtech
3 F, N) G- e" _' cCreating user "openstack" ...
) _$ t6 d$ o7 B* O8 p$ M8 |9 ?:~# rabbitmqctl set_permissions openstack ".*" ".*" ".*": H/ ?/ s5 M) e/ v# ]0 q$ @* p
Setting permissions for user "openstack" in vhost "/" ...
/ x& i) a9 J: D% M
- F* c/ W* }/ F' `2 T5、配置memcached) b" B3 b0 e6 h$ X. h7 L
:~# vim /etc/memcached.conf6 Q; o/ B* k0 F8 x/ A* p5 P3 f
-l 10.1.1.35 l" L) E% U* E3 ^8 f7 P6 Z
:~# service memcached restart& C! u- u# `8 M- n
:~# service memcached status
# @& a, Y8 _1 h0 b, [- ~3 j |
|