Create the OpenStack Control Plane
Reference: See Setion 4.2. Creating the control plane from RHOSP18.0-DP3 deployment guide. Use the Sample configuration file from upstream repository.
In this deployment, the bastion has a preconfigured NFS service that we will be using to store glance images and cinder volumes. |
-
Copy sample controlplane deployment configuration from upstream repository link mentioned above.
or
Use
ctlplane-deploy.sample
file. -
Create a copy of sample configuration file.
cp ctlplane-deploy.sample osp-ng-ctlplane-deploy.yaml
-
Edit the file with your preferred editor.
vi osp-ng-ctlplane-deploy.yaml
-
Change the configuration as per your setup.
-
Change
storageClass
fromlocal-storage
toocs-storagecluster-ceph-rbd
-
Setup dns by configuring dmsmasq service
-
Under
dns:
section’stemplate:
block, change themetallb.universe.tf/loadBalancerIPs
to172.22.0.89
-
Above configuration sets the dnsmasq service to listen on IP
172.22.0.89
. -
Set the server ip from 192.168.122.1 to 192.168.123.100
-
IP
192.168.123.100
belongs to an external DNS server that dnsmasq service will use to forward the queries. -
This configuration reflects in /etc/dnsmasq.d/config.cfg file of dnsmasq-dns pod.
-
-
Configure nfs cinder volume: Refer step #2 in 9.1.2. Configuring the control plane to use the generic NFS driver
-
Configure customServiceConfig for glance: Refer step #2 in 9.2.1. Configuring the control plane Image service to use the Block Storage service
-
As we are not using object storage for this deployment, disable swift by setting
enabled: false
-
You may delete the blocks for
barbican
anddesignate
if not required.
-
-
Finally create the OpenStack control plane
oc create -f osp-ng-ctlplane-deploy.yaml
-
Wait until the OpenStack control plane deployment is completed:
oc get openstackcontrolplane -n openstack
This can take several minutes. To track the progress, you may utilize the following command, which will automatically terminate upon completion of the job.
while ! (oc get openstackcontrolplane -n openstack -o custom-columns=Name:.metadata.name,Status:.status.conditions[0].message | grep 'Setup complete'); do oc get openstackcontrolplane -n openstack; sleep 30; done