最後更新: 2014/10/08
Two-node architecture:
controller node
- NTP
- database (MySQL)
- message broker (RabbitMQ)
- Identity service
- Image Service
- management portion of Compute
compute node
- hypervisor(KVM)
- Telemetry
Web node
- dashboard (optional) / Heat
VM 內的 openstack
前言:
compute node:
If you choose to install on VMs, make sure your hypervisor permits promiscuous mode on the external network.
準備:
# To disable NetworkManager and enable the network service:
service NetworkManager stop
service network start
chkconfig NetworkManager off
chkconfig network on
hosts file:
/etc/hosts
192.168.123.71 controller_pub 192.168.123.72 compute_pub 192.168.0.1 controller_pri 192.168.0.2 compute_pri
firewall:
........................... # private interface -A INPUT -i eth1 -j ACCEPT ...........................
legacy networking (nova-network)
requires a controller node and at least one compute node
每 node 一共有兩個 Network
- Management
- External
Network Time Protocol (NTP)
controller:
yum install ntp
service ntpd start
chkconfig ntpd on
compute:
yum install ntpdate
echo '1 1 * * * /usr/sbin/ntpdate controller_pri' >> /etc/crontab
service crond reload
一共有關的 Passwords
- Database password (no variable used) Root password for the database
- RABBIT_PASS Password of user guest of RabbitMQ
- KEYSTONE_DBPASS Database password of Identity service
- DEMO_PASS Password of user demo
- ADMIN_PASS Password of user admin
- GLANCE_DBPASS Database password for Image Service
- GLANCE_PASS Password of Image Service user glance
- NOVA_DBPASS Database password for Compute service
- NOVA_PASS Password of Compute service user nova
- DASH_DBPASS Database password for the dashboard
- CINDER_DBPASS Database password for the Block Storage service
- CINDER_PASS Password of Block Storage service user cinder
- NEUTRON_DBPASS Database password for the Networking service
- NEUTRON_PASS Password of Networking service user neutron
- HEAT_DBPASS Database password for the Orchestration service
- HEAT_PASS Password of Orchestration service user heat
- CEILOMETER_DBPASS Database password for the Telemetry service
- CEILOMETER_PASS Password of Telemetry service user ceilometer
- TROVE_DBPASS Database password of Database service
- TROVE_PASS Password of Database Service user trove
安裝 mysql
controller:
yum install mysql mysql-server MySQL-python
/etc/my.cnf
bind-address = 192.168.0.1 default-storage-engine = innodb innodb_file_per_table collation-server = utf8_general_ci init-connect = 'SET NAMES utf8' character-set-server = utf8
service mysqld start
chkconfig mysqld on
mysql_install_db
mysql_secure_installation
# Node setup (mysql)
yum install MySQL-python
準備好 OpenStack repos
# Install
yum install yum-plugin-priorities
# RDO repository
HomePage: https://openstack.redhat.com/Main_Page
yum install http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-rel...
/etc/yum.repos.d/rdo-release.repo
priority=98
# EPEL package
yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
/etc/yum.repos.d/epel.repo
priority=99
安裝 OpenStack packages
yum install openstack-utils
- openstack-utils
- crudini
yum upgrade
reboot
AMQP
http://datahunter.org/openstack_amqp
keystone
http://datahunter.org/openstack_keystone
OpenStack command-line clients
要求:
Python 2.6 or later
Package:
- python-openstackclient (cinder, nova, glance) <- 3 個必要的 Client
- cinder python-cinderclient <- Block Storage
- nova python-novaclient <- compute
- keystone python-keystoneclient <- Identity
- glance python-glanceclient <- image
- neutron python-neutronclient <- networking
- swift python-swiftclient
- heat python-heatclient
- ceilometer python-ceilometerclient
安裝:
yum install python-pip
pip install python-openstackclient
glance
http://datahunter.org/openstack_glance
nova
http://datahunter.org/openstack_nova
Networking
http://datahunter.org/openstack_networking
cinder
http://datahunter.org/openstack_cinder
Launch an instance with legacy networking (nova-network)
http://datahunter.org/openstack_launch
GUI - Horizon
http://datahunter.org/horizon
Installation Guide
http://docs.openstack.org/icehouse/install-guide/install/yum/content/
http://docs.openstack.org/icehouse/install-guide/install/apt-debian/content/