5.5. Updating the control plane
After you have deployed the data plane at the central location, you must update the control plane to integrate the newly deployed data plane.
Prerequisites
- You have deployed a node set at the central location using Red Hat OpenStack services on OpenShift.
- You have deployed Red Hat Ceph Storage (RHCS).
Procedure
Optional: Configure the Block Storage backup service in your
openstack_control_plane.yamlfile:cinderBackup: customServiceConfig: | [DEFAULT] backup_driver = cinder.backup.drivers.ceph.CephBackupDriver backup_ceph_pool = backups backup_ceph_user = openstackFor more information about configuring the Block Storage backup service, see Configuring the Block Storage backup service.
Update the Block Storage cinder volume service in your
openstack_control_plane.yamlfile:cinderVolumes: az0: customServiceConfig: | [DEFAULT] enabled_backends = ceph glance_api_servers = https://glance-az0-internal.openstack.svc:9292 [ceph] volume_backend_name = ceph volume_driver = cinder.volume.drivers.rbd.RBDDriver rbd_ceph_conf = /etc/ceph/az0.conf rbd_user = openstack rbd_pool = volumes rbd_flatten_volume_from_snapshot = False rbd_secret_uuid = 795dcbca-e715-5ac3-9b7e-a3f5c64eb89f rbd_cluster_name = az0 backend_availability_zone = az0For more information about configuring the Block Storage volume service, see Configuring the Block Storage volume service component.
Add the extraMounts field to your
openstack_control_plane.yamlfile to define the services that require access to the Red Hat Ceph Storage secret:extraMounts: - extraVol: - extraVolType: Ceph mounts: - mountPath: /etc/ceph name: ceph readOnly: true propagation: - az0 - CinderBackup volumes: - name: ceph projected: sources: - secret: name: ceph-conf-az-0Update the Image service (glance) in your
openstack_control_plane.yamlfile to configure the Block Storage service as the backend:glanceAPIs: az0: customServiceConfig: | [DEFAULT] enabled_import_methods = [web-download,copy-image,glance-direct] enabled_backends = az0:rbd [glance_store] default_backend = az0 [az0] rbd_store_ceph_conf = /etc/ceph/az0.conf store_description = "az0 RBD backend" rbd_store_pool = images rbd_store_user = openstack rbd_thin_provisioning = TrueApply the changes made to the
OpenStackControlPlaneCR:oc apply -f openstack_control_plane.yamlAdd the AZ to a host aggregate. This allows OpenStack administrators to schedule workloads to a geographical location based on image metadata.
Open a terminal to the
openstackclientpod:# oc rsh openstackclientCreate a new OpenStack aggregate:
$ openstack aggregate create <aggregate_name>Label the OpenStack aggregate with the name of the AZ:
$ openstack aggregate set --zone <availability_zone> <aggregate_name>Add each host in the AZ to the aggregate:
$ openstack aggregate add host <aggregate_name> <compute_node_1> $ openstack aggregate add host <aggregate_name> <compute_node_2> ...