Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Deleted or non-existent project fails Observe when crossplane.io/external-name set. #551

Closed
1 task done
djeremiah opened this issue Jun 24, 2024 · 3 comments
Closed
1 task done
Labels
bug Something isn't working needs:triage stale

Comments

@djeremiah
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Affected Resource(s)

cloudplatform.gcp.upbound.io/v1beta1 - Project

Resource MRs required to reproduce the bug

apiVersion: cloudplatform.gcp.upbound.io/v1beta1
kind: Project
metadata:
  annotations:
    crossplane.io/external-name: PROJECT-ID
  name: PROJECT
spec:
  forProvider:
    name: PROJECT
    projectId: PROJECT-ID

Steps to Reproduce

Install Crossplane and provider-gcp-cloudplatform
Deploy the MR

What happened?

Expected: the Project will be created
Actual: the Observe phase fails with an error

Relevant Error Output Snippet

ReconcileError: observe failed: failed to observe the resource: [{0 the user does not have permission to access Project "{PROJECT-ID}" or it may not exist  []}]

Crossplane Version

1.16

Provider Version

1.3.0

Kubernetes Version

No response

Kubernetes Distribution

GKE

Additional Info

It looks like this may be expected behavior from GCP, passed through Terraform. hashicorp/terraform-provider-google#6729 https://github.com/hashicorp/terraform-provider-google/blob/v5.19.0/google/services/resourcemanager/resource_google_project.go#L286-L301
The provider will need to interpret the error appropriately.

@djeremiah djeremiah added bug Something isn't working needs:triage labels Jun 24, 2024
@jsaintjoanis
Copy link

Hello! We have the same issue!
Do we know when there is likely to be a fix for this? We cannot create gcp projects without removing the external name

Copy link

This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as stale. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label Oct 17, 2024
Copy link

This issue is being closed since there has been no activity for 14 days since marking it as stale. If you still need help, feel free to comment or reopen the issue!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage stale
Projects
None yet
Development

No branches or pull requests

2 participants