Getting started with vSAN Object Storage v9.1.2 Part 2 – Multi-Zone

In my most recent post, we examined the steps in getting started with vSAN Object Storage deployed in a very simple VCF 9.1.2 environment where the VCF workload domain consisted of a single vSphere / vSAN ESA cluster. This cluster had a Supervisor installed, and was also the destination for workloads, including any Object Store instances that we wanted to create. In this post, I would like to move into a more complex deployment scenario, where we have both a dedicated management cluster (zone) for the Supervisor and then some dedicated clusters (zones) for the deployment of workloads in the same VCF workload domain. We will go a little further in this post and deploy an vSAN Object Store instance onto one of the workload zones. As before, I would ask readers to please familiarise themselves with both the Release Notes and the Admin Guide for vSAN Object Storage.

Important: The purpose of this post is to highlight that vSAN Object Storage v9.1.2 can be used in multi-zone environments. However, the Object Store instance resides on only one of these zones. There is no cross-zone deployment of Object Store instances in this release.

Let’s begin by adding some additional vSAN ESA clusters to my vCenter, putting them into zones, and then adding them to my Supervisor as options for workload placement. This will help you to understand the topology that I am using. I am going on the assumption that the vSAN Object Storage service is already deployed onto the Supervisor “Management” Zone/ This is what we implemented in the last post. If you are doing this setup from scratch, refer to the earlier post for the steps on how to deploy the vSAN Object Storage service. This will avoid me having to reproduce those same steps here.

Expand vSphere and the Supervisor Workload Zones

There are 3 steps to consider in expanding the workload domain with additional zones. The first step is to create and add the new vSphere/vSAN ESA clusters to my workload domain managed by my workload vCenter server. Next, I place the clusters into vSphere Zones. Finally, I add the zones to the Supervisor as Workload zones. Here are some screenshots showing where to do this in 9.1.2. The assumption is that SDDC Manager has already commissioned the hosts into the workload domain and the clusters are already built. The three new vSphere/vSAN ESA clusters are sfo-w01-cl02, sfo-w01-cl03 and sf0-w01-cl04. And yes, it is important that these are vSAN ESA clusters as this is the only vSAN that supports deployment of object store instances. The vSAN cluster on-disk format must also be at version 25.

Initially, if I examine my Supervisor Zones, I will observe that I currently over have a single workload zone, called “mgmt” and because this is the zone where my Supervisor is deployed, it is label “Management”.

Selecting my vCenter server, then the Configure tab, and then the vSphere Zones menu item from the left hand navigation, I can add additional vSphere Zones, one per cluster. So although you can have multiple vSphere/vSAN ESA clusters per zone, in this example I am only placing one cluster in each zone.

After creating the zones, I return to the Supervisor and add the new vSphere Zones as Workload Zones to the Supervisor.

The Supervisor should now have 4 workload zones in total with one vSphere/vSAN ESA cluster in each zone. The Supervisor “Management” zone is still only associated with a single zone.

That completes the work that we need to do on the vSphere side. Let’s now switch our attention to VCF Automation (VCFA). At this point I do want to point out that once again there is no AVI Load Balancer in this configuration. NSX is configured with this VCF environment, and NSX is providing the load balancing functionality natively to our applications.

Review Region Settings in VCFA

Log in to VCF Automation. Log into the System / Provider organization as the provider admin. Ensure that VCFA is synchronised with the changes made to vCenter. You can do this in the VCFA UI by refreshing VCF Instance and the connection to the workload domain vCenter Server, as shown below. First, the VCF Instance:

And now the refresh the vCenter Server where the Supervisor is deployed.

Once the refresh tasks have completed, check that the new zones are visible in the Supervisor in VCFA.

This looks good. We can now proceed with the creation of an Organization which contains multiple zones, and after that we can deploy an Object Store onto one of those new zones.

Create Multi-Zone Org

As mentioned in the introduction, the assumption is that the vSAN Object Storage service is already deployed. The scope of the vSAN Object Storage service is a Region, which means that all organization in that Region have access to the service. In this org setup, I will add the new workload zones as part of the Region Quota. Then later, when we come to provision the Object Store instance in this organisation, we will see how to select a particular zone for placement. Again, at the risk or repeating myself, there is no cross-zone deployment of object stores in this v9.1.2 release. Any deployments of object stores in a multi-zone environment will only allow the placement of the object store instance on a single zone.

