{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/community-catalog/issues/163","repository_url":"https://api.github.com/repos/rancher/community-catalog","labels_url":"https://api.github.com/repos/rancher/community-catalog/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/rancher/community-catalog/issues/163/comments","events_url":"https://api.github.com/repos/rancher/community-catalog/issues/163/events","html_url":"https://github.com/rancher/community-catalog/issues/163","id":157466659,"number":163,"title":"The  k8s catalog item MongoDB have some error in run.sh and yaml file","user":{"login":"frank798","id":17288993,"avatar_url":"https://avatars.githubusercontent.com/u/17288993?v=3","gravatar_id":"","url":"https://api.github.com/users/frank798","html_url":"https://github.com/frank798","followers_url":"https://api.github.com/users/frank798/followers","following_url":"https://api.github.com/users/frank798/following{/other_user}","gists_url":"https://api.github.com/users/frank798/gists{/gist_id}","starred_url":"https://api.github.com/users/frank798/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frank798/subscriptions","organizations_url":"https://api.github.com/users/frank798/orgs","repos_url":"https://api.github.com/users/frank798/repos","events_url":"https://api.github.com/users/frank798/events{/privacy}","received_events_url":"https://api.github.com/users/frank798/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-05-30T09:35:21Z","updated_at":"2016-12-03T03:14:54Z","closed_at":null,"body":"my k8s'version is:\n`Client Version: version.Info{Major:\"1\", Minor:\"2\", GitVersion:\"v1.2.0\", GitCommit:\"b57e8bdc7c3871e3f6077b13c42d205ae1813fbd\", GitTreeState:\"clean\"}\nServer Version: version.Info{Major:\"1\", Minor:\"2\", GitVersion:\"v1.2.0\", GitCommit:\"b57e8bdc7c3871e3f6077b13c42d205ae1813fbd\", GitTreeState:\"clean\"}`\ndocker version is:1.9.1\nwhen I deploy mongoDB in k8s with yaml file.I found two error:\nthe first is in run.sh\n`IP=$(ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1 | sed -n 2p)`\nif use this script to get ip , it will return empty,but when remove `| sed -n 2p` it will be ok.\n\nthe second is in yaml file mongo-controller.yaml\nin this file the environment variable PRIMARY is not set , the default value is container is true,as result,when deploy mongoDB by mongo-controller.yaml.every mongo rc instance will change to primary due to the defaule value in env.After set environment variable PRIMARY value to false,the result is correct, the member incloud one primary and 2 scendary(set replicas: 2).\nso need to add PRIMARY environment variable in mongo-controller.yaml.\n"},"comment":{"url":"https://api.github.com/repos/rancher/community-catalog/issues/comments/264612411","html_url":"https://github.com/rancher/community-catalog/issues/163#issuecomment-264612411","issue_url":"https://api.github.com/repos/rancher/community-catalog/issues/163","id":264612411,"user":{"login":"galal-hussein","id":3309968,"avatar_url":"https://avatars.githubusercontent.com/u/3309968?v=3","gravatar_id":"","url":"https://api.github.com/users/galal-hussein","html_url":"https://github.com/galal-hussein","followers_url":"https://api.github.com/users/galal-hussein/followers","following_url":"https://api.github.com/users/galal-hussein/following{/other_user}","gists_url":"https://api.github.com/users/galal-hussein/gists{/gist_id}","starred_url":"https://api.github.com/users/galal-hussein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galal-hussein/subscriptions","organizations_url":"https://api.github.com/users/galal-hussein/orgs","repos_url":"https://api.github.com/users/galal-hussein/repos","events_url":"https://api.github.com/users/galal-hussein/events{/privacy}","received_events_url":"https://api.github.com/users/galal-hussein/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T03:14:54Z","updated_at":"2016-12-03T03:14:54Z","body":"@frank798 Thanks for opening the issue, and sorry for the late reply, i am putting a fix for the problem and will release another version of the catalog very soon."}}
{"actor":{"display_login":"galal-hussein"}}