Chapter 3. Installing OpenStack
Packstack supports a variety of deployment modes. In all modes, you must install and run Packstack on the machine you have designated as your controller node.
Table 3.1. Packstack modes
| Mode | Description |
|---|---|
| Quick Start |
The quickest way to deploy an OpenStack environment is to let Packstack use default values; you only have to decide whether to install all the services on one host (Single-Node), or install the controller services on one host and the compute service on other nodes (Multiple-Node). Default values are recommended for the initial testing of Red Hat Enterprise Linux OpenStack Platform.
For details, see Section 3.1, “Deploy OpenStack Using Quick Start Mode”.
|
| Interactively |
When run interactively, Packstack prompts you for each configuration value. Running the utility interactively allows you to have step-by-step control over your deployed environment, allowing you to override or accept each step's default value.
For details, see Section 3.2, “Running Packstack Interactively”.
|
| Non-interactively |
The experienced user has the option of running Packstack with a configured answer file. This method is faster than running Packstack interactively, but still allows you to override or accept default values.
For details, see Section 3.3, “Running Packstack Non-Interactively”.
|
Warning
If you abort a Packstack procedure without finishing, the target might be left in an unstable state. Consider making a backup or taking a snapshot before starting the procedure.
There is no automated uninstall process for undoing a Packstack install. If you have a previously installed version of OpenStack, you must uninstall it first, before installing with Packstack. For more information, see Chapter 5, Removing Packstack Deployments
3.1. Deploy OpenStack Using Quick Start Mode
When using the quick start mode, OpenStack Networking is enabled by default, the demo environment is created, and the OpenStack dashboard is automatically installed. For further defaults, see the answer file table in Appendix A, Answer File Configuration Keys.
Note
When using this deployment method, Packstack uses default values unless they are overridden on the command line. For a list of available command-line options, see the "Command-Line Interface Reference" (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/).
Procedure 3.1. Deploy OpenStack using 'Quick Start' Values
Log in
Log in to the machine where the OpenStack controller is to be installed.Install the Packstack utility
#yum install openstack-packstackRun Packstack
Deploy OpenStack as Single-Node or Multiple-Node:Single-node deployment
Run Packstack with the--allinoneparameter to install all services on the local host.#packstack --allinoneExample 3.1. Use Compute networking
In this example, Packstack uses most of the defaults, but deploys Compute networking instead of OpenStack Networking.#packstack --allinone --os-neutron-install=nMultiple-node deployment
Run Packstack with the--install-hostsparameter.#packstack --install-hosts=CONTROLLER_ADDRESS,NODE_ADDRESSESWhere CONTROLLER_ADDRESS is the IP address of the system that you intend to use as the controller node, and NODE_ADDRESSES is a list of IP addresses of the compute nodes.Example 3.2. Use two compute nodes
In this example, Packstack deploys a controller node on the system with IP address192.168.43.10. Additional compute nodes are deployed on the systems with IP addresses192.168.43.11and192.168.43.12.#packstack --install-hosts=192.168.43.10,192.168.43.11,192.168.43.12
root@192.168.43.10's password:
Enter the password of therootuser for the controller node (and where requested, any additional compute nodes).Confirm deployment
Deployment time can be significant; Packstack provides continuous updates indicating which manifests are being deployed as it progresses. Once the process is completed, a confirmation message similar to the one below is displayed (depending on the options you chose):**** Installation completed successfully ****** Additional information: * A new answerfile was created in: /root/packstack-answers-20131205-155916.txt * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components. * File /root/keystonerc_admin has been created on OpenStack client host 192.168.43.10. To use the command line tools you need to source the file. * To use the console, browse to http://192.168.43.10/dashboard * To use Nagios, browse to http://192.168.43.10/nagios username : nagiosadmin, password : abcdefgh12345678 * The installation log file is available at: /var/tmp/packstack/20131205-155915-tZ0BTD/openstack-setup.log * The generated manifests are available at: /var/tmp/packstack/20131205-155915-tZ0BTD/manifests
You have successfully deployed an OpenStack environment using Packstack. For next steps, see Chapter 4, Using OpenStack.
Warning
The answer file contains a number of required configuration values, including administrative passwords. It is recommended that you store the answer file in a secure location.
Unless specified, passwords are also generated for each service; for a complete password listing and update commands, refer to Appendix B, Passwords.