kubevirt / containerized-data-importer

Data Import Service for kubernetes, designed with kubevirt in mind.
Apache License 2.0
395 stars 251 forks source link

operator does not work with error config map cdi-apiserver-signer-bundle is not found #3098

Closed sebastianohl closed 3 weeks ago

sebastianohl commented 5 months ago

What happened: I installed the newest release 1.58.1 by downloading the yaml-files and apply the operator and the CR.

The first one start a deployment (and therefore a pod) as expected waiting for the CR to be applied. After this took place, nothing happens or at least there are not new pods coming up. The logs complain that the CM cdi-apiserver-signer-bundle is not available. This is correct as no one have created it. (the code looks like the operator should do this...)

What you expected to happen: I should be able to create a datavolume after applying the cdi operator

How to reproduce it (as minimally and precisely as possible):

follow the kubevirt documentation:

Additional context: I attached the logs from the operator deployment logs.txt

Environment:

aglitke commented 5 months ago

Is this a fresh install or had you previously installed CDI on this cluster?

akalenyu commented 5 months ago

The complaints about the ConfigMap seem like a red herring, with the actual issue being

{"level":"info","ts":"2024-02-04T18:42:00Z","logger":"cdi-operator","msg":"Orphan object exists","Request.Namespace":"","Request.Name":"cdi","obj":{"apiVersion":"rbac.authorization.k8s.io/v1","kind":"ClusterRole","name":"cdi-apiserver"}}

If CDI was previously not clean uninstalled, these leftovers would prevent reinstalling it

sebastianohl commented 5 months ago

yes there was an old installation. I tried to clean up everything as good as possible. Is there a documentation what object must not be there?

akalenyu commented 4 months ago

yes there was an old installation. I tried to clean up everything as good as possible. Is there a documentation what object must not be there?

All a user has to do is delete the CDI custom resource, and that will take care of removing the objects. If the custom resource was cleaned up successfully, there should not be leftovers

kubevirt-bot commented 1 month ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

/lifecycle stale

akalenyu commented 3 weeks ago

/close uninstalling CDI should work by deleting the CDI CR

kubevirt-bot commented 3 weeks ago

@akalenyu: Closing this issue.

In response to [this](https://github.com/kubevirt/containerized-data-importer/issues/3098#issuecomment-2200056776): >/close >uninstalling CDI should work by deleting the CDI CR Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.