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

Creating a new DOKubernetesCluster ObserveExternalResource is in endless warning state, and never reports ready #73

Open
Nopzen opened this issue Jan 20, 2023 · 5 comments
Labels
bug Something isn't working kubernetes Issue related to Kubernetes

Comments

@Nopzen
Copy link
Contributor

Nopzen commented Jan 20, 2023

Prefacing my bug with, I'm quite new to crossplane, and can only reply back what i experience by running the given examples, as I'm in a discovery face if this tool could fit my needs.

What happened?

After creating a brand new cluster given the examples/kubernetes/k8s-cluster.yaml, the following error keeps persisting even tho there have been no changes to the DOKubernetesCluster resource.

Warning CannotObserveExternalResource 9m6s managed/dokubernetescluster cannot update managed DOKubernetesCluster resource: Operation cannot be fulfilled on dokubernetesclusters.kubernetes.do.crossplane.io "crossplane-managed": the object has been modified; please apply your changes to the latest version and try again

The cluster resources are created in DO and is reachable via kubectl.

How can we reproduce it?

kubectl apply -f https://raw.githubusercontent.com/crossplane-contrib/provider-digitalocean/main/examples/kubernetes/k8s-cluster.yaml

Expected result

No warnings in events when running:

k describe dokubernetesclusters.kubernetes.do.crossplane.io crossplane-managed

Also expected cluster would report READY

$ k get dokubernetesclusters.kubernetes.do.crossplane.io
NAME                 READY   SYNCED
crossplane-managed           True

What environment did it happen in?

Crossplane version: 1.10.1 (latest as of writing)
Kubectl client version: 1.26.0
Kube server version: 1.25.3+k3s1 (crossplane control plane)
Kubernetes distrobution: Rancher k3s

@Nopzen Nopzen added the bug Something isn't working label Jan 20, 2023
@Nopzen
Copy link
Contributor Author

Nopzen commented Jan 20, 2023

To add to this bug I'm seeing that the provider is also hanging i assume in finalizer on deletion of the cluster again, getting the following recurring event:

Normal DeletedExternalResource 23s (x17 over 6m) managed/dokubernetescluster Successfully requested deletion of external resource

I assume this happens because it can't observe the resource in DigitalOcean and then keeps trying to delete something? Not sure if this is related?

The resource is never deleted, and was manually deleted, and the dokubernetescluster resource forcefully removed.

@irizzant
Copy link

Hitting the same here

@ADustyOldMuffin
Copy link
Contributor

Can you please also list the version of the provider that you're using?

@ADustyOldMuffin ADustyOldMuffin added the kubernetes Issue related to Kubernetes label Feb 15, 2023
@irizzant
Copy link

I've used this:
kubectl apply -f https://raw.githubusercontent.com/crossplane-contrib/provider-digitalocean/main/examples/provider/install.yaml

which installs 0.1.0, maybe the time has come to update the examples ;)

@mawi001
Copy link

mawi001 commented Apr 3, 2023

I was hitting the same when using the image crossplane/provider-digitalocean:v0.1.0.

Then I tried the latest available pkg image crossplane/provider-digitalocean:v0.2.0-rc.0.44.ga4257b6-main which does seem to update the state.

k get dokubernetesclusters.kubernetes.do.crossplane.io    
NAME      READY   SYNCED
k8s   True    True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working kubernetes Issue related to Kubernetes
Projects
None yet
Development

No branches or pull requests

4 participants