Logging In to the ECS Using CloudShell to Check Migration Management Node Logs
If a migration task is abnormal, you can log in to the ECS of the migration cluster to check the run logs of the migration management node. In this way, you can analyze the cause of the failure according to the error or warning information. This section describes how to log in to an ECS using CloudShell. Obtain the permission to open ports before preceding.
Prerequisites
You have created a cluster.
You have obtained the key pair bound to the cluster. For details, see Binding a Key Pair to an ECS.
Procedure
- Sign in to the MgC console. In the navigation pane, under Project, select your application migration project from the drop-down list.
- In the navigation pane on the left, choose Other > Migration Clusters.
- In the cluster list, locate a migration cluster and click Manage in the Operation column.
- Obtains the instance ID.

- Click
on the left. In the service list, choose Compute > Elastic Cloud Server. - Click the ECS mentioned in 4 to check its details.
- Choose Security Groups > Manage Rule.
- Click Fast-Add Rule. On the displayed page, select the ports to be opened, such as port 22, port 80, and port 443. For details, see Adding a Security Group Rule.
- Save the configurations, go back to the ECS console, and click Remote Login in the upper-right corner.

- In the displayed Logging In to a Linux ECS dialog box, click CloudShell-based Login (Default Port: 22).
- Go to the page for remotely connecting to the server. Set Certificate-based for Auth-Type and upload the key pair.

- Click Connect.
If the message Welcome to Huawei Cloud Service is displayed, you have logged in to the ECS.
Figure 1 Operation result
- Perform the following operations to check the logs.
- Node Types and Deployment - Management Nodes Run the following commands to go to the log folder and check run logs.
cd /opt/cloud/oms-task-management/logs/oms-task-management-service
cat run.log
- Nodes can be migrated to a custom node pool. Run the following commands to go to the log folder and check run logs.
cd /opt/cloud/agent/logs/execution-service
cat run.log
- Node Types and Deployment - Management Nodes Run the following commands to go to the log folder and check run logs.
Helpful Links
To check the file directory, see Connecting to the File Directory Through SFTP.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot