Troubleshoot high availability controllers

This document explains how to resolve errors that you might encounter when you create, modify, or delete a high availability controller in Compute Engine. To learn more about high availability controllers, see About high availability controllers.

Resolve high availability controller creation errors

If an error occurs when you attempt to create a high availability controller, then review the following sections to find the cause and resolution.

Backend service already contains backends

This error occurs when you specify a custom backend service that already has backends attached.

Error message:

To be compatible with 'HA_CONTROLLER' resource
'HA_CONTROLLER_NAME', the provided Backend Service
'BACKEND_SERVICE_NAME' must have no backends configured.

Resolution: When you create a high availability controller with a custom backend service, the controller creates and attaches the zonal network endpoint groups (NEGs) to the backend service. To resolve this error, remove all existing backends from BACKEND_SERVICE_NAME or create a new empty regional backend service, and then create the high availability controller again.

Backend service doesn't use the INTERNAL load balancing scheme

This error occurs when you specify a custom backend service whose load balancing scheme isn't INTERNAL.

Error message:

The provided Backend Service 'BACKEND_SERVICE_NAME' must have
the 'INTERNAL' load balancing scheme to be supported by 'HA_CONTROLLER' resource
'HA_CONTROLLER_NAME'.

Resolution: High availability controllers support only internal passthrough Network Load Balancers with loadBalancingScheme set to INTERNAL. To resolve this error, create a regional backend service with the INTERNAL load balancing scheme, and then specify that backend service when you create the high availability controller.

Backend service is missing haPolicy

This error occurs when you specify a custom backend service that doesn't have the haPolicy field configured.

Error message:

The provided Backend Service 'BACKEND_SERVICE_NAME' must
specify the field 'haPolicy' to be supported by 'HA_CONTROLLER'.

Resolution: A custom backend service used with a high availability controller must have the haPolicy field configured. To resolve this error, create a regional backend service with haPolicy configured, and then specify that backend service when you create the high availability controller.

Backend service isn't regional

This error occurs when you specify a global backend service instead of a regional backend service.

Error message:

The provided Backend Service 'BACKEND_SERVICE_NAME' must have
the 'REGION' scope to be compatible with 'HA_CONTROLLER' resource
'HA_CONTROLLER_NAME'.

Resolution: High availability controllers support only regional backend services located in the same region as the controller. To resolve this error, specify a regional backend service in the same region as your high availability controller.

Backend service network doesn't match the VM

This error occurs when you specify a custom backend service that belongs to a different Virtual Private Cloud (VPC) network than your VM's primary network interface (nic0).

Error message:

You must configure the network in the Backend Service
'BACKEND_SERVICE_NAME' to match the network of 'INSTANCE'
resource 'INSTANCE_NAME'. View the details of each resource to
determine its network, then try again.

Resolution: A custom backend service must use the same VPC network as the nic0 interface of your VM. To resolve this error, inspect the VPC network of your VM by viewing the VM's details, and then specify a regional backend service in that same VPC network.

Disk conversion requires both zone configurations

This error occurs when you attempt to convert zonal disks to regional disks while creating a high availability controller, but you specify only one zone configuration.

Error messages:

  • When you use the Google Cloud CLI with --migrate-disks-to-regional and a single --zone-configuration flag:

    If you migrate zonal disks to regional disks, then you must specify both
    zone configurations with a valid "zone" key.
    
  • When you use the Google Cloud console or REST API:

    Can't migrate zonal disks to regional disks when 'zoneConfigurations'
    specifies only one zone, because replica zones can't be inferred from a
    zonal disk. Instead, specify two zones in 'zoneConfigurations', or set
    'params.migrateDisksToRegional' to false if the instance's disks are already
    regional.
    

Resolution: When you convert zonal disks to regional disks, Compute Engine can't infer the secondary zone from a regional boot disk, so you must specify both the primary and secondary zones. To resolve this error, create the high availability controller again and specify both the primary zone and the secondary zone in the zone configurations. If your VM's disks are already regional, then you can omit disk conversion instead.

High availability controllers don't support Local SSD disks

This error occurs when you use the gcloud CLI with the --migrate-disks-to-regional flag to create a high availability controller for a VM that has Local SSD disks attached.

Error message:

Local SSD disks are not supported for HA controllers. To proceed, use an
instance that does not have Local SSD disks attached, or delete and recreate the
current instance without Local SSD disks.

Resolution: The VM that you want to use with a high availability controller has one or more Local SSD disks attached. High availability controllers don't support VMs with Local SSD disks because Compute Engine can't replicate Local SSD data across zones during a failover. To resolve this error, complete one of the following actions:

  • Specify a different VM that doesn't have Local SSD disks attached.

  • Delete the existing VM, recreate the VM with only regional Persistent Disk or Hyperdisk Balanced High Availability volumes, and then create the high availability controller.

High availability controllers require regional disks

This error occurs when you create a high availability controller for a virtual machine (VM) that has a zonal disk attached without zonal-to-regional disk conversion, or for a VM that has a Local SSD disk attached (except when you use the gcloud CLI with --migrate-disks-to-regional, which returns the Local SSD disks error).

Error message:

A disk attached to INSTANCE 'INSTANCE_NAME' is a zonal or local
disk, but HA_CONTROLLER resources require regional disks. Local disks aren't
supported. To automatically convert zonal disks to regional disks during
creation, specify two zones in 'zoneConfigurations' and set
'params.migrateDisksToRegional' to true or use the gcloud flag
'--migrate-disks-to-regional'.

Resolution: High availability controllers require regional Persistent Disk or Hyperdisk Balanced High Availability volumes so that Compute Engine can replicate data across both zones during a failover. To resolve this error, complete one of the following actions:

  • If your VM has zonal disks attached, then enable zonal-to-regional disk conversion when you create the high availability controller. Alternatively, replace the zonal disks with regional disks before you create the high availability controller.

  • If your VM has Local SSD disks attached, then specify a different VM that doesn't have Local SSD disks attached, or delete and recreate the VM with only regional Persistent Disk or Hyperdisk Balanced High Availability volumes.

IP address conflicts with the network stack type

This error occurs when you provide an IPv4 or IPv6 address that conflicts with the IP stack type configured on your high availability controller or VM network interface.

Error message:

The provided IP address 'IP_ADDRESS' is incompatible with the
specified stack type ('STACK_TYPE'). Ensure the provided IP
address matches the stack type or update the stack type configuration.

Resolution: You can't specify an IPv6 address when the stack type is IPV4_ONLY, and you can't specify an IPv4 address when the stack type is IPV6_ONLY. To resolve this error, specify an IP address that matches the configured stack type. If your VM has a dual-stack network interface, then you can alternatively update the stack type to IPV4_IPV6. Then, create the high availability controller again.

IP address of the network interface doesn't match the VM

This error occurs when you specify an internal IP address for a network interface in the primary zone that doesn't match the IP address that your VM uses.

Error message:

The IP address 'SPECIFIED_IP' specified for network interface
'NETWORK_INTERFACE' doesn't match the address
'ACTUAL_IP' assigned to instance
'INSTANCE_NAME'. Instead, specify the IP address assigned to
the instance, or omit the field to have it copied automatically.

Resolution: In the primary zone configuration of your high availability controller, any internal IPv4 or IPv6 address that you specify for a network interface must match the IP address that the interface uses on your VM. To resolve this error, specify ACTUAL_IP for the primary zone, or omit the network interface from both zone configurations so that the controller copies the primary zone's IP address from the VM and assigns an ephemeral IP address in the secondary zone.

Network interface doesn't exist on the VM

This error occurs when you specify a network interface name in the high availability controller zone configuration that doesn't exist on your VM.

Error message:

Instance 'INSTANCE_NAME' doesn't have a network interface named
'NETWORK_INTERFACE'. Instead, specify one of the following:
'AVAILABLE_INTERFACES'.

Resolution: Every network interface name that you configure in the high availability controller must exist on the primary VM. To resolve this error, replace NETWORK_INTERFACE with one of the interface names in AVAILABLE_INTERFACES, such as nic0, and then create the high availability controller again.

Network interface settings aren't consistent across zones

This error occurs when the network interfaces or IP address families that you specify in the primary and secondary zone configurations don't match.

Error message:

The configuration for network interface 'NETWORK_INTERFACE'
isn't consistent across zones 'ZONES'. Instead, specify the
same set of IP address families for this interface in every zone.

Resolution: Both zone configurations in your high availability controller must specify the same network interfaces and the same IP address families—IPv4, IPv6, or both—for each network interface. To resolve this error, update both zone configurations so that NETWORK_INTERFACE specifies the same IP address families in both zones, and then create the high availability controller again.

Network stack type doesn't match the VM

This error occurs when the IP stack type that you configure on the high availability controller doesn't match the stack type of your VM's primary network interface (nic0).

Error message:

You must configure the stack type in the 'HA_CONTROLLER' resource
'HA_CONTROLLER_NAME' to match the stack type of 'INSTANCE'
resource 'INSTANCE_NAME'. View the details of each resource to
determine its stack type, then try again.

Resolution: To resolve this error, complete the following steps:

  1. Check the IP stack type (IPV4_ONLY, IPV6_ONLY, or IPV4_IPV6) of your VM's nic0 interface by viewing the VM's details.

  2. Create the high availability controller again, and configure the stack type in your controller's automatic network configuration to match the stack type of nic0.

Request specifies both automatic network configuration and backend services

This error occurs when you specify both networkingAutoConfiguration and backendServices when creating a high availability controller.

Error message:

Invalid value for field 'backendServices': 'BACKEND_SERVICES'.
HA Controller cannot have both 'networkingAutoConfiguration' and
'backendServices' fields specified.

Resolution: When you create a high availability controller, you must choose either automatic network configuration (networkingAutoConfiguration) or custom backend services (backendServices), but not both. To resolve this error, remove one of these fields from your request, and then create the high availability controller again.

Request violates the constraints/compute.requireShieldedVm constraint

This error occurs when you attempt to create a high availability controller in a project that enforces the constraints/compute.requireShieldedVm organization policy constraint.

Error message:

Constraint constraints/compute.requireShieldedVm violated for project
projects/PROJECT_ID. The boot disk's 'source' field and
'initialize_params.source_image' field are both unspecified.

Resolution: When you create a high availability controller, Compute Engine prepares failover resources in the secondary zone without an attached boot disk until a failover occurs. Because the boot disk's source and initialize_params.source_image fields remain unspecified, the constraints/compute.requireShieldedVm constraint rejects the request. To resolve this error, ask your organization policy administrator to disable or exempt your project from the constraints/compute.requireShieldedVm constraint before you create the high availability controller. For instructions, see Override the organization policy for a project.

Reservation affinity doesn't match the VM

This error occurs when the reservation affinity that you specify for the primary zone in the high availability controller doesn't match the reservation affinity that your VM configures.

Error message:

You must configure the reservation affinity in the 'HA_CONTROLLER' resource
'HA_CONTROLLER_NAME' to match the reservation affinity of
'INSTANCE' resource 'INSTANCE_NAME'. View the details of each
resource to determine its reservation affinity then try again.

Resolution: In the primary zone configuration of your high availability controller, the reservation affinity must match the existing VM. To resolve this error, complete the following steps:

  1. Check the reservationAffinity field of your VM by viewing the VM's details.

  2. Create the high availability controller again. In the primary zone configuration, either omit the reservation affinity setting so that the high availability controller copies the setting from your VM, or specify the reservation affinity of your VM.

Invalid reservation affinity key

This error occurs when you create a high availability controller with the REST API and specify an invalid value for the reservationAffinity.key field, such as googleapis.com/reservation-name.

Error message:

Invalid value for field 'resource.reservationAffinity.key':
'KEY_VALUE'. Reservation affinity key is invalid.

Resolution: When you set reservationAffinity.consumeReservationType to SPECIFIC_RESERVATION, you must set the reservationAffinity.key field to compute.googleapis.com/reservation-name. To resolve this error, update the reservationAffinity.key field in your request body to compute.googleapis.com/reservation-name, and then create the high availability controller again. For instructions, see Create a high availability controller.

Sole-tenant node affinity doesn't match the VM

This error occurs when the node affinity labels for sole-tenant nodes that you specify for the primary zone in the high availability controller don't match the node affinity labels that your VM configures.

Error message:

You must configure the node affinity in the 'HA_CONTROLLER' resource
'HA_CONTROLLER_NAME' to match the node affinity of 'INSTANCE'
resource 'INSTANCE_NAME'. View the details of each resource to
determine its node affinity then try again.

Resolution: In the primary zone configuration of your high availability controller, the node affinity labels for sole-tenant nodes must match the existing VM. To resolve this error, complete the following steps:

  1. Check the scheduling.nodeAffinities field of your VM. To check this field, see View details about a VM.

  2. Create the high availability controller again. In the primary zone configuration, either omit the node affinity setting so that the high availability controller copies the setting from your VM, or specify the node affinity labels of your VM.

VM doesn't exist in configured zones

This error occurs when you attempt to create a high availability controller for a VM that doesn't exist in the specified zone or zones.

Error messages:

  • When you use the gcloud CLI with --migrate-disks-to-regional:

    Instance 'INSTANCE_NAME' not found in any of the zones
    'ZONE_1, ZONE_2'.
    
  • When you use the Google Cloud console, REST API, or gcloud CLI without --migrate-disks-to-regional:

    The resource 'projects/PROJECT_ID/zones/ZONE/instances/INSTANCE_NAME' was not found
    

Resolution: To resolve this error, complete the following steps:

  1. Verify the name and zone of your VM by viewing the VM's details.

  2. Create the high availability controller again, and verify that the VM name matches your VM and that one of the configured zones specifies the zone where your VM resides.

VM has a restricted run duration

This error occurs when you attempt to create a high availability controller for a VM that has a run duration limit configured in its scheduling settings.

Error message:

The instance 'INSTANCE_NAME' has 'FIELD_NAME'
specified, but the 'HA_CONTROLLER' resource only supports instances without a
restricted run duration. Remove the run duration limit from the instance's
scheduling settings, or specify a different instance.

Resolution: A VM that a high availability controller manages must not configure scheduling.maxRunDuration or scheduling.terminationTime. To resolve this error, remove the time limit from the VM's scheduling settings, or specify a different VM.

VM has automatic restart disabled

This error occurs when you attempt to create a high availability controller for a VM that has automatic restart disabled.

Error message:

The instance 'INSTANCE_NAME' has 'automaticRestart' disabled,
but the 'HA_CONTROLLER' resource only supports instances with 'automaticRestart'
enabled. Enable 'automaticRestart' on the instance, or specify a different
instance.

Resolution: A VM that a high availability controller manages must enable automatic restart, with scheduling.automaticRestart set to true. To resolve this error, enable automatic restart on the VM, or specify a different VM.

VM has deletion protection enabled

This error occurs when you attempt to create a high availability controller for a VM that has deletion protection enabled.

Error message:

The instance 'INSTANCE_NAME' has 'deletionProtection' enabled,
but the 'HA_CONTROLLER' resource only supports instances with
'deletionProtection' disabled. Disable 'deletionProtection' on the instance, or
specify a different instance.

Resolution: A VM that a high availability controller manages must have deletion protection disabled. To resolve this error, do one of the following:

VM isn't in the RUNNING state

This error occurs when you attempt to create a high availability controller for a VM that isn't in the RUNNING state.

Error message:

The 'INSTANCE' resource 'INSTANCE_NAME' has status
'STATUS'. But the 'HA_CONTROLLER' resource only supports
instances with the following status(es): 'RUNNING'.

Resolution: A VM must be in the RUNNING state when you create a high availability controller. To resolve this error, start or resume the VM, wait until the VM state changes to RUNNING, and then create the high availability controller.

VM name is already in use in both zones

This error occurs when you attempt to create a high availability controller and a VM with the same name already exists in the secondary zone, or your project uses global internal DNS.

Error message:

Instance name 'INSTANCE_NAME' already in use in both zones
'ZONE_1, ZONE_2'. To create an HA Controller
the instance name must be used in only one of the zones and zonal DNS must be
used.

Resolution: This error occurs for one of the following reasons:

  • A VM with the same name already exists in both the primary zone and the secondary zone. Because a failover starts your VM in the secondary zone with the same name, the VM name must be available in the secondary zone.

  • Your project or VM uses global internal DNS instead of zonal DNS.

To resolve this error, complete the following steps:

  1. Check whether a second VM with the same name exists in the secondary zone by viewing a list of VMs.

  2. If a duplicate VM exists in the secondary zone, then delete that duplicate VM or choose a different secondary zone when you create the high availability controller.

  3. Verify that your project and VM use zonal DNS. High availability controllers don't support global DNS. If your project uses global DNS, then migrate your projects to zonal DNS.

VM uses an unsupported provisioning model

This error occurs when you attempt to create a high availability controller for a VM that doesn't use the standard provisioning model.

Error message:

The 'INSTANCE' resource 'INSTANCE_NAME' has a
'PROVISIONING_MODEL' provisioning model. But the
'HA_CONTROLLER' resource only supports instances with the following provisioning
model(s): 'STANDARD'.

Resolution: High availability controllers don't support Flex-start VMs, Spot VMs, or VMs that you created by using the reservation-bound provisioning model. To resolve this error, specify a VM that uses the standard provisioning model, which is the default provisioning model.

Zone configuration specifies more than two zones

This error occurs when you attempt to create a high availability controller and specify more than two zones in zoneConfigurations.

Error message:

Invalid value for field 'zoneConfigurations': 'ZONES'.
zoneConfigurations should specify exactly 2 zones within a single region.

Resolution: A high availability controller operates across two zones in a single region. When your VM already uses regional disks, you can specify one zone and let Compute Engine infer the second zone from the regional boot disk, or specify both zones. When you convert zonal disks to regional disks, you must specify both zones. To resolve this error, create the high availability controller again and specify at most two zones in the same region.

Zone configuration specifies both reservation affinity and node affinity

This error occurs when you specify both reservation affinity and sole-tenant node affinity for the same zone in your high availability controller configuration.

Error message:

Invalid value for field 'zoneConfigurations': 'ZONE'. Both
reservationAffinity and nodeAffinity are specified for zone
'ZONE'. At most one of these parameters can be specified.

Resolution: Each zone configuration in a high availability controller can specify either reservation affinity or sole-tenant node affinity, but not both. To resolve this error, remove either the reservation affinity or the node affinity from the zone configuration, and then create the high availability controller again.

Zone configurations don't match replica zones of regional disks

This error occurs when you attempt to create a high availability controller for a VM with regional disks, and the zones that you specify don't match the replica zones of the attached disks.

Error message:

A regional disk attached to the 'INSTANCE' resource
'INSTANCE_NAME' is replicated in zones ZONE_1,
ZONE_2. You must configure the 'HA_CONTROLLER' resource
'HA_CONTROLLER_NAME' in the same zones.

Resolution: All regional disks attached to the VM must replicate data between the same two zones that the high availability controller uses. To resolve this error, complete the following steps:

  1. Inspect the replica zones of the regional disks attached to your VM by viewing the disk details.

  2. Create the high availability controller again, and specify the two replica zones, ZONE_1 and ZONE_2, in the zone configurations for your controller.

Resolve disk conversion errors

When you convert zonal disks to regional disks during high availability controller creation, the conversion workflow depends on the interface that you use:

  • Google Cloud console and REST API: Compute Engine stops the VM and clones each zonal disk on the server into a regional disk named r-DISK_NAME, where DISK_NAME is the name of the original zonal disk. Compute Engine then replaces the disk attachments and restarts the VM. If a step fails—for example, if a regional disk named r-DISK_NAME already exists in the region—then Compute Engine returns a specific API error.

  • gcloud CLI with --migrate-disks-to-regional: the gcloud CLI converts disks on the client by stopping the VM, creating temporary snapshots (t-DISK_NAME), creating regional disks (r-DISK_NAME) from those snapshots, replacing the disk attachments, deleting the temporary snapshots, and restarting the VM. If a step fails, then the gcloud CLI returns the following summary error along with a step-specific error message:

    Failed to migrate zonal disks to regional disks. Check the logs for more
    details.
    

Unless noted otherwise, the error messages in the following sections come from the gcloud CLI when you specify --migrate-disks-to-regional.

Can't attach regional disks during disk conversion

This error occurs when you use the gcloud CLI with --migrate-disks-to-regional and the command can't attach the new regional disks (r-DISK_NAME) to your VM.

Error message:

Could not attach the regional disks:
 - ERROR_MESSAGE

Resolution: When this step fails, the gcloud CLI rolls back the conversion: it detaches any regional disks, reattaches the original zonal disks, deletes the r-DISK_NAME regional disks, and restarts the VM. To resolve this error, review ERROR_MESSAGE, fix the underlying cause, and then rerun the gcloud CLI command.

Can't create regional disks during disk conversion

This error occurs when you use the gcloud CLI with --migrate-disks-to-regional and the command fails to create the regional disks (r-DISK_NAME) from temporary snapshots of your zonal disks.

Error message:

Could not create regional disks:
 - ERROR_MESSAGE

Resolution: This error occurs when a regional disk named r-DISK_NAME already exists in your project, or when your project lacks sufficient quota for regional disks or permissions. When this step fails, the gcloud CLI deletes the temporary snapshots and restarts your VM. To resolve this error, complete the following steps:

  1. Review ERROR_MESSAGE to identify whether a naming conflict, insufficient quota, or missing permissions caused the failure.

  2. If a regional disk named r-DISK_NAME already exists from a previous attempt, then verify that the disk isn't in use, and then delete the leftover disk.

  3. Rerun the gcloud CLI command to create the high availability controller.

Can't detach zonal disks during disk conversion

This error occurs when you use the gcloud CLI with --migrate-disks-to-regional and the command can't detach the original zonal disks from your VM after creating the regional disks.

Error message:

Failed to detach DISK_TYPE disks. Check the instance and disk
details, ensure the instance is stopped, and then retry the request. If the
issue persists, then contact your account team or Google support:
 - ERROR_MESSAGE

Resolution: To resolve this error, inspect your VM and disk details by viewing the VM's details, verify that your account has permission to detach disks (compute.instances.detachDisk), and then retry the command.

Can't retrieve disk metadata during disk conversion

This error occurs when you use the gcloud CLI with --migrate-disks-to-regional and the command can't read the metadata of the disks attached to your VM.

Error message:

Failed to get metadata for disks attached to the instance. Check the logs for
more details and retry the command:
 - HTTPError ERROR_CODE: ERROR_MESSAGE

Resolution: To resolve this error, review ERROR_MESSAGE to check for permission issues, verify that all disks attached to your VM exist and are accessible, and then rerun the gcloud CLI command.

Can't retrieve the VM during disk conversion

This error occurs when you use the gcloud CLI with --migrate-disks-to-regional and the command can't retrieve the details of your VM at the start of disk conversion.

Error message:

Could not retrieve the instance. Check that the name and zone of your instance
are correct, and then retry the request:
 - HTTPError ERROR_CODE: ERROR_MESSAGE

Resolution: To resolve this error, verify that the VM name and primary zone are correct and that your account has the required IAM roles. For details, see Required roles.

Can't stop the VM during disk conversion

This error occurs when you use the gcloud CLI with --migrate-disks-to-regional and the command can't stop your VM before converting its zonal disks into regional disks.

Error message:

Could not stop the instance. Check that the name and zone of your instance are
correct, and then retry your request. If this issue persists, then inspect the
instance and stop the instance manually:
 - ERROR_MESSAGE

Resolution: To resolve this error, review ERROR_MESSAGE to identify why the stop operation failed, verify that your account has permission to stop the VM, and then retry the command.

Confidential mode disks aren't supported for disk conversion

This error occurs when you attempt to convert a zonal Hyperdisk Balanced disk that has Confidential mode enabled (enableConfidentialCompute set to true) to a regional disk. When you use the gcloud CLI with --migrate-disks-to-regional, this check applies to boot disks. When you use the Google Cloud console or REST API, this error applies to any disk (boot or data) with Confidential mode enabled.

Error messages:

  • When you use the gcloud CLI with --migrate-disks-to-regional for a Confidential mode boot disk:

    Boot disks for Confidential VMs must remain zonal. Confidential VMs do not
    support regional boot disks.
    
  • When you use the Google Cloud console or REST API for any Confidential mode disk:

    Both source and target need to be CHD for CHD clone.
    

Resolution: Zonal-to-regional disk conversion doesn't support Hyperdisk Balanced disks that have Confidential mode enabled (enableConfidentialCompute). To resolve this error, replace the affected disk with a supported regional disk or a disk that doesn't enable Confidential mode before you create the high availability controller.

Disk conversion doesn't support disks encrypted with CSEKs

This error occurs when you use the gcloud CLI with --migrate-disks-to-regional to convert a zonal disk that uses a customer-supplied encryption key (CSEK) to a regional disk.

Error message:

You cannot migrate disks that use customer-supplied encryption keys (CSEK).

Resolution: Zonal-to-regional disk conversion supports Google-managed encryption keys and customer-managed encryption keys (CMEKs), but it doesn't support CSEKs. To resolve this error, complete the following steps:

  1. Create a new regional disk encrypted with CMEK or Google-managed encryption.

  2. Copy your data to the new disk.

  3. Attach the disk to your VM.

  4. Create the high availability controller.

Google Cloud doesn't support regional Extreme Persistent Disk volumes

This error occurs when you use the gcloud CLI with --migrate-disks-to-regional to convert a zonal Extreme Persistent Disk volume (pd-extreme) to a regional disk.

Error message:

Google Cloud does not support regional pd-extreme disks.

