{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/fleet/issues/1208","labels_url":"https://api.github.com/repos/coreos/fleet/issues/1208/labels{/name}","comments_url":"https://api.github.com/repos/coreos/fleet/issues/1208/comments","events_url":"https://api.github.com/repos/coreos/fleet/issues/1208/events","html_url":"https://github.com/coreos/fleet/issues/1208","id":72300358,"number":1208,"title":"fleetctl status cannot find running unit shown in list-units","user":{"login":"ChimeraCoder","id":376414,"avatar_url":"https://avatars.githubusercontent.com/u/376414?v=3","gravatar_id":"","url":"https://api.github.com/users/ChimeraCoder","html_url":"https://github.com/ChimeraCoder","followers_url":"https://api.github.com/users/ChimeraCoder/followers","following_url":"https://api.github.com/users/ChimeraCoder/following{/other_user}","gists_url":"https://api.github.com/users/ChimeraCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ChimeraCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChimeraCoder/subscriptions","organizations_url":"https://api.github.com/users/ChimeraCoder/orgs","repos_url":"https://api.github.com/users/ChimeraCoder/repos","events_url":"https://api.github.com/users/ChimeraCoder/events{/privacy}","received_events_url":"https://api.github.com/users/ChimeraCoder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-04-30T22:34:19Z","updated_at":"2015-06-18T00:00:02Z","closed_at":null,"body":"I ran into this issue when testing out a 3-machine cluster on DigitalOcean using the alpha build (which is the default on the [Digital Ocean setup guide](https://coreos.com/docs/running-coreos/cloud-providers/digitalocean/#via-the-api).\r\n\r\nExecuting the steps on the [Quickstart](https://coreos.com/docs/quickstart/) results in a seemingly-inconsistent state. \r\n\r\nRunning `fleetctl load hello.service` and `fleetctl start hello.service` causes the service to be started. The unit is visible with `fleetctl status hello.service` on the other two machines in the cluster, but *not* on the original machine, even though it is shown in `fleetctl list-units` and `fleetctl list-unit-files` on the original machine. (`docker ps` and `systemctl status hello.service`)\r\n\r\nWhile debugging this [on IRC](https://botbot.me/freenode/coreos/2015-04-30/?msg=38018609&page=9) with @robszumski, we found an error in the `cloud-config` on the Quickstart (fixed in https://github.com/coreos/docs/pull/494), but fixing that didn't solve this issue.\r\n\r\n![screenshot - 04302015 - 04 17 31 pm](https://cloud.githubusercontent.com/assets/376414/7423655/50e8f400-ef65-11e4-8ed1-3b3af8e293dd.png)\r\n\r\nThis was fairly reproducible; wiping and reprovisioning the machines yielded it consistently for me.\r\n\r\nBelow is the cloud-config used (copied almost exactly from the Quickstart and DigitalOcean guide, except for the aforementioned fix):\r\n\r\n````\r\n#cloud-config\r\n\r\nssh_authorized_keys:\r\n    - ssh-rsa AAAA.... #(ommitted)\r\ncoreos:\r\n  etcd:\r\n    # generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3\r\n    # specify the intial size of your cluster with ?size=X\r\n    discovery: https://discovery.etcd.io/24213cbe5c58921b22607da2a9ba151e\r\n    # multi-region deployments, multi-cloud deployments, and droplets without\r\n    # private networking need to use $public_ipv4\r\n    addr: $private_ipv4:4001\r\n    peer-addr: $private_ipv4:7001\r\n  units:\r\n    - name: etcd.service\r\n      command: start\r\n    - name: fleet.service\r\n      command: start\r\n````\r\n\r\n````sh\r\n#! /bin/sh\r\nset -e\r\n\r\ncurl --request POST \"https://api.digitalocean.com/v2/droplets\" \\\r\n     --header \"Content-Type: application/json\" \\\r\n     --header \"Authorization: Bearer $TOKEN\" \\\r\n     --data '{\r\n      \"region\":\"nyc3\",\r\n      \"image\":\"coreos-alpha\",\r\n      \"size\":\"512mb\",\r\n      \"name\":\"core-1\",\r\n      \"private_networking\":true,\r\n      \"ssh_keys\":['$SSH_KEY_ID'],\r\n      \"user_data\": \"'\"$(cat cloud-config.yml | sed 's/\"/\\\\\"/g')\"'\"\r\n}'\r\n\r\ncurl --request POST \"https://api.digitalocean.com/v2/droplets\" \\\r\n     --header \"Content-Type: application/json\" \\\r\n     --header \"Authorization: Bearer $TOKEN\" \\\r\n     --data '{\r\n      \"region\":\"nyc3\",\r\n      \"image\":\"coreos-alpha\",\r\n      \"size\":\"512mb\",\r\n      \"name\":\"core-2\",\r\n      \"private_networking\":true,\r\n      \"ssh_keys\":['$SSH_KEY_ID'],\r\n      \"user_data\": \"'\"$(cat cloud-config.yml | sed 's/\"/\\\\\"/g')\"'\"\r\n}'\r\n\r\ncurl --request POST \"https://api.digitalocean.com/v2/droplets\" \\\r\n     --header \"Content-Type: application/json\" \\\r\n     --header \"Authorization: Bearer $TOKEN\" \\\r\n     --data '{\r\n      \"region\":\"nyc3\",\r\n      \"image\":\"coreos-alpha\",\r\n      \"size\":\"512mb\",\r\n      \"name\":\"core-3\",\r\n      \"private_networking\":true,\r\n      \"ssh_keys\":['$SSH_KEY_ID'],\r\n      \"user_data\": \"'\"$(cat cloud-config.yml | sed 's/\"/\\\\\"/g')\"'\"\r\n}'"},"comment":{"url":"https://api.github.com/repos/coreos/fleet/issues/comments/112982811","html_url":"https://github.com/coreos/fleet/issues/1208#issuecomment-112982811","issue_url":"https://api.github.com/repos/coreos/fleet/issues/1208","id":112982811,"user":{"login":"crawford","id":368848,"avatar_url":"https://avatars.githubusercontent.com/u/368848?v=3","gravatar_id":"","url":"https://api.github.com/users/crawford","html_url":"https://github.com/crawford","followers_url":"https://api.github.com/users/crawford/followers","following_url":"https://api.github.com/users/crawford/following{/other_user}","gists_url":"https://api.github.com/users/crawford/gists{/gist_id}","starred_url":"https://api.github.com/users/crawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crawford/subscriptions","organizations_url":"https://api.github.com/users/crawford/orgs","repos_url":"https://api.github.com/users/crawford/repos","events_url":"https://api.github.com/users/crawford/events{/privacy}","received_events_url":"https://api.github.com/users/crawford/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T00:00:02Z","updated_at":"2015-06-18T00:00:02Z","body":"This has been fixed by https://github.com/coreos/fleet/pull/1253."}}