{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/10816","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/10816/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/10816/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/10816/events","html_url":"https://github.com/openshift/origin/pull/10816","id":175247004,"number":10816,"title":"Surface warnings events from replication controller to deployment","user":{"login":"mfojtik","id":44136,"avatar_url":"https://avatars.githubusercontent.com/u/44136?v=3","gravatar_id":"","url":"https://api.github.com/users/mfojtik","html_url":"https://github.com/mfojtik","followers_url":"https://api.github.com/users/mfojtik/followers","following_url":"https://api.github.com/users/mfojtik/following{/other_user}","gists_url":"https://api.github.com/users/mfojtik/gists{/gist_id}","starred_url":"https://api.github.com/users/mfojtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfojtik/subscriptions","organizations_url":"https://api.github.com/users/mfojtik/orgs","repos_url":"https://api.github.com/users/mfojtik/repos","events_url":"https://api.github.com/users/mfojtik/events{/privacy}","received_events_url":"https://api.github.com/users/mfojtik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"assignees":[{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/openshift/origin/milestones/16","html_url":"https://github.com/openshift/origin/milestones/1.3.1","labels_url":"https://api.github.com/repos/openshift/origin/milestones/16/labels","id":1948964,"number":16,"title":"1.3.1","description":null,"creator":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":3,"state":"open","created_at":"2016-08-18T08:14:38Z","updated_at":"2016-09-13T19:05:02Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2016-09-06T13:28:50Z","updated_at":"2016-09-13T19:52:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/10816","html_url":"https://github.com/openshift/origin/pull/10816","diff_url":"https://github.com/openshift/origin/pull/10816.diff","patch_url":"https://github.com/openshift/origin/pull/10816.patch"},"body":"The first commit will reveal the warnings events from replication controllers (both from and to) in the deployer logs:\r\n\r\n```\r\n[@dev] .../openshift/origin # oc deploy dc/ruby-ex --latest --follow \r\n--> Scaling ruby-ex-1 to 1\r\n-->  FailedCreate: ruby-ex-1 Error creating: pods \"ruby-ex-1-\" is forbidden: unable to validate against any security context constraint: [spec.containers[0].securityContext.volumes[0]: Invalid value: \"gitRepo\": gitRepo volumes are not allowed to be used]\r\nerror: couldn't scale ruby-ex-1 to 1: timed out waiting for \"ruby-ex-1\" to be synced\r\n```\r\n\r\nThe second commit will make sure that any warnings events from the strategy will be surfaced back to deployment config:\r\n\r\n```console\r\nEvents:\r\n  FirstSeen\tLastSeen\tCount\tFrom\t\t\t\tSubobjectPath\tType\t\tReason\t\t\tMessage\r\n  ---------\t--------\t-----\t----\t\t\t\t-------------\t--------\t------\t\t\t-------\r\n  52m\t\t52m\t\t1\t{deploymentconfig-controller }\t\t\tNormal\t\tDeploymentCreated\tCreated new deployment \"ruby-ex-1\" for version 1\r\n  50m\t\t50m\t\t1\t{deploymentconfig-controller }\t\t\tNormal\t\tDeploymentScaled\tScaled deployment \"ruby-ex-1\" from 1 to 0\r\n  5m\t\t5m\t\t1\t{deploymentconfig-controller }\t\t\tNormal\t\tDeploymentCreated\tCreated new deployment \"ruby-ex-2\" for version 2\r\n  3m\t\t3m\t\t1\t{ruby-ex-2-deploy }\t\t\t\tWarning\t\tFailedCreate\t\tError creating: pods \"ruby-ex-2-\" is forbidden: unable to validate against any security context constraint: [spec.containers[0].securityContext.volumes[0]: Invalid value: \"gitRepo\": gitRepo volumes are not allowed to be used]\r\n  3m\t\t3m\t\t1\t{deploymentconfig-controller }\t\t\tNormal\t\tDeploymentScaled\tScaled deployment \"ruby-ex-2\" from 1 to 0\r\n```\r\nFixes #10792 \r\nFixes #10834"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/246802697","html_url":"https://github.com/openshift/origin/pull/10816#issuecomment-246802697","issue_url":"https://api.github.com/repos/openshift/origin/issues/10816","id":246802697,"user":{"login":"openshift-bot","id":1779249,"avatar_url":"https://avatars.githubusercontent.com/u/1779249?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift-bot","html_url":"https://github.com/openshift-bot","followers_url":"https://api.github.com/users/openshift-bot/followers","following_url":"https://api.github.com/users/openshift-bot/following{/other_user}","gists_url":"https://api.github.com/users/openshift-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift-bot/subscriptions","organizations_url":"https://api.github.com/users/openshift-bot/orgs","repos_url":"https://api.github.com/users/openshift-bot/repos","events_url":"https://api.github.com/users/openshift-bot/events{/privacy}","received_events_url":"https://api.github.com/users/openshift-bot/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T19:52:28Z","updated_at":"2016-09-13T19:52:28Z","body":"Evaluated for origin test up to d2499543f7dc9e21230ba8a3bff39c7a579fd016"}}
{"actor":{"display_login":"openshift-bot"}}