Resolution: Google Cloud doesn't offer a regional equivalent for Extreme Persistent Disk volumes. To resolve this error, migrate your data to a supported regional disk type, such as regional Persistent Disk or Hyperdisk Balanced High Availability volumes, before you create the high availability controller.

Machine series can't use Hyperdisk Balanced High Availability

This error occurs when you use the gcloud CLI with --migrate-disks-to-regional to convert a zonal Hyperdisk Balanced volume to a regional disk on a VM that supports only regional Persistent Disk volumes.

Error message:

This machine series cannot use Hyperdisk Balanced HA. It only supports Regional
PD.

Resolution: Your VM uses an E2, N1, N2, or N2D machine series and has a zonal Hyperdisk Balanced volume attached. These machine series support only regional Persistent Disk volumes with high availability controllers and don't support Hyperdisk Balanced High Availability. To resolve this error, do one of the following:

  • Change the machine type of your VM to a machine series that supports Hyperdisk Balanced High Availability, such as N4, C3, C3D, C4, or M3, and then create the high availability controller.

  • Replace the attached Hyperdisk Balanced volume on your E2, N1, N2, or N2D VM with a regional Persistent Disk volume, and then create the high availability controller without converting disks.

Machine series doesn't support regional storage

This error occurs when you use the gcloud CLI with --migrate-disks-to-regional to convert zonal disks to regional disks on a VM whose machine series isn't in the supported list for regional Persistent Disk or Hyperdisk Balanced High Availability volumes.

Error message:

Machine series 'MACHINE_SERIES' does not support regional storage (Regional PD, Hyperdisk HA).
Supported series for Regional PD: E2, N1, N2, N2D.
Supported series for Hyperdisk HA: A3, A4, C3, C3D, C4, C4A, G4, M3, N4, N4A, N4D, Z3.

Resolution: The gcloud CLI checks your VM's machine series against the supported series listed in the error message. To resolve this error, complete the following steps:

  1. Choose a supported machine series from the list in the error message (E2, N1, N2, or N2D for regional Persistent Disk; or A3, A4, C3, C3D, C4, C4A, G4, M3, N4, N4A, N4D, or Z3 for Hyperdisk Balanced High Availability).

  2. Change the machine type of your VM to a machine type in that series.

  3. Create the high availability controller.

Resolve failover, update, deletion, and VM modification errors

When a high availability controller manages a VM, Compute Engine enforces readiness checks before failovers, restricts which controller properties you can modify in place, and requires a standard deletion attempt before you can force-delete a controller. Compute Engine also restricts certain direct modifications to the managed VM so that its configuration stays synchronized across both zones.

Backup and DR Service fails with VM has no disks attached

This error occurs when you use Backup and DR to back up a VM that a high availability controller manages, or when you attempt to restore a disk to a managed VM.

Error message:

Invalid resource state for "projects/PROJECT_NUMBER/zones/ZONE/instances/INSTANCE_ID": VM has no disks attached

Resolution: A VM backup plan targets a single zone and can fail after a failover moves your VM's disks to the new primary zone. In addition, Backup and DR can't attach a restored disk to a running VM that a high availability controller manages. To back up and restore data for a VM that a high availability controller manages, complete the following actions:

  • To back up your data, back up your Persistent Disk or Hyperdisk Balanced High Availability volumes by using backup vaults or disk snapshots instead of configuring a backup plan on the VM instance.

  • To restore a disk to a managed VM, complete the following steps:

    1. Restore the backup into a new regional disk that replicates across the same two zones as your high availability controller.

    2. Stop the VM.

    3. Detach the old regional disk from your VM, and then attach the restored regional disk.

    4. Restart the VM.

Can't attach zonal disks to a VM that a high availability controller manages

This error occurs when you attempt to attach a zonal disk to a VM that a high availability controller manages.

Error message:

HA Controller managed instances do not support zonal disks.

Resolution: VMs that a high availability controller manages support only regional Persistent Disk or Hyperdisk Balanced High Availability volumes replicated across both zones of the controller. To attach an additional disk to your VM, complete the following steps:

  1. Stop the VM if it runs.

  2. Create and attach a regional disk whose replica zones match the primary and secondary zones of your high availability controller.

  3. Restart the VM.

Can't force-delete a high availability controller before a standard delete

This error occurs when you include the force=true query parameter in a REST API request to delete a high availability controller before you initiate a standard delete operation on the controller.

Error message:

