Deploying and scaling Compute and Block Storage on OPCP
Find out how to deploy, configure and scale the Compute and Block Storage service from the OPCP Admin Console, and enable it for Organizations
Alpha version — This guide documents the alpha version of Cloud Store. Features, interfaces and procedures will change until general availability (GA), and this guide will be updated along with them.
Objective
This guide shows IT Admins how to deploy the Compute and Block Storage service from the OPCP Admin Console, configure it, scale it and enable it for Organizations.
Compute and Block Storage provides virtual machines (instances), persistent block storage volumes and private networks to the Organizations of your platform. It is built on OpenStack: Nova runs the instances on hypervisors, and Cinder stores the volumes in a Ceph cluster. The hypervisors and the Ceph cluster run on bare-metal hosts of your OPCP.
This guide covers what is specific to Compute and Block Storage. The general steps (Service Catalog, Service Deployments, Organizations) are described in the guide OPCP Admin Console. How Organization users work with the service is described in the guide Using Compute and Block Storage on OPCP.
Requirements
- Access to the OPCP Admin Console, as described in the guide OPCP Admin Console.
- Bare-metal hosts enrolled in OPCP Core, available in OpenStack and not used by another service:
- at least 1 host for the
computeHost Pool, which becomes a hypervisor. Add more hosts for capacity, and to keep instances running when a hypervisor fails. Each needs a data disk of at least 1,000Â GiB. AMD EPYC hosts must have their NUMA mode set to NPS4 (see the "Setting the NUMA mode of AMD EPYC hosts" section); - at least 3 hosts for the
storageHost Pool, which form the Ceph cluster. Ceph keeps 3 copies of each volume, each on a different host. 3 hosts are enough for an evaluation. For production, use at least 4 hosts: when a host fails, Ceph can then restore the third copy of each volume on the remaining hosts. We recommend the HIGH-PERFORMANCE-STORAGE server of the OPCP hardware catalogue: 2 NVMe disks of 1.92Â TB for the operating system and 6 to 22 NVMe data disks of 3.84 or 7.68Â TB. On each storage host, the 2 smallest disks under 2,000Â GiB hold the mirrored operating system, and the data disks are used by Ceph.
- at least 1 host for the
- An Organization to enable the service for. To create one, read the "Creating an Organization" section of the "OPCP Admin Console" guide.
Instructions
Architecture overview
Each Organization only sees its own instances, volumes and networks.
Setting the NUMA mode of AMD EPYC hosts
On AMD EPYC hosts, setting up a hypervisor requires the NUMA mode NPS4 (four NUMA nodes per socket, BIOS setting NumaMemoryDomainsPerSocket). Hosts are often delivered with NPS1, and the deployment does not change this setting: set it yourself before you select the host for the compute Host Pool.
You need OpenStack CLI access to OPCP with an administrator account. The host must not be in use: its provision state is available.
-
Check the current mode.
FourMemoryDomainsPerSocketmeans NPS4: nothing to do. -
Apply NPS4. The BIOS setting is applied during a manual cleaning, which reboots the host.
providethen makes the hostavailableagain: -
Check the mode again with the command of step 1. It must show
FourMemoryDomainsPerSocket.
Deploying the service
-
Go to
Management>Service Catalogand open Compute and Block Storage. ClickNew deployment. -
Choose the version of your service, then click
Next. -
Allocate the host pools:
compute: select the hosts that become hypervisors;storage: select the hosts that form the Ceph cluster.
A host can belong to only one Host Pool.
WarningThe selected hosts are wiped and reinstalled during the deployment.
-
Configure your service. The service has two settings, both with a default value that suits most deployments. See the "Settings" section below.
-
Click
Deploy.
The deployment installs the hypervisors and the Ceph cluster. It takes from several tens of minutes to a few hours, depending on the number of hosts. The Service Deployment is deploying, then deployed.
Once it is deployed, the Host pools tab of the Service Deployment lists the hosts of the compute and storage Host Pools.
The instance flavors (opcp- flavors) and the host aggregate that places them on the hypervisors come with OPCP. Each hypervisor of the compute Host Pool joins that aggregate when it is set up, so Organizations can create instances as soon as the Service Deployment is deployed.
Settings
Outputs
Once the Service Deployment is deployed, its Outputs tab shows, among others, the hosts of each Host Pool (compute_nodes, storage_nodes) and the address of Horizon (horizon_url).
Each Enabled Service has its own Outputs, used by the Organization's users. They are shown in the Overview tab of the service in the OPCP Cloud Console:
Enabling the service for an Organization
Enable the Service Deployment for each Organization that needs instances, as described in the "Enabling a service for an Organization" section of the "OPCP Admin Console" guide.
- The hypervisors and the Ceph cluster are shared between Organizations: the Host Pool step is marked
not applicable. - There is no property to fill in: the service takes everything it needs from the Outputs of the Service Deployment.
The Enabled Service is deploying, then deployed. The Organization's users then find Compute and Block Storage in the OPCP Cloud Console. Send them the guide Using Compute and Block Storage on OPCP.
Scaling the service
Adding hosts
To add capacity, open the â‹® menu of the Service Deployment and choose Expand capacity, as described in the "Scaling capacity" section of the "OPCP Admin Console" guide. In the dialog, first choose the Host Pool to expand, compute or storage, then select the hosts to add.
- A host added to the
computeHost Pool becomes a new hypervisor. - A host added to the
storageHost Pool joins the Ceph cluster, and its disks add to the storage capacity.
A new hypervisor joins the host aggregate of the opcp- flavors by itself and runs instances once it is set up.
Removing hosts
Removing hosts from a Service Deployment is not supported in the Alpha.
Deleting the service
- Ask the Organizations to delete all their instances and volumes. If an Organization cannot do it, for example because its admin has lost access, delete them on its behalf as described in the "Deleting an Organization's instances and volumes" section.
- Disable the service for each Organization.
- Delete the Service Deployment, as described in the "Disabling a service or deleting a Service Deployment" section of the "OPCP Admin Console" guide.
Delete all instances and volumes before deleting the Service Deployment. Instances left on a hypervisor block the deletion of the Service Deployment.
Deleting an Organization's instances and volumes
As an OPCP administrator, you can delete the instances and volumes of an Organization yourself with the OpenStack CLI.
This permanently deletes the Organization's instances, volumes and volume snapshots. Agree on it with the Organization first.
You need OpenStack CLI access to OPCP with an administrator account: the commands below read and delete resources in projects other than your own.
-
Find the Organization's projects. Each Organization has its own Keystone domain, named
account-followed by the name of the Organization: -
Delete the instances, then the volumes of every project of this domain.
--purgealso deletes the snapshots of each volume: -
Check that nothing is left. Both lists must be empty for every project:
If a volume is still listed, it was probably still detaching from a deleted instance. Delete it again with
openstack volume delete --purge <volume-id>.
Known limitations
The Alpha has the following known limitations:
Troubleshooting
Go further
Using Compute and Block Storage on OPCP
Ceph RBD Block Storage - Performance, Resilience and Scalability with OpenStack
For training or technical assistance implementing our solutions, contact your sales representative or visit our Professional Services page to request a quote and have your project analysed by our experts.
Join our community of users.