Keeping in mind that we now have 4 zones, I want to avoid the organization using any capacity from the management zone. I simply want it to use the workload zones. Therefore I select the option to “Share a portion of the capacity with this organization”. Now when I click the “Add Capacity” button, I can add each of the workload zones in turn, as shown below. If I select the “Share the entrie capacity” option, which is the default, it would also include the mgmt zone’s resources.

Important: There are some configuration options when it comes to the Region Quota to ensure it works optimally with vSAN Object Storage. These items need to be considered carefully:

  • Reservations – vSAN Object Storage requires CPU & Memory resources to be reserved. The reservation is created via the Region Quota. Refer back to the vSAN Object Storage Admin Guide to get the correct CPU and Memory Reservations figures to match your own environment sizings, as it depends on how many nodes are in your vSAN ESA cluster. Without a reservation, deployment of the object store instance will fail.
  • VM Classes – To avoid any issues, select all VM Classes for this Region Quota. This can be adjust ed later in the Region Quota as the different VM Classes used by Object Storage are determined.
  • Storage Class Tag – A special vSAN Object Storage policy / storage class tag, “vnos_global_storage_profile”,  must be associated with the vSAN ESA datastores in each of the workload domains if it is to be used for Object Store instances. With the Supervisor “management” zone, this storage class tag is automatically associated with the vSAN ESA datastore. For other zones, this tag will not be present on the datastores and you will need to add it manually. This step needs to be done from the vSphere Client.
  • Storage Overhead – There needs to be some additional headroom for storage, so it is important to adjust the storage limit on the Storage Class in the Region Quota. By default, the limit set on a Storage Class is 100GB, and since the smallest Object Store instance is 100GB, there will be no overhead and instance creation will fail. Ensure you adjust this limit appropriately.
  • vSphere HA Admission Control – vSAN Object Store instance deployment does a check to make sure it is not going to impact vSphere HA Admission Control. By default Admission Control ensure that there are enough free resources to tolerate a single host failure. If vSAN Object Storage determines that it will impact vSphere HA Admission Control, it will fail to deploy. This is an important consideration, especially with the Reservations taken into account.

Continue with the creation of the organization. At this point, I now have two organizations. The first org is from my previous deployment. This new org, customer-zero-org-2, is the organization that has multiple zones in its Region Quota.

Deploy an Object Store instance

Launch the organization portal as the Provider Admin. You could also log out of the Provider Org and log directly into the organization as an Org Admin. Once logged in as either Provider Admin or Org Admin, select the Build and Deploy tab. In the left-hand menu, you should observe the Object Store item. Click this to launch the Object Store creation wizard. Give a name for the object store instance, select the region, and now select a zone. As there are three zones in this org’s region quota, all are displayed from the drop-down. Whichever is chosen is the one where the object store instance will be created.

The Resource Configuration has 2 settings, the capacity of the object store instance and the MTU for the network. For the capacity, remember to take into account the overhead as described in the admin guide. The minimum object store size is 100GB. A nice additional is the creation of the YAML manifest on the right-hand size of the wizard. This can be saved and used with the VCF CLI to create object stores using the API.

The security section allows you to enable/disable https access to the Object Storage UI. However, even with https disable, you are still required to provide a private key and certificate. The FQDN of the storage endpoint is derived from the certificate.

Review the settings, and if everything looks correct, click the create button to deploy the object store instance. The object store instance will go through a number of different statuses, from init to deploying to healthy. The deployment can be monitored from the vSphere Client. Navigate to the Supervisor Namespaces and find the namespace created for the deployment of the object store. Initially, it is config-manager, telegraf and object-store-metadata PodVMs, but as they become online, the object-store-data PodVMs get created. You should also observe storage and networking objects getting created in the namespace. You can also confirm that the namespace is created in the zone (cluster) that was selected in the create wizard above.

Once all the pods are running, you should see the object store instance become healthy in VCFA.

At this point, you can use click onto the instance as an org admin, and proceed to create buckets, etc. You can also add users to the project and assign them different access rights to the various buckets. We will revisit this topic in a future post as things have subtly changed since I last looked at permissions in the tech preview. Something else to point out are the endpoints. Note that the FQDN for the storage endpoint is storage-<name-of-the object-store>.<domain-name>. The domain-name is lifted from the certificate provided by us when we created the object store. This allows us to easily determine the FQDN of the object store and add it to DNS. This step of adding the FQDN to DNS will be important for accessing buckets and objects outside of VCF Automation.

Troubleshooting