A standard delete operation must be in progress or have failed on the
'HA_CONTROLLER' resource 'HA_CONTROLLER_NAME' before
'force=true' can be used. Initiate a delete without the 'force' parameter first.

Resolution: You can include the force=true query parameter in a DELETE request to the preview haControllers.delete method only when a standard delete operation on the high availability controller is already in progress or has failed. To resolve this error, complete the following steps:

  1. Delete the high availability controller without the force=true query parameter.

  2. If the standard delete operation gets stuck or fails, then make a new DELETE request with the force=true query parameter.

Can't delete a VM that a high availability controller manages

This error occurs when you attempt to delete a VM while a high availability controller still manages it.

Error message:

The resource cannot be deleted because it's being used by projects/PROJECT_ID/regions/REGION/haControllers/HA_CONTROLLER_NAME

Resolution: You can't delete a VM while a high availability controller manages it. To delete the VM, complete the following steps:

  1. Delete the high availability controller.

  2. Delete the VM.

Can't modify a VM that a high availability controller manages

This error occurs when you attempt to perform an unsupported operation—such as suspend or reset—on the VM that a high availability controller manages.

Error message:

HA Controller managed instances can only be modified by HA Controller.

Resolution: While a high availability controller manages a VM, you can stop and start the VM, and you can update certain VM properties while the VM is stopped. However, you can't suspend or reset the VM, or perform unsupported configuration updates. To perform one of these restricted operations on the VM, complete the following steps:

  1. Delete the high availability controller. When you delete the high availability controller, Compute Engine releases capacity in the secondary zone and unlocks the VM in the primary zone.

  2. Perform the required updates or lifecycle operations on your VM.

  3. Recreate the high availability controller.

Can't update a running VM that a high availability controller manages

This error occurs when you attempt to update a property on a managed VM while the VM runs—for example, when you run the gcloud compute instances update command or call the instances.update or instances.setLabels REST methods.

Error message:

HA Controller managed instances can only be updated when they are stopped.

Resolution: While a high availability controller manages a VM, you can't update the VM's properties while the VM runs. To update supported properties on the managed VM, such as the machine type, complete the following steps:

  1. Stop the VM. The high availability controller moves to the STOPPED state and releases the capacity that it holds in the secondary zone.

  2. Update the VM's properties.

  3. Restart the VM. The high availability controller reallocates capacity in the secondary zone and returns to the ACTIVE state.

Can't update immutable high availability controller properties

This error occurs when you attempt to modify a high availability controller property other than its description or failover initiation mode.

Error message:

In order to update parameters 'FIELD_NAMES' delete the
HaController and create it again.

Resolution: On an existing high availability controller, you can modify only the description and failoverInitiation fields. To change other properties, complete the following steps:

  1. Delete the high availability controller.

  2. Create a new high availability controller with the updated configuration.

High availability controller isn't ready for failover

This error occurs when you attempt to trigger a manual failover while the high availability controller or its secondary zone resources aren't ready.

Error message:

The resource 'HA_CONTROLLER_RESOURCE' is not ready

Resolution: You can trigger a manual failover only when the high availability controller's status.readyForFailover field is true. This field stays true while the controller is in the ACTIVE or PENDING_FAILOVER state. The status.readyForFailover field is false during creation, while the VM is stopped, or when the controller is in the FAILOVER_UNAVAILABLE state. To resolve this error, complete the following steps:

  1. Check the status.readyForFailover and status.zoneStatus fields of your high availability controller. To check these fields, see View the details of a high availability controller.

  2. Wait until status.readyForFailover and status.zoneStatus.SECONDARY_ZONE.isZoneReady change to true, or resolve any status errors that status.zoneStatus reports. SECONDARY_ZONE is the secondary zone of the high availability controller.

  3. Trigger the manual failover again.

Host key verification failed after a failover

This error occurs when you connect to your VM by using SSH after a failover and the VM's SSH host key doesn't match the key stored on your local machine.

Error message:

Host key for compute.INSTANCE_ID has changed and you have requested strict checking.
Host key verification failed.

Resolution: After you confirm that the host key changed because of a failover rather than an unauthorized host change, remove the stale entry from your ~/.ssh/google_compute_known_hosts file:

ssh-keygen -f ~/.ssh/google_compute_known_hosts -R compute.INSTANCE_ID

Replace INSTANCE_ID with the numeric ID of your VM, and then connect to the VM over SSH again.