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]: Can not create FrontDoor resource, provider fails with non descriptive issue #896

Closed
1 task done
artisticcheese opened this issue Dec 17, 2024 · 1 comment
Closed
1 task done
Labels
bug Something isn't working needs:triage

Comments

@artisticcheese
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Affected Resource(s)

cdn.azure.upbound.io/v1beta1 - FrontdoorRoute

Resource MRs required to reproduce the bug

apiVersion: cdn.azure.upbound.io/v1beta1
kind: FrontdoorRoute
metadata:
  name: product1-route
spec:
  providerConfigRef:
    name: workload-identity-provider-config
  forProvider:
    cdnFrontdoorEndpointIdRef:
      name: product1-endpoint
    cdnFrontdoorOriginGroupIdRef:
      name: product1-origingroup
    cdnFrontdoorOriginIdsRefs:
      - name: product1-origin1
    cdnFrontdoorCustomDomainIdsRefs:
      - name: product1-customdomain1
    cdnFrontdoorRuleSetIdsRefs:
      - name: product1ruleset
    enabled: true
    forwardingProtocol: HttpsOnly
    httpsRedirectEnabled: true
    linkToDefaultDomain: false
    patternsToMatch:
      - /*
    supportedProtocols:
      - Http
      - Https

Steps to Reproduce

Apply manifest

What happened?

Fails with error Message: observe failed: failed to observe the resource: [{0 parsing "<no value>/routes/product1-route" as an FrontDoorRoute ID: parsing Azure ID: parse "<no value>/routes/product1-route": invalid URI for request []}]

Relevant Error Output Snippet

{"controller": "managed/cdn.azure.upbound.io/v1beta1, kind=frontdoorroute", "request": {"name":"product1-route"}, "uid": "9626ee26-2cd8-49db-b580-ac2edc0e29b8", "version": "1693976924", "external-name": "product1-route", "error": "failed to observe the resource: [{0 parsing \"<no value>/routes/product1-route\" as an FrontDoorRoute ID: parsing Azure ID: parse \"<no value>/routes/product1-route\": invalid URI for request  []}]", "errorVerbose": "failed to observe the resource: [{0 parsing \"<no value>/routes/product1-route\" as an FrontDoorRoute ID: parsing Azure ID: parse \"<no value>/routes/product1-route\": invalid URI for request  []}]\ngithub.com/crossplane/upjet/pkg/controller.(*terraformPluginSDKExternal).Observe\n\tgithub.com/crossplane/upjet@v1.4.1-0.20241115110640-be5e03679440/pkg/controller/external_tfpluginsdk.go:475\ngithub.com/crossplane/upjet/pkg/controller.(*terraformPluginSDKAsyncExternal).Observe\n\tgithub.com/crossplane/upjet@v1.4.1-0.20241115110640-be5e03679440/pkg/controller/external_async_tfpluginsdk.go:127\ngithub.com/crossplane/crossplane-runtime/pkg/reconciler/managed.(*Reconciler).Reconcile\n\tgithub.com/crossplane/crossplane-runtime@v1.16.0/pkg/reconciler/managed/reconciler.go:914\ngithub.com/crossplane/crossplane-runtime/pkg/ratelimiter.(*Reconciler).Reconcile\n\tgithub.com/crossplane/crossplane-runtime@v1.16.0/pkg/ratelimiter/reconciler.go:54\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.17.3/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.17.3/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.17.3/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.17.3/pkg/internal/controller/controller.go:227\nruntime.goexit\n\truntime/asm_amd64.s:1700"}
2024-12-17T15:46:25Z    DEBUG   provider-azure  Reconciling     {"controller": "managed/cdn.azure.upbound.io/v1beta1, kind=frontdoorroute", "request": {"name":"product1-route"}}
2024-12-17T15:46:25Z    DEBUG   provider-azure  Connecting to the service provider      {"uid": "9626ee26-2cd8-49db-b580-ac2edc0e29b8", "name": "product1-route", "gvk": "cdn.azure.upbound.io/v1beta1, Kind=FrontdoorRoute"}   
2024-12-17T15:46:25Z    DEBUG   provider-azure  Calling the inner handler for Update event.     {"gvk": "cdn.azure.upbound.io/v1beta1, Kind=FrontdoorRoute", "name": "product1-route", "queueLength": 0}


### Crossplane Version

1.18

### Provider Version

1.10

### Kubernetes Version

1.31

### Kubernetes Distribution

AKS

### Additional Info

Seems that full proper resourceID of FrontDoor profile is not being constructed somewhere along the line but I can not figure out in which part
@artisticcheese artisticcheese added bug Something isn't working needs:triage labels Dec 17, 2024
@artisticcheese
Copy link
Author

Issue was with older version of api being used in my code /v1beta1 vs /v1beta2

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
Projects
None yet
Development

No branches or pull requests

1 participant