Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

BYOIP unable to delete PDP

Hi,
We have been using BYOIP a few years with success but one PAP need some rearrangements so we should need to delete the PDPs and then after that also the PAP.

I've been stuck with this a few months:
(hid the IPs and other sensitive data)

$ gcloud compute public-delegated-prefixes delete pdp-xxx-xxx-xxx-xxx-28-xxx --region=northamerica-northeast2
You are about to delete public delegated prefix: [pdp-xxx-xxx-xxx-xxx-28-xxx]

Do you want to continue (Y/n)? Y

ERROR: (gcloud.compute.public-delegated-prefixes.delete) Could not fetch resource:
- The resource 'projects/my-project/regions/northamerica-northeast2/publicDelegatedPrefixes/pdp-xxx-xxx-xxx-xxx-28-xxx' is not ready

This should be a v1 PDP.
Any ideas what could be wrong here?

Best regards,
Kim

0 3 238
3 REPLIES 3

Hi @kanderss,

Welcome to Google Cloud Community!

Once a Public Delegated Prefix (PDP) has been provisioned and is in the "RUNNING" state, the associated PAP is advertised to the internet, this is based on this documentation. Means we should follow the hierarchical structure even in deletion of PDP and PAP. The public advertised prefix type determines the configuration of the public delegated prefix.

Screenshot 2024-09-17 2.05.19 AM.png

You may check on the PDP list if there are associated sub-prefixes then delete those sub-prefixes so you can proceed on the root PDP deletion. 

You can now proceed on PAP deletion

Another guide on how to have this executed is after deprovisioning of your BYOIP. Also, it takes up to 4 weeks for a parent PDP(v1) to be completely deleted:

Screenshot 2024-09-17 4.06.42 AM.png

You can only delete a public delegated prefix or sub-prefix if all of its IP addresses are currently unused and not assigned to any resources.

Other important references:

PDP, PAP, BYOIP Public Delegated Sub-Prefix deletion failure

I hope the above information is helpful.

Hi!
Thanks for the reply.

The PAP and PDPs have been in use for a few years now. I've followed the deprovisioning guide but it always fails when I try to delete the PDP. 1st time tried for more than 2 months ago.

I have checked that no addresses in the PDP are in use.
Can't delete the address range either in the console from the PDP but this should get deleted when deleting the PDP.


ERROR: (gcloud.compute.public-delegated-prefixes.delete) Could not fetch resource:
- The resource 'projects/xxxmyprojectxxx/regions/northamerica-northeast2/publicDelegatedPrefixes/pdp-109-95-124-16-28-toronto' is not ready

The project with the PDP was moved from one organization to another in the spring. I'm beginning to think that this might have something to do with the errors. The user has all the necessary privileges.

Very frustrating as we really need the address ranges in use and they are stuck in this state.

Best regards,

Kim 

Hi @kanderss,

It appears that a more thorough investigation for your project is necessary. For more detailed insights you may reach out to Google Cloud Support for assistance. When contacting them, provide all your comprehensive details and screenshots. This will help them better understand and address your issue.

I hope this helps!