However, when i check in the web console from a browser using my public hostname, the app is live and I can log in as an administrator, switch to the openshift-web-console project, and check its pods. I see one pod for webconsole that fails to start with the following in its log:
root@openshift1.pd.labs.mitre.org(Cent7) ~$ oc get all -o json -n openshift-web-console
{
"apiVersion": "v1",
"items": [
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"annotations": {
"kubernetes.io/created-by": "{\"kind\":\"SerializedReference\",\"apiVersion\":\"v1\",\"reference\":{\"kind\":\"ReplicaSet\",\"namespace\":\"openshift-web-console\",\"name\":\"webconsole-2959644228\",\"uid\":\"604c9589-fc90-11e7-8cfe-001a4a1d019b\",\"apiVersion\":\"extensions\",\"resourceVersion\":\"27060\"}}\n",
"openshift.io/scc": "restricted"
},
"creationTimestamp": "2018-01-18T20:44:29Z",
"generateName": "webconsole-2959644228-",
"labels": {
"pod-template-hash": "2959644228",
"webconsole": "true"
},
"name": "webconsole-2959644228-h9psl",
"namespace": "openshift-web-console",
"ownerReferences": [
{
"apiVersion": "extensions/v1beta1",
"blockOwnerDeletion": true,
"controller": true,
"kind": "ReplicaSet",
"name": "webconsole-2959644228",
"uid": "604c9589-fc90-11e7-8cfe-001a4a1d019b"
}
],
"resourceVersion": "45015",
"selfLink": "/api/v1/namespaces/openshift-web-console/pods/webconsole-2959644228-h9psl",
"uid": "60f189a0-fc90-11e7-8cfe-001a4a1d019b"
},
"spec": {
"containers": [
{
"command": [
"/usr/bin/origin-web-console",
"--audit-log-path=-",
"-v=0",
"--config=/var/webconsole-config/webconsole-config.yaml"
],
"image": "docker.io/openshift/origin-web-console:latest",
"imagePullPolicy": "IfNotPresent",
"livenessProbe": {
"failureThreshold": 3,
"httpGet": {
"path": "/",
"port": 8443,
"scheme": "HTTPS"
},
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 1
},
"name": "webconsole",
"ports": [
{
"containerPort": 8443,
"protocol": "TCP"
}
],
"readinessProbe": {
"failureThreshold": 3,
"httpGet": {
"path": "/healthz",
"port": 8443,
"scheme": "HTTPS"
},
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 1
},
"resources": {},
"securityContext": {
"capabilities": {
"drop": [
"KILL",
"MKNOD",
"SETGID",
"SETUID"
]
},
"privileged": false,
"runAsUser": 1000080000,
"seLinuxOptions": {
"level": "s0:c9,c4"
}
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"volumeMounts": [
{
"mountPath": "/var/serving-cert",
"name": "serving-cert"
},
{
"mountPath": "/var/webconsole-config",
"name": "webconsole-config"
},
{
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
"name": "webconsole-token-8mb77",
"readOnly": true
}
]
}
],
"dnsPolicy": "ClusterFirst",
"imagePullSecrets": [
{
"name": "webconsole-dockercfg-gv92r"
}
],
"nodeName": "openshift4.pd.labs.mitre.org",
"nodeSelector": {
"region": "infra"
},
"restartPolicy": "Always",
"schedulerName": "default-scheduler",
"securityContext": {
"fsGroup": 1000080000,
"seLinuxOptions": {
"level": "s0:c9,c4"
}
},
"serviceAccount": "webconsole",
"serviceAccountName": "webconsole",
"terminationGracePeriodSeconds": 30,
"volumes": [
{
"name": "serving-cert",
"secret": {
"defaultMode": 400,
"secretName": "webconsole-serving-cert"
}
},
{
"configMap": {
"defaultMode": 440,
"name": "webconsole-config"
},
"name": "webconsole-config"
},
{
"name": "webconsole-token-8mb77",
"secret": {
"defaultMode": 420,
"secretName": "webconsole-token-8mb77"
}
}
]
},
"status": {
"conditions": [
{
"lastProbeTime": null,
"lastTransitionTime": "2018-01-18T20:44:29Z",
"status": "True",
"type": "Initialized"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2018-01-18T20:44:29Z",
"message": "containers with unready status: [webconsole]",
"reason": "ContainersNotReady",
"status": "False",
"type": "Ready"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2018-01-18T20:44:29Z",
"status": "True",
"type": "PodScheduled"
}
],
"containerStatuses": [
{
"containerID": "docker://5a6ce6469b2d1813b74aa6043f4304791d6a6e5276c4f1374e7dd991d0fe6b61",
"image": "docker.io/openshift/origin-web-console:latest",
"imageID": "docker-pullable://docker.io/openshift/origin-web-console@sha256:6802f6c63043467ca54a4736ebdeb4e3940405e9fc8ffbc2c7cbc5b426c81c3d",
"lastState": {
"terminated": {
"containerID": "docker://5a6ce6469b2d1813b74aa6043f4304791d6a6e5276c4f1374e7dd991d0fe6b61",
"exitCode": 255,
"finishedAt": "2018-01-18T23:36:43Z",
"reason": "Error",
"startedAt": "2018-01-18T23:36:43Z"
}
},
"name": "webconsole",
"ready": false,
"restartCount": 37,
"state": {
"waiting": {
"message": "Back-off 5m0s restarting failed container=webconsole pod=webconsole-2959644228-h9psl_openshift-web-console(60f189a0-fc90-11e7-8cfe-001a4a1d019b)",
"reason": "CrashLoopBackOff"
}
}
}
],
"hostIP": "128.29.35.60",
"phase": "Running",
"podIP": "10.131.0.9",
"qosClass": "BestEffort",
"startTime": "2018-01-18T20:44:29Z"
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"annotations": {
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"Service\",\"metadata\":{\"annotations\":{\"service.alpha.openshift.io/serving-cert-secret-name\":\"webconsole-serving-cert\"},\"labels\":{\"app\":\"openshift-web-console\"},\"name\":\"webconsole\",\"namespace\":\"openshift-web-console\"},\"spec\":{\"ports\":[{\"name\":\"https\",\"port\":443,\"targetPort\":8443}],\"selector\":{\"webconsole\":\"true\"}}}\n",
"service.alpha.openshift.io/serving-cert-secret-name": "webconsole-serving-cert",
"service.alpha.openshift.io/serving-cert-signed-by": "openshift-service-serving-signer@1516228937"
},
"creationTimestamp": "2018-01-18T20:44:28Z",
"labels": {
"app": "openshift-web-console"
},
"name": "webconsole",
"namespace": "openshift-web-console",
"resourceVersion": "27077",
"selfLink": "/api/v1/namespaces/openshift-web-console/services/webconsole",
"uid": "605b6a37-fc90-11e7-8cfe-001a4a1d019b"
},
"spec": {
"clusterIP": "172.30.123.247",
"ports": [
{
"name": "https",
"port": 443,
"protocol": "TCP",
"targetPort": 8443
}
],
"selector": {
"webconsole": "true"
},
"sessionAffinity": "None",
"type": "ClusterIP"
},
"status": {
"loadBalancer": {}
}
},
{
"apiVersion": "extensions/v1beta1",
"kind": "Deployment",
"metadata": {
"annotations": {
"deployment.kubernetes.io/revision": "1",
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"apps/v1beta1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{},\"labels\":{\"app\":\"openshift-web-console\",\"webconsole\":\"true\"},\"name\":\"webconsole\",\"namespace\":\"openshift-web-console\"},\"spec\":{\"replicas\":1,\"strategy\":{\"type\":\"Recreate\"},\"template\":{\"metadata\":{\"labels\":{\"webconsole\":\"true\"},\"name\":\"webconsole\"},\"spec\":{\"containers\":[{\"command\":[\"/usr/bin/origin-web-console\",\"--audit-log-path=-\",\"-v=0\",\"--config=/var/webconsole-config/webconsole-config.yaml\"],\"image\":\"docker.io/openshift/origin-web-console:latest\",\"imagePullPolicy\":\"IfNotPresent\",\"livenessProbe\":{\"httpGet\":{\"path\":\"/\",\"port\":8443,\"scheme\":\"HTTPS\"}},\"name\":\"webconsole\",\"ports\":[{\"containerPort\":8443}],\"readinessProbe\":{\"httpGet\":{\"path\":\"/healthz\",\"port\":8443,\"scheme\":\"HTTPS\"}},\"volumeMounts\":[{\"mountPath\":\"/var/serving-cert\",\"name\":\"serving-cert\"},{\"mountPath\":\"/var/webconsole-config\",\"name\":\"webconsole-config\"}]}],\"nodeSelector\":{\"region\":\"infra\"},\"serviceAccountName\":\"webconsole\",\"volumes\":[{\"name\":\"serving-cert\",\"secret\":{\"defaultMode\":400,\"secretName\":\"webconsole-serving-cert\"}},{\"configMap\":{\"defaultMode\":440,\"name\":\"webconsole-config\"},\"name\":\"webconsole-config\"}]}}}}\n"
},
"creationTimestamp": "2018-01-18T20:44:27Z",
"generation": 1,
"labels": {
"app": "openshift-web-console",
"webconsole": "true"
},
"name": "webconsole",
"namespace": "openshift-web-console",
"resourceVersion": "28163",
"selfLink": "/apis/extensions/v1beta1/namespaces/openshift-web-console/deployments/webconsole",
"uid": "604b2497-fc90-11e7-8cfe-001a4a1d019b"
},
"spec": {
"progressDeadlineSeconds": 600,
"replicas": 1,
"revisionHistoryLimit": 2,
"selector": {
"matchLabels": {
"webconsole": "true"
}
},
"strategy": {
"type": "Recreate"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"webconsole": "true"
},
"name": "webconsole"
},
"spec": {
"containers": [
{
"command": [
"/usr/bin/origin-web-console",
"--audit-log-path=-",
"-v=0",
"--config=/var/webconsole-config/webconsole-config.yaml"
],
"image": "docker.io/openshift/origin-web-console:latest",
"imagePullPolicy": "IfNotPresent",
"livenessProbe": {
"failureThreshold": 3,
"httpGet": {
"path": "/",
"port": 8443,
"scheme": "HTTPS"
},
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 1
},
"name": "webconsole",
"ports": [
{
"containerPort": 8443,
"protocol": "TCP"
}
],
"readinessProbe": {
"failureThreshold": 3,
"httpGet": {
"path": "/healthz",
"port": 8443,
"scheme": "HTTPS"
},
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 1
},
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"volumeMounts": [
{
"mountPath": "/var/serving-cert",
"name": "serving-cert"
},
{
"mountPath": "/var/webconsole-config",
"name": "webconsole-config"
}
]
}
],
"dnsPolicy": "ClusterFirst",
"nodeSelector": {
"region": "infra"
},
"restartPolicy": "Always",
"schedulerName": "default-scheduler",
"securityContext": {},
"serviceAccount": "webconsole",
"serviceAccountName": "webconsole",
"terminationGracePeriodSeconds": 30,
"volumes": [
{
"name": "serving-cert",
"secret": {
"defaultMode": 400,
"secretName": "webconsole-serving-cert"
}
},
{
"configMap": {
"defaultMode": 440,
"name": "webconsole-config"
},
"name": "webconsole-config"
}
]
}
}
},
"status": {
"conditions": [
{
"lastTransitionTime": "2018-01-18T20:44:27Z",
"lastUpdateTime": "2018-01-18T20:44:27Z",
"message": "Deployment does not have minimum availability.",
"reason": "MinimumReplicasUnavailable",
"status": "False",
"type": "Available"
},
{
"lastTransitionTime": "2018-01-18T20:54:29Z",
"lastUpdateTime": "2018-01-18T20:54:29Z",
"message": "ReplicaSet \"webconsole-2959644228\" has timed out progressing.",
"reason": "ProgressDeadlineExceeded",
"status": "False",
"type": "Progressing"
}
],
"observedGeneration": 1,
"replicas": 1,
"unavailableReplicas": 1,
"updatedReplicas": 1
}
},
{
"apiVersion": "extensions/v1beta1",
"kind": "ReplicaSet",
"metadata": {
"annotations": {
"deployment.kubernetes.io/desired-replicas": "1",
"deployment.kubernetes.io/max-replicas": "1",
"deployment.kubernetes.io/revision": "1"
},
"creationTimestamp": "2018-01-18T20:44:27Z",
"generation": 1,
"labels": {
"pod-template-hash": "2959644228",
"webconsole": "true"
},
"name": "webconsole-2959644228",
"namespace": "openshift-web-console",
"ownerReferences": [
{
"apiVersion": "extensions/v1beta1",
"blockOwnerDeletion": true,
"controller": true,
"kind": "Deployment",
"name": "webconsole",
"uid": "604b2497-fc90-11e7-8cfe-001a4a1d019b"
}
],
"resourceVersion": "27084",
"selfLink": "/apis/extensions/v1beta1/namespaces/openshift-web-console/replicasets/webconsole-2959644228",
"uid": "604c9589-fc90-11e7-8cfe-001a4a1d019b"
},
"spec": {
"replicas": 1,
"selector": {
"matchLabels": {
"pod-template-hash": "2959644228",
"webconsole": "true"
}
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"pod-template-hash": "2959644228",
"webconsole": "true"
},
"name": "webconsole"
},
"spec": {
"containers": [
{
"command": [
"/usr/bin/origin-web-console",
"--audit-log-path=-",
"-v=0",
"--config=/var/webconsole-config/webconsole-config.yaml"
],
"image": "docker.io/openshift/origin-web-console:latest",
"imagePullPolicy": "IfNotPresent",
"livenessProbe": {
"failureThreshold": 3,
"httpGet": {
"path": "/",
"port": 8443,
"scheme": "HTTPS"
},
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 1
},
"name": "webconsole",
"ports": [
{
"containerPort": 8443,
"protocol": "TCP"
}
],
"readinessProbe": {
"failureThreshold": 3,
"httpGet": {
"path": "/healthz",
"port": 8443,
"scheme": "HTTPS"
},
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 1
},
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"volumeMounts": [
{
"mountPath": "/var/serving-cert",
"name": "serving-cert"
},
{
"mountPath": "/var/webconsole-config",
"name": "webconsole-config"
}
]
}
],
"dnsPolicy": "ClusterFirst",
"nodeSelector": {
"region": "infra"
},
"restartPolicy": "Always",
"schedulerName": "default-scheduler",
"securityContext": {},
"serviceAccount": "webconsole",
"serviceAccountName": "webconsole",
"terminationGracePeriodSeconds": 30,
"volumes": [
{
"name": "serving-cert",
"secret": {
"defaultMode": 400,
"secretName": "webconsole-serving-cert"
}
},
{
"configMap": {
"defaultMode": 440,
"name": "webconsole-config"
},
"name": "webconsole-config"
}
]
}
}
},
"status": {
"fullyLabeledReplicas": 1,
"observedGeneration": 1,
"replicas": 1
}
}
],
"kind": "List",
"metadata": {
"resourceVersion": "",
"selfLink": ""
}
}
I am using openshift-ansible to provision my cluster. It seems to be happy up until it attempts to Verify that the web console is running where it fails:
However, when i check in the web console from a browser using my public hostname, the app is live and I can log in as an administrator, switch to the openshift-web-console project, and check its pods. I see one pod for
webconsolethat fails to start with the following in its log:Version
Steps To Reproduce
This is completely uncustomized, but this is the deployment config that is getting used:
Current Result
Expected Result
The pod starts successfully
Additional Information
[visit https://docs.openshift.org/latest/welcome/index.html]