{"action":"closed","issue":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/872","repository_url":"https://api.github.com/repos/cloudfoundry/cli","labels_url":"https://api.github.com/repos/cloudfoundry/cli/issues/872/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/cli/issues/872/comments","events_url":"https://api.github.com/repos/cloudfoundry/cli/issues/872/events","html_url":"https://github.com/cloudfoundry/cli/issues/872","id":162551120,"number":872,"title":"blue-green deployment plugin failing due to plugin integration issue","user":{"login":"ryanmoran","id":155736,"avatar_url":"https://avatars.githubusercontent.com/u/155736?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanmoran","html_url":"https://github.com/ryanmoran","followers_url":"https://api.github.com/users/ryanmoran/followers","following_url":"https://api.github.com/users/ryanmoran/following{/other_user}","gists_url":"https://api.github.com/users/ryanmoran/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanmoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanmoran/subscriptions","organizations_url":"https://api.github.com/users/ryanmoran/orgs","repos_url":"https://api.github.com/users/ryanmoran/repos","events_url":"https://api.github.com/users/ryanmoran/events{/privacy}","received_events_url":"https://api.github.com/users/ryanmoran/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cloudfoundry/cli/labels/accepted","name":"accepted","color":"75B000"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-27T21:21:31Z","updated_at":"2016-06-30T00:43:18Z","closed_at":"2016-06-30T00:43:18Z","body":"I am running into an issue with the latest CLI where a plugin that is invoking a command that errors does not receive the error through the plugin API. Specifically, [autopilot](https://github.com/concourse/autopilot) is invoking `cf push` [here](https://github.com/concourse/autopilot/blob/master/autopilot.go#L168). The actually push of the application fails, but no error object is returned, and so `autopilot` thinks everything succeeded.\r\n\r\n### Command\r\n\r\nThe command is for the [autopilot](https://github.com/concourse/autopilot) plugin:\r\n`cf zero-downtime-push -f path/to/manifest.yml -p path/to/code`\r\n\r\n### CLI Version\r\n\r\ncf version 6.19.0+b29b4e0-2016-06-08\r\n\r\n### Error\r\n\r\nThe plugin doesn't get an error when a command fails.\r\n\r\n### Trace\r\n\r\n```\r\n$ cf zero-downtime-push notifications -f $PWD/manifest.yml -p $PWD\r\nRenaming app notifications to notifications-venerable in org system / space notifications-service as admin...\r\nOK\r\nUsing manifest file manifest.yml\r\n\r\nCreating app notifications in org system / space notifications-service as admin...\r\nOK\r\n\r\nUsing route notifications.bosh-lite.com\r\nBinding notifications.bosh-lite.com to notifications...\r\nOK\r\n\r\nUploading notifications...\r\nUploading app files from: /var/vcap/data/packages/notifications/10b62a8293b29a836e534647a22d82d3f345e5b5.1-3429e9799cff1750c35bd76fca81f8aebc23c077\r\nUploading 14.6M, 1549 files\r\nDone uploading\r\nOK\r\n\r\nStarting app notifications in org system / space notifications-service as admin...\r\n-----> Downloaded app package (5.8M)\r\n-------> Buildpack version 1.7.8\r\nfile:///var/vcap/data/dea_next/admin_buildpacks/4c32f1c6-465b-4fba-87ea-f1ebb368e91b_5dc19602391fb2571b217d754dd7652e6c76630f/dependencies/https___pivotal-buildpacks.s3.amazonaws.com_concourse-binaries_godep_godep-v65-linux-x64.tgz\r\n-----> Checking Godeps/Godeps.json file.\r\n-----> Installing go1.5.4... done\r\nDownloaded [file:///var/vcap/data/dea_next/admin_buildpacks/4c32f1c6-465b-4fba-87ea-f1ebb368e91b_5dc19602391fb2571b217d754dd7652e6c76630f/dependencies/https___storage.googleapis.com_golang_go1.5.4.linux-amd64.tar.gz]\r\n-----> Running: godep go install -v -tags cloudfoundry ./...\r\ngithub.com/go-gorp/gorp\r\ngithub.com/go-sql-driver/mysql\r\ngithub.com/kylelemons/go-gypsy/yaml\r\ngithub.com/lib/pq/oid\r\ngithub.com/lib/pq\r\ngithub.com/mattn/go-sqlite3\r\ngithub.com/ziutek/mymysql/mysql\r\ngithub.com/cloudfoundry-incubator/notifications/db\r\ngithub.com/pivotal-golang/lager\r\ngopkg.in/alexcesaro/quotedprintable.v1/internal\r\ngopkg.in/alexcesaro/quotedprintable.v1\r\ngithub.com/cloudfoundry-incubator/notifications/metrics\r\ngopkg.in/gomail.v1\r\ngithub.com/ziutek/mymysql/native\r\ngithub.com/pivotal-cf-experimental/rainmaker/internal/documents\r\ngithub.com/pivotal-cf-experimental/rainmaker/internal/network\r\ngithub.com/cloudfoundry-incubator/notifications/mail\r\ngithub.com/pivotal-cf-experimental/rainmaker\r\ngithub.com/dgrijalva/jwt-go\r\ngithub.com/ziutek/mymysql/godrv\r\ngithub.com/cloudfoundry-incubator/notifications/cf\r\ngithub.com/pivotal-cf-experimental/warrant/internal/documents\r\ngithub.com/pivotal-cf-experimental/warrant/internal/network\r\ngithub.com/pivotal-cf/uaa-sso-golang/uaa\r\ngithub.com/pivotal-golang/conceal\r\ngithub.com/cloudfoundry-incubator/notifications/util\r\ngithub.com/rubenv/sql-migrate/sqlparse\r\ngithub.com/pivotal-cf-experimental/warrant\r\ngopkg.in/gorp.v1\r\ngithub.com/cloudfoundry-incubator/notifications/v2/models\r\ngithub.com/cloudfoundry-incubator/notifications/uaa\r\ngithub.com/cloudfoundry-incubator/notifications/v2/collections\r\ngithub.com/rubenv/sql-migrate\r\ngithub.com/cloudfoundry-incubator/notifications/postal/common\r\ngithub.com/cloudfoundry-incubator/notifications/v1/models\r\ngithub.com/cloudfoundry-incubator/notifications/v2/horde\r\ngolang.org/x/net/html/atom\r\ngolang.org/x/net/html\r\ngithub.com/ryanmoran/stack\r\ngithub.com/cloudfoundry-incubator/notifications/v1/collections\r\ngithub.com/cloudfoundry-incubator/notifications/v1/web/info\r\ngithub.com/gorilla/context\r\ngithub.com/cloudfoundry-incubator/notifications/valiant\r\ngithub.com/gorilla/mux\r\ngithub.com/cloudfoundry-incubator/notifications/v2/web/campaigns\r\ngithub.com/andybalholm/cascadia\r\ngithub.com/cloudfoundry-incubator/notifications/v1/web/middleware\r\ngithub.com/cloudfoundry-incubator/notifications/v2/web/campaigntypes\r\ngithub.com/PuerkitoBio/goquery\r\ngithub.com/cloudfoundry-incubator/notifications/v2/web/info\r\ngithub.com/cloudfoundry-incubator/notifications/v2/web/middleware\r\ngithub.com/cloudfoundry-incubator/notifications/v2/web/root\r\ngithub.com/cloudfoundry-incubator/notifications/v2/web/senders\r\ngithub.com/cloudfoundry-incubator/notifications/v2/web/templates\r\ngithub.com/cloudfoundry-incubator/notifications/v2/web/unsubscribers\r\ngithub.com/ryanmoran/viron\r\ngithub.com/cloudfoundry-incubator/notifications/docs\r\nbitbucket.org/liamstask/goose/lib/goose\r\ngithub.com/cloudfoundry-incubator/notifications/gobble\r\ngithub.com/cloudfoundry-incubator/notifications/postal/v1\r\ngithub.com/cloudfoundry-incubator/notifications/v1/services\r\ngithub.com/cloudfoundry-incubator/notifications/v2/queue\r\ngithub.com/cloudfoundry-incubator/notifications/v2/web\r\ngithub.com/cloudfoundry-incubator/notifications/postal/v2\r\ngithub.com/cloudfoundry-incubator/notifications/v1/web/webutil\r\ngithub.com/cloudfoundry-incubator/notifications/v1/web/messages\r\ngithub.com/cloudfoundry-incubator/notifications/v1/web/notify\r\ngithub.com/cloudfoundry-incubator/notifications/v1/web/clients\r\ngithub.com/cloudfoundry-incubator/notifications/v1/web/notifications\r\ngithub.com/cloudfoundry-incubator/notifications/v1/web/preferences\r\ngithub.com/cloudfoundry-incubator/notifications/v1/web/templates\r\ngithub.com/cloudfoundry-incubator/notifications/postal\r\ngithub.com/cloudfoundry-incubator/notifications/v1/web\r\ngithub.com/cloudfoundry-incubator/notifications/web\r\ngithub.com/cloudfoundry-incubator/notifications/application\r\ngithub.com/cloudfoundry-incubator/notifications\r\n\r\n-----> Uploading droplet (11M)\r\n\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 starting\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 down\r\n0 of 1 instances running, 1 failing\r\nDeleting app notifications-venerable in org system / space notifications-service as admin...\r\nOK\r\n\r\nA new version of your application has successfully been pushed!\r\n\r\nGetting apps in org system / space notifications-service as admin...\r\nOK\r\n\r\nname            requested state   instances   memory   disk   urls\r\nnotifications   started           0/1         64M      1G     notifications.bosh-lite.com\r\nFAILED\r\n```\r\n\r\n### Platform Details\r\n\r\n```\r\nroot@895deb84-703c-40ed-89be-665f8aa0fcbe:~# uname -a\r\nLinux 895deb84-703c-40ed-89be-665f8aa0fcbe 4.2.0-36-generic #42~14.04.1-Ubuntu SMP Fri May 13 17:27:22 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n\r\n### Shell\r\n\r\nbash\r\n"}}
{"actor":{"display_login":"dkoper"}}