Document navigation

Deployment and Environment Connection

Deploy the ZNS management service and connect the ZSphere environments that need ZNS networking as compute managers.

The ZNS service runs as VMs in ZSphere. ZCenter creates the service VMs and provides access to the management interface. For a first-time deployment, start in ZSphere, then switch to the ZCenter and ZNS management interfaces in that order.

StageManagement InterfaceOutcome
Deploy ZCenter ZSphere Deploy ZCenter through Platform Service and log in to its management interface. If a service is already available, log in directly.
Deploy ZNS ZCenter Connect the hosting environment, prepare a ZNS license, deploy a single-node or three-node HA service in Application Center, and open the ZNS management interface.
Connect business environments ZNS Register the target ZSphere environment as a compute manager, and check the management connection and discovered compute resources.

The hosting environment provides the compute, storage, and management network resources for the ZNS service VMs. It must be connected to ZCenter before deployment. A business environment provides the hosts and workload VMs that will use ZNS networking. It can be the hosting environment or another ZSphere environment.

When deploying ZNS, you can optionally register business environments automatically. Each selected business environment must already be connected to ZCenter, and you must provide its login credentials. After deployment, open ZNS to check the registration results. If you skip automatic registration, manually register compute managers in the ZNS management interface.

Deployment Preparation

Prepare installation materials, hosting resources, management networks, and connection credentials, and select a ZNS deployment mode.

Installation Materials and Accounts

  • Prepare compatible versions of ZSphere, ZCenter, and ZNS. For a first-time ZCenter deployment, prepare the service installation package in QCOW2 format.
  • Prepare a Linux system image with ZNS preinstalled and add it to the hosting environment. For instructions, see Add an Image.
  • Prepare the SSH username, port, and password for VMs created from the image, and ensure that ZCenter can access the nodes over SSH. After the hosting environment is connected to ZCenter and image synchronization is complete, configure the image login information in ZCenter.
  • Use the admin user in ZSphere to deploy ZCenter. Use the built-in super administrator account in ZCenter to prepare the license and deploy ZNS.
  • Prepare a ZNS license. For instructions on obtaining and uploading the license, see Prepare a ZNS License.

Deployment Modes and Resources

Deployment ModeNumber of Service VMsUsage
Single node1Provides access through the node management IP address. Suitable for lightweight usage scenarios.
Three-node HA3Provides access through a virtual IP address. Prepare resources for three nodes and reserve a virtual IP address on the management network.

Each ZNS service VM defaults to 4 vCPUs and 8 GiB of memory. The root disk capacity depends on the selected image and must be at least as large as the image. Prepare sufficient compute and storage resources for the selected deployment mode, along with an image and distributed port group available to the target cluster.

You can also enable node VM high availability during deployment to automatically migrate and restart node VMs if their host fails. This setting is independent of ZNS three-node HA. Before enabling it, ensure that the hosting environment meets the VM high availability requirements.

Management Networks and Addresses

  • The client can access the management interfaces of all three components.
  • ZCenter can access the management node API of the hosting environment and the management IP addresses of the ZNS nodes.
  • Prepare a management IP address for each ZNS node. If using DHCP, the selected distributed port group must be able to assign addresses reachable from ZCenter.
  • For three-node HA, reserve an additional unused IPv4 address on the management network as the virtual IP address. It must differ from all node management IP addresses. Enter the address without a subnet mask.
  • ZNS can access the management node API of each business environment to be registered.

Environment Connection Credentials

The hosting and business environments can be the same environment, but the two connections use different credentials.

ConnectionRequired AddressesRequired Credentials
Connect the hosting environment to ZCenter The ZSphere management interface address and management node API address The AccessKey ID and AccessKey Secret of the target environment. For instructions on generating them, see Generate an AccessKey.
Register a business environment with ZNS The management node API address of the target ZSphere environment The login username and password of an account with the required resource management permissions in the target environment.

To register a business environment automatically during deployment, first connect it to ZCenter. Eligible environments must be connected ZSphere environments with an identifiable version of 5.2.0 or later. You can also skip automatic registration and register compute managers directly in ZNS after deployment.

Deploy ZCenter Service

Upload the ZCenter installation package and deploy ZCenter Service in ZSphere.

Before you begin

  • You are logged in to the ZSphere management interface as the admin user.
  • You have obtained the ZCenter installation package in QCOW2 format.
  • An image storage, host, and data storage with normal status and sufficient capacity are available.
  • A distributed port group is available for the service VM. To upload the package from a URL, make sure that the management node can access the URL.

