Chapter 3. Installing the all-in-one Red Hat OpenStack Platform environment
Before you can begin configuring, deploying, and testing your all-in-one environment, you must configure a non-root user and install the necessary packages and dependencies:
Procedure
Create a non-root user on the all-in-one host:
useradd stack
[root@all-in-one]# useradd stack
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Set the password for the
stack
user:passwd stack
[root@all-in-one]# passwd stack
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Disable password requirements for the
sudo
command forstack
user:echo "stack ALL=(root) NOPASSWD:ALL" | tee -a /etc/sudoers.d/stack chmod 0440 /etc/sudoers.d/stack
[root@all-in-one]# echo "stack ALL=(root) NOPASSWD:ALL" | tee -a /etc/sudoers.d/stack [root@all-in-one]# chmod 0440 /etc/sudoers.d/stack
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Log in as the non-root user on the all-in-one host:
ssh stack@<all-in-one>
$ ssh stack@<all-in-one>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Register the machine with Red Hat Subscription Manager. Enter your Red Hat subscription credentials at the prompt:
sudo subscription-manager register
[stack@all-in-one]$ sudo subscription-manager register
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Attach your Red Hat subscription to the entitlement server:
sudo subscription-manager attach --auto
[stack@all-in-one]$ sudo subscription-manager attach --auto
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThe
--auto
option might not subscribe you to the correct subscription pool. Ensure that you subscribe to the correct pool, otherwise you might not be able to enable all of the necessary repositories for this installation. Use thesubscription-manager list --all --available
command to identify the correct pool ID.Lock the undercloud to Red Hat Enterprise Linux 8.4:
sudo subscription-manager release --set=8.4
$ sudo subscription-manager release --set=8.4
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the following commands to install
dnf-utils
, disable all default repositories, and then enable the necessary repositories:Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThe all-in-one environment is a Technology Preview feature in Red Hat OpenStack Platform 16.
Set the
container-tools
module version:sudo dnf module disable -y container-tools:rhel8 sudo dnf module enable -y container-tools:3.0
[stack@all-in-one]$ sudo dnf module disable -y container-tools:rhel8 [stack@all-in-one]$ sudo dnf module enable -y container-tools:3.0
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Update the base operating system and reboot the system:
sudo dnf update sudo reboot
[stack@all-in-one]$ sudo dnf update [stack@all-in-one]$ sudo reboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Log back in to the host after the reboot.
Install the TripleO command line interface (CLI):
sudo dnf install -y python3-tripleoclient
[stack@all-in-one]$ sudo dnf install -y python3-tripleoclient
Copy to Clipboard Copied! Toggle word wrap Toggle overflow