{"action":"opened","issue":{"url":"https://api.github.com/repos/starkandwayne/genesis/issues/87","repository_url":"https://api.github.com/repos/starkandwayne/genesis","labels_url":"https://api.github.com/repos/starkandwayne/genesis/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/starkandwayne/genesis/issues/87/comments","events_url":"https://api.github.com/repos/starkandwayne/genesis/issues/87/events","html_url":"https://github.com/starkandwayne/genesis/issues/87","id":185541658,"number":87,"title":"\"make deploy\" not working after the recent genesis updates","user":{"login":"kitsirota","id":3009800,"avatar_url":"https://avatars.githubusercontent.com/u/3009800?v=3","gravatar_id":"","url":"https://api.github.com/users/kitsirota","html_url":"https://github.com/kitsirota","followers_url":"https://api.github.com/users/kitsirota/followers","following_url":"https://api.github.com/users/kitsirota/following{/other_user}","gists_url":"https://api.github.com/users/kitsirota/gists{/gist_id}","starred_url":"https://api.github.com/users/kitsirota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitsirota/subscriptions","organizations_url":"https://api.github.com/users/kitsirota/orgs","repos_url":"https://api.github.com/users/kitsirota/repos","events_url":"https://api.github.com/users/kitsirota/events{/privacy}","received_events_url":"https://api.github.com/users/kitsirota/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T00:03:47Z","updated_at":"2016-10-27T00:03:47Z","closed_at":null,"body":"I have not had a chance to track down which genesis release breaks this, but as of the latest update, running \"make deploy\" generates the following error:\r\n\r\n```\r\n$ make deploy\r\nError: Could not contact https://<director IP>:25555 to find release information\r\nmake: *** [deploy] Error 3\r\n```\r\n\r\n\r\nThis appears to be coming from this code block\r\n```have_blob() {\r\n\tlocal type=$1; shift\r\n\tlocal name=$1; shift\r\n\tlocal version=$1; shift\r\n\r\n\tlocal director_url=$(spruce json ~/.bosh_config | jq -r \".target\")\r\n\tlocal director_creds=$(spruce json ~/.bosh_config | jq -r '.auth[.target].username + \":\" + .auth[.target].password')\r\n\tif director_alive $director_url; then\r\n\t\tif [[ ${version} == \"latest\" ]]; then\r\n\t\t\tif [[ ${type} == \"release\" ]]; then\r\n\t\t\t\tif [[ -n $(curl -Lks -u \"${director_creds}\" ${director_url}/releases | jq -r '.[]| select(.name == \"'${name}'\") | \"release-detected\"') ]]; then\r\n\t\t\t\t\treturn 0\r\n\t\t\t\telse\r\n\t\t\t\t\treturn 1\r\n\t\t\t\tfi\r\n\t\t\telif [[ ${type} == \"stemcell\" ]]; then\r\n\t\t\t\tif [[ -n $(curl -Lks -u \"${director_creds}\" ${director_url}/stemcells | jq -r '.[]| select(.name == \"'${name}'\") | \"stemcell-detected\"') ]]; then\r\n\t\t\t\t\treturn 0\r\n\t\t\t\telse\r\n\t\t\t\t\treturn 1\r\n\t\t\t\tfi\r\n\t\t\telse\r\n\t\t\t\techo >&2 \"Error: Invalid type. This is a bug. Got ${type} but expected 'stemcell' or 'release'\"\r\n\t\t\t\texit 2\r\n\t\t\tfi\r\n\t\telse\r\n\t\t\tif [[ ${type} == \"release\" ]]; then\r\n\t\t\t\tif [[ -n $(curl -Lks -u \"${director_creds}\" ${director_url}/releases | jq -r '.[] | select(.name == \"'${name}'\") | .release_versions[] | select(.version == \"'${version}'\") | \"release-version-detected\"') ]]; then\r\n\t\t\t\t\treturn 0\r\n\t\t\t\telse\r\n\t\t\t\t\treturn 1\r\n\t\t\t\tfi\r\n\t\t\telif [[ ${type} == \"stemcell\" ]]; then\r\n\t\t\t\tif [[ -n $(curl -Lks -u \"${director_creds}\" ${director_url}/stemcells | jq -r '.[]| select(.name == \"'${name}'\") | select(.version == \"'${version}'\") | \"stemcell-version-detected\"') ]]; then\r\n\t\t\t\t\treturn 0\r\n\t\t\t\telse\r\n\t\t\t\t\treturn 1\r\n\t\t\t\tfi\r\n\t\t\telse\r\n\t\t\t\techo >&2 \"Error: Invalid type. This is a bug. Got ${type} but expected 'stemcell' or 'release'\"\r\n\t\t\t\texit 2\r\n\t\t\tfi\r\n\t\tfi\r\n\telse\r\n\t\techo >&2 \"Error: Could not contact ${director_url} to find release information\"\r\n\t\texit 2\r\n\tfi\r\n}```\r\n\r\n\r\nInterestingly enough genesis bosh deploy still works fine (even though our Makefile uses genesis)."}}
{"actor":{"display_login":"kitsirota"}}