How to Install All-in-One Red Hat OpenStack Platform 16 (Proof-of-Concept) | RHOSP 16

  1. Prepare the environment.
  2. Install packages for the all-in-one environment.
  3. Configure the all-in-one environment.
  4. Deploy the all-in-one environment.
  • Minimal Dual Core Processor
  • Minimal 8 Gb RAM
  • Minimal 40 Gb Free Disk
  • Stable Internet Connection
  • Operating System RHEL 8.1
  • Red Hat OpenStack Subscription
  • 2 Network Interfaces
[root@localhost]# hostnamectl set-hostname all-in-one
[root@localhost]# exec bash
[root@all-in-one]# useradd stack
[root@all-in-one]# passwd 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
$ ssh stack@all-in-one
[stack@all-in-one]$ sudo subscription-manager register
[stack@all-in-one]$ sudo subscription-manager attach --auto
[stack@all-in-one]$ sudo subscription-manager release --set=8.1
[stack@all-in-one]$ sudo dnf install -y dnf-utils
[stack@all-in-one]$ sudo subscription-manager repos --disable=*
[stack@all-in-one]$ sudo subscription-manager repos \
--enable=rhel-8-for-x86_64-baseos-rpms \
--enable=rhel-8-for-x86_64-appstream-rpms \
--enable=rhel-8-for-x86_64-highavailability-eus-rpms \
--enable=ansible-2.8-for-rhel-8-x86_64-rpms \
--enable=openstack-16-for-rhel-8-x86_64-rpms \
--enable=fast-datapath-for-rhel-8-x86_64-rpms \
--enable=rhel-8-for-x86_64-highavailability-rpms
[stack@all-in-one]$ sudo dnf install -y python3-tripleoclient
  • $HOME/containers-prepare-parameters.yaml
  • $HOME/standalone_parameters.yaml
  • /usr/share/openstack-tripleo-heat-templates/environments/standalone/standalone-tripleo.yaml
  • /usr/share/openstack-tripleo-heat-templates/roles/Standalone.yaml

Generating YAML files for the all-in-one Red Hat OpenStack Platform environment

[stack@all-in-one]$ openstack tripleo container image prepare default --output-env-file $HOME/containers-prepare-parameters.yaml
[stack@all-in-one]$ sudo vi containers-prepare-parameters.yaml
.......
ContainerImageRegistryCredentials:
registry.redhat.io:
<USERNAME>: "<PASSWORD>"
ContainerImageRegistryLogin: true
.......
[stack@all-in-one]$ export IP=192.168.25.10
[stack@all-in-one]$ export NETMASK=24
[stack@all-in-one]$ export INTERFACE=ens19
[stack@all-in-one]$ cat <<EOF > $HOME/standalone_parameters.yaml
parameter_defaults:
CloudName: $IP
CloudDomain: all-in-one.localdomain
ControlPlaneStaticRoutes: []
Debug: true
DeploymentUser: $USER
DnsServers:
- 1.1.1.1
- 8.8.8.8
DockerInsecureRegistryAddress:
- $IP:8787
NeutronPublicInterface: $INTERFACE
NeutronDnsDomain: localdomain
NeutronBridgeMappings: datacentre:br-ctlplane
NeutronPhysicalBridge: br-ctlplane
StandaloneEnableRoutedNetworks: false
StandaloneHomeDir: $HOME
StandaloneLocalMtu: 1500
EOF
StandaloneExtraConfig:
NovaComputeLibvirtType: qemu
[stack@all-in-one]$ sudo dnf update
[stack@all-in-one]$ sudo reboot
[stack@all-in-one]$ sudo podman login registry.redhat.io
[stack@all-in-one]$ export IP=192.168.25.10
[stack@all-in-one]$ export NETMASK=24
[stack@all-in-one]$ export INTERFACE=ens19
[stack@all-in-one]$ sudo openstack tripleo deploy \
--templates \
--local-ip=$IP/$NETMASK \
-e /usr/share/openstack-tripleo-heat-templates/environments/standalone/standalone-tripleo.yaml \
-r /usr/share/openstack-tripleo-heat-templates/roles/Standalone.yaml \
-e $HOME/containers-prepare-parameters.yaml \
-e $HOME/standalone_parameters.yaml \
--output-dir $HOME \
--standalone
[stack@all-in-one]$ export OS_CLOUD=standalone
[stack@all-in-one]$ openstack endpoint list
[stack@all-in-one]$ sudo yum list installed | grep openstack-*
[stack@all-in-one]$ openstack service list
[stack@all-in-one]$ openstack --version
[stack@all-in-one]$ cat .config/openstack/cloud.yaml
Horizon Dashboard
Overview Resources
System Information from Services
System Information from Compute Services

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ach.Chusnul Chikam

Ach.Chusnul Chikam

26 Followers

Cloud Consultant | RHCSA | RHCE in Red Hat OpenStack | Google Cloud ACE | AWS SAA | LinkedIn: https://www.linkedin.com/in/achchusnulchikam