Configuração dos Objects Nutanix (EN)

Bases de conhecimento

Configuração dos Objects Nutanix (EN)


Icons/System/eye-open Created with Sketch. 230 visualizações 02.03.2023 Cloud / Nutanix on OVHcloud

Objective

Nutanix Objects implements an Object Storage S3* compatible solution on your Nutanix cluster, using Prism Central. You can read the description on this link.

This guide will show you how to set up Nutanix Objects on your cluster.

This tutorial will show you how to use one or more OVHcloud solutions with external tools, and will describe the actions to be carried out in a specific context. You may need to adapt the instructions according to your situation.

If you encounter any difficulties performing these actions, please contact a specialist service provider and/or discuss the issue with our community. You can find more information in the Go further section of this tutorial.

Requirements

  • A Nutanix cluster in your OVHcloud account.
  • Access to the OVHcloud Control Panel.
  • You must be connected to the cluster via Prism Central.

Instructions

From Prism Central, click your cluster in the Cluster Quick Access widget to connect to Prism Element.

01 Check ISCSI ADDRESS 01

Click your cluster's name in the top left-hand corner next to the X.

01 Check ISCSI ADDRESS 02

Scroll down the window and check the IP address in the ISCSI Data Services IP section.

01 Check ISCSI ADDRESS 03

Configuring VLANs in Prism Central

You need to create two additional VLANs in your cluster configuration and have these VLANs access Prism Central and Prism Element to configure Nutanix Objects. These two VLANs must be able to distribute IP addresses. IPAM will be enabled on both VLANs.

From Prism Central, go to the main menu and click on Subnets in the Network & Security category.

02 Create Storage VLAN 01

Click Create Subnet.

02 Create Storage VLAN 02

Check the IP Address Management box and fill in this information :

  • Name : Type object-storage.
  • Type : Select VLAN.
  • VLAN ID : Type your VLAN number as 100.
  • Virtual Switch : Keep vs0.
  • Network IP Address / Prefix : Write your subnet 192.168.100.0/24.
  • Gateway IP Address : Enter the address of your gateway 192.168.100.254.

Then click Add IP Pool.

02 Create Storage VLAN 03

Enter this information :

  • Start Address : Start address of your scope as 192.168.100.10.
  • End Address : End address of your scope as 192.168.100.200.

Then click the blue validation button on the right.

02 Create Storage VLAN 04

Scroll down and enter the OVHcloud DNS address 213.186.33.99 in Domain Name Servers and click Create.

02 Create Storage VLAN 05

Your first VLAN is created. We will create the second VLAN, click on Create Subnet.

03 Create Public VLAN 01

Check the IP Address Management box and fill in this information :

  • Name : Type public-storage.
  • Type : Select VLAN.
  • VLAN ID : Type your VLAN number as 101.
  • Virtual Switch : Keep vs0.
  • Network IP Address / Prefix : Write your subnet 192.168.101.0/24.
  • Gateway IP Address : Enter your gateway address 192.168.101.254.

Then click Add IP Pool.

03 Create Public VLAN 02

Enter this information :

  • Start Address : Start address of your scope as 192.168.101.10.
  • End Address : End address of your scope as 192.168.101.200.

Next, click the blue validation button on the right.

03 Create Public VLAN 03

Scroll down and enter the OVHcloud DNS address 213.186.33.99 in Domain Name Servers and click Create.

03 Create Public VLAN 04

Your two VLANs are created, make sure they can connect to Prism Element and Prism Central through your gateway. You can use this guide to replace the default gateway and use your VLANs: OVHgateway replacement.

03 Create Public VLAN 05

Enabling Nutanix objects in Prism Central

Go to the main menu, scroll to the Services section and click Objects.

04 Activate Object 01

Click Enable.

04 Activate Object 02

Click Enable to validate the activation of Nutanix Objects.

04 Activate Object 03

The service checks your system compatibility.

04 Activate Object 04

Click Next.

04 Activate Object 05

Click Create Object Store.

04 Activate Object 06

Fill in this information :

  • Object Store Name : the name of your object storage, such as nutanix-objects.
  • Domain : The domain name that will be used to access your storage, such as mydomain.com.
  • Cluster : The cluster that must have Nutanix Objects enabled.
  • Worker Nodes : The number of nodes that your Object storage will use, select the number 1.

Then click Next.

04 Activate Object 07

Select the VLAN object-storage in Storage Network and enter these two addresses 192.168.100.1,192.168.100.2 in Object Store Storage Network static IPs (2 IPs required). These addresses must not be within the scope of the VLAN DHCP.

Then click Next.

04 Activate Object 08

Select the public-storage VLAN in Storage Network and enter this range of four addresses 192.168.101.1-192.168.100.4 in Public Network static IPs. These addresses should not be within the scope of the VLAN DHCP.

Next, click Save & Continue.

04 Activate Object 09

A connection check is performed between the VLANs, Prism Element and Prism Central.

04 Activate Object 10

When validation is complete, click Create Object Store.

04 Activate Object 11

Wait twenty minutes for your Object Storage to be active and accessible through the address 192.168.101.1 that is located in your public-storage VLAN.

04 Activate Object 12

Creating an Access Key to your storage

To be able to use an Object storage, it is necessary to create associated Access Keys.

Go to the Access Keys tab.

05 Create Access Keys 01

Click + Add People.

05 Create Access Keys 02

Check Add people not in a directory service, type user@mydomain.com in Email Address and click Next.

05 Create Access Keys 03

Click Generate Keys.

05 Create Access Keys 04

Click Download Keys.

05 Create Access Keys 05

Your access credentials are only displayed once in your web browser. Please note down this information (Access Key and secret Key) before closing this window.

05 Create Access Keys 06

Your user is created with its login details. You can regenerate Access Keys and create a new login.

05 Create Access Keys 07

Validation and functional testing

To confirm that our Object storage is working properly, we will use the AWS awscli command-line tool and create a bucket. You can use this guide for more information.

The awscli tool is available on Windows, Linux and macOS.

Use the following command for help:

aws s3 help

After installing awscli, we will create two configuration files on a computer that has access to the public-storage VLAN and use the aws command to create a bucket.

Create a .aws subfolder in your %USERPROFILE% folder on Windows, or $HOME on Linux and macOS.

Add the credentials file and fill it in with this data:

[default]
aws_access_key_id=your-access-key
aws_secret_access_key=secret-access key

Then add a second file named config with this information :

[default]
region=region = us-east-1

Then use this command to create a bucket.

aws --endpoint-url https://192.168.101.1 s3 mb s3://my-bucket --region=us-east-1 --no-verify-ssl

The bucket is created with a warning message about the SSL certificate. In a production environment, it is necessary to use an SSL certificate.

Now that the bucket is created we will use a browser to connect to the web interface provided by Nutanix in order to check the existence of our bucket.

Using a web browser, connect to this URL https://192.168.101.1/objectsbrowser which corresponds to your Nutanix Objects access point and enter your credentials (access_key and secret_key). Then click on Login.

06 Connect to WEB interfaces 01

You can see the bucket you created in the command line. You can create and delete buckets or objects in your web interface.

06 Connect to WEB interfaces 02

Go further

If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project.

Join our community of users on https://community.ovh.com/en/.

Nutanix Objects documentation.

*: S3 is a trademark of Amazon Technologies, Inc. OVHcloud’s service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies, Inc.

Artigos relacionados