{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/pulls/4","id":49489548,"html_url":"https://github.com/cybertron/openstack-virtual-baremetal/pull/4","diff_url":"https://github.com/cybertron/openstack-virtual-baremetal/pull/4.diff","patch_url":"https://github.com/cybertron/openstack-virtual-baremetal/pull/4.patch","issue_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/issues/4","number":4,"state":"open","locked":false,"title":"Allow a single BMC to manage multiple BMs","user":{"login":"steveb","id":48336,"avatar_url":"https://avatars.githubusercontent.com/u/48336?v=3","gravatar_id":"","url":"https://api.github.com/users/steveb","html_url":"https://github.com/steveb","followers_url":"https://api.github.com/users/steveb/followers","following_url":"https://api.github.com/users/steveb/following{/other_user}","gists_url":"https://api.github.com/users/steveb/gists{/gist_id}","starred_url":"https://api.github.com/users/steveb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveb/subscriptions","organizations_url":"https://api.github.com/users/steveb/orgs","repos_url":"https://api.github.com/users/steveb/repos","events_url":"https://api.github.com/users/steveb/events{/privacy}","received_events_url":"https://api.github.com/users/steveb/received_events","type":"User","site_admin":false},"body":"This change creates a single BMC server and uses that to manage multiple\r\nbaremetal servers.\r\n\r\nIt does this by using a naming convention on the BM and BMC neutron\r\nports and using that to match a BMC port to a BM nova server.\r\n\r\nIn the BMC boot script a separate systemd unit is created per network\r\ninterface, and the IP address of that interface is used to bind to\r\ninstead of ::. This requires a small change to pyghmi which has been\r\nproposed upstream Ice82bf788269a31819e4495e15b9ce19a1dd057b. Until this\r\nlands upstream pyghmi is installed from my github fork.\r\n\r\nOther approaches were considered:\r\n- multiple neutron ports, single openstackbmc bound to ::, this would\r\n  require switching the pyghmi socket recv function to recvmsg to get\r\n  the receiving IP address, but recvmsg isn't available in python 2.7\r\n- single neutron port, single openstackbmc, modified pyghmi to select\r\n  based on different bmc username/password. This looks impractical based\r\n  on the assumptions the pyghmi auth code makes.\r\n- single neutron port, multiple openstackbmc units each bound to a\r\n  different UDP port other than 623. Impractical without many changes to\r\n  Ironic which assumes 623.","created_at":"2015-11-02T21:40:45Z","updated_at":"2015-11-02T21:40:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/pulls/4/commits","review_comments_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/pulls/4/comments","review_comment_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/issues/4/comments","statuses_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/statuses/7cceb6b4e77e5108d5bb33541888c9fc7e6b774d","head":{"label":"steveb:singlebmc","ref":"singlebmc","sha":"7cceb6b4e77e5108d5bb33541888c9fc7e6b774d","user":{"login":"steveb","id":48336,"avatar_url":"https://avatars.githubusercontent.com/u/48336?v=3","gravatar_id":"","url":"https://api.github.com/users/steveb","html_url":"https://github.com/steveb","followers_url":"https://api.github.com/users/steveb/followers","following_url":"https://api.github.com/users/steveb/following{/other_user}","gists_url":"https://api.github.com/users/steveb/gists{/gist_id}","starred_url":"https://api.github.com/users/steveb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveb/subscriptions","organizations_url":"https://api.github.com/users/steveb/orgs","repos_url":"https://api.github.com/users/steveb/repos","events_url":"https://api.github.com/users/steveb/events{/privacy}","received_events_url":"https://api.github.com/users/steveb/received_events","type":"User","site_admin":false},"repo":{"id":43467697,"name":"openstack-virtual-baremetal","full_name":"steveb/openstack-virtual-baremetal","owner":{"login":"steveb","id":48336,"avatar_url":"https://avatars.githubusercontent.com/u/48336?v=3","gravatar_id":"","url":"https://api.github.com/users/steveb","html_url":"https://github.com/steveb","followers_url":"https://api.github.com/users/steveb/followers","following_url":"https://api.github.com/users/steveb/following{/other_user}","gists_url":"https://api.github.com/users/steveb/gists{/gist_id}","starred_url":"https://api.github.com/users/steveb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveb/subscriptions","organizations_url":"https://api.github.com/users/steveb/orgs","repos_url":"https://api.github.com/users/steveb/repos","events_url":"https://api.github.com/users/steveb/events{/privacy}","received_events_url":"https://api.github.com/users/steveb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/steveb/openstack-virtual-baremetal","description":"Tools for using OpenStack instances as baremetal deployment targets","fork":true,"url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal","forks_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/forks","keys_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/teams","hooks_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/hooks","issue_events_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/issues/events{/number}","events_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/events","assignees_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/assignees{/user}","branches_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/branches{/branch}","tags_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/tags","blobs_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/git/refs{/sha}","trees_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/statuses/{sha}","languages_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/languages","stargazers_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/stargazers","contributors_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/contributors","subscribers_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/subscribers","subscription_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/subscription","commits_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/commits{/sha}","git_commits_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/git/commits{/sha}","comments_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/comments{/number}","issue_comment_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/issues/comments{/number}","contents_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/contents/{+path}","compare_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/merges","archive_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/downloads","issues_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/issues{/number}","pulls_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/pulls{/number}","milestones_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/milestones{/number}","notifications_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/labels{/name}","releases_url":"https://api.github.com/repos/steveb/openstack-virtual-baremetal/releases{/id}","created_at":"2015-09-30T23:59:42Z","updated_at":"2015-09-30T23:59:43Z","pushed_at":"2015-11-02T21:40:26Z","git_url":"git://github.com/steveb/openstack-virtual-baremetal.git","ssh_url":"git@github.com:steveb/openstack-virtual-baremetal.git","clone_url":"https://github.com/steveb/openstack-virtual-baremetal.git","svn_url":"https://github.com/steveb/openstack-virtual-baremetal","homepage":null,"size":125,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"cybertron:master","ref":"master","sha":"14b715e1090db093134595d84d23807523e312d5","user":{"login":"cybertron","id":627341,"avatar_url":"https://avatars.githubusercontent.com/u/627341?v=3","gravatar_id":"","url":"https://api.github.com/users/cybertron","html_url":"https://github.com/cybertron","followers_url":"https://api.github.com/users/cybertron/followers","following_url":"https://api.github.com/users/cybertron/following{/other_user}","gists_url":"https://api.github.com/users/cybertron/gists{/gist_id}","starred_url":"https://api.github.com/users/cybertron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybertron/subscriptions","organizations_url":"https://api.github.com/users/cybertron/orgs","repos_url":"https://api.github.com/users/cybertron/repos","events_url":"https://api.github.com/users/cybertron/events{/privacy}","received_events_url":"https://api.github.com/users/cybertron/received_events","type":"User","site_admin":false},"repo":{"id":39652204,"name":"openstack-virtual-baremetal","full_name":"cybertron/openstack-virtual-baremetal","owner":{"login":"cybertron","id":627341,"avatar_url":"https://avatars.githubusercontent.com/u/627341?v=3","gravatar_id":"","url":"https://api.github.com/users/cybertron","html_url":"https://github.com/cybertron","followers_url":"https://api.github.com/users/cybertron/followers","following_url":"https://api.github.com/users/cybertron/following{/other_user}","gists_url":"https://api.github.com/users/cybertron/gists{/gist_id}","starred_url":"https://api.github.com/users/cybertron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybertron/subscriptions","organizations_url":"https://api.github.com/users/cybertron/orgs","repos_url":"https://api.github.com/users/cybertron/repos","events_url":"https://api.github.com/users/cybertron/events{/privacy}","received_events_url":"https://api.github.com/users/cybertron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cybertron/openstack-virtual-baremetal","description":"Tools for using OpenStack instances as baremetal deployment targets","fork":false,"url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal","forks_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/forks","keys_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/teams","hooks_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/hooks","issue_events_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/issues/events{/number}","events_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/events","assignees_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/assignees{/user}","branches_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/branches{/branch}","tags_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/tags","blobs_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/git/refs{/sha}","trees_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/statuses/{sha}","languages_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/languages","stargazers_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/stargazers","contributors_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/contributors","subscribers_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/subscribers","subscription_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/subscription","commits_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/commits{/sha}","git_commits_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/git/commits{/sha}","comments_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/comments{/number}","issue_comment_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/issues/comments{/number}","contents_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/contents/{+path}","compare_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/merges","archive_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/downloads","issues_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/issues{/number}","pulls_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/pulls{/number}","milestones_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/milestones{/number}","notifications_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/labels{/name}","releases_url":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/releases{/id}","created_at":"2015-07-24T19:11:54Z","updated_at":"2015-07-25T17:51:35Z","pushed_at":"2015-11-02T21:40:45Z","git_url":"git://github.com/cybertron/openstack-virtual-baremetal.git","ssh_url":"git@github.com:cybertron/openstack-virtual-baremetal.git","clone_url":"https://github.com/cybertron/openstack-virtual-baremetal.git","svn_url":"https://github.com/cybertron/openstack-virtual-baremetal","homepage":null,"size":178,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/pulls/4"},"html":{"href":"https://github.com/cybertron/openstack-virtual-baremetal/pull/4"},"issue":{"href":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/issues/4"},"comments":{"href":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/cybertron/openstack-virtual-baremetal/statuses/7cceb6b4e77e5108d5bb33541888c9fc7e6b774d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":134,"deletions":70,"changed_files":5}}