Advertisement
Guest User

log

a guest
Jul 20th, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.62 KB | None | 0 0
  1. $ oc rollback dc/database --loglevel=8
  2. I0720 08:34:50.379490 16032 loader.go:330] Config loaded from file /data/src/github.com/openshift/origin/openshift.local.config/master/admin.kubeconfig
  3. I0720 08:34:50.391143 16032 round_trippers.go:296] GET https://10.0.2.15:8443/oapi
  4. I0720 08:34:50.391451 16032 round_trippers.go:303] Request Headers:
  5. I0720 08:34:50.391973 16032 round_trippers.go:306] User-Agent: oc/v1.3.0 (linux/amd64) openshift/5fd1268
  6. I0720 08:34:50.392429 16032 round_trippers.go:306] Authorization: Bearer 9qnOGx-ef-OtcKQ1uuNfI0B2B2VN6O5pGEVsKc6Yqfc
  7. I0720 08:34:50.392766 16032 round_trippers.go:306] Accept: application/json, */*
  8. I0720 08:34:50.447875 16032 round_trippers.go:321] Response Status: 200 OK in 53 milliseconds
  9. I0720 08:34:50.447902 16032 round_trippers.go:324] Response Headers:
  10. I0720 08:34:50.447905 16032 round_trippers.go:327] Cache-Control: no-store
  11. I0720 08:34:50.448065 16032 round_trippers.go:327] Content-Type: application/json
  12. I0720 08:34:50.448072 16032 round_trippers.go:327] Date: Wed, 20 Jul 2016 08:34:50 GMT
  13. I0720 08:34:50.448076 16032 round_trippers.go:327] Content-Length: 93
  14. I0720 08:34:50.449560 16032 request.go:891] Response Body: {"kind":"APIVersions","apiVersion":"v1","versions":["v1"],"serverAddressByClientCIDRs":null}
  15. I0720 08:34:50.453538 16032 cached_discovery.go:80] returning cached discovery info from /home/vagrant/.kube/10.0.2.15_8443/servergroups.json
  16. I0720 08:34:50.454343 16032 cached_discovery.go:38] returning cached discovery info from /home/vagrant/.kube/10.0.2.15_8443/autoscaling/v1/serverresources.json
  17. I0720 08:34:50.454676 16032 cached_discovery.go:38] returning cached discovery info from /home/vagrant/.kube/10.0.2.15_8443/batch/v1/serverresources.json
  18. I0720 08:34:50.455081 16032 cached_discovery.go:38] returning cached discovery info from /home/vagrant/.kube/10.0.2.15_8443/extensions/v1beta1/serverresources.json
  19. I0720 08:34:50.455502 16032 cached_discovery.go:38] returning cached discovery info from /home/vagrant/.kube/10.0.2.15_8443/v1/serverresources.json
  20. I0720 08:34:50.464260 16032 round_trippers.go:296] GET https://10.0.2.15:8443/api
  21. I0720 08:34:50.464883 16032 round_trippers.go:303] Request Headers:
  22. I0720 08:34:50.465244 16032 round_trippers.go:306] Accept: application/json, */*
  23. I0720 08:34:50.465502 16032 round_trippers.go:306] User-Agent: oc/v1.3.0+57fb9ac (linux/amd64) kubernetes/57fb9ac
  24. I0720 08:34:50.465732 16032 round_trippers.go:306] Authorization: Bearer 9qnOGx-ef-OtcKQ1uuNfI0B2B2VN6O5pGEVsKc6Yqfc
  25. I0720 08:34:50.467481 16032 round_trippers.go:321] Response Status: 200 OK in 1 milliseconds
  26. I0720 08:34:50.468135 16032 round_trippers.go:324] Response Headers:
  27. I0720 08:34:50.468198 16032 round_trippers.go:327] Cache-Control: no-store
  28. I0720 08:34:50.468225 16032 round_trippers.go:327] Content-Type: application/json
  29. I0720 08:34:50.468244 16032 round_trippers.go:327] Date: Wed, 20 Jul 2016 08:34:50 GMT
  30. I0720 08:34:50.468263 16032 round_trippers.go:327] Content-Length: 131
  31. I0720 08:34:50.468335 16032 request.go:891] Response Body: {"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"10.0.2.15:443"}]}
  32. I0720 08:34:50.468599 16032 round_trippers.go:296] GET https://10.0.2.15:8443/apis
  33. I0720 08:34:50.468648 16032 round_trippers.go:303] Request Headers:
  34. I0720 08:34:50.468671 16032 round_trippers.go:306] User-Agent: oc/v1.3.0+57fb9ac (linux/amd64) kubernetes/57fb9ac
  35. I0720 08:34:50.468693 16032 round_trippers.go:306] Authorization: Bearer 9qnOGx-ef-OtcKQ1uuNfI0B2B2VN6O5pGEVsKc6Yqfc
  36. I0720 08:34:50.468715 16032 round_trippers.go:306] Accept: application/json, */*
  37. I0720 08:34:50.470358 16032 round_trippers.go:321] Response Status: 200 OK in 1 milliseconds
  38. I0720 08:34:50.470458 16032 round_trippers.go:324] Response Headers:
  39. I0720 08:34:50.470480 16032 round_trippers.go:327] Content-Type: application/json
  40. I0720 08:34:50.470510 16032 round_trippers.go:327] Date: Wed, 20 Jul 2016 08:34:50 GMT
  41. I0720 08:34:50.470528 16032 round_trippers.go:327] Content-Length: 763
  42. I0720 08:34:50.470545 16032 round_trippers.go:327] Cache-Control: no-store
  43. I0720 08:34:50.470607 16032 request.go:891] Response Body: {"kind":"APIGroupList","groups":[{"name":"autoscaling","versions":[{"groupVersion":"autoscaling/v1","version":"v1"}],"preferredVersion":{"groupVersion":"autoscaling/v1","version":"v1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"10.0.2.15:443"}]},{"name":"batch","versions":[{"groupVersion":"batch/v1","version":"v1"}],"preferredVersion":{"groupVersion":"batch/v1","version":"v1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"10.0.2.15:443"}]},{"name":"extensions","versions":[{"groupVersion":"extensions/v1beta1","version":"v1beta1"}],"preferredVersion":{"groupVersion":"extensions/v1beta1","version":"v1beta1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"10.0.2.15:443"}]}]}
  44. I0720 08:34:50.476767 16032 cached_discovery.go:80] returning cached discovery info from /home/vagrant/.kube/10.0.2.15_8443/servergroups.json
  45. I0720 08:34:50.477443 16032 cached_discovery.go:38] returning cached discovery info from /home/vagrant/.kube/10.0.2.15_8443/autoscaling/v1/serverresources.json
  46. I0720 08:34:50.477868 16032 cached_discovery.go:38] returning cached discovery info from /home/vagrant/.kube/10.0.2.15_8443/batch/v1/serverresources.json
  47. I0720 08:34:50.478458 16032 cached_discovery.go:38] returning cached discovery info from /home/vagrant/.kube/10.0.2.15_8443/extensions/v1beta1/serverresources.json
  48. I0720 08:34:50.480187 16032 cached_discovery.go:38] returning cached discovery info from /home/vagrant/.kube/10.0.2.15_8443/v1/serverresources.json
  49. I0720 08:34:50.483327 16032 round_trippers.go:296] GET https://10.0.2.15:8443/oapi/v1/namespaces/user/deploymentconfigs/database
  50. I0720 08:34:50.483574 16032 round_trippers.go:303] Request Headers:
  51. I0720 08:34:50.483914 16032 round_trippers.go:306] Accept: application/json, */*
  52. I0720 08:34:50.484247 16032 round_trippers.go:306] User-Agent: oc/v1.3.0 (linux/amd64) openshift/5fd1268
  53. I0720 08:34:50.484515 16032 round_trippers.go:306] Authorization: Bearer 9qnOGx-ef-OtcKQ1uuNfI0B2B2VN6O5pGEVsKc6Yqfc
  54. I0720 08:34:50.487093 16032 round_trippers.go:321] Response Status: 200 OK in 2 milliseconds
  55. I0720 08:34:50.487132 16032 round_trippers.go:324] Response Headers:
  56. I0720 08:34:50.487138 16032 round_trippers.go:327] Cache-Control: no-store
  57. I0720 08:34:50.487142 16032 round_trippers.go:327] Content-Type: application/json
  58. I0720 08:34:50.487146 16032 round_trippers.go:327] Date: Wed, 20 Jul 2016 08:34:50 GMT
  59. I0720 08:34:50.487150 16032 round_trippers.go:327] Content-Length: 2028
  60. I0720 08:34:50.487224 16032 request.go:891] Response Body: {"kind":"DeploymentConfig","apiVersion":"v1","metadata":{"name":"database","namespace":"user","selfLink":"/oapi/v1/namespaces/user/deploymentconfigs/database","uid":"45c48ce7-4e4e-11e6-8b14-080027242396","resourceVersion":"1026","creationTimestamp":"2016-07-20T07:47:56Z","labels":{"template":"application-template-stibuild"},"annotations":{"openshift.io/deployment.cancelled":"1"}},"spec":{"strategy":{"type":"Recreate","recreateParams":{"timeoutSeconds":600,"pre":{"failurePolicy":"Abort","execNewPod":{"command":["/bin/true"],"env":[{"name":"CUSTOM_VAR1","value":"custom_value1"}],"containerName":"ruby-helloworld-database","volumes":["ruby-helloworld-data"]}},"mid":{"failurePolicy":"Abort","execNewPod":{"command":["/bin/true"],"env":[{"name":"CUSTOM_VAR2","value":"custom_value2"}],"containerName":"ruby-helloworld-database","volumes":["ruby-helloworld-data"]}},"post":{"failurePolicy":"Ignore","execNewPod":{"command":["/bin/false"],"env":[{"name":"CUSTOM_VAR2","value":"custom_value2"}],"containerName":"ruby-helloworld-database","volumes":["ruby-helloworld-data"]}}},"resources":{}},"triggers":[{"type":"ConfigChange"}],"replicas":1,"test":false,"selector":{"name":"database"},"template":{"metadata":{"creationTimestamp":null,"labels":{"name":"database"}},"spec":{"volumes":[{"name":"ruby-helloworld-data","emptyDir":{}}],"containers":[{"name":"ruby-helloworld-database","image":"openshift/mysql-55-centos7:latest","ports":[{"containerPort":3306,"protocol":"TCP"}],"env":[{"name":"MYSQL_USER","value":"userE3K"},{"name":"MYSQL_PASSWORD","value":"GdNdcg8x"},{"name":"MYSQL_DATABASE","value":"root"}],"resources":{},"volumeMounts":[{"name":"ruby-helloworld-data","mountPath":"/var/lib/mysql/data"}],"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"Always","securityContext":{"capabilities":{},"privileged":false}}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{}}}},"status":{"latestVersion":4,"details":{"causes":[{"type":"ConfigChange"}]}}}
  61. I0720 08:34:50.493002 16032 round_trippers.go:296] GET https://10.0.2.15:8443/api/v1/namespaces/user/replicationcontrollers?labelSelector=openshift.io%2Fdeployment-config.name%3Ddatabase
  62. I0720 08:34:50.493040 16032 round_trippers.go:303] Request Headers:
  63. I0720 08:34:50.493055 16032 round_trippers.go:306] Accept: application/json, */*
  64. I0720 08:34:50.493067 16032 round_trippers.go:306] User-Agent: oc/v1.3.0+57fb9ac (linux/amd64) kubernetes/57fb9ac
  65. I0720 08:34:50.493078 16032 round_trippers.go:306] Authorization: Bearer 9qnOGx-ef-OtcKQ1uuNfI0B2B2VN6O5pGEVsKc6Yqfc
  66. I0720 08:34:50.497786 16032 round_trippers.go:321] Response Status: 200 OK in 4 milliseconds
  67. I0720 08:34:50.497846 16032 round_trippers.go:324] Response Headers:
  68. I0720 08:34:50.497860 16032 round_trippers.go:327] Date: Wed, 20 Jul 2016 08:34:50 GMT
  69. I0720 08:34:50.497873 16032 round_trippers.go:327] Cache-Control: no-store
  70. I0720 08:34:50.497885 16032 round_trippers.go:327] Content-Type: application/json
  71. I0720 08:34:50.498021 16032 request.go:891] Response Body: {"kind":"ReplicationControllerList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/namespaces/user/replicationcontrollers","resourceVersion":"1050"},"items":[{"metadata":{"name":"database-1","namespace":"user","selfLink":"/api/v1/namespaces/user/replicationcontrollers/database-1","uid":"45e55ad1-4e4e-11e6-8b14-080027242396","resourceVersion":"662","generation":3,"creationTimestamp":"2016-07-20T07:47:56Z","labels":{"openshift.io/deployment-config.name":"database","template":"application-template-stibuild"},"annotations":{"kubectl.kubernetes.io/desired-replicas":"1","openshift.io/deployer-pod.name":"database-1-deploy","openshift.io/deployment-config.latest-version":"1","openshift.io/deployment-config.name":"database","openshift.io/deployment.cancelled":"true","openshift.io/deployment.phase":"Failed","openshift.io/deployment.replicas":"0","openshift.io/deployment.status-reason":"cancelled by the user","openshift.io/encoded-deployment-config":"{\"kind\":\"DeploymentConfig\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"database\",\"namespace\":\"user\",\"selfLink\":\"/oapi/v1/namespaces/user/deploymentconfigs/database\",\"uid\":\"45c48ce7-4e4e-11e6-8b14-080027242396\",\"resourceVersion\":\"432\",\"creationTimestamp\":\"2016-07-20T07:47:56Z\",\"labels\":{\"template\":\"application-template-stibuild\"}},\"spec\":{\"strategy\":{\"type\":\"Recreate\",\"recreateParams\":{\"timeoutSeconds\":600,\"pre\":{\"failurePolicy\":\"Abort\",\"execNewPod\":{\"command\":[\"/bin/true\"],\"env\":[{\"name\":\"CUSTOM_VAR1\",\"value\":\"custom_value1\"}],\"containerName\":\"ruby-helloworld-database\",\"volumes\":[\"ruby-helloworld-data\"]}},\"mid\":{\"failurePolicy\":\"Abort\",\"execNewPod\":{\"command\":[\"/bin/true\"],\"env\":[{\"name\":\"CUSTOM_VAR2\",\"value\":\"custom_value2\"}],\"containerName\":\"ruby-helloworld-database\",\"volumes\":[\"ruby-helloworld-data\"]}},\"post\":{\"failurePolicy\":\"Ignore\",\"execNewPod\":{\"command\":[\"/bin/false\"],\"env\":[{\"name\":\"CUSTOM_VAR2\",\"value\":\"custom_value2\"}],\"containerName\":\"ruby-helloworld-database\",\"volumes\":[\"ruby-helloworld-data\"]}}},\"resources\":{}},\"triggers\":[{\"type\":\"ConfigChange\"}],\"replicas\":1,\"test\":false,\"selector\":{\"name\":\"database\"},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"name\":\"database\"}},\"spec\":{\"volumes\":[{\"name\":\"ruby-helloworld-data\",\"emptyDir\":{}}],\"containers\":[{\"name\":\"ruby-helloworld-database\",\"image\":\"openshift/mysql-55-centos7:latest\",\"ports\":[{\"containerPort\":3306,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"MYSQL_USER\",\"value\":\"userE3K\"},{\"name\":\"MYSQL_PASSWORD\",\"value\":\"GdNdcg8x\"},{\"name\":\"MYSQL_DATABASE\",\"value\":\"root\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"ruby-helloworld-data\",\"mountPath\":\"/var/lib/mysql/data\"}],\"terminationMessagePath\":\"/dev/termination-log\",\"imagePullPolicy\":\"Always\",\"securityContext\":{\"capabilities\":{},\"privileged\":false}}],\"restartPolicy\":\"Always\",\"terminationGracePeriodSeconds\":30,\"dnsPolicy\":\"ClusterFirst\",\"securityContext\":{}}}},\"status\":{\"latestVersion\":1,\"details\":{\"causes\":[{\"type\":\"ConfigChange\"}]}}}\n"}},"spec":{"replicas":0,"selector":{"deployment":"database-1","deploymentconfig":"database","name":"database"},"template":{"metadata":{"creationTimestamp":null,"labels":{"deployment":"database-1","deploymentconfig":"database","name":"database"},"annotations":{"openshift.io/deployment-config.latest-version":"1","openshift.io/deployment-config.name":"database","openshift.io/deployment.name":"database-1"}},"spec":{"volumes":[{"name":"ruby-helloworld-data","emptyDir":{}}],"containers":[{"name":"ruby-helloworld-database","image":"openshift/mysql-55-centos7:latest","ports":[{"containerPort":3306,"protocol":"TCP"}],"env":[{"name":"MYSQL_USER","value":"userE3K"},{"name":"MYSQL_PASSWORD","value":"GdNdcg8x"},{"name":"MYSQL_DATABASE","value":"root"}],"resources":{},"volumeMounts":[{"name":"ruby-helloworld-data","mountPath":"/var/lib/mysql/data"}],"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"Always","securityContext":{"capabilities":{},"privileged":false}}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{}}}},"status":{"replicas":0,"observedGeneration":3}},{"metadata":{"name":"database-2","namespace":"user","selfLink":"/api/v1/namespaces/user/replicationcontrollers/database-2","uid":"c49739c9-4e4f-11e6-8b14-080027242396","resourceVersion":"902","generation":3,"creationTimestamp":"2016-07-20T07:58:38Z","labels":{"openshift.io/deployment-config.name":"database","template":"application-template-stibuild"},"annotations":{"openshift.io/deployer-pod.name":"database-2-deploy","openshift.io/deployment-config.latest-version":"2","openshift.io/deployment-config.name":"database","openshift.io/deployment.phase":"Complete","openshift.io/deployment.replicas":"0","openshift.io/encoded-deployment-config":"{\"kind\":\"DeploymentConfig\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"database\",\"namespace\":\"user\",\"selfLink\":\"/oapi/v1/namespaces/user/deploymentconfigs/database\",\"uid\":\"45c48ce7-4e4e-11e6-8b14-080027242396\",\"resourceVersion\":\"663\",\"creationTimestamp\":\"2016-07-20T07:47:56Z\",\"labels\":{\"template\":\"application-template-stibuild\"},\"annotations\":{\"openshift.io/deployment.cancelled\":\"1\"}},\"spec\":{\"strategy\":{\"type\":\"Recreate\",\"recreateParams\":{\"timeoutSeconds\":600,\"pre\":{\"failurePolicy\":\"Abort\",\"execNewPod\":{\"command\":[\"/bin/true\"],\"env\":[{\"name\":\"CUSTOM_VAR1\",\"value\":\"custom_value1\"}],\"containerName\":\"ruby-helloworld-database\",\"volumes\":[\"ruby-helloworld-data\"]}},\"mid\":{\"failurePolicy\":\"Abort\",\"execNewPod\":{\"command\":[\"/bin/true\"],\"env\":[{\"name\":\"CUSTOM_VAR2\",\"value\":\"custom_value2\"}],\"containerName\":\"ruby-helloworld-database\",\"volumes\":[\"ruby-helloworld-data\"]}},\"post\":{\"failurePolicy\":\"Ignore\",\"execNewPod\":{\"command\":[\"/bin/false\"],\"env\":[{\"name\":\"CUSTOM_VAR2\",\"value\":\"custom_value2\"}],\"containerName\":\"ruby-helloworld-database\",\"volumes\":[\"ruby-helloworld-data\"]}}},\"resources\":{}},\"triggers\":[{\"type\":\"ConfigChange\"}],\"replicas\":1,\"test\":false,\"selector\":{\"name\":\"database\"},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"name\":\"database\"}},\"spec\":{\"volumes\":[{\"name\":\"ruby-helloworld-data\",\"emptyDir\":{}}],\"containers\":[{\"name\":\"ruby-helloworld-database\",\"image\":\"openshift/mysql-55-centos7:latest\",\"ports\":[{\"containerPort\":3306,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"MYSQL_USER\",\"value\":\"userE3K\"},{\"name\":\"MYSQL_PASSWORD\",\"value\":\"GdNdcg8x\"},{\"name\":\"MYSQL_DATABASE\",\"value\":\"root\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"ruby-helloworld-data\",\"mountPath\":\"/var/lib/mysql/data\"}],\"terminationMessagePath\":\"/dev/termination-log\",\"imagePullPolicy\":\"Always\",\"securityContext\":{\"capabilities\":{},\"privileged\":false}}],\"restartPolicy\":\"Always\",\"terminationGracePeriodSeconds\":30,\"dnsPolicy\":\"ClusterFirst\",\"securityContext\":{}}}},\"status\":{\"latestVersion\":2,\"details\":{\"causes\":[{\"type\":\"ConfigChange\"}]}}}\n"}},"spec":{"replicas":0,"selector":{"deployment":"database-2","deploymentconfig":"database","name":"database"},"template":{"metadata":{"creationTimestamp":null,"labels":{"deployment":"database-2","deploymentconfig":"database","name":"database"},"annotations":{"openshift.io/deployment-config.latest-version":"2","openshift.io/deployment-config.name":"database","openshift.io/deployment.name":"database-2"}},"spec":{"volumes":[{"name":"ruby-helloworld-data","emptyDir":{}}],"containers":[{"name":"ruby-helloworld-database","image":"openshift/mysql-55-centos7:latest","ports":[{"containerPort":3306,"protocol":"TCP"}],"env":[{"name":"MYSQL_USER","value":"userE3K"},{"name":"MYSQL_PASSWORD","value":"GdNdcg8x"},{"name":"MYSQL_DATABASE","value":"root"}],"resources":{},"volumeMounts":[{"name":"ruby-helloworld-data","mountPath":"/var/lib/mysql/data"}],"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"Always","securityContext":{"capabilities":{},"privileged":false}}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{}}}},"status":{"replicas":0,"observedGeneration":3}},{"metadata":{"name":"database-3","namespace":"user","selfLink":"/api/v1/namespaces/user/replicationcontrollers/database-3","uid":"af8fb4b2-4e51-11e6-8b14-080027242396","resourceVersion":"887","generation":2,"creationTimestamp":"2016-07-20T08:12:22Z","labels":{"openshift.io/deployment-config.name":"database","template":"application-template-stibuild"},"annotations":{"openshift.io/deployer-pod.name":"database-3-deploy","openshift.io/deployment-config.latest-version":"3","openshift.io/deployment-config.name":"database","openshift.io/deployment.phase":"Complete","openshift.io/deployment.replicas":"1","openshift.io/encoded-deployment-config":"{\"kind\":\"DeploymentConfig\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"database\",\"namespace\":\"user\",\"selfLink\":\"/oapi/v1/namespaces/user/deploymentconfigs/database\",\"uid\":\"45c48ce7-4e4e-11e6-8b14-080027242396\",\"resourceVersion\":\"816\",\"creationTimestamp\":\"2016-07-20T07:47:56Z\",\"labels\":{\"template\":\"application-template-stibuild\"},\"annotations\":{\"openshift.io/deployment.cancelled\":\"1\"}},\"spec\":{\"strategy\":{\"type\":\"Recreate\",\"recreateParams\":{\"timeoutSeconds\":600,\"pre\":{\"failurePolicy\":\"Abort\",\"execNewPod\":{\"command\":[\"/bin/true\"],\"env\":[{\"name\":\"CUSTOM_VAR1\",\"value\":\"custom_value1\"}],\"containerName\":\"ruby-helloworld-database\",\"volumes\":[\"ruby-helloworld-data\"]}},\"mid\":{\"failurePolicy\":\"Abort\",\"execNewPod\":{\"command\":[\"/bin/true\"],\"env\":[{\"name\":\"CUSTOM_VAR2\",\"value\":\"custom_value2\"}],\"containerName\":\"ruby-helloworld-database\",\"volumes\":[\"ruby-helloworld-data\"]}},\"post\":{\"failurePolicy\":\"Ignore\",\"execNewPod\":{\"command\":[\"/bin/false\"],\"env\":[{\"name\":\"CUSTOM_VAR2\",\"value\":\"custom_value2\"}],\"containerName\":\"ruby-helloworld-database\",\"volumes\":[\"ruby-helloworld-data\"]}}},\"resources\":{}},\"triggers\":[{\"type\":\"ConfigChange\"}],\"replicas\":1,\"test\":false,\"selector\":{\"name\":\"database\"},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"name\":\"database\"}},\"spec\":{\"volumes\":[{\"name\":\"ruby-helloworld-data\",\"emptyDir\":{}}],\"containers\":[{\"name\":\"ruby-helloworld-database\",\"image\":\"openshift/mysql-55-centos7:latest\",\"ports\":[{\"containerPort\":3306,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"MYSQL_USER\",\"value\":\"userE3K\"},{\"name\":\"MYSQL_PASSWORD\",\"value\":\"GdNdcg8x\"},{\"name\":\"MYSQL_DATABASE\",\"value\":\"root\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"ruby-helloworld-data\",\"mountPath\":\"/var/lib/mysql/data\"}],\"terminationMessagePath\":\"/dev/termination-log\",\"imagePullPolicy\":\"Always\",\"securityContext\":{\"capabilities\":{},\"privileged\":false}}],\"restartPolicy\":\"Always\",\"terminationGracePeriodSeconds\":30,\"dnsPolicy\":\"ClusterFirst\",\"securityContext\":{}}}},\"status\":{\"latestVersion\":3,\"details\":{\"causes\":[{\"type\":\"ConfigChange\"}]}}}\n"}},"spec":{"replicas":1,"selector":{"deployment":"database-3","deploymentconfig":"database","name":"database"},"template":{"metadata":{"creationTimestamp":null,"labels":{"deployment":"database-3","deploymentconfig":"database","name":"database"},"annotations":{"openshift.io/deployment-config.latest-version":"3","openshift.io/deployment-config.name":"database","openshift.io/deployment.name":"database-3"}},"spec":{"volumes":[{"name":"ruby-helloworld-data","emptyDir":{}}],"containers":[{"name":"ruby-helloworld-database","image":"openshift/mysql-55-centos7:latest","ports":[{"containerPort":3306,"protocol":"TCP"}],"env":[{"name":"MYSQL_USER","value":"userE3K"},{"name":"MYSQL_PASSWORD","value":"GdNdcg8x"},{"name":"MYSQL_DATABASE","value":"root"}],"resources":{},"volumeMounts":[{"name":"ruby-helloworld-data","mountPath":"/var/lib/mysql/data"}],"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"Always","securityContext":{"capabilities":{},"privileged":false}}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{}}}},"status":{"replicas":1,"fullyLabeledReplicas":1,"observedGeneration":2}},{"metadata":{"name":"database-4","namespace":"user","selfLink":"/api/v1/namespaces/user/replicationcontrollers/database-4","uid":"cd96ed19-4e54-11e6-8b14-080027242396","resourceVersion":"1041","generation":1,"creationTimestamp":"2016-07-20T08:34:41Z","labels":{"openshift.io/deployment-config.name":"database","template":"application-template-stibuild"},"annotations":{"kubectl.kubernetes.io/desired-replicas":"1","openshift.io/deployer-pod.name":"database-4-deploy","openshift.io/deployment-config.latest-version":"4","openshift.io/deployment-config.name":"database","openshift.io/deployment.phase":"Running","openshift.io/deployment.replicas":"0","openshift.io/encoded-deployment-config":"{\"kind\":\"DeploymentConfig\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"database\",\"namespace\":\"user\",\"selfLink\":\"/oapi/v1/namespaces/user/deploymentconfigs/database\",\"uid\":\"45c48ce7-4e4e-11e6-8b14-080027242396\",\"resourceVersion\":\"1026\",\"creationTimestamp\":\"2016-07-20T07:47:56Z\",\"labels\":{\"template\":\"application-template-stibuild\"},\"annotations\":{\"openshift.io/deployment.cancelled\":\"1\"}},\"spec\":{\"strategy\":{\"type\":\"Recreate\",\"recreateParams\":{\"timeoutSeconds\":600,\"pre\":{\"failurePolicy\":\"Abort\",\"execNewPod\":{\"command\":[\"/bin/true\"],\"env\":[{\"name\":\"CUSTOM_VAR1\",\"value\":\"custom_value1\"}],\"containerName\":\"ruby-helloworld-database\",\"volumes\":[\"ruby-helloworld-data\"]}},\"mid\":{\"failurePolicy\":\"Abort\",\"execNewPod\":{\"command\":[\"/bin/true\"],\"env\":[{\"name\":\"CUSTOM_VAR2\",\"value\":\"custom_value2\"}],\"containerName\":\"ruby-helloworld-database\",\"volumes\":[\"ruby-helloworld-data\"]}},\"post\":{\"failurePolicy\":\"Ignore\",\"execNewPod\":{\"command\":[\"/bin/false\"],\"env\":[{\"name\":\"CUSTOM_VAR2\",\"value\":\"custom_value2\"}],\"containerName\":\"ruby-helloworld-database\",\"volumes\":[\"ruby-helloworld-data\"]}}},\"resources\":{}},\"triggers\":[{\"type\":\"ConfigChange\"}],\"replicas\":1,\"test\":false,\"selector\":{\"name\":\"database\"},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"name\":\"database\"}},\"spec\":{\"volumes\":[{\"name\":\"ruby-helloworld-data\",\"emptyDir\":{}}],\"containers\":[{\"name\":\"ruby-helloworld-database\",\"image\":\"openshift/mysql-55-centos7:latest\",\"ports\":[{\"containerPort\":3306,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"MYSQL_USER\",\"value\":\"userE3K\"},{\"name\":\"MYSQL_PASSWORD\",\"value\":\"GdNdcg8x\"},{\"name\":\"MYSQL_DATABASE\",\"value\":\"root\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"ruby-helloworld-data\",\"mountPath\":\"/var/lib/mysql/data\"}],\"terminationMessagePath\":\"/dev/termination-log\",\"imagePullPolicy\":\"Always\",\"securityContext\":{\"capabilities\":{},\"privileged\":false}}],\"restartPolicy\":\"Always\",\"terminationGracePeriodSeconds\":30,\"dnsPolicy\":\"ClusterFirst\",\"securityContext\":{}}}},\"status\":{\"latestVersion\":4,\"details\":{\"causes\":[{\"type\":\"ConfigChange\"}]}}}\n"}},"spec":{"replicas":0,"selector":{"deployment":"database-4","deploymentconfig":"database","name":"database"},"template":{"metadata":{"creationTimestamp":null,"labels":{"deployment":"database-4","deploymentconfig":"database","name":"database"},"annotations":{"openshift.io/deployment-config.latest-version":"4","openshift.io/deployment-config.name":"database","openshift.io/deployment.name":"database-4"}},"spec":{"volumes":[{"name":"ruby-helloworld-data","emptyDir":{}}],"containers":[{"name":"ruby-helloworld-database","image":"openshift/mysql-55-centos7:latest","ports":[{"containerPort":3306,"protocol":"TCP"}],"env":[{"name":"MYSQL_USER","value":"userE3K"},{"name":"MYSQL_PASSWORD","value":"GdNdcg8x"},{"name":"MYSQL_DATABASE","value":"root"}],"resources":{},"volumeMounts":[{"name":"ruby-helloworld-data","mountPath":"/var/lib/mysql/data"}],"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"Always","securityContext":{"capabilities":{},"privileged":false}}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{}}}},"status":{"replicas":0,"observedGeneration":1}}]}
  72. I0720 08:34:50.501086 16032 request.go:558] Request Body: {"kind":"DeploymentConfigRollback","apiVersion":"v1","name":"database","spec":{"from":{"name":"database-3"},"includeTriggers":false,"includeTemplate":true,"includeReplicationMeta":false,"includeStrategy":false}}
  73. I0720 08:34:50.501179 16032 round_trippers.go:296] POST https://10.0.2.15:8443/oapi/v1/namespaces/user/deploymentconfigs/database/rollback
  74. I0720 08:34:50.501199 16032 round_trippers.go:303] Request Headers:
  75. I0720 08:34:50.501212 16032 round_trippers.go:306] Accept: application/json, */*
  76. I0720 08:34:50.501233 16032 round_trippers.go:306] Authorization: Bearer 9qnOGx-ef-OtcKQ1uuNfI0B2B2VN6O5pGEVsKc6Yqfc
  77. I0720 08:34:50.501252 16032 round_trippers.go:306] Content-Type: application/json
  78. I0720 08:34:50.501272 16032 round_trippers.go:306] User-Agent: oc/v1.3.0 (linux/amd64) openshift/5fd1268
  79. I0720 08:34:50.503275 16032 round_trippers.go:321] Response Status: 403 Forbidden in 1 milliseconds
  80. I0720 08:34:50.503591 16032 round_trippers.go:324] Response Headers:
  81. I0720 08:34:50.503801 16032 round_trippers.go:327] Cache-Control: no-store
  82. I0720 08:34:50.504086 16032 round_trippers.go:327] Content-Type: application/json
  83. I0720 08:34:50.504337 16032 round_trippers.go:327] Date: Wed, 20 Jul 2016 08:34:50 GMT
  84. I0720 08:34:50.504628 16032 round_trippers.go:327] Content-Length: 302
  85. I0720 08:34:50.504951 16032 request.go:891] Response Body: {
  86. "kind": "Status",
  87. "apiVersion": "v1",
  88. "metadata": {},
  89. "status": "Failure",
  90. "message": "User \"user\" cannot create deploymentconfigs/rollback in project \"user\"",
  91. "reason": "Forbidden",
  92. "details": {
  93. "name": "database",
  94. "kind": "deploymentconfigs/rollback"
  95. },
  96. "code": 403
  97. }
  98. I0720 08:34:50.508209 16032 request.go:558] Request Body: {"kind":"DeploymentConfigRollback","apiVersion":"v1","name":"database","spec":{"from":{"name":"database-3"},"includeTriggers":false,"includeTemplate":true,"includeReplicationMeta":false,"includeStrategy":false}}
  99. I0720 08:34:50.508447 16032 round_trippers.go:296] POST https://10.0.2.15:8443/oapi/v1/namespaces/user/deploymentconfigrollbacks
  100. I0720 08:34:50.508626 16032 round_trippers.go:303] Request Headers:
  101. I0720 08:34:50.508793 16032 round_trippers.go:306] User-Agent: oc/v1.3.0 (linux/amd64) openshift/5fd1268
  102. I0720 08:34:50.508978 16032 round_trippers.go:306] Authorization: Bearer 9qnOGx-ef-OtcKQ1uuNfI0B2B2VN6O5pGEVsKc6Yqfc
  103. I0720 08:34:50.509247 16032 round_trippers.go:306] Accept: application/json, */*
  104. I0720 08:34:50.509521 16032 round_trippers.go:306] Content-Type: application/json
  105. I0720 08:34:50.516560 16032 round_trippers.go:321] Response Status: 201 Created in 6 milliseconds
  106. I0720 08:34:50.516591 16032 round_trippers.go:324] Response Headers:
  107. I0720 08:34:50.516632 16032 round_trippers.go:327] Date: Wed, 20 Jul 2016 08:34:50 GMT
  108. I0720 08:34:50.516637 16032 round_trippers.go:327] Content-Length: 2036
  109. I0720 08:34:50.516641 16032 round_trippers.go:327] Cache-Control: no-store
  110. I0720 08:34:50.516645 16032 round_trippers.go:327] Content-Type: application/json
  111. I0720 08:34:50.516734 16032 request.go:891] Response Body: {"kind":"DeploymentConfig","apiVersion":"v1","metadata":{"name":"database","namespace":"user","selfLink":"/oapi/v1/namespaces/user/deploymentconfigrollbacks/database","uid":"45c48ce7-4e4e-11e6-8b14-080027242396","resourceVersion":"1026","creationTimestamp":"2016-07-20T07:47:56Z","labels":{"template":"application-template-stibuild"},"annotations":{"openshift.io/deployment.cancelled":"1"}},"spec":{"strategy":{"type":"Recreate","recreateParams":{"timeoutSeconds":600,"pre":{"failurePolicy":"Abort","execNewPod":{"command":["/bin/true"],"env":[{"name":"CUSTOM_VAR1","value":"custom_value1"}],"containerName":"ruby-helloworld-database","volumes":["ruby-helloworld-data"]}},"mid":{"failurePolicy":"Abort","execNewPod":{"command":["/bin/true"],"env":[{"name":"CUSTOM_VAR2","value":"custom_value2"}],"containerName":"ruby-helloworld-database","volumes":["ruby-helloworld-data"]}},"post":{"failurePolicy":"Ignore","execNewPod":{"command":["/bin/false"],"env":[{"name":"CUSTOM_VAR2","value":"custom_value2"}],"containerName":"ruby-helloworld-database","volumes":["ruby-helloworld-data"]}}},"resources":{}},"triggers":[{"type":"ConfigChange"}],"replicas":1,"test":false,"selector":{"name":"database"},"template":{"metadata":{"creationTimestamp":null,"labels":{"name":"database"}},"spec":{"volumes":[{"name":"ruby-helloworld-data","emptyDir":{}}],"containers":[{"name":"ruby-helloworld-database","image":"openshift/mysql-55-centos7:latest","ports":[{"containerPort":3306,"protocol":"TCP"}],"env":[{"name":"MYSQL_USER","value":"userE3K"},{"name":"MYSQL_PASSWORD","value":"GdNdcg8x"},{"name":"MYSQL_DATABASE","value":"root"}],"resources":{},"volumeMounts":[{"name":"ruby-helloworld-data","mountPath":"/var/lib/mysql/data"}],"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"Always","securityContext":{"capabilities":{},"privileged":false}}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{}}}},"status":{"latestVersion":5,"details":{"causes":[{"type":"ConfigChange"}]}}}
  112. I0720 08:34:50.518986 16032 request.go:558] Request Body: {"kind":"DeploymentConfig","apiVersion":"v1","metadata":{"name":"database","namespace":"user","selfLink":"/oapi/v1/namespaces/user/deploymentconfigrollbacks/database","uid":"45c48ce7-4e4e-11e6-8b14-080027242396","resourceVersion":"1026","creationTimestamp":"2016-07-20T07:47:56Z","labels":{"template":"application-template-stibuild"},"annotations":{"openshift.io/deployment.cancelled":"1"}},"spec":{"strategy":{"type":"Recreate","recreateParams":{"timeoutSeconds":600,"pre":{"failurePolicy":"Abort","execNewPod":{"command":["/bin/true"],"env":[{"name":"CUSTOM_VAR1","value":"custom_value1"}],"containerName":"ruby-helloworld-database","volumes":["ruby-helloworld-data"]}},"mid":{"failurePolicy":"Abort","execNewPod":{"command":["/bin/true"],"env":[{"name":"CUSTOM_VAR2","value":"custom_value2"}],"containerName":"ruby-helloworld-database","volumes":["ruby-helloworld-data"]}},"post":{"failurePolicy":"Ignore","execNewPod":{"command":["/bin/false"],"env":[{"name":"CUSTOM_VAR2","value":"custom_value2"}],"containerName":"ruby-helloworld-database","volumes":["ruby-helloworld-data"]}}},"resources":{}},"triggers":[{"type":"ConfigChange"}],"replicas":1,"test":false,"selector":{"name":"database"},"template":{"metadata":{"creationTimestamp":null,"labels":{"name":"database"}},"spec":{"volumes":[{"name":"ruby-helloworld-data","emptyDir":{}}],"containers":[{"name":"ruby-helloworld-database","image":"openshift/mysql-55-centos7:latest","ports":[{"containerPort":3306,"protocol":"TCP"}],"env":[{"name":"MYSQL_USER","value":"userE3K"},{"name":"MYSQL_PASSWORD","value":"GdNdcg8x"},{"name":"MYSQL_DATABASE","value":"root"}],"resources":{},"volumeMounts":[{"name":"ruby-helloworld-data","mountPath":"/var/lib/mysql/data"}],"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"Always","securityContext":{"capabilities":{},"privileged":false}}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{}}}},"status":{"latestVersion":5,"details":{"causes":[{"type":"ConfigChange"}]}}}
  113. I0720 08:34:50.519198 16032 round_trippers.go:296] PUT https://10.0.2.15:8443/oapi/v1/namespaces/user/deploymentconfigs/database
  114. I0720 08:34:50.519215 16032 round_trippers.go:303] Request Headers:
  115. I0720 08:34:50.519228 16032 round_trippers.go:306] User-Agent: oc/v1.3.0 (linux/amd64) openshift/5fd1268
  116. I0720 08:34:50.519240 16032 round_trippers.go:306] Content-Type: application/json
  117. I0720 08:34:50.519258 16032 round_trippers.go:306] Accept: application/json, */*
  118. I0720 08:34:50.519331 16032 round_trippers.go:306] Authorization: Bearer 9qnOGx-ef-OtcKQ1uuNfI0B2B2VN6O5pGEVsKc6Yqfc
  119. I0720 08:34:50.524504 16032 round_trippers.go:321] Response Status: 200 OK in 5 milliseconds
  120. I0720 08:34:50.524523 16032 round_trippers.go:324] Response Headers:
  121. I0720 08:34:50.524528 16032 round_trippers.go:327] Date: Wed, 20 Jul 2016 08:34:50 GMT
  122. I0720 08:34:50.524532 16032 round_trippers.go:327] Content-Length: 2028
  123. I0720 08:34:50.524537 16032 round_trippers.go:327] Cache-Control: no-store
  124. I0720 08:34:50.524541 16032 round_trippers.go:327] Content-Type: application/json
  125. I0720 08:34:50.524600 16032 request.go:891] Response Body: {"kind":"DeploymentConfig","apiVersion":"v1","metadata":{"name":"database","namespace":"user","selfLink":"/oapi/v1/namespaces/user/deploymentconfigs/database","uid":"45c48ce7-4e4e-11e6-8b14-080027242396","resourceVersion":"1051","creationTimestamp":"2016-07-20T07:47:56Z","labels":{"template":"application-template-stibuild"},"annotations":{"openshift.io/deployment.cancelled":"1"}},"spec":{"strategy":{"type":"Recreate","recreateParams":{"timeoutSeconds":600,"pre":{"failurePolicy":"Abort","execNewPod":{"command":["/bin/true"],"env":[{"name":"CUSTOM_VAR1","value":"custom_value1"}],"containerName":"ruby-helloworld-database","volumes":["ruby-helloworld-data"]}},"mid":{"failurePolicy":"Abort","execNewPod":{"command":["/bin/true"],"env":[{"name":"CUSTOM_VAR2","value":"custom_value2"}],"containerName":"ruby-helloworld-database","volumes":["ruby-helloworld-data"]}},"post":{"failurePolicy":"Ignore","execNewPod":{"command":["/bin/false"],"env":[{"name":"CUSTOM_VAR2","value":"custom_value2"}],"containerName":"ruby-helloworld-database","volumes":["ruby-helloworld-data"]}}},"resources":{}},"triggers":[{"type":"ConfigChange"}],"replicas":1,"test":false,"selector":{"name":"database"},"template":{"metadata":{"creationTimestamp":null,"labels":{"name":"database"}},"spec":{"volumes":[{"name":"ruby-helloworld-data","emptyDir":{}}],"containers":[{"name":"ruby-helloworld-database","image":"openshift/mysql-55-centos7:latest","ports":[{"containerPort":3306,"protocol":"TCP"}],"env":[{"name":"MYSQL_USER","value":"userE3K"},{"name":"MYSQL_PASSWORD","value":"GdNdcg8x"},{"name":"MYSQL_DATABASE","value":"root"}],"resources":{},"volumeMounts":[{"name":"ruby-helloworld-data","mountPath":"/var/lib/mysql/data"}],"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"Always","securityContext":{"capabilities":{},"privileged":false}}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{}}}},"status":{"latestVersion":5,"details":{"causes":[{"type":"ConfigChange"}]}}}
  126. #5 rolled back to database-3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement