{"action":"created","issue":{"url":"https://api.github.com/repos/k8sp/sextant/issues/178","repository_url":"https://api.github.com/repos/k8sp/sextant","labels_url":"https://api.github.com/repos/k8sp/sextant/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/k8sp/sextant/issues/178/comments","events_url":"https://api.github.com/repos/k8sp/sextant/issues/178/events","html_url":"https://github.com/k8sp/sextant/pull/178","id":177991242,"number":178,"title":"Polishing bsroot.sh","user":{"login":"wangkuiyi","id":1548775,"avatar_url":"https://avatars.githubusercontent.com/u/1548775?v=3","gravatar_id":"","url":"https://api.github.com/users/wangkuiyi","html_url":"https://github.com/wangkuiyi","followers_url":"https://api.github.com/users/wangkuiyi/followers","following_url":"https://api.github.com/users/wangkuiyi/following{/other_user}","gists_url":"https://api.github.com/users/wangkuiyi/gists{/gist_id}","starred_url":"https://api.github.com/users/wangkuiyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangkuiyi/subscriptions","organizations_url":"https://api.github.com/users/wangkuiyi/orgs","repos_url":"https://api.github.com/users/wangkuiyi/repos","events_url":"https://api.github.com/users/wangkuiyi/events{/privacy}","received_events_url":"https://api.github.com/users/wangkuiyi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"typhoonzero","id":13348433,"avatar_url":"https://avatars.githubusercontent.com/u/13348433?v=3","gravatar_id":"","url":"https://api.github.com/users/typhoonzero","html_url":"https://github.com/typhoonzero","followers_url":"https://api.github.com/users/typhoonzero/followers","following_url":"https://api.github.com/users/typhoonzero/following{/other_user}","gists_url":"https://api.github.com/users/typhoonzero/gists{/gist_id}","starred_url":"https://api.github.com/users/typhoonzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typhoonzero/subscriptions","organizations_url":"https://api.github.com/users/typhoonzero/orgs","repos_url":"https://api.github.com/users/typhoonzero/repos","events_url":"https://api.github.com/users/typhoonzero/events{/privacy}","received_events_url":"https://api.github.com/users/typhoonzero/received_events","type":"User","site_admin":false},"assignees":[{"login":"typhoonzero","id":13348433,"avatar_url":"https://avatars.githubusercontent.com/u/13348433?v=3","gravatar_id":"","url":"https://api.github.com/users/typhoonzero","html_url":"https://github.com/typhoonzero","followers_url":"https://api.github.com/users/typhoonzero/followers","following_url":"https://api.github.com/users/typhoonzero/following{/other_user}","gists_url":"https://api.github.com/users/typhoonzero/gists{/gist_id}","starred_url":"https://api.github.com/users/typhoonzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typhoonzero/subscriptions","organizations_url":"https://api.github.com/users/typhoonzero/orgs","repos_url":"https://api.github.com/users/typhoonzero/repos","events_url":"https://api.github.com/users/typhoonzero/events{/privacy}","received_events_url":"https://api.github.com/users/typhoonzero/received_events","type":"User","site_admin":false},{"login":"zhengbo0","id":14144704,"avatar_url":"https://avatars.githubusercontent.com/u/14144704?v=3","gravatar_id":"","url":"https://api.github.com/users/zhengbo0","html_url":"https://github.com/zhengbo0","followers_url":"https://api.github.com/users/zhengbo0/followers","following_url":"https://api.github.com/users/zhengbo0/following{/other_user}","gists_url":"https://api.github.com/users/zhengbo0/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengbo0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengbo0/subscriptions","organizations_url":"https://api.github.com/users/zhengbo0/orgs","repos_url":"https://api.github.com/users/zhengbo0/repos","events_url":"https://api.github.com/users/zhengbo0/events{/privacy}","received_events_url":"https://api.github.com/users/zhengbo0/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-09-20T07:58:29Z","updated_at":"2016-09-21T03:08:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/k8sp/sextant/pulls/178","html_url":"https://github.com/k8sp/sextant/pull/178","diff_url":"https://github.com/k8sp/sextant/pull/178.diff","patch_url":"https://github.com/k8sp/sextant/pull/178.patch"},"body":"Fixes https://github.com/k8sp/sextant/issues/177\r\nFixes https://github.com/k8sp/sextant/issues/175\r\nFixes https://github.com/k8sp/sextant/issues/173\r\n\r\nI verified this change by running the changed `bsroot.sh` on my iMac -- **but not yet in vm-cluster or a real cluster**.  To run this script:\r\n\r\n```\r\ngo get github.com/k8sp/sextant\r\ncd /tmp\r\n$GOPATH/src/github.com/k8sp/sextant/bsroot.sh $GOPATH/src/github.com/k8sp/sextant/cloud-config-server/template/unisound-ailab/build_config.yml\r\n```\r\n\r\nAbove commands generates `/tmp/bsroot` and prints the following progress information:\r\n\r\n```\r\n$ ../sextant/bsroot.sh ../sextant/cloud-config-server/template/unisound-ailab/build_config.yml \r\nUsing cluster-desc file /Users/yi/work/src/github.com/k8sp/vm-cluster/../sextant/cloud-config-server/template/unisound-ailab/build_config.yml\r\nUsing bootstrapper server IP 10.10.10.192\r\n/Users/yi/work/src/github.com/k8sp/vm-cluster/bsroot already exists.  Overwrite without removing it.\r\nChecking prerequisites ... Done\r\nDownloading syslinux ... Done\r\nImporting CoreOS signing key ... Done\r\nDownloading CoreOS PXE vmlinuz image ... Done\r\nDownloading CoreOS PXE CPIO image ... Done\r\nGenerating pxelinux.cfg ... Done\r\nGenerating dnsmasq.conf ... Done\r\nGenerating Docker registry config file ... Done\r\nDownloading setup-network-environment file ... Done\r\nDownloading kubelet v1.2.0 ... chmod: kubelet: No such file or directory\r\nDone\r\nCopying cloud-config template and cluster-desc.yml ... Done\r\nGenerating install.sh ... Done\r\nChecking new CoreOS version ... Done\r\nUpdating CoreOS images ... Done\r\nDownloading hyperhube image ... Done\r\nDownloading pause image ... Done\r\nDownloading flannel image ... Done\r\nGenerating CA TLS assets ... Done\r\nGenerating bootstrapper TLS assets ... Done\r\n```\r\n\r\nFor your ease of review, here is the content in the generated bsroot directory:\r\n\r\n```\r\n$ tree bsroot/\r\nbsroot/\r\n├── config\r\n│   ├── cloud-config.template\r\n│   ├── cluster-desc.yml\r\n│   ├── dnsmasq.conf\r\n│   └── registry.yml\r\n├── flannel_0.5.5.tar\r\n├── html\r\n│   └── static\r\n│       ├── 1122.2.0\r\n│       │   ├── 1122.2.0 -> /Users/yi/work/src/github.com/k8sp/vm-cluster/bsroot/html/static/1122.2.0\r\n│       │   ├── bootstrapper.crt\r\n│       │   ├── bootstrapper.csr\r\n│       │   ├── bootstrapper.key\r\n│       │   ├── ca-key.pem\r\n│       │   ├── ca.pem\r\n│       │   ├── ca.srl\r\n│       │   ├── coreos_production_image.bin.bz2\r\n│       │   └── coreos_production_image.bin.bz2.sig\r\n│       ├── cloud-config\r\n│       │   └── install.sh\r\n│       ├── current -> /Users/yi/work/src/github.com/k8sp/vm-cluster/bsroot/html/static/1122.2.0\r\n│       ├── kubelet\r\n│       └── setup-network-environment-1.0.1\r\n├── hyperkube-amd64_v1.2.0.tar\r\n├── pause_2.0.tar\r\n├── registry_data\r\n├── tftpboot\r\n│   ├── CoreOS_Image_Signing_Key.asc\r\n│   ├── coreos_production_pxe.vmlinuz\r\n│   ├── coreos_production_pxe.vmlinuz.sig\r\n│   ├── coreos_production_pxe_image.cpio.gz\r\n│   ├── coreos_production_pxe_image.cpio.gz.sig\r\n│   ├── ldlinux.c32\r\n│   ├── pxelinux.0\r\n│   ├── pxelinux.cfg\r\n│   │   └── default\r\n│   ├── syslinux-6.03.tar.gz\r\n│   └── vesamenu.c32\r\n└── tls\r\n    ├── bootstrapper.crt\r\n    ├── bootstrapper.csr\r\n    ├── bootstrapper.key\r\n    ├── ca-key.pem\r\n    ├── ca.pem\r\n    └── ca.srl\r\n```"},"comment":{"url":"https://api.github.com/repos/k8sp/sextant/issues/comments/248498973","html_url":"https://github.com/k8sp/sextant/pull/178#issuecomment-248498973","issue_url":"https://api.github.com/repos/k8sp/sextant/issues/178","id":248498973,"user":{"login":"typhoonzero","id":13348433,"avatar_url":"https://avatars.githubusercontent.com/u/13348433?v=3","gravatar_id":"","url":"https://api.github.com/users/typhoonzero","html_url":"https://github.com/typhoonzero","followers_url":"https://api.github.com/users/typhoonzero/followers","following_url":"https://api.github.com/users/typhoonzero/following{/other_user}","gists_url":"https://api.github.com/users/typhoonzero/gists{/gist_id}","starred_url":"https://api.github.com/users/typhoonzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typhoonzero/subscriptions","organizations_url":"https://api.github.com/users/typhoonzero/orgs","repos_url":"https://api.github.com/users/typhoonzero/repos","events_url":"https://api.github.com/users/typhoonzero/events{/privacy}","received_events_url":"https://api.github.com/users/typhoonzero/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T03:08:15Z","updated_at":"2016-09-21T03:08:15Z","body":"LGTM"}}
{"actor":{"display_login":"typhoonzero"}}