找回密码
 注册
查看: 1138|回复: 0

Ubuntu16.10安装Ocata之1:基础环境配置

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-3-9 10:00:03 | 显示全部楼层 |阅读模式
使用两个节点手动安装OpenStack的Ocata版本
6 r" h! s4 Q& V10.1.1.3     controller
4 k/ W6 x& \$ }- J, \8 d* M10.1.1.15   compute
/ h- g) z/ m! ?' t
9 F1 s0 J9 B- }" k控制节点配置" |1 [" c2 q$ M
1、配置apt源
! L7 f0 G" q8 n0 @# apt install software-properties-common' ]5 O6 y, F  E
# add-apt-repository cloud-archive:ocata
% x; V( ^; l/ C- R% t* c3 t( B Ubuntu Cloud Archive for OpenStack Ocata+ C( |) ~% _; `, I) w0 m
More info: https://wiki.ubuntu.com/ServerTeam/CloudArchive2 m9 ~" `2 O+ `4 ~
Press [ENTER] to continue or ctrl-c to cancel adding it
0 V! R6 m1 r7 d" k) zReading package lists...' Z5 I. d4 G& P. N
Building dependency tree...
8 H: m7 s+ [, [0 x1 p8 S3 H' wReading state information...5 h- y/ M+ `) t( r, i0 d* i- _
The following NEW packages will be installed:: ~) G7 c8 g/ P
  ubuntu-cloud-keyring
& [, s3 o: y+ n0 b0 upgraded, 1 newly installed, 0 to remove and 147 not upgraded.
8 \1 s, y1 k2 U( XNeed to get 5,086 B of archives.* w; z6 X/ W! l  Z0 g$ E
After this operation, 34.8 kB of additional disk space will be used.
6 P) v2 u$ z* M2 f/ H1 LGet:1 http://ports.ubuntu.com/ubuntu-ports   xenial/universe ppc64el ubuntu-cloud-keyring all 2012.08.14 [5,086 B]& J& M6 `9 }, G% q1 x
Fetched 5,086 B in 0s (5,433 B/s)1 x) c2 r: x( Q, Z! _  E
Selecting previously unselected package ubuntu-cloud-keyring.- i+ Q/ {0 a: `7 ^9 m
(Reading database ... 52388 files and directories currently installed.)
* ~$ {$ W2 T2 ~# C4 ?Preparing to unpack .../ubuntu-cloud-keyring_2012.08.14_all.deb ...& T" L- e  i1 y
Unpacking ubuntu-cloud-keyring (2012.08.14) ...6 }9 y4 X  g4 z" {6 e& m
Setting up ubuntu-cloud-keyring (2012.08.14) ...: m& l& }" m; q. Z
Importing ubuntu-cloud.archive.canonical.com keyring
8 R6 G6 [# F6 T8 \$ x4 sOK
  W( b  ]$ U' V( d4 M: {Processing ubuntu-cloud.archive.canonical.com removal keyring: n0 A* g0 @7 o1 s
gpg: /etc/apt/trustdb.gpg: trustdb created, i6 @& N; H  |* i6 l: w
OK# C4 r7 d6 Y8 ?& ^

4 x$ P) R) Z% \& [# cat cloudarchive-ocata.list
1 ~. W( S- A( |4 K9 Ideb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main
- b! W, a6 s* b# deb-src http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main: D& V8 B1 K+ n6 x, w$ f7 u" @' C
# apt update && apt dist-upgrade / r, ], V+ i7 M1 B' b/ l- |* ^
# apt install python-openstackclient -y
' d* w1 o5 V5 i. k& l3 @& B5 c2 ~
2、安装配置MariaDB0 d$ m2 E" r! P: a2 r
# apt install mariadb-server python-pymysql -y6 \* G' N; j* j, J6 }; ?
# cat /etc/mysql/mariadb.conf.d/99-openstack.cnf
% g7 I/ D6 O' z( Q' e: Q* K( Q[mysql]2 [# Q2 B$ R% [: Z7 `* h8 o
bind-address = 10.1.1.3- Y; _7 p6 f/ h; n( Z$ X
default-storage-engine = innodb
8 B, {+ y+ U& W) V" U) _# [  w; @+ X" qinnodb_file_per_table = on; |3 g+ a& V8 P% A
max_connections = 4096
) e9 z- V  }1 E9 W" V* wcollation-server = utf8_general_ci" W$ _* @7 `/ O3 {. H* m( R
character-set-server = utf85 z1 D( \) k; j. c4 B$ n
:~# service mysql restart
- a: _- \3 @; v:~# service mysql status
; }+ e3 U* A7 h. a2 K3 j0 M; j1 D1 c3 w% j: c
3、安装memacached keystone nova neutron dashboard
" |  I4 i6 Y" c- m, u# d+ _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-dashboard2 V, Q- L! H# R( m8 O
2 i; L. p$ s5 U6 m# u
4、配置Rabbitmq-server服务9 Z5 ?* b0 l* b& L. r2 A
:~# apt install rabbitmq-server -y
  Q5 A6 Q6 f) A9 Y7 v+ V) s6 }( Z  {:~# rabbitmqctl add_user openstack zoomtech# {" Q6 P# l, P+ j" `4 s; n) c
Creating user "openstack" ...
5 w: m- q. x* n; {. G:~# rabbitmqctl set_permissions openstack ".*" ".*" ".*"
) K; A! r, ~0 H6 r4 O  P, U6 _Setting permissions for user "openstack" in vhost "/" ...
& a2 N1 v( m) ~% `
+ W% x. P: a/ z* M. p5、配置memcached
6 G' P8 M, L( ?; S:~# vim /etc/memcached.conf
' ]: g( U7 r6 W, `/ V- T-l 10.1.1.3; T0 K$ y' b8 n; U% n# w
:~# service memcached restart( d5 L- j  v6 U4 {3 e; ^. }1 O* Q
:~# service memcached status
: B  o* l" C' Q3 f* F
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:02 , Processed in 0.013929 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表