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

  1. 云栖社区>
  2. 博客>
  3. 正文

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

技术小阿哥 2017-11-27 15:52:00 浏览988
展开阅读全文

使用两个节点手动安装OpenStack的Ocata版本

10.1.1.3     controller 

10.1.1.15   compute


控制节点配置

1、配置apt源

root@controller:~# apt install software-properties-common

root@controller:~# add-apt-repository cloud-archive:ocata

 Ubuntu Cloud Archive for OpenStack Ocata

 More info: https://wiki.ubuntu.com/ServerTeam/CloudArchive

Press [ENTER] to continue or ctrl-c to cancel adding it

Reading package lists...

Building dependency tree...

Reading state information...

The following NEW packages will be installed:

  ubuntu-cloud-keyring

0 upgraded, 1 newly installed, 0 to remove and 147 not upgraded.

Need to get 5,086 B of archives.

After this operation, 34.8 kB of additional disk space will be used.

Get:1 http://ports.ubuntu.com/ubuntu-ports xenial/universe ppc64el ubuntu-cloud-keyring all 2012.08.14 [5,086 B]

Fetched 5,086 B in 0s (5,433 B/s)

Selecting previously unselected package ubuntu-cloud-keyring.

(Reading database ... 52388 files and directories currently installed.)

Preparing to unpack .../ubuntu-cloud-keyring_2012.08.14_all.deb ...

Unpacking ubuntu-cloud-keyring (2012.08.14) ...

Setting up ubuntu-cloud-keyring (2012.08.14) ...

Importing ubuntu-cloud.archive.canonical.com keyring

OK

Processing ubuntu-cloud.archive.canonical.com removal keyring

gpg: /etc/apt/trustdb.gpg: trustdb created

OK


root@controller:/etc/apt/sources.list.d# cat cloudarchive-ocata.list

deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main

# deb-src http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main

root@controller:~# apt update && apt dist-upgrade 

root@controller:~# apt install python-openstackclient -y


2、安装配置MariaDB

root@controller:~# apt install mariadb-server python-pymysql -y

root@controller:~# cat /etc/mysql/mariadb.conf.d/99-openstack.cnf

[mysql]

bind-address = 10.1.1.3

default-storage-engine = innodb

innodb_file_per_table = on

max_connections = 4096

collation-server = utf8_general_ci

character-set-server = utf8

root@controller:~# service mysql restart

root@controller:~# service mysql status


3、安装memacached keystone nova neutron dashboard

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


4、配置Rabbitmq-server服务

root@controller:~# apt install rabbitmq-server -y

root@controller:~# rabbitmqctl add_user openstack zoomtech

Creating user "openstack" ...

root@controller:~# rabbitmqctl set_permissions openstack ".*" ".*" ".*"

Setting permissions for user "openstack" in vhost "/" ...


5、配置memcached

root@controller:~# vim /etc/memcached.conf

-l 10.1.1.3

root@controller:~# service memcached restart

root@controller:~# service memcached status



本文转自 OpenStack2015 51CTO博客,原文链接:http://blog.51cto.com/andyliu/1902047,如需转载请自行联系原作者

网友评论

登录后评论
0/500
评论