|
|
使用两个节点手动安装OpenStack的Ocata版本
/ f5 c; ^6 n9 y a10.1.1.3 controller : J) L1 l7 @0 M9 R P
10.1.1.15 compute
6 P) H9 X( ]! P% @
( K, J/ o- `" n. U. T控制节点配置* ^5 ^) U* S3 ~0 |; W; e3 d1 l5 B$ ^
1、配置apt源0 K+ @2 O3 N+ ^- J* v; T+ V
# apt install software-properties-common- J, {( n2 T L. N6 W7 c# s
# add-apt-repository cloud-archive:ocata
7 }* r/ Q: y3 C, j/ v Ubuntu Cloud Archive for OpenStack Ocata
9 N* c/ M0 Q0 D- h( d% r- X# ~$ v More info: https://wiki.ubuntu.com/ServerTeam/CloudArchive. F7 A. p% m8 H
Press [ENTER] to continue or ctrl-c to cancel adding it/ ?" l$ y) L3 N$ w; V' S F% x
Reading package lists...
\2 d* l1 h( Q$ O: oBuilding dependency tree...$ `$ a8 \+ D* o5 h! {
Reading state information...
4 n$ M; c' J8 JThe following NEW packages will be installed:
) e( R" L/ i2 C ubuntu-cloud-keyring3 B$ V `1 W0 i
0 upgraded, 1 newly installed, 0 to remove and 147 not upgraded.7 m/ E5 D6 M$ O1 M* f7 o* z
Need to get 5,086 B of archives.% ~+ e9 V& C6 p5 `
After this operation, 34.8 kB of additional disk space will be used.
+ Z+ ^( @6 q9 WGet:1 http://ports.ubuntu.com/ubuntu-ports xenial/universe ppc64el ubuntu-cloud-keyring all 2012.08.14 [5,086 B]' \" e! [& s1 W8 t- U) p4 `2 `
Fetched 5,086 B in 0s (5,433 B/s)+ i0 D+ K( P( A( ^
Selecting previously unselected package ubuntu-cloud-keyring.
+ U8 `1 i& }0 a, j( [: \- \(Reading database ... 52388 files and directories currently installed.)
. r, L6 E" P0 @7 U) P. U7 LPreparing to unpack .../ubuntu-cloud-keyring_2012.08.14_all.deb ...8 _1 N) d- X5 @+ _5 U
Unpacking ubuntu-cloud-keyring (2012.08.14) ...
E* C$ z" b# I( c2 r, M pSetting up ubuntu-cloud-keyring (2012.08.14) ...9 S8 W9 e; D7 c( ?
Importing ubuntu-cloud.archive.canonical.com keyring2 t3 S) ^3 r0 u- _" d5 I* m0 H. d
OK+ d) r1 ]# ?$ U2 {' i) ~
Processing ubuntu-cloud.archive.canonical.com removal keyring& r6 @9 H( [) _* L3 h
gpg: /etc/apt/trustdb.gpg: trustdb created9 _; ]+ L( G7 j" K
OK4 y2 m: B) P8 ~6 M. x9 r, d
3 ~7 g5 w0 C3 }, V: }& n
# cat cloudarchive-ocata.list
6 ~6 q2 O7 i9 U4 Pdeb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main+ t% Z3 d$ h9 c
# deb-src http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main
* T8 r3 U+ G5 a$ \# apt update && apt dist-upgrade . _; P" q! {$ t4 @6 E8 S
# apt install python-openstackclient -y
8 @8 |3 m( w0 u* m7 W" P
! m6 Z7 A6 h M2 \# w0 c" C) R: |1 Z2、安装配置MariaDB' w! L. t# s% o. H9 K: w, Z M$ p
# apt install mariadb-server python-pymysql -y
8 C/ u# C5 w8 y% U3 ^% i# cat /etc/mysql/mariadb.conf.d/99-openstack.cnf5 Q5 N4 F5 f. _ ~
[mysql]: r4 B( U x% m) }
bind-address = 10.1.1.37 q9 D9 n: `4 j7 }4 X
default-storage-engine = innodb( q! z8 ~/ L1 e* S5 H
innodb_file_per_table = on+ q3 Y/ o8 `9 P: [
max_connections = 4096
/ W' M& b+ }8 w; y& Lcollation-server = utf8_general_ci2 j1 {$ f& U' g/ p# e _
character-set-server = utf89 [0 ?& Q; E* J
:~# service mysql restart
2 o- e1 ^- Y$ E! g:~# service mysql status
1 I1 k/ p# y# r; h5 B+ W: A, W* h6 T
3、安装memacached keystone nova neutron dashboard
. D1 B8 n) j: O7 Z8 O" z% `; zapt 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/ `- l$ b5 K6 B
" F ~' c1 y0 w0 X- }7 A& ~, m. V
4、配置Rabbitmq-server服务( Y; ]7 b+ Y E8 Y- v1 {
:~# apt install rabbitmq-server -y
& J; i4 O2 L/ `: Y9 d$ o1 A( M:~# rabbitmqctl add_user openstack zoomtech
( ^6 j5 z7 i+ A/ p# y! b/ i) iCreating user "openstack" ...
' D% v. S3 a, k% @:~# rabbitmqctl set_permissions openstack ".*" ".*" ".*". \# |, U1 o) r; F/ r& \
Setting permissions for user "openstack" in vhost "/" ...
. ^8 ~8 N9 Y7 u3 J" e2 a2 n) G! _. @0 x: }% h
5、配置memcached3 f y+ p% h8 M6 f+ j/ x. ^# m2 [5 x
:~# vim /etc/memcached.conf
+ {: s$ K' ~$ f) b% ]% b-l 10.1.1.3+ }# }5 ]7 n9 d# m/ K3 Q( x! B
:~# service memcached restart0 P1 A+ }+ C) m% I0 l
:~# service memcached status1 P) N" ~% [# j; Z
|
|