Got it

Locating the Problem That Container Instances Are Being Created

Latest reply: Dec 28, 2020 07:09:07 294 1 1 0 0

Log in to the CSP first node, switch to user root, and run the following command:

1. Certificate decryption method

Note: If the /opt/csp/package/scripts/cert/aaa.key file already exists, skip step 1.

Decryption method:

openssl rsa -in /opt/csp/package/scripts/cert/tls.key.pwd -passin pass:CSPEdge@1234 -out /opt/csp/package/scripts/cert/aaa.key

The following figure shows an example.

1


2. Import environment variables.

cert="-k --key /opt/csp/package/scripts/cert/aaa.key --cert /opt/csp/package/scripts/cert/tls.crt --cacert /opt/csp/package/scripts/cert/ca.crt"



3. Obtain the IP address of the ICTS_CCN_MASTER container.

grep ICTS_MASTER /opt/csp_service_ip.ini

The following figure shows an example.


2



4. Obtain the IP address of the active ChinaSoft International node.

curl -k -X GET $cert https://{IP}:20031/hasen/cad/v1/leader obtained in step 3

The following figure shows an example.

3



5. Query container instance information.

curl -k -X GET $cert https://{IP}:20031/hasen/cad/v1/deployer/instances | python -m json.tool > /home/cspexpert/instance.log obtained in step 4

The following figure shows an example.

4



6. View failed components.

Run vim /home/cspexpert/instance.log to search for the name of the container that is being created on the CSP portal container page and check the failedComponent value.

5



7. View the logs of the component that fails to be installed and locate the error cause.

Note: The node where logs of each component are located is the same as the node where the container is located. You can query the node where the container is located in the Host IP Address column on the container page of the CSP portal.

ChinaSoft International logs:
hasen, RM:

/opt/csp/icts_ccn/logs/master/hares/*
/opt/csp/icts_ccn/logs/agent/hares/*

Canal:

/opt/csp/icts_ccn/logs/master/Canal/*
/opt/csp/icts_ccn/logs/agent/Canal/*

elara:

/usr/local/icts_ccn/elara/logs/elaractl.log

docker:

/var/log/messages

cool
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.