If issues are encountered during the deployment, some produce error messages in the VCFA UI but others may fail with a simple “Degraded” status. In those latter cases, you will need to log onto the VCFA appliance and examine the pod logs of the backend service. Let’s look at some possible scenarios that you might encounter.

Datastore missing appropriate tag

This issue is the missing storage policy tag, “vnos_global_storage_profile”. It needs to be manually added to the vSAN ESA datastores. If you attempt to deploy an object store instance to a datastore that does not have the tag, the deployment will fail with the following error. Ensure the datastore is tagged correctly:

Datastore capacity limit in region quota exceeded

There needs to be additional free capacity on the datastore. If the limit set on the Storage Class does not handle the capacity required by the object store instances + additional overhead, the deployment will fail with an error similar to the following. Ensure there is enough capacity for both the object store instance and overhead in the Storage Class limit.

Degraded status but no error

As mentioned, this could happen for a number of reasons. To get to the root cause, you will need to SSH onto the VCF Automation appliance and using the kubectl command line tool to examine the logs of the vsan-service-vmsp-backend pod in the vsan-svc namespaces. Steps on how to do this are shown in the previous post. Some of the possible scenarios could be:

i. Reservation Misconfigured

If the object store does not have the appropriate reservation configured in the region quota, it will enter a degraded state. The following error will appear in the logs. Note the lead ‘E’ in the first line, always something useful to search for. The fix is to adjust the reservation settings.

E1126 08:19:29.975151       1 rest_create.go:728] "Zone will not admit a large enough namespace" 
err="zone admits too little CPU and memory for 3 data pods: CPU needs 84375 MHz so the namespace 
must reserve 93750 MHz to stay within 90%, but the zone admits at most 37 MHz per namespace; 
memory needs 60224 MiB so the namespace must reserve 66916 MiB, but the zone admits at most 
50 MiB per namespace" name="org-2-obj-store" zone="zone1"

E1126 08:19:29.975165       1 rest_create.go:1154] "Failed to provision ObjectStore" err="zone 
admits too little CPU and memory for 3 data pods: CPU needs 84375 MHz so the namespace must 
reserve 93750 MHz to stay within 90%, but the zone admits at most 37 MHz per namespace; 
memory needs 60224 MiB so the namespace must reserve 66916 MiB, but the zone admits at most 
50 MiB per namespace" name="org-2-obj-store"

ii) vSphere HA Admission Control

If creating the object store instance impacts HA’s ability to maintain enough free space to satisfy the admission control settings, then the object store will not proceed. The fix here could be to adjust the admission control settings on the vSphere cluster, or add / free up resources in the cluster.

E1126 08:32:21.700683       1 rest_create.go:742] "vSphere HA will not admit the instance's data 
pods" err="vSphere HA admission control leaves too little CPU for 3 data pods: CPU needs 32375 MHz 
and HA leaves 26523 MHz; memory needs 24384 MiB and HA leaves 105179 MiB. Powering the pods on 
would take the cluster below its configured failover level" name="org-2-obj-store" zone="zone1"

E1126 08:32:21.700697       1 rest_create.go:1154] "Failed to provision ObjectStore" err="vSphere 
HA admission control leaves too little CPU for 3 data pods: CPU needs 32375 MHz and HA leaves 26523 
MHz; memory needs 24384 MiB and HA leaves 105179 MiB. Powering the pods on would take the cluster 
below its configured failover level" name="org-2-obj-store"

iii) Missing VM Class

If the VM Class required by the vSAN Object Store instance is not available in the Region Quota, this will also prevent the object store from deploying and show up as degraded. The fix is to add the necessary VM Classes to the Resource Quota.

E1126 08:39:02.526127       1 http_client.go:269] "API request failed with error response" err="API request 
failed [400 Bad Request]: One or more VM classes are not available: best-effort-xsmall"

E1126 08:39:02.526153       1 rest_create.go:1154] "Failed to provision ObjectStore" err="failed to create 
cci namespace: failed to POST SupervisorNamespace org-2-obj-store: API request failed [400 Bad Request]: 
One or more VM classes are not available: best-effort-xsmall" name="org-2-obj-store"

Summary

To conclude, the purpose of this post was to demonstrate that vSAN Object Storage can deploy object store instances to different zones in a multi-zone environment in version 9.1.2. However, the full object store instance is deployed  to a single zone. It should be obvious that there are a number of considerations to take into account when deploying vSAN Object Storage instances in your organization, but hopefully the information in this post will help you to make the deployment as seamless as possible.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.