-
Bug
-
Resolution: Done
-
Blocker
-
0.13.0
-
None
Sometimes a build of KogitoBuild is never launched.
Diff in logs:
Success
$ oc logs -f kogito-operator-6575747b7b-xmpfc | grep kogitobuild {"level":"info","ts":1597225830.9067895,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"kogitobuild-controller","source":"kind source: /, Kind="} {"level":"info","ts":1597225831.0076022,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"kogitobuild-controller","source":"kind source: /, Kind="} {"level":"info","ts":1597225831.108072,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"kogitobuild-controller","source":"kind source: /, Kind="} {"level":"info","ts":1597225831.2084286,"logger":"controller-runtime.controller","msg":"Starting Controller","controller":"kogitobuild-controller"} {"level":"info","ts":1597225831.208521,"logger":"controller-runtime.controller","msg":"Starting workers","controller":"kogitobuild-controller","worker count":1} {"level":"error","ts":1597225831.5375063,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"kogitobuild-controller","request":"jenkins-cucumber-19b2/dmn-quarkus-example","error":"buildconfigs.build.openshift.io \"dmn-quarkus-example\" already exists","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/jenkins/go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/jenkins/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:258\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/jenkins/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/home/jenkins/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:90"}
Error
$ oc logs -f kogito-operator-6575747b7b-rglvd | grep kogitobuild {"level":"info","ts":1597225735.8889444,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"kogitobuild-controller","source":"kind source: /, Kind="} {"level":"info","ts":1597225735.990396,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"kogitobuild-controller","source":"kind source: /, Kind="} {"level":"info","ts":1597225736.0908535,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"kogitobuild-controller","source":"kind source: /, Kind="} {"level":"info","ts":1597225736.1914275,"logger":"controller-runtime.controller","msg":"Starting Controller","controller":"kogitobuild-controller"} {"level":"info","ts":1597225736.29185,"logger":"controller-runtime.controller","msg":"Starting workers","controller":"kogitobuild-controller","worker count":1} {"level":"error","ts":1597225736.4741015,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"kogitobuild-controller","request":"jenkins-cucumber-73c2/dmn-quarkus-example","error":"Error while creating Kogito ImageStreams: imagestreams.image.openshift.io \"custom-kogito-quarkus-ubi8-s2i-nightly\" already exists ","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/jenkins/go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/jenkins/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:258\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/jenkins/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/home/jenkins/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:90"} {"level":"error","ts":1597225737.6732566,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"kogitobuild-controller","request":"jenkins-cucumber-73c2/dmn-quarkus-example","error":"buildconfigs.build.openshift.io \"dmn-quarkus-example\" already exists","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/jenkins/go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/jenkins/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:258\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/jenkins/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/home/jenkins/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:90"}
Seems like the `reconcile` has some problems sometimes and never start the build.
I joined also a full operator logs when it fails.
- is blocked by
-
KOGITO-3063 BDD tests: CLI output not correctly displayed in logs
- Closed