This document explains how to report a faulty reservation
[sub-block](https://docs.cloud.google.com/ai-hypercomputer/docs/terminology.md.txt#sub-block) for A4X Max and A4X
compute instances that are part of a Slurm cluster or other compute
instance-based clusters. If you notice an unresolvable hardware issue across
multiple hosts in a sub-block, or the entire sub-block, you can report the
sub-block as faulty so that Compute Engine can start repairs.

Reporting a faulty sub-block is supported only for A4X Max and A4X reservations.
To report faulty hosts in other scenarios, see the following:

- To report a single faulty host machine for A5X, A4X Max, A4X, A4, A3 Ultra, A3 Mega, and A3 High (8 GPUs) instances, see [Report faulty host](https://docs.cloud.google.com/ai-hypercomputer/docs/manage/report-faulty-host.md.txt).
- To report a single faulty host in a Google Kubernetes Engine (GKE) cluster, see [Report faulty hosts through GKE](https://docs.cloud.google.com/ai-hypercomputer/docs/manage/manage-gke-clusters.md.txt#report-faulty-hosts-how-to).
- To resolve hardware issues on [General GPU](https://docs.cloud.google.com/ai-hypercomputer/docs/evaluate-general-gpus.md.txt) instances, which don't support reporting faulty hosts or sub-blocks, use standard [GKE node auto-repair](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt) or contact [Cloud Customer Care](https://docs.cloud.google.com/support/docs/overview.md.txt).

> [!CAUTION]
> **Caution** : Reporting a faulty sub-block is a disruptive action that stops all running VMs in the sub-block. Before you report a sub-block, thoroughly [investigate your environment](https://docs.cloud.google.com/ai-hypercomputer/docs/manage/report-faulty-sub-block.md.txt#troubleshoot-before-reporting) to identify the root cause of the issue. Only report the sub-block as faulty if you have no alternatives to resolve your issue.

## Limitations

When you report a faulty sub-block, the following limitations apply:

- You can only report a faulty sub-block if the reservation meets all of the
  following conditions:

  - The reservation uses an A4X Max or A4X machine type. Running the API on
    other GPU machine series, even if they are part of an
    AI Hypercomputer reservation, might return an error or fail to
    report the host machines as faulty.

  - You invoke the operation on a reservation sub-block by specifying both
    the block name and the sub-block name. If you invoke the operation on
    any other topology level of the reservation, then the operation fails.

- Reporting a faulty sub-block isn't supported through
  GKE APIs or node labels, unlike
  [reporting a single faulty host through GKE](https://docs.cloud.google.com/ai-hypercomputer/docs/manage/manage-gke-clusters.md.txt#report-faulty-hosts-how-to).

- Reporting a sub-block as faulty immediately disrupts all running compute
  instances in the sub-block. If the instances are part of a Slurm cluster,
  drain the affected Slurm nodes before you report the sub-block as faulty.

- If you specify `NVLINK_SWITCH` as the failure component, then
  Compute Engine processes only the first fault reason that you
  specify in the request.

- The `SILENT_DATA_CORRUPTION` fault behavior value isn't supported when you
  report a faulty sub-block. To report silent data corruption issues for a
  sub-block, specify `GPU_ERROR` as the fault behavior instead.

- The `gcloud compute reservations sub-blocks report-subblock-as-faulty`
  command doesn't support the `--async` flag; passing `--async` returns an
  error. When you run the command without the `--async` flag, the command
  takes approximately 8 to 10 minutes to complete.

- Unlike single-host fault reporting, VM audit logs don't include an
  `upcomingMaintenance` notification before Compute Engine terminates
  the running compute instances in the sub-block. To verify which maintenance
  operation disrupted a running instance, check for terminated instances and
  [view the details of the sub-block](https://docs.cloud.google.com/ai-hypercomputer/docs/view-reserved-capacity.md.txt#view-capacity-topology).

## Before you begin

Select the tab for how you plan to use the samples on this page:

### gcloud

In the Google Cloud console, activate Cloud Shell.

[Activate Cloud Shell](https://console.cloud.google.com/?cloudshell=true)


At the bottom of the Google Cloud console, a
[Cloud Shell](https://docs.cloud.google.com/shell/docs/how-cloud-shell-works.md.txt)
session starts and displays a command-line prompt. Cloud Shell is a shell environment
with the Google Cloud CLI
already installed and with values already set for
your current project. It can take a few seconds for the session to initialize.

### REST


To use the REST API samples on this page in a local development environment, you use the
credentials you provide to the gcloud CLI.

1. [Install](https://docs.cloud.google.com/sdk/docs/install) the Google Cloud CLI.
2. If you're using an external identity provider (IdP), you must first [sign in to the gcloud CLI with your federated identity](https://docs.cloud.google.com/iam/docs/workforce-log-in-gcloud.md.txt).


For more information, see
[Authenticate for using REST](https://docs.cloud.google.com/docs/authentication/rest.md.txt)
in the Google Cloud authentication documentation.

### Required roles


To get the permissions that
you need to report a faulty sub-block,

ask your administrator to grant you the
following IAM roles:

- [Compute Admin](https://docs.cloud.google.com/iam/docs/roles-permissions/compute.md.txt#compute.admin) (`roles/compute.admin`) on the project
- To view the state of a faulty sub-block report operation by using Cloud Logging: [Logs Viewer](https://docs.cloud.google.com/iam/docs/roles-permissions/logging.md.txt#logging.viewer) (`roles/logging.viewer`) on the project


For more information about granting roles, see [Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access.md.txt).


These predefined roles contain

the permissions required to report a faulty sub-block. To see the exact permissions that are
required, expand the **Required permissions** section:


#### Required permissions

The following permissions are required to report a faulty sub-block:

- To create a faulty sub-block report: `compute.reservationSubBlocks.reportFaulty` on the project
- To view the details of a sub-block: `compute.reservationSubBlocks.get` on the project
- To view a list of operations by using Logging: `logging.operations.list` on the project
- To view the details of an operation by using Logging: `logging.operations.get` on the project
- To view a list of operations in Compute Engine: `compute.zoneOperations.list` on the project
- To view the details of an operation in Compute Engine: `compute.zoneOperations.get` on the project


You might also be able to get
these permissions
with [custom roles](https://docs.cloud.google.com/iam/docs/creating-custom-roles.md.txt) or
other [predefined roles](https://docs.cloud.google.com/iam/docs/roles-overview.md.txt#predefined).

## Understand the faulty sub-block report process

When you report a sub-block as faulty, Compute Engine marks the
sub-block and its hosts as faulty, stops any running compute instances, and
starts repairs, as described in the following steps:

1. **Marks the sub-block and hosts as faulty** : Compute Engine starts a
   report faulty sub-block operation, which creates a sequence of
   sub-operations to mark the sub-block and its underlying host machines as
   faulty. While these sub-operations run, the report faulty sub-block
   operation remains in the `RUNNING` state and takes approximately 8 to 10
   minutes to complete. To review the operation state, see
   [Review report faulty sub-block operations](https://docs.cloud.google.com/ai-hypercomputer/docs/manage/report-faulty-sub-block.md.txt#review-operations) in this
   document.

2. **Stops running instances and starts repairs** : Within approximately 10 to
   15 minutes after you start the operation, Compute Engine stops any
   compute instances running on the hosts in the sub-block. Depending on the
   [automatic restart setting](https://docs.cloud.google.com/compute/docs/instances/setting-vm-host-options.md.txt)
   configured for each instance:

   - If automatic restart is enabled, then the instance transitions to the `REPAIRING` state.
   - If automatic restart is disabled, then the instance transitions to the `TERMINATED` state.
3. **Updates reservation health counters** : When you report a sub-block as
   faulty, Compute Engine updates the `healthInfo` fields for both the
   sub-block and its parent block. You can view these fields by using the
   [`gcloud compute reservations sub-blocks describe` command](https://docs.cloud.google.com/sdk/gcloud/reference/compute/reservations/sub-blocks/describe)
   or by checking the reservation audit logs:

   - Sub-block `healthInfo` fields:

     - `healthStatus`: changes to `DEGRADED` because all hosts in the sub-block are sent for repair.
     - `degradedHostCount`: changes to the total number of hosts in the sub-block because all hosts in the sub-block are immediately sent for repair.
     - `healthyHostCount`: changes to `0`.
   - Block `healthInfo` fields:

     - `healthStatus`: changes to `DEGRADED`. Compute Engine marks the health status of a block as `DEGRADED` if at least one sub-block in the block is degraded.
     - `degradedSubBlockCount`: increments by `1`.
     - `healthySubBlockCount`: decrements by `1`.
4. **Completes repairs and restarts instances**: Repairing a faulty sub-block
   typically takes 12 hours to 14 days. After the repair operation completes,
   Compute Engine does one of the following if you haven't deleted the
   compute instances:

   - If automatic restart is enabled, then Compute Engine automatically restarts the instances and they return to the `RUNNING` state.
   - If automatic restart is disabled, then the instances remain in the `TERMINATED` state until you manually [restart the instances](https://docs.cloud.google.com/compute/docs/instances/stop-start-instance.md.txt#restart-vm).

## Troubleshoot issues before you report a faulty sub-block

Before you report a faulty sub-block, troubleshoot the issue to confirm if it's
a hardware problem across multiple hosts, rather than an
issue with your workload or cluster configuration. This approach helps prevent
unnecessary downtime for your workloads.

### Check for GPU memory or Xid errors

If you observe GPU memory or Xid errors on one or more compute instances, verify
whether manual recovery measures---such as resetting the GPUs or rebooting the
affected instances---can resolve the issue before reporting a host or sub-block as
faulty. For more information, see
[Review Xid messages](https://docs.cloud.google.com/compute/docs/troubleshooting/troubleshooting-gpus.md.txt#review-xid-messages).

### Check for GPU performance issues and stragglers

If you notice slow performance, use the
[straggler detection service](https://docs.cloud.google.com/ai-hypercomputer/docs/troubleshooting/troubleshoot-slow-performance.md.txt)
to identify VMs that might be performing slower than others in the cluster.

### Monitor GPU temperatures and thermal violations

If you see thermal violation warnings in your logs or reported by NVIDIA Data
Center GPU Manager (DCGM), review the following guidance:

- **Warnings versus critical errors** : DCGM diagnostics might report thermal violations as warnings with a severity of `monitor`. This severity indicates that the GPUs can still run workloads, but you should monitor them. For instructions on running DCGM diagnostics, see [Troubleshoot GPU VMs by using NVIDIA DCGM](https://docs.cloud.google.com/compute/docs/troubleshooting/troubleshooting-gpus.md.txt#troubleshoot-gpu-vms-dcgm).
- **False positives**: NVIDIA is investigating an increase in the frequency of thermal violation reports on GPUs that don't show signs of actual thermal issues.
- **Recommendation** : Before reporting a host or sub-block as faulty due to thermal warnings, check whether the actual GPU temperatures exceed safe thresholds and whether the warnings affect the performance of your workload. To check GPU temperatures and performance for supported machine series, see [GPU performance metrics](https://docs.cloud.google.com/ai-hypercomputer/docs/monitor.md.txt#gpu-performance-metrics). If temperatures remain stable and performance is normal, monitor the GPU instead of reporting the host or sub-block as faulty.

For more information about GPU troubleshooting, see
[Troubleshoot GPU VMs](https://docs.cloud.google.com/compute/docs/troubleshooting/troubleshooting-gpus.md.txt) in
the Compute Engine documentation.

## Report a faulty sub-block

To report a faulty sub-block, complete the following steps:

1. **Identify the reservation, block, and sub-block names** . For instructions
   on how to find the block and sub-block where your compute instances run, see
   [View topology of a compute instance](https://docs.cloud.google.com/ai-hypercomputer/docs/manage/instance-topology.md.txt#view-topology)
   and
   [View the topology of a reservation](https://docs.cloud.google.com/ai-hypercomputer/docs/view-reserved-capacity.md.txt#view-capacity-topology).

2. Optional: **Back up Local SSD data**. When the compute instances in the
   sub-block stop, Compute Engine automatically discards the data on
   any Local SSD disks that are attached to those instances. You can't recover
   Local SSD data after Compute Engine discards it.

   For instructions on how to preserve Local SSD data, see
   [Local SSD data backup](https://docs.cloud.google.com/compute/docs/disks/local-ssd.md.txt#lssd_backup).
3. **Report the faulty sub-block**. To report a faulty sub-block, select one of
   the following options:

   > [!IMPORTANT]
   > **Important:** After you report a sub-block as faulty, don't send additional requests for the same sub-block until the [operation completes](https://docs.cloud.google.com/ai-hypercomputer/docs/manage/report-faulty-sub-block.md.txt#review-operations). Compute Engine rejects additional requests while a report faulty operation is in progress for the sub-block.

   ### gcloud

   To report a faulty sub-block, run the
   [`gcloud compute reservations sub-blocks report-subblock-as-faulty` command](https://docs.cloud.google.com/sdk/gcloud/reference/compute/reservations/sub-blocks/report-subblock-as-faulty.md.txt)
   without the `--async` flag:

       gcloud compute reservations sub-blocks report-subblock-as-faulty RESERVATION_NAME \
           --block-name=BLOCK_NAME \
           --sub-block-name=SUB_BLOCK_NAME \
           --disruption-schedule=IMMEDIATE \
           --failure-component=FAILURE_COMPONENT \
           --fault-reasons=behavior=FAULT_REASON,description="DESCRIPTION" \
           --zone=ZONE

   The Google Cloud CLI prompts you to confirm the operation because this
   command sends the entire sub-block and all of its host machines for
   repair. To continue, enter `y`.

   Replace the following:
   - `RESERVATION_NAME`: the name of the reservation
     that contains the sub-block.

   - `BLOCK_NAME`: the name of the block within the
     reservation.

   - `SUB_BLOCK_NAME`: the name of the sub-block to
     report as faulty.

   - `FAILURE_COMPONENT`: the component in the sub-block
     that experienced the fault. Specify one of the following values:

     - **`MULTIPLE_FAULTY_HOSTS`**: multiple host machines in the sub-block experienced the fault.
     - **`NVLINK_SWITCH`** : the [NVLink](https://docs.cloud.google.com/ai-hypercomputer/docs/terminology.md.txt#nvlink) switch in the sub-block experienced the fault. If you specify `NVLINK_SWITCH`, then Compute Engine processes only the first fault reason in `--fault-reasons`.
   - `FAULT_REASON`: the fault behavior that you
     observed in the sub-block. You can specify multiple fault reasons in
     a single command by repeating the `--fault-reasons` flag for each
     issue. Specify one of the following values:

     - **`GPU_ERROR`** : the sub-block experienced an unrecoverable GPU error, such as an [XID error](https://docs.cloud.google.com/compute/docs/troubleshooting/troubleshooting-gpus.md.txt#review-xid-messages), or silent data corruption.
     - **`PERFORMANCE`**: the sub-block experienced performance issues.
     - **`SWITCH_FAILURE`**: the sub-block experienced a switch failure.
     - **`FAULT_BEHAVIOR_UNSPECIFIED`**: the fault behavior in the sub-block is unknown.
     - **`NVSWITCH_FAULT_SWITCH_ERROR`** ([Preview](https://docs.cloud.google.com/products#product-launch-stages)): use with `--failure-component=NVLINK_SWITCH` as the default for general or intermittent NVSwitch issues.
     - **`NVSWITCH_FAULT_CONTROLLER_ERROR`** ([Preview](https://docs.cloud.google.com/products#product-launch-stages)): use with `--failure-component=NVLINK_SWITCH` when telemetry or monitoring specifically indicates an NMX-C controller error.
     - **`NVSWITCH_FAULT_DEGRADED_BANDWIDTH`** ([Preview](https://docs.cloud.google.com/products#product-launch-stages)): use with `--failure-component=NVLINK_SWITCH` when you observe performance degradation, such as dropped bandwidth or degraded link health.
   - `DESCRIPTION`: optional, but recommended. A
     description of the issue that you observed, such as XID numbers,
     details of failing tests, networking-related failure information, or
     telemetry findings. Providing detailed failure information helps
     Google Cloud troubleshoot issues faster.

   - `ZONE`: the zone where the reservation exists.

   ### REST

   To report a faulty sub-block, make a `POST` request to the
   [`reservationSubBlocks.reportFaulty` method](https://docs.cloud.google.com/compute/docs/reference/rest/v1/reservationSubBlocks/reportFaulty.md.txt).

   When you report a faulty sub-block with `failureComponent` set to
   `MULTIPLE_FAULTY_HOSTS`, you can specify one or more fault reasons in
   the `faultReasons` array. If `failureComponent` is `NVLINK_SWITCH`, Compute Engine processes only the first fault reason:

       POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/reservations/RESERVATION_NAME/reservationBlocks/BLOCK_NAME/reservationSubBlocks/SUB_BLOCK_NAME/reportFaulty

       {
         "disruptionSchedule": "IMMEDIATE",
         "failureComponent": "FAILURE_COMPONENT",
         "faultReasons": [
           {
             "behavior": "FAULT_REASON_1",
             "description": "DESCRIPTION_1"
           },
           {
             "behavior": "FAULT_REASON_2",
             "description": "DESCRIPTION_2"
           }
         ]
       }

   Replace the following:
   - `PROJECT_ID`: the ID of the project where the
     reservation exists.

   - `ZONE`: the zone where the reservation exists.

   - `RESERVATION_NAME`: the name of the reservation
     that contains the sub-block.

   - `BLOCK_NAME`: the name of the block within the
     reservation.

   - `SUB_BLOCK_NAME`: the name of the sub-block to
     report as faulty.

   - `FAILURE_COMPONENT`: the component in the sub-block
     that experienced the fault:

     - **`MULTIPLE_FAULTY_HOSTS`**: multiple host machines in the sub-block experienced the fault.
     - **`NVLINK_SWITCH`** : the [NVLink](https://docs.cloud.google.com/ai-hypercomputer/docs/terminology.md.txt#nvlink) switch in the sub-block experienced the fault. If you specify `NVLINK_SWITCH`, then Compute Engine processes only the first entry in `faultReasons`.
   - `FAULT_REASON_1` and
     `FAULT_REASON_2`: each fault behavior that you
     observed in the sub-block. Specify one of the following values:

     - **`GPU_ERROR`** : the sub-block experienced an unrecoverable GPU error, such as an [XID error](https://docs.cloud.google.com/compute/docs/troubleshooting/troubleshooting-gpus.md.txt#review-xid-messages), or silent data corruption.
     - **`PERFORMANCE`**: the sub-block experienced performance issues.
     - **`SWITCH_FAILURE`**: the sub-block experienced a switch failure.
     - **`FAULT_BEHAVIOR_UNSPECIFIED`**: the fault behavior in the sub-block is unknown.
     - **`NVSWITCH_FAULT_SWITCH_ERROR`** ([Preview](https://docs.cloud.google.com/products#product-launch-stages)): use with `NVLINK_SWITCH` as the default for general or intermittent NVSwitch issues.
     - **`NVSWITCH_FAULT_CONTROLLER_ERROR`** ([Preview](https://docs.cloud.google.com/products#product-launch-stages)): use with `NVLINK_SWITCH` when telemetry or monitoring specifically indicates an NMX-C controller error.
     - **`NVSWITCH_FAULT_DEGRADED_BANDWIDTH`** ([Preview](https://docs.cloud.google.com/products#product-launch-stages)): use with `NVLINK_SWITCH` when you observe performance degradation, such as dropped bandwidth or degraded link health.
   - `DESCRIPTION_1` and
     `DESCRIPTION_2`: optional, but recommended. A
     description for each fault reason, such as XID numbers, details of
     failing tests, networking-related failure information, or telemetry
     findings. Providing detailed failure information helps
     Google Cloud troubleshoot issues faster.

## Review report faulty sub-block operations

To track the status of report faulty sub-block operations in your project,
select one of the following options:

### Console (Operations)

1. In the Google Cloud console, go to the **Operations** page.

   [Go to Operations](https://console.cloud.google.com/compute/operations)
2. In the table that appears, locate the operation with the operation type
   `ReservationSubBlocks.reportFaulty` for your sub-block.

3. In the **Status** column, check the status of the operation. When the
   operation completes, the value is **Done**.

4. Optional: To verify whether the compute instances in the sub-block have
   entered the `REPAIRING` state or restarted,
   [view the details of the instances](https://docs.cloud.google.com/compute/docs/instances/view-vm-details.md.txt)
   on the **VM instances** page in the Google Cloud console.

### Console (Audit logs)

1. In the Google Cloud console, go to the **Logs Explorer** page.

   [Go to Logs Explorer](https://console.cloud.google.com/logs/query)
2. Verify that the **Show query** toggle is set to the on position.

3. In the query editor, enter the following query:

       resource.type="api" AND protoPayload.methodName=~"compute.reservationSubBlocks.reportFaulty"

4. Click **Run query** . The **Query results** pane displays the matching
   audit log entries.

### gcloud

1. To view the status of report faulty sub-block operations in your
   project, use the
   [`gcloud compute operations list` command](https://docs.cloud.google.com/sdk/gcloud/reference/compute/operations/list)
   with the `--filter` flag set to
   `operationType:ReservationSubBlocks.reportFaulty`:

       gcloud compute operations list --filter="operationType:ReservationSubBlocks.reportFaulty"

2. To view the details of a specific operation, use the
   [`gcloud compute operations describe` command](https://docs.cloud.google.com/sdk/gcloud/reference/compute/operations/describe.md.txt):

       gcloud compute operations describe OPERATION_NAME \
           --zone="ZONE"

   Replace the following:
   - `OPERATION_NAME`: the name of the operation.

   - `ZONE`: the zone where the operation exists.

3. Optional: To query Cloud Audit Logs for report faulty sub-block
   operations by using the gcloud CLI, run the following
   [`gcloud logging read` command](https://docs.cloud.google.com/sdk/gcloud/reference/logging/read.md.txt):

       gcloud logging read 'resource.type=api AND logName=projects/PROJECT_ID/logs/cloudaudit.googleapis.com%2Fsystem_event AND protoPayload.methodName=~"compute.reservationSubBlocks.reportFaulty"' \
           --format=json

   Replace `PROJECT_ID` with your project ID.

### REST

To view the details and status of a report faulty sub-block operation in
your project, make a `GET` request to the
[`zoneOperations.get` method](https://docs.cloud.google.com/compute/docs/reference/rest/v1/zoneOperations/get.md.txt):

    GET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/operations/OPERATION_NAME

Replace the following:

- `PROJECT_ID`: the ID of your project.

- `ZONE`: the zone where the operation exists.

- `OPERATION_NAME`: the name or ID of the operation.

## What's next

- If you encounter errors when reporting a faulty sub-block, see [Troubleshoot report faulty host and sub-block API errors](https://docs.cloud.google.com/ai-hypercomputer/docs/troubleshooting/troubleshoot-faulty-host-api.md.txt).
- To report only a single faulty host machine, see [Report faulty host](https://docs.cloud.google.com/ai-hypercomputer/docs/manage/report-faulty-host.md.txt).