Attempt to delete a reservation's compact placement policy
The following error occurs when you try to delete a reservation's
compact placement policy
before deleting the reservation.
Error message:
The resource_policy resource 'projects/PROJECT_ID/regions/REGION/resourcePolicies/COMPACT_PLACEMENT_POLICY_NAME' is already being used by 'projects/PROJECT_ID/zones/ZONE/reservations/RESERVATION_NAME'
Resolution: To delete a compact placement policy specified in a reservation,
select one of the following methods:
If you created the reservation by specifying an instance template, follow
these steps:
Attempt to downsize a specific reservation to less VMs than the targeted number
The following error occurs when you try to decrease the number of reserved VMs
in a
specific reservation
to a number that is lower than the number of VMs that consume the reservation.
Error message:
The resize instance count cannot be lower than the in use count for a specific reservation.
Resolution: To ensure that the number of VMs in the specific reservation is
equal to or lower than the number of VMs that consume the reservation, do one of
the following with the VMs in excess:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["This page provides guidance on resolving issues encountered when modifying Compute Engine reservations, specifically focusing on compact placement policy deletion and downsizing specific reservations."],["To delete a compact placement policy associated with a reservation, you must first delete the reservation itself, followed by the policy, and if applicable, also delete the instance template in which the policy may have been specified."],["When attempting to downsize a specific reservation, an error occurs if the new number of reserved VMs is less than the number of VMs currently consuming the reservation."],["To successfully downsize a specific reservation, you must first delete, stop, or suspend the excess VMs consuming the reservation to ensure the number of reserved VMs is not less than the number of consuming VMs."]]],[]]