Procedure

  1. In ZSphere, choose Platform Service > All Services.
  2. On the ZCenter Service card, click Deploy.
  3. In the deployment drawer, click Upload Package and configure the package upload settings.
    Option Description
    Upload By

    Select how to upload the installation package:

    • URL: Upload the package from an HTTP or HTTPS URL that ends with .qcow2.
    • Local File: Select a QCOW2 package from your local computer.
    URL/Installation Package Enter the package URL or select a local package. The displayed option depends on the selected upload method.
    Image Storage Select the image storage where the service package is stored.
  4. Click Upload and wait for the upload to complete.
    After the upload is complete, click Reupload if you need to replace the installation package.
  5. In the Deploy ZCenter Service step, click Deploy.
  6. In the Deploy ZCenter Service dialog box, configure the service VM.
    Option Description
    Service Name Enter a name for ZCenter Service.
    Host Select the host on which the service VM runs. Only enabled and connected hosts are displayed.
    CPU Specify the number of CPUs for the service VM. Default: 8.
    Memory Specify the memory capacity for the service VM. Default: 16 GB.
    Data Storage Select a data storage compatible with the target host. The system disk of the service VM is created on this data storage.
    Distributed Port Group Select the distributed port group for the service VM. The network must be available on the target host.
    IP Address

    Configure the IPv4 address of the service VM:

    • If DHCP is enabled on the distributed port group, leave this option empty to have the system automatically assign an address.
    • If DHCP is not enabled on the distributed port group, manually enter an IP address.
    • If IP address management is enabled on the distributed port group, the manually specified address must be within the selected network range.
    Netmask If DHCP is not enabled on the distributed port group, enter the netmask for the service VM IP address.
    Gateway If DHCP is not enabled on the distributed port group, enter the gateway address used by the service VM.
  7. Click Deploy.
    ZCenter Service uses the time zone configured on the ZSphere platform at the time of deployment.

Results

The platform creates the service VM and installs ZCenter. After deployment, click View on the ZCenter Service card in All Services to view service status and configuration information.

Note:
If the package upload fails, click Reupload to upload the package again. If service deployment fails, click Deploy, and then click Clear and Redeploy in the Redeploy ZCenter Service dialog box. Reconfigure and deploy the service.

What to do next

Use the Go entry on the service page to open the ZCenter management interface and log in, then continue connecting environments for centralized management.

Log In to ZCenter

From the Platform Service page in ZSphere, open ZCenter and log in with a local account.

Before you begin

  • ZCenter Service has been deployed.
  • You are logged in to the ZSphere management interface and can view the ZCenter Service page.
  • Your client can access the ZCenter management interface.
  • You have obtained the username and password of a local ZCenter account.

Procedure

  1. In ZSphere, choose Platform Service > ZCenter Management > ZCenter Service.
  2. On the ZCenter Service page, click Go in the page banner to open the ZCenter login page.

    Alternatively, enter the ZCenter access address directly in your browser. The default format is http://ZCenter_IP:8100, where ZCenter_IP is the service IP address.

  3. On the ZCenter login page, select the Local Login tab and enter your username and password.
    When first using the initial system administrator account, the username is admin and the initial password is password. If the password has been changed, use the updated password.
  4. Click Log In.

Results

After you log in, you have switched from the ZSphere management interface to the ZCenter management interface. Available menus and operations depend on your account permissions.

What to do next

  • After logging in with the initial password for the first time, follow Change the Login Password to change the initial password.
  • If a ZSphere environment to be managed has not been connected, see Connect a ZSphere Environment. After the environment is connected and resource synchronization is complete, its resources are available in Inventory.

Connect a ZSphere Environment

Add a ZSphere environment to ZCenter and synchronize its resources for centralized management.

Before you begin

  • You are logged in to the ZCenter management interface, and your account has permission to add management nodes.
  • You have obtained the management interface address and API address of the target ZSphere environment and ensured that they are reachable over the network.
  • You have obtained a valid AccessKey ID and AccessKey Secret from the target ZSphere environment. The account that owns the AccessKey has the required resource management permissions. For instructions on generating an AccessKey, see Generate an AccessKey.

About this task

In ZCenter, a connected ZSphere environment is called a management node.

Procedure

  1. In ZCenter, choose System Configuration > Management Nodes.
  2. Click Add Management Node.
  3. Enter a name and description, and select ZStack ZSphere for Type.
  4. Configure the management node addresses and connection credentials.
    Configuration Item Description
    Access URL The address of the target ZSphere management interface. Select http or https, and enter the address and port in their respective fields. The default port is 80 for HTTP and 443 for HTTPS. If the environment uses a custom port, enter that port.
    Management Node IP The IP address for API access to the target ZSphere management node. The protocol is http, and the default port is 8080. Enter the values according to the actual API access configuration.
    AccessKey ID An AccessKey ID generated in the target ZSphere environment.
    AccessKey Secret The AccessKey Secret paired with the AccessKey ID above.
  5. Click Test Connection next to Access URL and Management Node IP to check whether each address is reachable.
    If a test fails, check the corresponding address, protocol, port, and network connectivity. Correct the configuration and test again.
  6. Click Confirm Creation.

Results

After creation succeeds, the newly connected environment appears in the management node list, and ZCenter starts synchronizing its resources.

What to do next

  1. Click the management node name. On the Overview tab of the details page, check Account Information. Confirm that Status is Connected, and wait until Sync Status changes to Synced.
  2. Select the environment in Inventory to view its synchronized resources.

Prepare a ZNS License

Download a request key, upload a license, and check the license status of the ZNS network service in ZCenter.

Before you begin

You are logged in to the ZCenter management interface with the built-in super administrator account.

Procedure

  1. In ZCenter, choose Licensing > Current License.
  2. On the License Management page, check the license status, quota, and expiration information for ZNS Network Service.
    If a valid license already meets your requirements, proceed to deploy ZNS. To obtain or update a license, continue with the following steps.
  3. Click Download Request Key and save the request key file.
  4. Provide the request key file to ZStack technical support to obtain a license file that includes the required ZNS network service license.
  5. Return to the License Management page and click Upload License.
  6. Select or drag the license file into the License area, and click OK.
    If the upload fails, check the file and upload it again.
  7. After the upload succeeds, confirm that the status of ZNS Network Service is License valid, and check the quota and expiration information.

Results

A valid ZNS network service license is available in ZCenter.

What to do next

Deploy the service in Application Center. For instructions, see Deploy the ZNS Service.

Deploy the ZNS Service

Select a hosting environment in ZCenter Application Center to create ZNS service VMs and deploy the service.

Before you begin

  • You are logged in to the ZCenter management interface with the built-in super administrator account.
  • You have completed Deployment Preparation and Prepare a ZNS License.
  • The hosting environment is connected to ZCenter, its connection is normal, and resource synchronization is complete. For connection instructions, see Connect a ZSphere Environment.
  • A Linux image with ZNS preinstalled is available in the hosting environment, and its SSH login information is configured in ZCenter. Open Content Libraries > Image Files and select Configuration Info from Actions in the target image's row. For instructions, see Configure Image Login Information.

