Updated on 2023-12-15 GMT+08:00

Fault Locating

Scenario

If a resource or an action encounters an exception, you can query operation records of the resource or action in a specified time period and view the requests and responses to facilitate fault locating.

Prerequisites

You have enabled CTS and trackers are running properly. For details about how to enable CTS, see Overview.

Procedure (for New Console)

The following shows how to locate an ECS fault which occurred in a morning.

  1. Log in to the management console as a CTS administrator.
  2. Click in the upper left corner to select the desired region and project.
  3. Click in the upper left corner and choose Management & Governance > Cloud Trace Service. The CTS console is displayed.
  4. Choose Trace List in the left navigation pane.
  5. Set the time range to 06:00 to 12:00 of a certain day and set the filters as follows:

    Select ECS for Trace Source and ecs for Resource Type, and enter {ID of the faulty VM} for Resource ID. You can also directly enter {ID of the faulty VM} to view the filtering result.

  6. Check the returned traces, especially the request type and response of each trace. Pay attention to traces whose status is warning or incident, and traces whose response indicates a failure.

The following shows how to locate a fault after an ECS server failed to be created.

  1. Log in to the management console as a CTS administrator.
  2. Click in the upper left corner to select the desired region and project.
  3. Click in the upper left corner and choose Management & Governance > Cloud Trace Service.
  4. Choose Trace List in the left navigation pane.
  5. Set filters as follows:

    Select ECS for Trace Source, ecs for Resource Type, and warning for Trace Status. For failed ECS creation operations, view the trace named createServer in the filtering result.

  6. Check the trace details and locate the fault based on the error code or error message.

Procedure (for Old Console)

The following shows how to locate an ECS fault which occurred in a morning.

  1. Log in to the management console as a CTS administrator.
  2. Click in the upper left corner to select the desired region and project.
  3. Click in the upper left corner and choose Management & Governance > Cloud Trace Service. The CTS console is displayed.
  4. Choose Trace List in the left navigation pane.
  5. Set filters in sequence and click Query.

    Select Management for Trace Type, ECS for Trace Source, ecs for Resource Type, Resource ID for Search By, and enter the ID of the faulty virtual machine (VM). In the upper right corner, select a time range from 06:00:00 to 12:00:00 on the day when the fault occurred. Then, click Query to view the result.

  6. Check the returned traces, especially the request type and response of each trace. Pay attention to traces whose status is warning or incident, and traces whose response indicates a failure.
The following shows how to locate a fault after an ECS server failed to be created.
  1. Log in to the management console as a CTS administrator.
  2. Click in the upper left corner to select the desired region and project.
  3. Click in the upper left corner and choose Management & Governance > Cloud Trace Service. The CTS console is displayed.
  4. Choose Trace List in the left navigation pane.
  5. Select Management for Trace Type, ECS for Trace Source, ecs for Resource Type, and Warning for Trace Status. In the returned traces, locate the trace named createServer.
  6. Check the trace details and locate the fault based on the error code or error message.