{"action":"created","issue":{"url":"https://api.github.com/repos/vyshane/kid/issues/13","repository_url":"https://api.github.com/repos/vyshane/kid","labels_url":"https://api.github.com/repos/vyshane/kid/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/vyshane/kid/issues/13/comments","events_url":"https://api.github.com/repos/vyshane/kid/issues/13/events","html_url":"https://github.com/vyshane/kid/issues/13","id":168283955,"number":13,"title":"set -e causes kid to fail","user":{"login":"LordGaav","id":546693,"avatar_url":"https://avatars.githubusercontent.com/u/546693?v=3","gravatar_id":"","url":"https://api.github.com/users/LordGaav","html_url":"https://github.com/LordGaav","followers_url":"https://api.github.com/users/LordGaav/followers","following_url":"https://api.github.com/users/LordGaav/following{/other_user}","gists_url":"https://api.github.com/users/LordGaav/gists{/gist_id}","starred_url":"https://api.github.com/users/LordGaav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LordGaav/subscriptions","organizations_url":"https://api.github.com/users/LordGaav/orgs","repos_url":"https://api.github.com/users/LordGaav/repos","events_url":"https://api.github.com/users/LordGaav/events{/privacy}","received_events_url":"https://api.github.com/users/LordGaav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-29T09:18:29Z","updated_at":"2016-08-01T09:23:55Z","closed_at":null,"body":"When using `kid up`, the following output is generated:\r\n\r\n```\r\n$ ./kid up\r\nWARNING: No swap limit support\r\nWARNING: No swap limit support\r\n```\r\n\r\nWhen adding set -x to the script, the following is outputted:\r\n\r\n```\r\n$ ./kid up\r\n+ '[' up == up ']'\r\n+ start_kubernetes 1.3.2 8080 31999 cluster.local 10.0.0.10\r\n+ local kubernetes_version=1.3.2\r\n+ local kubernetes_api_port=8080\r\n+ local dashboard_service_nodeport=31999\r\n+ local dns_domain=cluster.local\r\n+ local dns_server_ip=10.0.0.10\r\n+ check_prerequisites\r\n+ require_command_exists kubectl\r\n+ command -v kubectl\r\n+ require_command_exists docker\r\n+ command -v docker\r\n+ require_command_exists socat\r\n+ command -v socat\r\n+ docker info\r\nWARNING: No swap limit support\r\n+ '[' 0 '!=' 0 ']'\r\n++ active_docker_machine\r\n++ docker-machine active\r\n++ [[ 1 == 0 ]]\r\n+ '[' -n ']'\r\n+ fix_shared_mount /\r\n+ path=/\r\n+ docker run -it --rm --entrypoint=sh --privileged --net=host -e sysimage=/host -v /:/host -v /dev:/dev -v /run:/run gcr.io/google_containers/hyperkube-amd64:v1.3.2 -c 'nsenter --mount=$sysimage/proc/1/ns/mnt -- mount --make-shared /'\r\n+ docker info\r\n+ egrep -q 'Kernel Version: .*-moby'\r\nWARNING: No swap limit support\r\n```\r\n\r\nIt looks like the re-introduction of `set -e` in 73ed5770dc3b9dd0ab83792c5d03ee8332981bec causes the script to fail on https://github.com/vyshane/kid/blob/73ed5770dc3b9dd0ab83792c5d03ee8332981bec/kid#L45 .\r\n\r\nRemoving the `set -e` allows `kid up` to run successfully."},"comment":{"url":"https://api.github.com/repos/vyshane/kid/issues/comments/236531608","html_url":"https://github.com/vyshane/kid/issues/13#issuecomment-236531608","issue_url":"https://api.github.com/repos/vyshane/kid/issues/13","id":236531608,"user":{"login":"vyshane","id":305692,"avatar_url":"https://avatars.githubusercontent.com/u/305692?v=3","gravatar_id":"","url":"https://api.github.com/users/vyshane","html_url":"https://github.com/vyshane","followers_url":"https://api.github.com/users/vyshane/followers","following_url":"https://api.github.com/users/vyshane/following{/other_user}","gists_url":"https://api.github.com/users/vyshane/gists{/gist_id}","starred_url":"https://api.github.com/users/vyshane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vyshane/subscriptions","organizations_url":"https://api.github.com/users/vyshane/orgs","repos_url":"https://api.github.com/users/vyshane/repos","events_url":"https://api.github.com/users/vyshane/events{/privacy}","received_events_url":"https://api.github.com/users/vyshane/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T09:23:55Z","updated_at":"2016-08-01T09:23:55Z","body":"Okay, I've removed the offending `set -e`."}}
{"actor":{"display_login":"vyshane"}}