-有 # 開頭的就是指令 Copy 貼上Terminal執行就可.
2. Basic environment configuration
Passwords
This guide uses the convention that
SERVICE_PASS
is the password to access the service SERVICE
and SERVICE_DBPASS
is the database password used by the service SERVICE to access the database.The complete list of passwords you need to define in this guide are:
Password name | Description |
---|---|
Database password (no variable used) | Root password for the database |
|
Database password of Identity service |
|
Password of user demo |
|
Password of user admin |
|
Database password for Image Service |
|
Password of Image Service user glance |
|
Database password for Compute service |
|
Password of Compute service user nova |
|
Database password for the dashboard |
|
Database password for the Block Storage service |
|
Password of Block Storage service user cinder |
|
Database password for the Networking service |
|
Password of Networking service user neutron |
|
Database password for the Orchestration service |
|
Password of Orchestration service user heat |
|
Database password for the Telemetry service |
|
Password of Telemetry service user ceilometer |
|
Database password of Database service |
|
Password of Database Service user trove |
Controller setup
Controller setup
On the controller node, install the MySQL client and server packages, and the Python library.# yum install mysql mysql-server MySQL-pythonThe MySQL configuration requires some changes to work with OpenStack.
-
Edit the
/etc/my.cnf
file: 編輯此檔
-
Under the
[mysqld]
section, set thebind-address
key to the management IP address of the controller node to enable access by other nodes via the management network:
[mysqld] ... bind-address = 10.0.0.11
-
Under the
[mysqld]
section, set the following keys to enable InnoDB, UTF-8 character set, and UTF-8 collation by default:
[mysqld] ... default-storage-engine = innodb collation-server = utf8_general_ci init-connect = 'SET NAMES utf8' character-set-server = utf8
-
Under the
# service mysqld start # chkconfig mysqld onFinally, you should set a root password for your MySQL database. The OpenStack programs that set up databases and tables prompt you for this password if it is set.
You must delete the anonymous users that are created when the database is first started. Otherwise, database connection problems occur when you follow the instructions in this guide. To do this, use the mysql_secure_installation command. Note that if mysql_secure_installation fails you might need to use mysql_install_db first:
# mysql_install_db # mysql_secure_installationIf you have not already set a root database password, press ENTER when you are prompted for the password. This command presents a number of options for you to secure your database installation. Respond
yes
to all prompts unless you have a good reason to do otherwise.Node setup
On all nodes other than the controller node, install the MySQL Python library:
This section describes the configuration you must complete after you configure machines to install the latest OpenStack packages.
The examples in this guide use the OpenStack packages from the RDO repository. These packages work on Red Hat Enterprise Linux 6, compatible versions of CentOS, and Fedora 20. To enable the RDO repository, download and install the rdo-release-icehouse package:
# yum install http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-3.noarch.rpm
The EPEL package includes GPG keys for package signing and repository information. This should only be installed on Red Hat Enterprise Linux and CentOS, not Fedora. Install the latest epel-release package (see http://download.fedoraproject.org/pub/epel/6/x86_64/repoview/epel-release.html). For example:
# yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
The openstack-utils package contains utility programs that make installation and configuration easier. These programs are used throughout this guide. Install openstack-utils. This verifies that you can access the RDO repository:
# yum upgrade
If the upgrade included a new kernel package, reboot the system to ensure the new kernel is running:
# yum install MySQL-python
OpenStack packages
OpenStack packages
Distributions might release OpenStack packages as part of their distribution or through other methods because the OpenStack and distribution release times are independent of each other.This section describes the configuration you must complete after you configure machines to install the latest OpenStack packages.
The examples in this guide use the OpenStack packages from the RDO repository. These packages work on Red Hat Enterprise Linux 6, compatible versions of CentOS, and Fedora 20. To enable the RDO repository, download and install the rdo-release-icehouse package:
# yum install http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-3.noarch.rpm
The EPEL package includes GPG keys for package signing and repository information. This should only be installed on Red Hat Enterprise Linux and CentOS, not Fedora. Install the latest epel-release package (see http://download.fedoraproject.org/pub/epel/6/x86_64/repoview/epel-release.html). For example:
# yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
The openstack-utils package contains utility programs that make installation and configuration easier. These programs are used throughout this guide. Install openstack-utils. This verifies that you can access the RDO repository:
# yum install openstack-utils
The openstack-selinux package includes the policy files that are required to configure SELinux during OpenStack installation on RHEL and CentOS. This step is not required during OpenStack installation on Fedora. Install openstack-selinux:# yum install openstack-selinux
Upgrade your system packages:# yum upgrade
If the upgrade included a new kernel package, reboot the system to ensure the new kernel is running:
# reboot
OpenStack uses a message broker to coordinate operations and status information among services. The message broker service typically runs on the controller node. OpenStack supports several message brokers including RabbitMQ, Qpid, and ZeroMQ. However, most distributions that package OpenStack support a particular message broker. This guide covers the message broker supported by each distribution. If you prefer to implement a different message broker, consult the documentation associated with it.
Congratulations, now you are ready to install OpenStack services!
To install the message broker service
-
Red Hat Enterprise Linux (RHEL), CentOS, Scientific Linux, and Fedora use Qpid.
# yum install qpid-cpp-server
沒有留言:
張貼留言