[provide a description of the issue]
Hi,
I was following this tutorial to get Dynamic PV with GlusterFS working. In this guide the apiversion is set to apiVersion: storage.k8s.io/v1beta1
Turns out I was following the wrong tutorial but it was working
I found out that specific volumetype can now be set using the latest version of storageclass.
Then I saw in this tutorial (for the latest openshift version) that I can set apiVersion to apiVersion: storage.k8s.io/v1
I tried it out and got this error message : Error from server (BadRequest): error when creating "heketi-storageclass.yaml": StorageClass in version "v1" cannot be handled as a StorageClass: no kind "StorageClass" is registered for version "storage.k8s.io/v1"
I know I'm missing something but I can't see what it is... I'm new to OpenShift
openshift v1.5.1
kubernetes v1.5.2+43a9be4
etcd 3.1.0
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: heketi
annotations:
storageclass.beta.kubernetes.io/is-default-class: "true"
provisioner: kubernetes.io/glusterfs
parameters:
resturl: "http://server1.mycloudfqdn.com:65534"
restuser: "admin"
secretname: "heketi-secret"
secretnamespace: "mynamespace"
gidMin: "20000"
gidMax: "40000"
volumetype: "none"
oc create -f test.yamlError from server (BadRequest): error when creating "heketi-storageclass.yaml": StorageClass in version "v1" cannot be handled as a StorageClass: no kind "StorageClass" is registered for version "storage.k8s.io/v1"
Should just create the StorageClass
oadm diagnostics shows no error when launched by root (configuration files can't be read by a regular user
oc get all result :
{
"apiVersion": "v1",
"items": [
{
"apiVersion": "v1",
"kind": "DeploymentConfig",
"metadata": {
"creationTimestamp": "2017-06-04T07:36:49Z",
"generation": 4,
"labels": {
"app": "mongodb-persistent",
"template": "mongodb-persistent-template"
},
"name": "mongodb",
"namespace": "mynamespace",
"resourceVersion": "80861",
"selfLink": "/oapi/v1/namespaces/mynamespace/deploymentconfigs/mongodb",
"uid": "91e20c98-48f8-11e7-85bb-000c29d7998f"
},
"spec": {
"replicas": 1,
"selector": {
"name": "mongodb"
},
"strategy": {
"activeDeadlineSeconds": 21600,
"recreateParams": {
"timeoutSeconds": 600
},
"resources": {},
"type": "Recreate"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"name": "mongodb"
}
},
"spec": {
"containers": [
{
"env": [
{
"name": "MONGODB_USER",
"valueFrom": {
"secretKeyRef": {
"key": "database-user",
"name": "mongodb"
}
}
},
{
"name": "MONGODB_PASSWORD",
"valueFrom": {
"secretKeyRef": {
"key": "database-password",
"name": "mongodb"
}
}
},
{
"name": "MONGODB_ADMIN_PASSWORD",
"valueFrom": {
"secretKeyRef": {
"key": "database-admin-password",
"name": "mongodb"
}
}
},
{
"name": "MONGODB_DATABASE",
"value": "sampledb"
}
],
"image": "centos/mongodb-32-centos7@sha256:082e631fa48c464b5accb480fb4609386f8d55f581ed842ca863dd6ba68de437",
"imagePullPolicy": "IfNotPresent",
"livenessProbe": {
"failureThreshold": 3,
"initialDelaySeconds": 30,
"periodSeconds": 10,
"successThreshold": 1,
"tcpSocket": {
"port": 27017
},
"timeoutSeconds": 1
},
"name": "mongodb",
"ports": [
{
"containerPort": 27017,
"protocol": "TCP"
}
],
"readinessProbe": {
"exec": {
"command": [
"/bin/sh",
"-i",
"-c",
"mongo 127.0.0.1:27017/$MONGODB_DATABASE -u $MONGODB_USER -p $MONGODB_PASSWORD --eval=\"quit()\""
]
},
"failureThreshold": 3,
"initialDelaySeconds": 3,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 1
},
"resources": {
"limits": {
"memory": "512Mi"
}
},
"securityContext": {
"capabilities": {},
"privileged": false
},
"terminationMessagePath": "/dev/termination-log",
"volumeMounts": [
{
"mountPath": "/var/lib/mongodb/data",
"name": "mongodb-data"
}
]
}
],
"dnsPolicy": "ClusterFirst",
"restartPolicy": "Always",
"securityContext": {
"supplementalGroups": [
5555
]
},
"terminationGracePeriodSeconds": 30,
"volumes": [
{
"name": "mongodb-data",
"persistentVolumeClaim": {
"claimName": "mongodb"
}
}
]
}
},
"test": false,
"triggers": [
{
"imageChangeParams": {
"automatic": true,
"containerNames": [
"mongodb"
],
"from": {
"kind": "ImageStreamTag",
"name": "mongodb:3.2",
"namespace": "openshift"
},
"lastTriggeredImage": "centos/mongodb-32-centos7@sha256:082e631fa48c464b5accb480fb4609386f8d55f581ed842ca863dd6ba68de437"
},
"type": "ImageChange"
},
{
"type": "ConfigChange"
}
]
},
"status": {
"availableReplicas": 1,
"conditions": [
{
"lastTransitionTime": "2017-06-04T07:36:55Z",
"lastUpdateTime": "2017-06-04T07:41:00Z",
"message": "replication controller \"mongodb-2\" successfully rolled out",
"reason": "NewReplicationControllerAvailable",
"status": "True",
"type": "Progressing"
},
{
"lastTransitionTime": "2017-06-04T07:42:10Z",
"lastUpdateTime": "2017-06-04T07:42:10Z",
"message": "Deployment config has minimum availability.",
"status": "True",
"type": "Available"
}
],
"details": {
"causes": [
{
"type": "ConfigChange"
}
],
"message": "config change"
},
"latestVersion": 2,
"observedGeneration": 4,
"readyReplicas": 1,
"replicas": 1,
"unavailableReplicas": 0,
"updatedReplicas": 1
}
},
{
"apiVersion": "v1",
"kind": "ReplicationController",
"metadata": {
"annotations": {
"kubectl.kubernetes.io/desired-replicas": "1",
"openshift.io/deployer-pod.name": "mongodb-1-deploy",
"openshift.io/deployment-config.latest-version": "1",
"openshift.io/deployment-config.name": "mongodb",
"openshift.io/deployment.cancelled": "true",
"openshift.io/deployment.phase": "Failed",
"openshift.io/deployment.replicas": "0",
"openshift.io/deployment.status-reason": "newer deployment was found running",
"openshift.io/encoded-deployment-config": "{\"kind\":\"DeploymentConfig\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"mongodb\",\"namespace\":\"mynamespace\",\"selfLink\":\"/oapi/v1/namespaces/mynamespace/deploymentconfigs/mongodb\",\"uid\":\"91e20c98-48f8-11e7-85bb-000c29d7998f\",\"resourceVersion\":\"80490\",\"generation\":2,\"creationTimestamp\":\"2017-06-04T07:36:49Z\",\"labels\":{\"app\":\"mongodb-persistent\",\"template\":\"mongodb-persistent-template\"}},\"spec\":{\"strategy\":{\"type\":\"Recreate\",\"recreateParams\":{\"timeoutSeconds\":600},\"resources\":{},\"activeDeadlineSeconds\":21600},\"triggers\":[{\"type\":\"ImageChange\",\"imageChangeParams\":{\"automatic\":true,\"containerNames\":[\"mongodb\"],\"from\":{\"kind\":\"ImageStreamTag\",\"namespace\":\"openshift\",\"name\":\"mongodb:3.2\"},\"lastTriggeredImage\":\"centos/mongodb-32-centos7@sha256:082e631fa48c464b5accb480fb4609386f8d55f581ed842ca863dd6ba68de437\"}},{\"type\":\"ConfigChange\"}],\"replicas\":1,\"test\":false,\"selector\":{\"name\":\"mongodb\"},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"name\":\"mongodb\"}},\"spec\":{\"volumes\":[{\"name\":\"mongodb-data\",\"persistentVolumeClaim\":{\"claimName\":\"mongodb\"}}],\"containers\":[{\"name\":\"mongodb\",\"image\":\"centos/mongodb-32-centos7@sha256:082e631fa48c464b5accb480fb4609386f8d55f581ed842ca863dd6ba68de437\",\"ports\":[{\"containerPort\":27017,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"MONGODB_USER\",\"valueFrom\":{\"secretKeyRef\":{\"name\":\"mongodb\",\"key\":\"database-user\"}}},{\"name\":\"MONGODB_PASSWORD\",\"valueFrom\":{\"secretKeyRef\":{\"name\":\"mongodb\",\"key\":\"database-password\"}}},{\"name\":\"MONGODB_ADMIN_PASSWORD\",\"valueFrom\":{\"secretKeyRef\":{\"name\":\"mongodb\",\"key\":\"database-admin-password\"}}},{\"name\":\"MONGODB_DATABASE\",\"value\":\"sampledb\"}],\"resources\":{\"limits\":{\"memory\":\"512Mi\"}},\"volumeMounts\":[{\"name\":\"mongodb-data\",\"mountPath\":\"/var/lib/mongodb/data\"}],\"livenessProbe\":{\"tcpSocket\":{\"port\":27017},\"initialDelaySeconds\":30,\"timeoutSeconds\":1,\"periodSeconds\":10,\"successThreshold\":1,\"failureThreshold\":3},\"readinessProbe\":{\"exec\":{\"command\":[\"/bin/sh\",\"-i\",\"-c\",\"mongo 127.0.0.1:27017/$MONGODB_DATABASE -u $MONGODB_USER -p $MONGODB_PASSWORD --eval=\\\"quit()\\\"\"]},\"initialDelaySeconds\":3,\"timeoutSeconds\":1,\"periodSeconds\":10,\"successThreshold\":1,\"failureThreshold\":3},\"terminationMessagePath\":\"/dev/termination-log\",\"imagePullPolicy\":\"IfNotPresent\",\"securityContext\":{\"capabilities\":{},\"privileged\":false}}],\"restartPolicy\":\"Always\",\"terminationGracePeriodSeconds\":30,\"dnsPolicy\":\"ClusterFirst\",\"securityContext\":{}}}},\"status\":{\"latestVersion\":1,\"observedGeneration\":1,\"replicas\":0,\"updatedReplicas\":0,\"availableReplicas\":0,\"unavailableReplicas\":0,\"details\":{\"message\":\"image change\",\"causes\":[{\"type\":\"ImageChange\",\"imageTrigger\":{\"from\":{\"kind\":\"ImageStreamTag\",\"namespace\":\"openshift\",\"name\":\"mongodb:3.2\"}}}]},\"conditions\":[{\"type\":\"Available\",\"status\":\"False\",\"lastUpdateTime\":\"2017-06-04T07:36:49Z\",\"lastTransitionTime\":\"2017-06-04T07:36:49Z\",\"message\":\"Deployment config does not have minimum availability.\"}]}}\n"
},
"creationTimestamp": "2017-06-04T07:36:49Z",
"generation": 3,
"labels": {
"app": "mongodb-persistent",
"openshift.io/deployment-config.name": "mongodb",
"template": "mongodb-persistent-template"
},
"name": "mongodb-1",
"namespace": "mynamespace",
"resourceVersion": "80805",
"selfLink": "/api/v1/namespaces/mynamespace/replicationcontrollers/mongodb-1",
"uid": "91ed8e8f-48f8-11e7-85bb-000c29d7998f"
},
"spec": {
"replicas": 0,
"selector": {
"deployment": "mongodb-1",
"deploymentconfig": "mongodb",
"name": "mongodb"
},
"template": {
"metadata": {
"annotations": {
"openshift.io/deployment-config.latest-version": "1",
"openshift.io/deployment-config.name": "mongodb",
"openshift.io/deployment.name": "mongodb-1"
},
"creationTimestamp": null,
"labels": {
"deployment": "mongodb-1",
"deploymentconfig": "mongodb",
"name": "mongodb"
}
},
"spec": {
"containers": [
{
"env": [
{
"name": "MONGODB_USER",
"valueFrom": {
"secretKeyRef": {
"key": "database-user",
"name": "mongodb"
}
}
},
{
"name": "MONGODB_PASSWORD",
"valueFrom": {
"secretKeyRef": {
"key": "database-password",
"name": "mongodb"
}
}
},
{
"name": "MONGODB_ADMIN_PASSWORD",
"valueFrom": {
"secretKeyRef": {
"key": "database-admin-password",
"name": "mongodb"
}
}
},
{
"name": "MONGODB_DATABASE",
"value": "sampledb"
}
],
"image": "centos/mongodb-32-centos7@sha256:082e631fa48c464b5accb480fb4609386f8d55f581ed842ca863dd6ba68de437",
"imagePullPolicy": "IfNotPresent",
"livenessProbe": {
"failureThreshold": 3,
"initialDelaySeconds": 30,
"periodSeconds": 10,
"successThreshold": 1,
"tcpSocket": {
"port": 27017
},
"timeoutSeconds": 1
},
"name": "mongodb",
"ports": [
{
"containerPort": 27017,
"protocol": "TCP"
}
],
"readinessProbe": {
"exec": {
"command": [
"/bin/sh",
"-i",
"-c",
"mongo 127.0.0.1:27017/$MONGODB_DATABASE -u $MONGODB_USER -p $MONGODB_PASSWORD --eval=\"quit()\""
]
},
"failureThreshold": 3,
"initialDelaySeconds": 3,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 1
},
"resources": {
"limits": {
"memory": "512Mi"
}
},
"securityContext": {
"capabilities": {},
"privileged": false
},
"terminationMessagePath": "/dev/termination-log",
"volumeMounts": [
{
"mountPath": "/var/lib/mongodb/data",
"name": "mongodb-data"
}
]
}
],
"dnsPolicy": "ClusterFirst",
"restartPolicy": "Always",
"securityContext": {},
"terminationGracePeriodSeconds": 30,
"volumes": [
{
"name": "mongodb-data",
"persistentVolumeClaim": {
"claimName": "mongodb"
}
}
]
}
}
},
"status": {
"observedGeneration": 3,
"replicas": 0
}
},
{
"apiVersion": "v1",
"kind": "ReplicationController",
"metadata": {
"annotations": {
"openshift.io/deployer-pod.name": "mongodb-2-deploy",
"openshift.io/deployment-config.latest-version": "2",
"openshift.io/deployment-config.name": "mongodb",
"openshift.io/deployment.phase": "Complete",
"openshift.io/deployment.replicas": "1",
"openshift.io/deployment.status-reason": "config change",
"openshift.io/encoded-deployment-config": "{\"kind\":\"DeploymentConfig\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"mongodb\",\"namespace\":\"mynamespace\",\"selfLink\":\"/oapi/v1/namespaces/mynamespace/deploymentconfigs/mongodb\",\"uid\":\"91e20c98-48f8-11e7-85bb-000c29d7998f\",\"resourceVersion\":\"80767\",\"generation\":4,\"creationTimestamp\":\"2017-06-04T07:36:49Z\",\"labels\":{\"app\":\"mongodb-persistent\",\"template\":\"mongodb-persistent-template\"}},\"spec\":{\"strategy\":{\"type\":\"Recreate\",\"recreateParams\":{\"timeoutSeconds\":600},\"resources\":{},\"activeDeadlineSeconds\":21600},\"triggers\":[{\"type\":\"ImageChange\",\"imageChangeParams\":{\"automatic\":true,\"containerNames\":[\"mongodb\"],\"from\":{\"kind\":\"ImageStreamTag\",\"namespace\":\"openshift\",\"name\":\"mongodb:3.2\"},\"lastTriggeredImage\":\"centos/mongodb-32-centos7@sha256:082e631fa48c464b5accb480fb4609386f8d55f581ed842ca863dd6ba68de437\"}},{\"type\":\"ConfigChange\"}],\"replicas\":1,\"test\":false,\"selector\":{\"name\":\"mongodb\"},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"name\":\"mongodb\"}},\"spec\":{\"volumes\":[{\"name\":\"mongodb-data\",\"persistentVolumeClaim\":{\"claimName\":\"mongodb\"}}],\"containers\":[{\"name\":\"mongodb\",\"image\":\"centos/mongodb-32-centos7@sha256:082e631fa48c464b5accb480fb4609386f8d55f581ed842ca863dd6ba68de437\",\"ports\":[{\"containerPort\":27017,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"MONGODB_USER\",\"valueFrom\":{\"secretKeyRef\":{\"name\":\"mongodb\",\"key\":\"database-user\"}}},{\"name\":\"MONGODB_PASSWORD\",\"valueFrom\":{\"secretKeyRef\":{\"name\":\"mongodb\",\"key\":\"database-password\"}}},{\"name\":\"MONGODB_ADMIN_PASSWORD\",\"valueFrom\":{\"secretKeyRef\":{\"name\":\"mongodb\",\"key\":\"database-admin-password\"}}},{\"name\":\"MONGODB_DATABASE\",\"value\":\"sampledb\"}],\"resources\":{\"limits\":{\"memory\":\"512Mi\"}},\"volumeMounts\":[{\"name\":\"mongodb-data\",\"mountPath\":\"/var/lib/mongodb/data\"}],\"livenessProbe\":{\"tcpSocket\":{\"port\":27017},\"initialDelaySeconds\":30,\"timeoutSeconds\":1,\"periodSeconds\":10,\"successThreshold\":1,\"failureThreshold\":3},\"readinessProbe\":{\"exec\":{\"command\":[\"/bin/sh\",\"-i\",\"-c\",\"mongo 127.0.0.1:27017/$MONGODB_DATABASE -u $MONGODB_USER -p $MONGODB_PASSWORD --eval=\\\"quit()\\\"\"]},\"initialDelaySeconds\":3,\"timeoutSeconds\":1,\"periodSeconds\":10,\"successThreshold\":1,\"failureThreshold\":3},\"terminationMessagePath\":\"/dev/termination-log\",\"imagePullPolicy\":\"IfNotPresent\",\"securityContext\":{\"capabilities\":{},\"privileged\":false}}],\"restartPolicy\":\"Always\",\"terminationGracePeriodSeconds\":30,\"dnsPolicy\":\"ClusterFirst\",\"securityContext\":{\"supplementalGroups\":[5555]}}}},\"status\":{\"latestVersion\":2,\"observedGeneration\":3,\"replicas\":1,\"updatedReplicas\":1,\"availableReplicas\":0,\"unavailableReplicas\":1,\"details\":{\"message\":\"config change\",\"causes\":[{\"type\":\"ConfigChange\"}]},\"conditions\":[{\"type\":\"Available\",\"status\":\"False\",\"lastUpdateTime\":\"2017-06-04T07:36:49Z\",\"lastTransitionTime\":\"2017-06-04T07:36:49Z\",\"message\":\"Deployment config does not have minimum availability.\"},{\"type\":\"Progressing\",\"status\":\"True\",\"lastUpdateTime\":\"2017-06-04T07:36:55Z\",\"lastTransitionTime\":\"2017-06-04T07:36:55Z\",\"reason\":\"ReplicationControllerUpdated\",\"message\":\"replication controller \\\"mongodb-1\\\" is progressing\"}]}}\n"
},
"creationTimestamp": "2017-06-04T07:41:00Z",
"generation": 2,
"labels": {
"app": "mongodb-persistent",
"openshift.io/deployment-config.name": "mongodb",
"template": "mongodb-persistent-template"
},
"name": "mongodb-2",
"namespace": "mynamespace",
"resourceVersion": "80858",
"selfLink": "/api/v1/namespaces/mynamespace/replicationcontrollers/mongodb-2",
"uid": "2764cbd7-48f9-11e7-85bb-000c29d7998f"
},
"spec": {
"replicas": 1,
"selector": {
"deployment": "mongodb-2",
"deploymentconfig": "mongodb",
"name": "mongodb"
},
"template": {
"metadata": {
"annotations": {
"openshift.io/deployment-config.latest-version": "2",
"openshift.io/deployment-config.name": "mongodb",
"openshift.io/deployment.name": "mongodb-2"
},
"creationTimestamp": null,
"labels": {
"deployment": "mongodb-2",
"deploymentconfig": "mongodb",
"name": "mongodb"
}
},
"spec": {
"containers": [
{
"env": [
{
"name": "MONGODB_USER",
"valueFrom": {
"secretKeyRef": {
"key": "database-user",
"name": "mongodb"
}
}
},
{
"name": "MONGODB_PASSWORD",
"valueFrom": {
"secretKeyRef": {
"key": "database-password",
"name": "mongodb"
}
}
},
{
"name": "MONGODB_ADMIN_PASSWORD",
"valueFrom": {
"secretKeyRef": {
"key": "database-admin-password",
"name": "mongodb"
}
}
},
{
"name": "MONGODB_DATABASE",
"value": "sampledb"
}
],
"image": "centos/mongodb-32-centos7@sha256:082e631fa48c464b5accb480fb4609386f8d55f581ed842ca863dd6ba68de437",
"imagePullPolicy": "IfNotPresent",
"livenessProbe": {
"failureThreshold": 3,
"initialDelaySeconds": 30,
"periodSeconds": 10,
"successThreshold": 1,
"tcpSocket": {
"port": 27017
},
"timeoutSeconds": 1
},
"name": "mongodb",
"ports": [
{
"containerPort": 27017,
"protocol": "TCP"
}
],
"readinessProbe": {
"exec": {
"command": [
"/bin/sh",
"-i",
"-c",
"mongo 127.0.0.1:27017/$MONGODB_DATABASE -u $MONGODB_USER -p $MONGODB_PASSWORD --eval=\"quit()\""
]
},
"failureThreshold": 3,
"initialDelaySeconds": 3,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 1
},
"resources": {
"limits": {
"memory": "512Mi"
}
},
"securityContext": {
"capabilities": {},
"privileged": false
},
"terminationMessagePath": "/dev/termination-log",
"volumeMounts": [
{
"mountPath": "/var/lib/mongodb/data",
"name": "mongodb-data"
}
]
}
],
"dnsPolicy": "ClusterFirst",
"restartPolicy": "Always",
"securityContext": {
"supplementalGroups": [
5555
]
},
"terminationGracePeriodSeconds": 30,
"volumes": [
{
"name": "mongodb-data",
"persistentVolumeClaim": {
"claimName": "mongodb"
}
}
]
}
}
},
"status": {
"availableReplicas": 1,
"fullyLabeledReplicas": 1,
"observedGeneration": 2,
"readyReplicas": 1,
"replicas": 1
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"creationTimestamp": "2017-06-03T18:27:44Z",
"name": "gluster-cluster",
"namespace": "mynamespace",
"resourceVersion": "47699",
"selfLink": "/api/v1/namespaces/mynamespace/services/gluster-cluster",
"uid": "55ccd5c6-488a-11e7-85bb-000c29d7998f"
},
"spec": {
"clusterIP": "172.30.61.139",
"ports": [
{
"port": 1,
"protocol": "TCP",
"targetPort": 1
}
],
"sessionAffinity": "None",
"type": "ClusterIP"
},
"status": {
"loadBalancer": {}
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"creationTimestamp": "2017-06-04T07:36:49Z",
"labels": {
"app": "mongodb-persistent",
"template": "mongodb-persistent-template"
},
"name": "mongodb",
"namespace": "mynamespace",
"resourceVersion": "80485",
"selfLink": "/api/v1/namespaces/mynamespace/services/mongodb",
"uid": "91e25b82-48f8-11e7-85bb-000c29d7998f"
},
"spec": {
"clusterIP": "172.30.196.156",
"ports": [
{
"name": "mongo",
"port": 27017,
"protocol": "TCP",
"targetPort": 27017
}
],
"selector": {
"name": "mongodb"
},
"sessionAffinity": "None",
"type": "ClusterIP"
},
"status": {
"loadBalancer": {}
}
},
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"annotations": {
"kubernetes.io/created-by": "{\"kind\":\"SerializedReference\",\"apiVersion\":\"v1\",\"reference\":{\"kind\":\"ReplicationController\",\"namespace\":\"mynamespace\",\"name\":\"mongodb-2\",\"uid\":\"2764cbd7-48f9-11e7-85bb-000c29d7998f\",\"apiVersion\":\"v1\",\"resourceVersion\":\"80787\"}}\n",
"openshift.io/deployment-config.latest-version": "2",
"openshift.io/deployment-config.name": "mongodb",
"openshift.io/deployment.name": "mongodb-2",
"openshift.io/scc": "restricted"
},
"creationTimestamp": "2017-06-04T07:41:00Z",
"generateName": "mongodb-2-",
"labels": {
"deployment": "mongodb-2",
"deploymentconfig": "mongodb",
"name": "mongodb"
},
"name": "mongodb-2-nnq5t",
"namespace": "mynamespace",
"resourceVersion": "80857",
"selfLink": "/api/v1/namespaces/mynamespace/pods/mongodb-2-nnq5t",
"uid": "27700e42-48f9-11e7-85bb-000c29d7998f"
},
"spec": {
"containers": [
{
"env": [
{
"name": "MONGODB_USER",
"valueFrom": {
"secretKeyRef": {
"key": "database-user",
"name": "mongodb"
}
}
},
{
"name": "MONGODB_PASSWORD",
"valueFrom": {
"secretKeyRef": {
"key": "database-password",
"name": "mongodb"
}
}
},
{
"name": "MONGODB_ADMIN_PASSWORD",
"valueFrom": {
"secretKeyRef": {
"key": "database-admin-password",
"name": "mongodb"
}
}
},
{
"name": "MONGODB_DATABASE",
"value": "sampledb"
}
],
"image": "centos/mongodb-32-centos7@sha256:082e631fa48c464b5accb480fb4609386f8d55f581ed842ca863dd6ba68de437",
"imagePullPolicy": "IfNotPresent",
"livenessProbe": {
"failureThreshold": 3,
"initialDelaySeconds": 30,
"periodSeconds": 10,
"successThreshold": 1,
"tcpSocket": {
"port": 27017
},
"timeoutSeconds": 1
},
"name": "mongodb",
"ports": [
{
"containerPort": 27017,
"protocol": "TCP"
}
],
"readinessProbe": {
"exec": {
"command": [
"/bin/sh",
"-i",
"-c",
"mongo 127.0.0.1:27017/$MONGODB_DATABASE -u $MONGODB_USER -p $MONGODB_PASSWORD --eval=\"quit()\""
]
},
"failureThreshold": 3,
"initialDelaySeconds": 3,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 1
},
"resources": {
"limits": {
"memory": "512Mi"
},
"requests": {
"memory": "512Mi"
}
},
"securityContext": {
"capabilities": {
"drop": [
"KILL",
"MKNOD",
"SETGID",
"SETUID",
"SYS_CHROOT"
]
},
"privileged": false,
"runAsUser": 1000060000,
"seLinuxOptions": {
"level": "s0:c8,c2"
}
},
"terminationMessagePath": "/dev/termination-log",
"volumeMounts": [
{
"mountPath": "/var/lib/mongodb/data",
"name": "mongodb-data"
},
{
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
"name": "default-token-mjkkq",
"readOnly": true
}
]
}
],
"dnsPolicy": "ClusterFirst",
"imagePullSecrets": [
{
"name": "default-dockercfg-p9jvd"
}
],
"nodeName": "server1.emericlebon.com",
"restartPolicy": "Always",
"securityContext": {
"fsGroup": 1000060000,
"seLinuxOptions": {
"level": "s0:c8,c2"
},
"supplementalGroups": [
5555
]
},
"serviceAccount": "default",
"serviceAccountName": "default",
"terminationGracePeriodSeconds": 30,
"volumes": [
{
"name": "mongodb-data",
"persistentVolumeClaim": {
"claimName": "mongodb"
}
},
{
"name": "default-token-mjkkq",
"secret": {
"defaultMode": 420,
"secretName": "default-token-mjkkq"
}
}
]
},
"status": {
"conditions": [
{
"lastProbeTime": null,
"lastTransitionTime": "2017-06-04T07:41:00Z",
"status": "True",
"type": "Initialized"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2017-06-04T07:42:10Z",
"status": "True",
"type": "Ready"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2017-06-04T07:41:00Z",
"status": "True",
"type": "PodScheduled"
}
],
"containerStatuses": [
{
"containerID": "docker://2a75b5a0f0cc8f468382c984ee91e363b52878797cdf937868caf3f61e41ae68",
"image": "centos/mongodb-32-centos7@sha256:082e631fa48c464b5accb480fb4609386f8d55f581ed842ca863dd6ba68de437",
"imageID": "docker-pullable://docker.io/centos/mongodb-32-centos7@sha256:082e631fa48c464b5accb480fb4609386f8d55f581ed842ca863dd6ba68de437",
"lastState": {},
"name": "mongodb",
"ready": true,
"restartCount": 0,
"state": {
"running": {
"startedAt": "2017-06-04T07:41:51Z"
}
}
}
],
"hostIP": "192.168.1.44",
"phase": "Running",
"podIP": "10.129.0.16",
"startTime": "2017-06-04T07:41:00Z"
}
}
],
"kind": "List",
"metadata": {},
"resourceVersion": "",
"selfLink": ""
}
hello,
Try apiVersion: storage.k8s.io/v1beta1
Same behaviour for me.
Also if i try the suggested "apiVersion: storage.k8s.io/v1beta1":
$ oc create -f dynamic_prov/ceph-storageclass.yml
unable to decode "dynamic_prov/ceph-storageclass.yml": no kind "StorageClass" is registered for version "storage.k8s.io/v1beta1"`
Edit: Although i was using the RBD provisioner, because i wanted to add some ceph storage.
openshift v1.5.1
kubernetes v1.5.2+43a9be4
I was able to "solve" this with just updating the oc client on my workstation.
Had v1.3.1 installed which is probably a bit out of date by now. Updated to v1.5.1 and now i can add the storage class with "oc create...".
So this seems to be client-related.
In fact, v1beta1 works, I said it in my previous message.
What I'm telling is that the tutorial says to put v1 as version, and that's what makes it break.
Whether OpenShift should support v1 instead of v1beta1 or the tutorial is wrong, I don't know. I just wanted to point it out :) .
This seems to break our 1.5 gce job
https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended_conformance_gce/4728
@sdodson @jhadvig @jsafrane
@kargakis @jhadvig it looks tome like maybe your build failed and you're getting openshift-ansible-3.6 instead? I'm having a hard time figuring out from that log which version of openshift-ansible is in use but there's definitely a build failing before we even attempt to run ansible.
@stevekuznetsov seems we are forwarding the wrong ORIGIN_TARGET_BRANCH param. Should be release-1.5.
+ ssh -F ./.config/origin-ci-tool/inventory/.ssh_config openshiftdevel 'echo '\''ORIGIN_TARGET_BRANCH=master'\'' >> /etc/environment'
+ ssh -F ./.config/origin-ci-tool/inventory/.ssh_config openshiftdevel 'echo '\''ORIGIN_PULL_ID='\'' >> /etc/environment'
+ ssh -F ./.config/origin-ci-tool/inventory/.ssh_config openshiftdevel 'echo '\''PULL_NUMBER=15139'\'' >> /etc/environment'
+ ssh -F ./.config/origin-ci-tool/inventory/.ssh_config openshiftdevel 'echo '\''PULL_REFS=release-1.5:e43c61db765be6ca7ab30427e4dd8a12027307a4,15139:07b194c7f1a8872e57ca87edab08a552e37c2b90'\'' >> /etc/environment'
+ ssh -F ./.config/origin-ci-tool/inventory/.ssh_config openshiftdevel 'echo '\''buildId=6d8f0cea-7450-11e7-9ecd-0a580a34002c'\'' >> /etc/environment'
+ ssh -F ./.config/origin-ci-tool/inventory/.ssh_config openshiftdevel 'echo '\''RELEASE_TARGET_BRANCH=master'\'' >> /etc/environment'
Also, we use origin-gce:latest instead of origin-gce:v1.5, which btw does not exist in DockerHub cc: @smarterclayton
I am running a job with the correct parameter and origin-gce:v1.5 in https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended_conformance_gce/5051/
/cc @jhadvig ^^
Nvmd, the parameter seems to be forwarded correctly as @jhadvig noticed (discussed in IRC). The only thing that needs to be fixed is having different versions of origin-gce in dockerhub and picking them up correctly back in our jobs. Will open a separate issue in aos-cd-jobs.
You can build a new tag today with zz_origin_gce as a one off, just by
setting target branch and the push target. I'm using that to populate the
appropriate release tags.
On Mon, Jul 31, 2017 at 6:00 AM, Michail Kargakis notifications@github.com
wrote:
Nvmd, the parameter seems to be forwarded correctly as @jhadvig
https://github.com/jhadvig noticed (discussed in IRC). The only thing
that needs to be fixed is having different versions of origin-gce in
dockerhub and picking them up correctly back in our jobs. Will open a
separate issue in aos-cd-jobs.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/openshift/origin/issues/14468#issuecomment-319023829,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABG_p4YJ6I1BZzXesUhgKIDq6uo14q8Cks5sTaXMgaJpZM4NvUmG
.
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten
/remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
Most helpful comment
I was able to "solve" this with just updating the oc client on my workstation.
Had v1.3.1 installed which is probably a bit out of date by now. Updated to v1.5.1 and now i can add the storage class with "oc create...".
So this seems to be client-related.