使用两个节点手动安装OpenStack的Ocata版本
10.1.1.3controller
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
原文链接:https://www.f2er.com/ubuntu/354330.html