Before installing OpenStack, ensure that each node in the environment has been configured with its proper hostname. Use the hostnamectl command on each host to set the hostname accordingly:
Host |
Command |
controller01 |
hostnamectl set-hostname controller01 |
compute01 |
hostnamectl set-hostname compute01 |
compute02 |
hostnamectl set-hostname compute02 |
compute03 |
hostnamectl set-hostname compute03 |
snat01 |
hostnamectl set-hostname snat01 |
To simplify communication between hosts, it is recommended that DNS or a local name resolver be used to resolve hostnames. Using a text editor, update the /etc/hosts file on each node to include the management IP address and hostname of all nodes:
10.10.0.100 controller01.learningneutron.com controller01
10.10.0.101 compute01.learningneutron.com compute01
10.10.0.102 compute02.learningneutron.com compute02
10.10.0.103 compute03.learningneutron.com compute03
10.10.0.104 snat01.learningneutron.com snat01
On each node, use the hostname -f command to verify that the fully qualified host name is properly reflected:
root@controller01:~# hostname -f
controller01.learningneutron.com