Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

Chapter 3. Getting into your OpenStack HA Environment

With the OpenStack HA environment running, log into your director (undercloud) system. Then, become the stack user by running:

# sudo su - stack

From there, you can interact with either the undercloud and overcloud by loading its corresponding environment variables. To interact with the undercloud, run:

$ source ~/stackrc

Likewise, to interact with the overcloud, run:

$ source ~/overcloudrc

For more information about accessing either undercloud or overcloud, see Accessing the Overcloud.

To access and investigate a node, first find out what IP addresses have been assigned to them. This involves interacting with the undercloud:

$ source ~/stackrc
$ nova list
 +-------+------------------------+---+----------------------+
 | ID    | Name                   |...| Networks             |
 | d1... | overcloud-controller-0 |...| ctlplane=10.200.0.11 |
 ...
Note

For reference, the director deployed the following names and addresses in our test environment:

NamesAddresses

overcloud-controller-0

10.200.0.11

overcloud-controller-1

10.200.0.10

overcloud-controller-1

10.200.0.6 (virtual IP)

overcloud-controller-2

10.200.0.14

overcloud-compute-0

10.200.0.12

overcloud-compute-1

10.200.0.15

overcloud-cephstorage-0

10.200.0.9

overcloud-cephstorage-1

10.200.0.8

overcloud-cephstorage-2

10.200.0.7

In your own test environment, even if you use the same address ranges, the IP addresses assigned to each node may be different.

Once you know the IP addresses of your overcloud nodes, you can run the following command to log into one of those nodes. Doing so involves interacting with the overcloud. For example, to log into overcloud-controller-0 as the heat-admin user:

$ source ~stack/overcloudrc
$ ssh heat-admin@10.200.0.11

After logging into a controller, compute, or storage system, you can begin investigating the HA features there.