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

trigger probelm #2063

Open
kooroshkdt2 opened this issue Dec 6, 2024 · 3 comments
Open

trigger probelm #2063

kooroshkdt2 opened this issue Dec 6, 2024 · 3 comments
Assignees

Comments

@kooroshkdt2
Copy link

the bugg happens 100% time
after update all of deployments have same problem

triggers.go:400] Unable to calculate trigger for jdt-salesweb-production: json: cannot unmarshal string into Go struct field ObjectFieldTrigger.paused of type bool
system not autodeploying new images when their build from s2i
when i run this command
oc set triggers deployments/jdt-salesweb-production --loglevel 10
NAME TYPE VALUE AUTO
deployments/jdt-salesweb-production false

request.go:1188] Response Body: {"kind":"Deployment","apiVersion":"apps/v1","metadata":{"name":"jdt-salesweb-production","namespace":"jdt-salesweb-production","uid":"931f2ddb-6c0a-43df-86a7-672793d7c5d0","resourceVersion":"172985805","generation":82,"creationTimestamp":"2024-08-15T06:33:21Z","labels":{"app":"jdt-salesweb-production","app.kubernetes.io/component":"jdt-salesweb-production","app.kubernetes.io/instance":"jdt-salesweb-production","app.kubernetes.io/name":"jdt-salesweb-production","app.kubernetes.io/part-of":"jdt-salesweb-production","app.openshift.io/runtime":"python","app.openshift.io/runtime-version":"3.9-c9s"},"annotations":{"deployment.kubernetes.io/revision":"36","image.openshift.io/triggers":"[{"from":{"kind":"ImageStreamTag","name":"jdt-salesweb-production:latest","namespace":"jdt-salesweb-production"},"fieldPath":"spec.template.spec.containers[?(@.name==\"jdt-salesweb-production\")].image","paused":"false"}]","kubectl.kubernetes.io/last-applied-configuration":"{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{"deployment.kubernetes.io/revision":"35","image.openshift.io/triggers":"[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"jdt-salesweb-production:latest\",\"namespace\":\"jdt-salesweb-production\"},\"fieldPath\":\"spec.template.spec.containers[?(@.name==\\\"jdt-salesweb-production\\\")].image\"}]"},"creationTimestamp":"2024-08-15T06:33:21Z","generation":80,"labels":{"app":"jdt-salesweb-production","app.kubernetes.io/component":"jdt-salesweb-production","app.kubernetes.io/instance":"jdt-salesweb-production","app.kubernetes.io/name":"jdt-salesweb-production","app.kubernetes.io/part-of":"jdt-salesweb-production","app.openshift.io/runtime":"python","app.openshift.io/runtime-version":"3.9-c9s"},"name":"jdt-salesweb-production","namespace":"jdt-salesweb-production","resourceVersion":"172979632","uid":"931f2ddb-6c0a-43df-86a7-672793d7c5d0"},"spec":{"progressDeadlineSeconds":600,"replicas":3,"revisionHistoryLimit":10,"selector":{"matchLabels":{"app":"jdt-salesweb-production"}},"strategy":{"rollingUpdate":{"maxSurge":"25%","maxUnavailable":"25%"},"type":"RollingUpdate"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"jdt-salesweb-production","deployment":"jdt-salesweb-production"}},"spec":{"containers":[{"env":[{"name":"APP_SCRIPT","value":"./start.sh"},{"name":"ENTRYPOINT","value":"web"}],"image":"image-registry.openshift-image-registry.svc:5000/jdt-salesweb-production/jdt-salesweb-production@sha256:c856ff33972ba212d2b361ef29ce3e33aabc459c920e6fbb2a2bfb3e802d873d","imagePullPolicy":"Always","name":"jdt-salesweb-production","ports":[{"containerPort":8080,"protocol":"TCP"}],"resources":{"limits":{"memory":"4Gi"}},"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File"}],"dnsPolicy":"ClusterFirst","restartPolicy":"Always","schedulerName":"default-scheduler","securityContext":{},"terminationGracePeriodSeconds":30}}},"status":{"availableReplicas":3,"conditions":[{"lastTransitionTime":"2024-09-04T08:52:04Z","lastUpdateTime":"2024-12-06T08:30:13Z","message":"ReplicaSet \"jdt-salesweb-production-86cbd55fcb\" has successfully progressed.","reason":"NewReplicaSetAvailable","status":"True","type":"Progressing"},{"lastTransitionTime":"2024-12-06T08:50:52Z","lastUpdateTime":"2024-12-06T08:50:52Z","message":"Deployment has minimum availability.","reason":"MinimumReplicasAvailable","status":"True","type":"Available"}],"observedGeneration":80,"readyReplicas":3,"replicas":3,"updatedReplicas":3}}\n"},"managedFields":[{"manager":"kubectl-set","operation":"Update","apiVersion":"apps/v1","time":"2024-12-03T18:01:35Z","fieldsType":"FieldsV1","fieldsV1":{"f:spec":{"f:template":{"f:spec":{"f:containers":{"k:{"name":"jdt-salesweb-production"}":{"f:resources":{"f:limits":{".":{},"f:memory":{}}}}}}}}}},{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":"apps/v1","time":"2024-12-06T08:52:55Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration":{}},"f:labels":{".":{},"f:app":{},"f:app.kubernetes.io/component":{},"f:app.kubernetes.io/instance":{},"f:app.kubernetes.io/name":{},"f:app.kubernetes.io/part-of":{},"f:app.openshift.io/runtime":{},"f:app.openshift.io/runtime-version":{}}},"f:spec":{"f:progressDeadlineSeconds":{},"f:revisionHistoryLimit":{},"f:selector":{},"f:strategy":{"f:rollingUpdate":{".":{},"f:maxSurge":{},"f:maxUnavailable":{}},"f:type":{}},"f:template":{"f:metadata":{"f:labels":{".":{},"f:app":{},"f:deployment":{}}},"f:spec":{"f:containers":{"k:{"name":"jdt-salesweb-production"}":{".":{},"f:env":{".":{},"k:{"name":"APP_SCRIPT"}":{".":{},"f:name":{},"f:value":{}},"k:{"name":"ENTRYPOINT"}":{".":{},"f:name":{},"f:value":{}}},"f:imagePullPolicy":{},"f:name":{},"f:ports":{".":{},"k:{"containerPort":8080,"protocol":"TCP"}":{".":{},"f:containerPort":{},"f:protocol":{}}},"f:resources":{},"f:terminationMessagePath":{},"f:terminationMessagePolicy":{}}},"f:dnsPolicy":{},"f:restartPolicy":{},"f:schedulerName":{},"f:securityContext":{},"f:terminationGracePeriodSeconds":{}}}}}},{"manager":"Mozilla","operation":"Update","apiVersion":"apps/v1","time":"2024-12-06T09:07:02Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{"f:image.openshift.io/triggers":{}}},"f:spec":{"f:template":{"f:spec":{"f:containers":{"k:{"name":"jdt-salesweb-production"}":{"f:image":{}}}}}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"apps/v1","time":"2024-12-06T09:07:42Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{"f:deployment.kubernetes.io/revision":{}}},"f:status":{"f:availableReplicas":{},"f:conditions":{".":{},"k:{"type":"Available"}":{".":{},"f:lastTransitionTime":{},"f:lastUpdateTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{"type":"Progressing"}":{".":{},"f:lastTransitionTime":{},"f:lastUpdateTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}},"f:observedGeneration":{},"f:readyReplicas":{},"f:replicas":{},"f:updatedReplicas":{}}},"subresource":"status"}]},"spec":{"replicas":3,"selector":{"matchLabels":{"app":"jdt-salesweb-production"}},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"jdt-salesweb-production","deployment":"jdt-salesweb-production"}},"spec":{"containers":[{"name":"jdt-salesweb-production","image":"image-registry.openshift-image-registry.svc:5000/jdt-salesweb-production/jdt-salesweb-production@sha256:fd86e29dc930c3201af037edfc5d3ecdb73a66b5d693c8dfd548dd680cba9ce1","ports":[{"containerPort":8080,"protocol":"TCP"}],"env":[{"name":"APP_SCRIPT","value":"./start.sh"},{"name":"ENTRYPOINT","value":"web"}],"resources":{"limits":{"memory":"4Gi"}},"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{},"schedulerName":"default-scheduler"}},"strategy":{"type":"RollingUpdate","rollingUpdate":{"maxUnavailable":"25%","maxSurge":"25%"}},"revisionHistoryLimit":10,"progressDeadlineSeconds":600},"status":{"observedGeneration":82,"replicas":3,"updatedReplicas":3,"readyReplicas":3,"availableReplicas":3,"conditions":[{"type":"Available","status":"True","lastUpdateTime":"2024-12-06T09:06:33Z","lastTransitionTime":"2024-12-06T09:06:33Z","reason":"MinimumReplicasAvailable","message":"Deployment has minimum availability."},{"type":"Progressing","status":"True","lastUpdateTime":"2024-12-06T09:07:42Z","lastTransitionTime":"2024-09-04T08:52:04Z","reason":"NewReplicaSetAvailable","message":"ReplicaSet "jdt-salesweb-production-7d95444576" has successfully progressed."}]}}
I1206 12:37:47.377408 543126 triggers.go:400] Unable to calculate trigger for jdt-salesweb-production: json: cannot unmarshal string into Go struct field ObjectFieldTrigger.paused of type boo":"Progressing","status":"True","lastUpdateTime":"2024-12-06T09:07:42Z","lastTransitionTime":"2024-09-04T08:52:04Z","reason":"NewReplicaSetAvailable","message":"ReplicaSet "jdt-salesweb-production-7d95444576" has successfully progressed."}]}}
I1206 12:37:47.377408 543126 triggers.go:400] Unable to calculate trigger for jdt-salesweb-production: json: cannot unmarshal string into Go struct field ObjectFieldTrigger.paused of type booll

@JaimeMagiera
Copy link
Contributor

Hi.

You've given us no information about what version of OKD you're running, what platform, etc. Please provide much more context. Thank you.

@JaimeMagiera JaimeMagiera self-assigned this Dec 10, 2024
@kooroshkdt2
Copy link
Author

interestingly enough i found it openshift github exactly same problem but some how it got rejected
just asking base on curiosity is the code base same ? or shared between okd and openshift ?

openshift/console#14523

@JaimeMagiera
Copy link
Contributor

Yes, they share the same codebase for the most part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants