OpenStack Networking Essentials
上QQ阅读APP看书,第一时间看更新

Initial steps

Before we can install OpenStack, some work must be done to prepare the system for a successful installation.

Permissions

RPM Distribution of OpenStack, or RDO, should be installed as a user with sudo permissions. For tips on configuring sudoers, visit the following URL:

https://wiki.centos.org/TipsAndTricks/BecomingRoot

Install network utilities

Various utilities are used throughout this book to assist you in the installation and troubleshooting of OpenStack. The following command installs the necessary packages for those:

$ sudo yum install wget curl tcpdump

Set the hostname

Before installing OpenStack, use the hostnamectl command to set the hostname of the host:

$ sudo hostnamectl set-hostname allinone.learningneutron.com

Install Network Time Protocol (NTP)

A time-synchronization program such as NTP is a requirement in multinode installations, as OpenStack services depend on consistent and synchronized times between hosts. For Nova Compute, having synchronized time helps avoid problems when scheduling VM launches on compute nodes. Other services can experience similar issues when the time is not synchronized. In an All-In-One installation such as the one demonstrated here, NTP is recommended but not required.

To install NTP, issue the following command on all nodes in the environment:

$ sudo yum install ntp

Disable NetworkManager

Before installing RDO, disable NetworkManager to avoid issues during the installation and operation of OpenStack. To stop and disable NetworkManager, issue the following commands:

$ sudo systemctl stop NetworkManager.service
$ sudo systemctl disable NetworkManager.service

Upgrade the system

Before installing OpenStack, it is imperative that the kernel and other system packages be upgraded to the latest version of the installed CentOS release. Issue the following yum command, followed by a reboot via the reboot command to allow the changes to take place:

$ sudo yum upgrade
$ sudo reboot