首页 > 系统服务 > 详细

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

时间:2017-02-28 23:20:22      阅读:2045      评论:0      收藏:0      [点我收藏+]

使用两个节点手动安装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


本文出自 “技术成就梦想” 博客,请务必保留此出处http://andyliu.blog.51cto.com/518879/1902047

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

原文:http://andyliu.blog.51cto.com/518879/1902047

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!