carvel-dev / kapp-controller

Continuous delivery and package management for Kubernetes.
https://carvel.dev/kapp-controller
Apache License 2.0
271 stars 106 forks source link

Expected to find at least one version (details: all=0 -> after-prereleases-filter=0 -> after-constraints-filter=0)))** #581

Closed ramkrishna2k3 closed 2 years ago

ramkrishna2k3 commented 2 years ago

What steps did you take: As per the customer requirement we needed to remove helm.sh/chart: tomcat-10.1.12 from the yaml file.

What happened: got an error: kapp: Error: waiting on reconcile packageinstall/tomcatapp-demo (packaging.carvel.dev/v1alpha1) namespace: default: Finished unsuccessfully (Reconcile failed: (message: Expected to find at least one version, but did not (details: all=0 -> after-prereleases-filter=0 -> after-constraints-filter=0)))

What did you expect: Reconcile succeed

Anything else you would like to add: [Additional information that will assist in solving the issue.]

Environment:


Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible" 👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

100mik commented 2 years ago

It looks like this issue belongs to the kapp-controller repo. Looks like you were trying to wrap a helm chart in a package. Could you elaborate on the issue?

renuy commented 2 years ago

@ramkrishna2k3 , this looks a kapp-controller issue to transferred it to the kapp-controller repo.

ramkrishna2k3 commented 2 years ago

It looks like this issue belongs to the kapp-controller repo. Looks like you were trying to wrap a helm chart in a package. Could you elaborate on the issue?

config.yml.txt pkginstall.yml.txt values.yml.txt

ramkrishna2k3 commented 2 years ago

any help in this regard

ramkrishna2k3 commented 2 years ago

root@Master-VM:~/tomcat# kubectl describe packageinstall.packaging.carvel.dev/tomcat-demo

Status: Conditions: Message: Expected to find at least one version, but did not (details: all=0 -> after-prereleases-filter=0 -> after-constraints-filter=0) Status: True Type: ReconcileFailed Friendly Description: Reconcile failed: Expected to find at least one version, but did not (details: a... Observed Generation: 1 Events: root@Master-VM:~/tomcat#

ramkrishna2k3 commented 2 years ago

It looks like this issue belongs to the kapp-controller repo. Looks like you were trying to wrap a helm chart in a package. Could you elaborate on the issue?

Yes, we are using helm bitnami chart and creating a package. can u please help in this.

cppforlife commented 2 years ago

helping over slack. closing here.

benjaminapetersen commented 2 years ago

Was there ever clarification about what this means? I've seen the same as well.

joe-kimmel-vmw commented 2 years ago

Hi @benjaminapetersen - the gist of the error message is "you have created a PackageInstall resource, but there is not an appropriate corresponding Package resource."

I think if you're getting this I would check things like kubectl get packages -A, and also check the namespace that your PackageInstall is targeting to see if the package is available from that namespace. Check the versions of the package vs. any version constraints specified by the PackageInstall, etc.

benjaminapetersen commented 2 years ago

Perfect, thats crystal clear, and lines up with what I eventually realized as well. Thanks!