GithubHelp home page GithubHelp logo

"RevisionMissing" when following instructions from "Serverless Workflow plug-in for Knative CLI" about incubator-kie-kogito-docs HOT 10 CLOSED

apache avatar apache commented on August 18, 2024
"RevisionMissing" when following instructions from "Serverless Workflow plug-in for Knative CLI"

from incubator-kie-kogito-docs.

Comments (10)

jstastny-cz avatar jstastny-cz commented on August 18, 2024 1

@hbelmiro I did have similar outcome on my local using kind, I'll try to investigate further today.

from incubator-kie-kogito-docs.

hbelmiro avatar hbelmiro commented on August 18, 2024

cc @ricardozanini @jstastny-cz

from incubator-kie-kogito-docs.

ricardozanini avatar ricardozanini commented on August 18, 2024

I think your image name is invalid, you should use quay or build the image within the minikube service registry using dev.local. See: https://kiegroup.github.io/kogito-docs/serverlessworkflow/main/cloud/deploying-on-minikube.html#proc-deploy-sw-application-minikube

@ljmotta we might need to send a patch PR linking to that guide and explaining what I described here.

from incubator-kie-kogito-docs.

hbelmiro avatar hbelmiro commented on August 18, 2024

I couldn't make it work by following https://kiegroup.github.io/kogito-docs/serverlessworkflow/main/cloud/deploying-on-minikube.html#proc-deploy-sw-application-minikube either.

kn service create hello \
    --image=dev.local/kogito/serverless-workflow-greeting-quarkus:1.0-native \
    --pull-policy=IfNotPresent \
    --port 8080
Creating service 'hello' in namespace 'serverless-workflow-greeting-quarkus':

  0.024s The Route is still working to reflect the latest desired specification.
  0.047s ...
  0.074s Configuration "hello" is waiting for a Revision to become ready.
kn service list
NAME    URL                                                                         LATEST   AGE   CONDITIONS   READY     REASON
hello   http://hello.serverless-workflow-greeting-quarkus.10.111.173.145.sslip.io            31s   0 OK / 3     Unknown   RevisionMissing : Configuration "hello" is waiting for a Revision to become ready.

from incubator-kie-kogito-docs.

ricardozanini avatar ricardozanini commented on August 18, 2024

@hbelmiro please do: kubectl get ksvc/hello -o yaml, it will give a more verbose output of the status message. "Configuration "hello" is waiting for a Revision to become ready" is too poorly. We need to know what's exactly happening there. It's likely to be missing the image. I imagine you did eval (docker env).. before building the image?

from incubator-kie-kogito-docs.

hbelmiro avatar hbelmiro commented on August 18, 2024
$ kubectl get ksvc/hello -o yaml
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  annotations:
    serving.knative.dev/creator: minikube-user
    serving.knative.dev/lastModifier: minikube-user
  creationTimestamp: "2022-08-02T20:31:06Z"
  generation: 1
  name: hello
  namespace: serverless-workflow-greeting-quarkus
  resourceVersion: "37928"
  uid: 05281112-fbe0-441e-809d-31e970fc338e
spec:
  template:
    metadata:
      annotations:
        client.knative.dev/updateTimestamp: "2022-08-02T20:31:06Z"
        client.knative.dev/user-image: dev.local/kogito/serverless-workflow-greeting-quarkus:1.0-native
      creationTimestamp: null
    spec:
      containerConcurrency: 0
      containers:
      - image: dev.local/kogito/serverless-workflow-greeting-quarkus:1.0-native
        imagePullPolicy: IfNotPresent
        name: user-container
        ports:
        - containerPort: 8080
          protocol: TCP
        readinessProbe:
          successThreshold: 1
          tcpSocket:
            port: 0
        resources: {}
      enableServiceLinks: false
      timeoutSeconds: 300
  traffic:
  - latestRevision: true
    percent: 100
status:
  conditions:
  - lastTransitionTime: "2022-08-03T11:44:56Z"
    message: 'Revision "hello-00001" failed with message: Back-off pulling image "dev.local/kogito/serverless-workflow-greeting-quarkus:1.0-native".'
    reason: RevisionFailed
    status: "False"
    type: ConfigurationsReady
  - lastTransitionTime: "2022-08-03T11:44:56Z"
    message: Configuration "hello" does not have any ready Revision.
    reason: RevisionMissing
    status: "False"
    type: Ready
  - lastTransitionTime: "2022-08-03T11:44:56Z"
    message: Configuration "hello" does not have any ready Revision.
    reason: RevisionMissing
    status: "False"
    type: RoutesReady
  latestCreatedRevisionName: hello-00001
  observedGeneration: 1
  url: http://hello.serverless-workflow-greeting-quarkus.10.111.173.145.sslip.io

