{"action":"opened","number":285,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/mesos-plugin/pulls/285","id":108674411,"html_url":"https://github.com/jenkinsci/mesos-plugin/pull/285","diff_url":"https://github.com/jenkinsci/mesos-plugin/pull/285.diff","patch_url":"https://github.com/jenkinsci/mesos-plugin/pull/285.patch","issue_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/285","number":285,"state":"open","locked":false,"title":"Ensure task is launched with appropriate roles on ports from offer.","user":{"login":"damomurf","id":1691475,"avatar_url":"https://avatars1.githubusercontent.com/u/1691475?v=3","gravatar_id":"","url":"https://api.github.com/users/damomurf","html_url":"https://github.com/damomurf","followers_url":"https://api.github.com/users/damomurf/followers","following_url":"https://api.github.com/users/damomurf/following{/other_user}","gists_url":"https://api.github.com/users/damomurf/gists{/gist_id}","starred_url":"https://api.github.com/users/damomurf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damomurf/subscriptions","organizations_url":"https://api.github.com/users/damomurf/orgs","repos_url":"https://api.github.com/users/damomurf/repos","events_url":"https://api.github.com/users/damomurf/events{/privacy}","received_events_url":"https://api.github.com/users/damomurf/received_events","type":"User","site_admin":false},"body":"If a Mesos scheduler is configured with a role, the scheduler receives offers for resources under that defined role (or the default role).\r\n\r\nCurrently, the code that builds tasks for execution doesn't include any role attached in the offer for assigned port resources.\r\n\r\nThis PR ensures that the role for port resources on the offer is used, just like it is for cpu and mem.\r\n\r\nThis problem was manifesting itself with errors in both the Jenkins and mesos-master logs and a number of failed Jenkins slaves would appear in the Jenkins UI, e.g.:\r\n\r\n```\r\nSending status update TASK_ERROR for task mesos-jenkins-506c01240453427bb20f1d3dff26b718-mesos-ultra-e2e of framework 7ef79e0d-1cc1-4880-ad98-7fb0329fa816-0003 'Total resources cpus(jenkins_sg):1.1; mem(jenkins_sg):6899.2; ports(*):[31000-31000] required by task and its executor is more than available cpus(jenkins_sg):29.4; mem(jenkins_sg):118622; disk(jenkins_sg):297124; ports(jenkins_sg):[31000-32000]'\r\n```","created_at":"2017-03-02T02:34:36Z","updated_at":"2017-03-02T02:34:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/pulls/285/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/pulls/285/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/285/comments","statuses_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/statuses/34e9148f25cb35da435d3dbd398353105f8d335d","head":{"label":"damomurf:master","ref":"master","sha":"34e9148f25cb35da435d3dbd398353105f8d335d","user":{"login":"damomurf","id":1691475,"avatar_url":"https://avatars1.githubusercontent.com/u/1691475?v=3","gravatar_id":"","url":"https://api.github.com/users/damomurf","html_url":"https://github.com/damomurf","followers_url":"https://api.github.com/users/damomurf/followers","following_url":"https://api.github.com/users/damomurf/following{/other_user}","gists_url":"https://api.github.com/users/damomurf/gists{/gist_id}","starred_url":"https://api.github.com/users/damomurf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damomurf/subscriptions","organizations_url":"https://api.github.com/users/damomurf/orgs","repos_url":"https://api.github.com/users/damomurf/repos","events_url":"https://api.github.com/users/damomurf/events{/privacy}","received_events_url":"https://api.github.com/users/damomurf/received_events","type":"User","site_admin":false},"repo":{"id":83624960,"name":"mesos-plugin","full_name":"damomurf/mesos-plugin","owner":{"login":"damomurf","id":1691475,"avatar_url":"https://avatars1.githubusercontent.com/u/1691475?v=3","gravatar_id":"","url":"https://api.github.com/users/damomurf","html_url":"https://github.com/damomurf","followers_url":"https://api.github.com/users/damomurf/followers","following_url":"https://api.github.com/users/damomurf/following{/other_user}","gists_url":"https://api.github.com/users/damomurf/gists{/gist_id}","starred_url":"https://api.github.com/users/damomurf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damomurf/subscriptions","organizations_url":"https://api.github.com/users/damomurf/orgs","repos_url":"https://api.github.com/users/damomurf/repos","events_url":"https://api.github.com/users/damomurf/events{/privacy}","received_events_url":"https://api.github.com/users/damomurf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/damomurf/mesos-plugin","description":"Mesos Jenkins Plugin","fork":true,"url":"https://api.github.com/repos/damomurf/mesos-plugin","forks_url":"https://api.github.com/repos/damomurf/mesos-plugin/forks","keys_url":"https://api.github.com/repos/damomurf/mesos-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/damomurf/mesos-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/damomurf/mesos-plugin/teams","hooks_url":"https://api.github.com/repos/damomurf/mesos-plugin/hooks","issue_events_url":"https://api.github.com/repos/damomurf/mesos-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/damomurf/mesos-plugin/events","assignees_url":"https://api.github.com/repos/damomurf/mesos-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/damomurf/mesos-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/damomurf/mesos-plugin/tags","blobs_url":"https://api.github.com/repos/damomurf/mesos-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/damomurf/mesos-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/damomurf/mesos-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/damomurf/mesos-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/damomurf/mesos-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/damomurf/mesos-plugin/languages","stargazers_url":"https://api.github.com/repos/damomurf/mesos-plugin/stargazers","contributors_url":"https://api.github.com/repos/damomurf/mesos-plugin/contributors","subscribers_url":"https://api.github.com/repos/damomurf/mesos-plugin/subscribers","subscription_url":"https://api.github.com/repos/damomurf/mesos-plugin/subscription","commits_url":"https://api.github.com/repos/damomurf/mesos-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/damomurf/mesos-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/damomurf/mesos-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/damomurf/mesos-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/damomurf/mesos-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/damomurf/mesos-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/damomurf/mesos-plugin/merges","archive_url":"https://api.github.com/repos/damomurf/mesos-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/damomurf/mesos-plugin/downloads","issues_url":"https://api.github.com/repos/damomurf/mesos-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/damomurf/mesos-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/damomurf/mesos-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/damomurf/mesos-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/damomurf/mesos-plugin/labels{/name}","releases_url":"https://api.github.com/repos/damomurf/mesos-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/damomurf/mesos-plugin/deployments","created_at":"2017-03-02T02:28:58Z","updated_at":"2017-03-02T02:29:00Z","pushed_at":"2017-03-02T02:29:28Z","git_url":"git://github.com/damomurf/mesos-plugin.git","ssh_url":"git@github.com:damomurf/mesos-plugin.git","clone_url":"https://github.com/damomurf/mesos-plugin.git","svn_url":"https://github.com/damomurf/mesos-plugin","homepage":"http://wiki.jenkins-ci.org/display/JENKINS/Mesos+Plugin","size":647,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"1f0a7e24b866030a9f5f5f0149a62df10786215e","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars3.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":11828845,"name":"mesos-plugin","full_name":"jenkinsci/mesos-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars3.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/mesos-plugin","description":"Mesos Jenkins Plugin","fork":false,"url":"https://api.github.com/repos/jenkinsci/mesos-plugin","forks_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/deployments","created_at":"2013-08-01T22:06:52Z","updated_at":"2017-02-16T13:56:08Z","pushed_at":"2017-02-26T00:04:13Z","git_url":"git://github.com/jenkinsci/mesos-plugin.git","ssh_url":"git@github.com:jenkinsci/mesos-plugin.git","clone_url":"https://github.com/jenkinsci/mesos-plugin.git","svn_url":"https://github.com/jenkinsci/mesos-plugin","homepage":"http://wiki.jenkins-ci.org/display/JENKINS/Mesos+Plugin","size":647,"stargazers_count":253,"watchers_count":253,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":116,"mirror_url":null,"open_issues_count":52,"forks":116,"open_issues":52,"watchers":253,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/mesos-plugin/pulls/285"},"html":{"href":"https://github.com/jenkinsci/mesos-plugin/pull/285"},"issue":{"href":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/285"},"comments":{"href":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/285/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/mesos-plugin/pulls/285/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/mesos-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/mesos-plugin/pulls/285/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/mesos-plugin/statuses/34e9148f25cb35da435d3dbd398353105f8d335d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":50,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"damomurf"}}