Help Center> Cloud Container Engine> FAQs> Node> Node Creation> How Do I Troubleshoot Problems Occurred When Adding Nodes to a CCE Cluster?
Updated on 2024-01-18 GMT+08:00

How Do I Troubleshoot Problems Occurred When Adding Nodes to a CCE Cluster?

Note

  • The node images in the same cluster must be the same. Pay attention to this when creating, adding, or accepting nodes in a cluster.
  • If you need to allocate user space from the data disk when creating a node, do not set the data storage path to any key directory. For example, to store data in the /home directory, set the directory to /home/test instead of /home.

    Do not set Path inside a node to the root directory /. Otherwise, the mounting fails. Set Path inside a node to any of the following:

    • /opt/xxxx (excluding /opt/cloud)
    • /mnt/xxxx (excluding /mnt/paas)
    • /tmp/xxx
    • /var/xxx (excluding key directories such as /var/lib, /var/script, and /var/paas)
    • /xxxx (It cannot conflict with the system directory, such as bin, lib, home, root, boot, dev, etc, lost+found, mnt, proc, sbin, srv, tmp, var, media, opt, selinux, sys, and usr.)

    Do not set it to /home/paas, /var/paas, /var/lib, /var/script, /mnt/paas, or /opt/cloud. Otherwise, the system or node installation will fail.

Check Item 1: Subnet Quota

Symptom

New nodes cannot be added to a CCE cluster, and a message is displayed indicating that the subnet quota is insufficient.

Cause Analysis

Example:

VPC CIDR block: 192.168.66.0/24

Subnet CIDR block: 192.168.66.0/24

In 192.168.66.0/24, all 251 private IP addresses have been used.

Solution

  1. Expand the VPC.

    Log in to the console and choose Virtual Private Cloud from the service list. Click Edit CIDR Block in the Operation column of the target VPC.

    See the following figure:

  2. Change the subnet mask to 16 and click OK.

  3. Click the VPC name. On the Summary tab page, click the number next to Subnets on the right and click Create Subnet to create a subnet.

  4. Return to the page for adding a node on the CCE console, and select the newly created subnet.

    1. Adding subnets to the VPC does not affect the use of the existing 192.168.66.0/24 CIDR block.

      You can select a new subnet when creating a CCE node. The new subnet has a maximum of 251 private IP addresses. If the number of private IP addresses cannot meet service requirements, you can add more subnets.

    2. Subnets in the same VPC can communicate with each other.

Check Item 2: EIP Quota

Symptom

When a node is added, EIP is set to Automatically assign. The node cannot be created, and a message indicating that EIPs are insufficient is displayed.

Solution

Two methods are available to solve the problem.

  • Method 1: Unbind the VMs bound with EIPs and add a node again.
    1. Log in to the management console.
    2. Choose Computing > Elastic Cloud Server.
    3. In the ECS list, locate the target ECS and click its name.
    4. On the ECS details page, click the EIPs tab. In the EIP list, click Unbind at the row of the target ECS and click Yes.
      Figure 1 Unbinding an EIP
    5. Return to the page for adding a node on the CCE console, select Use existing for EIP, and add the node again.
  • Method 2: Increase the EIP quota.

Check Item 3: Security Group

Symptom

A node cannot be added to a CCE cluster.

Solution

You can click the cluster name to view the cluster details. In the Networking Configuration area, click the icon next to Default security group of the node to check whether the default security group is deleted and whether the security group rules comply with Configuring Cluster Security Group Rules.

If your account has multiple clusters and you need to manage network security policies of nodes in a unified manner, you can specify custom security groups. For details, see Changing the Default Security Group of a Node.

Node Creation FAQs

more