For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/pt/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/pt/llms-full.txt, and this page is available as Markdown at https://docs.ovhcloud.com/pt/guides/hosted-private-cloud/opcp/compute-block-storage-admin-console.md.
Ir para o conteúdo

Deploying and scaling Compute and Block Storage on OPCP

Ver como Markdown

Find out how to deploy, configure and scale the Compute and Block Storage service from the OPCP Admin Console, and enable it for Organizations

Warning

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 compute Host 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 storage Host 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.
  • 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

ComponentRuns onRole
Control planeThe OPCP controllerDeployed once per Service Deployment. Runs the OpenStack services that manage instances and volumes, and a Horizon web interface.
HypervisorsHosts of the compute Host PoolRun the instances. They are shared by all Organizations the service is enabled for.
Ceph clusterHosts of the storage Host PoolStores the block storage volumes.
Data planeThe OPCP controllerCreated for each Organization when you enable the service for it. Gives the Organization its own OpenStack project, its access through the OPCP Cloud Console and its own web interface for the service.

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.

  1. Check the current mode. FourMemoryDomainsPerSocket means NPS4: nothing to do.

    HOST=<host name or UUID>
    openstack baremetal node bios setting show "$HOST" NumaMemoryDomainsPerSocket
  2. Apply NPS4. The BIOS setting is applied during a manual cleaning, which reboots the host. provide then makes the host available again:

    openstack baremetal node manage "$HOST" --wait 300
    openstack baremetal node clean "$HOST" --wait 3600 --clean-steps '[{"interface": "bios", "step": "apply_configuration", "args": {"settings": [{"name": "NumaMemoryDomainsPerSocket", "value": "FourMemoryDomainsPerSocket"}]}}]'
    openstack baremetal node provide "$HOST" --wait 3600
  3. Check the mode again with the command of step 1. It must show FourMemoryDomainsPerSocket.

Deploying the service

  1. Go to Management > Service Catalog and open Compute and Block Storage. Click New deployment.

  2. Choose the version of your service, then click Next.

  3. 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.

    Warning

    The selected hosts are wiped and reinstalled during the deployment.

    Allocating the hosts of a Host Pool: OpenStack project and list of available hosts
  4. Configure your service. The service has two settings, both with a default value that suits most deployments. See the "Settings" section below.

  5. 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.

Host pools tab of a Compute and Block Storage Service Deployment: compute and storage hosts

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

SettingDefaultDescription
horizon_enabledtrueDeploys the Horizon web interface. Organization users reach it through a link in the OPCP Cloud Console, for the cases the service interface does not cover yet.
allow_uninstall_with_bound_nodesfalseAllows deleting the Service Deployment while hosts are still in use. The hosts are then released and wiped. Leave it at false unless OVHcloud support asks you to change it.

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:

OutputContent
ConsoleThe link to the web interface of the service for this Organization.
HorizonThe link that signs the Organization's users in to Horizon, if horizon_enabled is true.
OpenRCAn openrc.sh file for the OpenStack CLI. It holds no secret: users authenticate with an application credential of their own.

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.

Expand capacity dialog: choice of the Host Pool and list of available hosts
  • A host added to the compute Host Pool becomes a new hypervisor.
  • A host added to the storage Host 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

  1. 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.
  2. Disable the service for each Organization.
  3. Delete the Service Deployment, as described in the "Disabling a service or deleting a Service Deployment" section of the "OPCP Admin Console" guide.
Warning

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.

Warning

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.

  1. Find the Organization's projects. Each Organization has its own Keystone domain, named account- followed by the name of the Organization:

    openstack domain list
    ORG_DOMAIN=account-<organization>
    openstack project list --domain "$ORG_DOMAIN"
  2. Delete the instances, then the volumes of every project of this domain. --purge also deletes the snapshots of each volume:

    for project in $(openstack project list --domain "$ORG_DOMAIN" -f value -c ID); do
      for server in $(openstack server list --all-projects --project "$project" -f value -c ID); do
        openstack server delete --wait "$server"
      done
      for volume in $(openstack volume list --all-projects --project "$project" -f value -c ID); do
        openstack volume delete --purge "$volume"
      done
    done
  3. Check that nothing is left. Both lists must be empty for every project:

    for project in $(openstack project list --domain "$ORG_DOMAIN" -f value -c ID); do
      openstack server list --all-projects --project "$project"
      openstack volume list --all-projects --project "$project"
    done

    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:

LimitationWhat to do
Compute and Block Storage can be deployed only once per platform: a second deployment fails.Deploy the service only once per platform.
A Service Deployment cannot be upgraded in place.Delete it as described in Deleting the service, then contact OVHcloud to have the remaining resources cleaned up before you deploy the new version.
Disabling the service fails for an Organization whose name contains a space, and that blocks the deletion of the Service Deployment. An Organization cannot be renamed.Use Organization names without spaces. For an existing Organization with a space in its name, contact OVHcloud to have the service disabled for it.
Deleting a Service Deployment leaves resources behind, and the Ceph cluster is deliberately kept. A new deployment fails until they are cleaned up.Contact OVHcloud to have them cleaned up before you deploy again.

Troubleshooting

What you noticeWhat to do
The deployment takes a long time, or the first attempts to set up a hypervisor fail.Wait: the deployment retries automatically and usually succeeds on the second or third attempt. If it stays in error, contact OVHcloud.
Setting up a hypervisor fails on an AMD EPYC host.Check that the NUMA mode of the host is set to NPS4 (see the "Setting the NUMA mode of AMD EPYC hosts" section), or use another host.
Deleting the Service Deployment never finishes.Delete all instances and volumes first (see the "Deleting the service" section). If the deletion is already stuck, contact OVHcloud.

Go further

OPCP Admin Console

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.

Esta página foi útil?