Bug 1515902
| Summary: | Couldn't deploy version: ReplicationController is invalid: spec.template.spec.containers[0].image: Required value | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Joseph Callen <jcallen> | |
| Component: | openshift-controller-manager | Assignee: | Tomáš Nožička <tnozicka> | |
| Status: | CLOSED ERRATA | QA Contact: | Wang Haoran <haowang> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 3.7.0 | CC: | aos-bugs, haowang, jcallen, mfojtik, pep, tsyvanen | |
| Target Milestone: | --- | |||
| Target Release: | 3.9.0 | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | No Doc Update | ||
| Doc Text: |
undefined
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1546087 (view as bug list) | Environment: | ||
| Last Closed: | 2018-12-13 19:26:48 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1546087 | |||
|
Description
Joseph Callen
2017-11-21 15:08:30 UTC
QE can reproduce this in v3.7.9:
openshift v3.7.9
kubernetes v1.7.6+a08f5eeb62
etcd 3.2.8
After step 4 :
oc describe dc nodejs-example:
oc describe dc nodejs-example
Name: nodejs-example
Namespace: haowang1
Created: 3 minutes ago
Labels: app=nodejs-example
template=nodejs-example
Description: Defines how to deploy the application server
Annotations: kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"v1","kind":"DeploymentConfig","metadata":{"annotations":{"description":"Defines how to deploy the application server","template.alpha.openshift.io/wait-for-ready":"true"},"labels":{"app":"nodejs-example","template":"nodejs-example"},"name":"nodejs-example","namespace":"haowang1"},"spec":{"replicas":1,"selector":{"name":"nodejs-example"},"strategy":{"type":"Rolling"},"template":{"metadata":{"labels":{"name":"nodejs-example"},"name":"nodejs-example"},"spec":{"containers":[{"env":[],"image":" ","livenessProbe":{"httpGet":{"path":"/","port":8080},"initialDelaySeconds":30,"timeoutSeconds":3},"name":"nodejs-example","ports":[{"containerPort":8080}],"readinessProbe":{"httpGet":{"path":"/","port":8080},"initialDelaySeconds":3,"timeoutSeconds":3},"resources":{"limits":{"memory":"1Gi"}}}]}},"triggers":[{"imageChangeParams":{"automatic":true,"containerNames":["nodejs-example"],"from":{"kind":"ImageStreamTag","name":"nodejs-example:latest"}},"type":"ImageChange"},{"type":"ConfigChange"}]}}
template.alpha.openshift.io/wait-for-ready=true
Latest Version: 2
Selector: name=nodejs-example
Replicas: 1
Triggers: Image(nodejs-example@latest, auto=true), Config
Strategy: Rolling
Template:
Pod Template:
Labels: name=nodejs-example
Containers:
nodejs-example:
Image:
Port: 8080/TCP
Limits:
memory: 1Gi
Liveness: http-get http://:8080/ delay=30s timeout=3s period=10s #success=1 #failure=3
Readiness: http-get http://:8080/ delay=3s timeout=3s period=10s #success=1 #failure=3
Environment: <none>
Mounts: <none>
Volumes: <none>
Latest Deployment: <none>
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
3m 3m 1 deploymentconfig-controller Normal DeploymentCreated Created new replication controller "nodejs-example-1" for version 1
2m 7s 16 deploymentconfig-controller Warning DeploymentCreationFailed Couldn't deploy version 2: ReplicationController "nodejs-example-2" is invalid: spec.template.spec.containers[0].image: Required value
DC:
{
"apiVersion": "v1",
"kind": "DeploymentConfig",
"metadata": {
"annotations": {
"description": "Defines how to deploy the application server",
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"DeploymentConfig\",\"metadata\":{\"annotations\":{\"description\":\"Defines how to deploy the application server\",\"template.alpha.openshift.io/wait-for-ready\":\"true\"},\"labels\":{\"app\":\"nodejs-example\",\"template\":\"nodejs-example\"},\"name\":\"nodejs-example\",\"namespace\":\"haowang1\"},\"spec\":{\"replicas\":1,\"selector\":{\"name\":\"nodejs-example\"},\"strategy\":{\"type\":\"Rolling\"},\"template\":{\"metadata\":{\"labels\":{\"name\":\"nodejs-example\"},\"name\":\"nodejs-example\"},\"spec\":{\"containers\":[{\"env\":[],\"image\":\" \",\"livenessProbe\":{\"httpGet\":{\"path\":\"/\",\"port\":8080},\"initialDelaySeconds\":30,\"timeoutSeconds\":3},\"name\":\"nodejs-example\",\"ports\":[{\"containerPort\":8080}],\"readinessProbe\":{\"httpGet\":{\"path\":\"/\",\"port\":8080},\"initialDelaySeconds\":3,\"timeoutSeconds\":3},\"resources\":{\"limits\":{\"memory\":\"1Gi\"}}}]}},\"triggers\":[{\"imageChangeParams\":{\"automatic\":true,\"containerNames\":[\"nodejs-example\"],\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"nodejs-example:latest\"}},\"type\":\"ImageChange\"},{\"type\":\"ConfigChange\"}]}}\n",
"template.alpha.openshift.io/wait-for-ready": "true"
},
"creationTimestamp": "2017-11-22T08:53:09Z",
"generation": 3,
"labels": {
"app": "nodejs-example",
"template": "nodejs-example"
},
"name": "nodejs-example",
"namespace": "haowang1",
"resourceVersion": "228082",
"selfLink": "/oapi/v1/namespaces/haowang1/deploymentconfigs/nodejs-example",
"uid": "90758396-cf62-11e7-b716-fa163efcf1e2"
},
"spec": {
"replicas": 1,
"selector": {
"name": "nodejs-example"
},
"strategy": {
"activeDeadlineSeconds": 21600,
"resources": {},
"rollingParams": {
"intervalSeconds": 1,
"maxSurge": "25%",
"maxUnavailable": "25%",
"timeoutSeconds": 600,
"updatePeriodSeconds": 1
},
"type": "Rolling"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"name": "nodejs-example"
},
"name": "nodejs-example"
},
"spec": {
"containers": [
{
"image": " ",
"imagePullPolicy": "IfNotPresent",
"livenessProbe": {
"failureThreshold": 3,
"httpGet": {
"path": "/",
"port": 8080,
"scheme": "HTTP"
},
"initialDelaySeconds": 30,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 3
},
"name": "nodejs-example",
"ports": [
{
"containerPort": 8080,
"protocol": "TCP"
}
],
"readinessProbe": {
"failureThreshold": 3,
"httpGet": {
"path": "/",
"port": 8080,
"scheme": "HTTP"
},
"initialDelaySeconds": 3,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 3
},
"resources": {
"limits": {
"memory": "1Gi"
}
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File"
}
],
"dnsPolicy": "ClusterFirst",
"restartPolicy": "Always",
"schedulerName": "default-scheduler",
"securityContext": {},
"terminationGracePeriodSeconds": 30
}
},
"test": false,
"triggers": [
{
"imageChangeParams": {
"automatic": true,
"containerNames": [
"nodejs-example"
],
"from": {
"kind": "ImageStreamTag",
"name": "nodejs-example:latest",
"namespace": "haowang1"
}
},
"type": "ImageChange"
},
{
"type": "ConfigChange"
}
]
},
"status": {
"availableReplicas": 1,
"conditions": [
{
"lastTransitionTime": "2017-11-22T08:54:02Z",
"lastUpdateTime": "2017-11-22T08:54:02Z",
"message": "Deployment config has minimum availability.",
"status": "True",
"type": "Available"
},
{
"lastTransitionTime": "2017-11-22T08:54:17Z",
"lastUpdateTime": "2017-11-22T08:54:17Z",
"message": "ReplicationController \"nodejs-example-2\" is invalid: spec.template.spec.containers[0].image: Required value",
"reason": "ReplicationControllerCreateError",
"status": "False",
"type": "Progressing"
}
],
"details": {
"causes": [
{
"imageTrigger": {
"from": {
"kind": "DockerImage",
"name": " "
}
},
"type": "ImageChange"
}
],
"message": "image change"
},
"latestVersion": 2,
"observedGeneration": 3,
"readyReplicas": 1,
"replicas": 1,
"unavailableReplicas": 0,
"updatedReplicas": 0
}
}
],
"kind": "List",
"metadata": {
"resourceVersion": "",
"selfLink": ""
}
PR for master branch: https://github.com/openshift/origin/pull/17539 PR was merged, moving to QA. Verified with: openshift v3.9.0-0.23.0 kubernetes v1.9.1+a0ce1bc657 etcd 3.2.8 Failed with: openshift v3.7.23 kubernetes v1.7.6+a08f5eeb62 etcd 3.2.8 I still see the event : #oc describe dc FirstSeen LastSeen Count From SubObjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 50m 50m 1 deploymentconfig-controller Normal DeploymentCreated Created new replication controller "nodejs-example-1" for version 1 41m 38m 16 deploymentconfig-controller Warning DeploymentCreationFailed if QA failed for 3.7, 3.7 BZ is here https://bugzilla.redhat.com/show_bug.cgi?id=1546087 This should likely stay verified for 3.9 Sorry, comments paste to the wrong bug, this should failed 3.7. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:3748 |