Procedure

  1. In ZCenter, open Application Center.
  2. In All Applications, find the ZStack ZNS Network Service card and click Deploy.
  3. Read the Installation guide, confirm that the image, network, and addresses are ready, and click Deploy.
  4. In the Deployment mode step, select Single node or Three-node HA, and click Next.
    Single-node deployment creates one service VM. Three-node HA deployment creates three service VMs and provides access through a virtual IP address.
  5. In the Deployment configuration step, configure the hosting location and node specifications.
    OptionDescription
    Hosting environmentSelect a ZSphere environment that has been connected and has a normal connection.
    Data center, ClusterSelect the data center and cluster in which the service VMs will run.
    ZNS imageSelect a Linux system image with ZNS preinstalled.
    CPU, MemorySpecify the resources for each node VM. The defaults are 4 cores and 8 GiB, respectively. Both values must be positive integers.
    Root disk capacitySpecify the root disk capacity of each node VM in GiB. The value must be a positive integer and at least as large as the selected image. After you select an image, the system sets the initial value based on the image capacity.
    Distributed port groupSelect the port group for the node management network. It must be available to the selected cluster and connected to the hosting environment management network. Node management IP addresses must be reachable from ZCenter.
    Storage locationSelect available storage or keep Automatically select available storage. Check the storage selection again after changing the image, network, or root disk capacity.
    Node VM high availabilitySelect Enable node VM high availability as needed. Node VMs are automatically migrated and restarted if their host fails. This setting is disabled by default and is independent of ZNS three-node HA.
  6. Enter the VM name and Management IP for each node. For three-node HA, enter the Virtual IP.
    • Management IP addresses must be valid, unique IPv4 addresses. If left blank, addresses are assigned by DHCP. Ensure that the selected network can assign addresses reachable from ZCenter.
    • The virtual IP must be a reserved, unused IPv4 address on the management network. Enter it without a subnet mask. It must differ from all node management IP addresses.
  7. Confirm that the selected image has ZNS preinstalled and that the backend has its SSH login credentials configured. Select the corresponding confirmation checkbox.
  8. To register business environments automatically after deployment, click Add registration environment in Automatic environment registration (optional). Select a Business environment, and enter the Environment login username and Environment login password.

    Business environments can differ from the hosting environment. Candidates are environments already connected to ZCenter. Only connected ZSphere environments with an identifiable version of 5.2.0 or later can be selected. You can add multiple environments, but each environment can be selected only once.

    Enter the login username and password of the target business environment here. If you do not add a registration environment, you can register it in ZNS after deployment. For instructions, see Register and Check a Compute Manager.

  9. Click Next to open the Review settings step. Check the deployment mode, hosting resources, node addresses, and environments selected for automatic registration.
    For a three-node deployment, the system checks whether the virtual IP is reachable. If the address may already be in use, go back and change it. If the check fails, check management network connectivity and try again.
  10. Click Confirm deployment.
    Submitting creates service VMs in the hosting environment and deploys ZNS. For a three-node deployment, the virtual IP is checked again.
  11. Check the task execution result on the Backend Job Log page that opens. Then return to Application Center and confirm that the ZNS application is installed.
    If the task fails, troubleshoot based on the failed step and error details in the log.

Results

The ZNS service is deployed, and Application Center provides access to its management interface.

What to do next

Open the management interface to check the compute manager registration results for the business environments, or register them manually. See Open the ZNS Management Interface.

Open the ZNS Management Interface

Open the ZNS management interface from ZCenter Application Center to connect environments and configure networks.

Before you begin

  • You are logged in to ZCenter with the built-in super administrator account.
  • The ZNS application is installed, its service instance is enabled, and the management service is accessible.

Procedure

  1. In ZCenter, open Application Center.
  2. In All Applications, find the ZStack ZNS Network Service card and click Open console.

Results

You have opened the ZNS management interface from ZCenter Application Center.

What to do next

When you first open the interface, confirm that the target business environment is connected. See Register and Check a Compute Manager.

Register and Check a Compute Manager

Connect a target ZSphere business environment to ZNS, and check the connection and compute resource discovery results.

Before you begin

  • You have opened the management interface as described in Open the ZNS Management Interface.
  • You have obtained the management node API address of the target business environment and the login username and password of an account with the required resource management permissions.
  • ZNS can access the management node API of the target business environment.

About this task

If you selected automatic business environment registration when deploying ZNS, check the registration results here as well. Each compute manager corresponds to one business environment. Its clusters, hosts, and other compute resources are used by ZNS to organize sites and Fabric.

Procedure

  1. In ZNS, choose System > Fabric > Compute Managers.
  2. Check whether a compute manager for the target business environment already exists in the list.
    If a record already exists, skip registration and continue with the connection status and resource discovery checks below. Otherwise, perform the registration steps.
  3. Click Register Compute Manager and enter the connection information.
    OptionDescription
    NameEnter a name that identifies the target business environment. It must not exceed 255 characters or contain spaces.
    DescriptionOptional. Enter up to 256 characters.
    TypeTo connect a ZSphere environment, select ZSV.
    FQDN / IPEnter the full management node API URL of the target business environment, including the protocol and port. For example, http://192.0.2.10:8080.
    Username, PasswordEnter the login username and password of the target business environment. Each must not exceed 255 characters or contain spaces.
  4. Click OK to return to the compute manager list.
  5. Check the address and type of the target compute manager. Confirm that Connection Status is Connected and Configuration State is Deployed.
    If the connection cannot be established, check the API address, protocol, port, login credentials, and network connectivity from ZNS to the target environment.
  6. Click the compute manager name to view its associated clusters and hosts. Confirm that the resources belong to the target business environment.

Results

The target ZSphere business environment is connected to ZNS as a compute manager. The management connection is normal, and the relevant compute resources have been discovered.

What to do next

To prepare workload network infrastructure for this environment, see Sites and Fabric.