It really seems to be missing the image.

message: 'Revision "hello-00001" failed with message: Back-off pulling image "dev.local/kogito/serverless-workflow-greeting-quarkus:1.0-native".'

I imagine you did eval (docker env).. before building the image?

Yes. I did.

from incubator-kie-kogito-docs.

ricardozanini avatar ricardozanini commented on August 18, 2024

ok, after doing that, make sure that the image is in the registry:

docker images

I've found this really weird. Call me offline, let me take a look at your cluster later.

from incubator-kie-kogito-docs.

ricardozanini avatar ricardozanini commented on August 18, 2024

You should see something like:

REPOSITORY                                                                      TAG            IMAGE ID       CREATED         SIZE
dev.local/demo/my-first-osl                                                     latest         2c7956399e27   5 days ago      508MB
envoyproxy/envoy                                                                v1.20-latest   f2ef1b9e2308   12 days ago     130MB
registry.access.redhat.com/ubi8/openjdk-11                                      1.11           90a04ce69084   4 months ago    435MB
k8s.gcr.io/kube-apiserver                                                       v1.23.4        62930710c963   5 months ago    135MB
k8s.gcr.io/kube-proxy                                                           v1.23.4        2114245ec4d6   5 months ago    112MB
k8s.gcr.io/kube-controller-manager                                              v1.23.4        25444908517a   5 months ago    125MB
k8s.gcr.io/kube-scheduler                                                       v1.23.4        aceacb6244f9   5 months ago    53.5MB
k8s.gcr.io/etcd                                                                 3.5.1-0        25f8c7f3da61   9 months ago    293MB
testcontainers/ryuk                                                             0.3.3          64f4b02dc986   9 months ago    12MB
k8s.gcr.io/coredns/coredns                                                      v1.8.6         a4ca41631cc7   10 months ago   46.8MB
k8s.gcr.io/pause                                                                3.6            6270bb605e12   11 months ago   683kB
gcr.io/k8s-minikube/storage-provisioner                                         v5             6e38f40d628d   16 months ago   31.5MB
gcr.io/knative-releases/knative.dev/eventing/cmd/in_memory/channel_controller   <none>         58202a7704a9   52 years ago    52.6MB
gcr.io/knative-releases/knative.dev/eventing/cmd/in_memory/channel_dispatcher   <none>         6d32feccabbb   52 years ago    52.7MB
gcr.io/knative-releases/knative.dev/serving/cmd/autoscaler                      <none>         7296d161e196   52 years ago    50.7MB
gcr.io/knative-releases/knative.dev/serving/cmd/webhook                         <none>         8e632ed12ed2   52 years ago    49.3MB
gcr.io/knative-releases/knative.dev/eventing/cmd/broker/filter                  <none>         eed4f61ff5da   52 years ago    50.6MB
gcr.io/knative-releases/knative.dev/serving/cmd/domain-mapping-webhook          <none>         dd09c3cf3adc   52 years ago    47.5MB
gcr.io/knative-releases/knative.dev/eventing/cmd/broker/ingress                 <none>         3529930eb907   52 years ago    50.6MB
gcr.io/knative-releases/knative.dev/serving/cmd/activator                       <none>         579ba9c10a4e   52 years ago    50.1MB
gcr.io/knative-releases/knative.dev/eventing/cmd/webhook                        <none>         2ae153f42de8   52 years ago    53MB
gcr.io/knative-releases/knative.dev/net-kourier/cmd/kourier                     <none>         6805331c619a   52 years ago    56.7MB
gcr.io/knative-releases/knative.dev/serving/cmd/domain-mapping                  <none>         7187eb6481c9   52 years ago    49.1MB
gcr.io/knative-releases/knative.dev/serving/cmd/controller                      <none>         c38a2186b93f   52 years ago    56.2MB
gcr.io/knative-releases/knative.dev/eventing/cmd/controller                     <none>         fc7db3674048   52 years ago    54.2MB
gcr.io/knative-releases/knative.dev/eventing/cmd/mtchannel_broker               <none>         7eb4714c2a66   52 years ago    52MB

@hbelmiro

from incubator-kie-kogito-docs.

hbelmiro avatar hbelmiro commented on August 18, 2024

The issue seems to happen due to https://issues.redhat.com/browse/KOGITO-7666.

from incubator-kie-kogito-docs.

ricardozanini avatar ricardozanini commented on August 18, 2024

Fixed in https://github.com/kiegroup/kie-tools/pull/1144

from incubator-kie-kogito-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.