{"action":"created","issue":{"url":"https://api.github.com/repos/projectcalico/calico-containers/issues/1363","repository_url":"https://api.github.com/repos/projectcalico/calico-containers","labels_url":"https://api.github.com/repos/projectcalico/calico-containers/issues/1363/labels{/name}","comments_url":"https://api.github.com/repos/projectcalico/calico-containers/issues/1363/comments","events_url":"https://api.github.com/repos/projectcalico/calico-containers/issues/1363/events","html_url":"https://github.com/projectcalico/calico-containers/issues/1363","id":192584450,"number":1363,"title":"Its easy to end up writing to the wrong etcd with calicoctl","user":{"login":"lwr20","id":2923811,"avatar_url":"https://avatars.githubusercontent.com/u/2923811?v=3","gravatar_id":"","url":"https://api.github.com/users/lwr20","html_url":"https://github.com/lwr20","followers_url":"https://api.github.com/users/lwr20/followers","following_url":"https://api.github.com/users/lwr20/following{/other_user}","gists_url":"https://api.github.com/users/lwr20/gists{/gist_id}","starred_url":"https://api.github.com/users/lwr20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwr20/subscriptions","organizations_url":"https://api.github.com/users/lwr20/orgs","repos_url":"https://api.github.com/users/lwr20/repos","events_url":"https://api.github.com/users/lwr20/events{/privacy}","received_events_url":"https://api.github.com/users/lwr20/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"robbrockbank","id":3227729,"avatar_url":"https://avatars.githubusercontent.com/u/3227729?v=3","gravatar_id":"","url":"https://api.github.com/users/robbrockbank","html_url":"https://github.com/robbrockbank","followers_url":"https://api.github.com/users/robbrockbank/followers","following_url":"https://api.github.com/users/robbrockbank/following{/other_user}","gists_url":"https://api.github.com/users/robbrockbank/gists{/gist_id}","starred_url":"https://api.github.com/users/robbrockbank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbrockbank/subscriptions","organizations_url":"https://api.github.com/users/robbrockbank/orgs","repos_url":"https://api.github.com/users/robbrockbank/repos","events_url":"https://api.github.com/users/robbrockbank/events{/privacy}","received_events_url":"https://api.github.com/users/robbrockbank/received_events","type":"User","site_admin":false},"assignees":[{"login":"robbrockbank","id":3227729,"avatar_url":"https://avatars.githubusercontent.com/u/3227729?v=3","gravatar_id":"","url":"https://api.github.com/users/robbrockbank","html_url":"https://github.com/robbrockbank","followers_url":"https://api.github.com/users/robbrockbank/followers","following_url":"https://api.github.com/users/robbrockbank/following{/other_user}","gists_url":"https://api.github.com/users/robbrockbank/gists{/gist_id}","starred_url":"https://api.github.com/users/robbrockbank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbrockbank/subscriptions","organizations_url":"https://api.github.com/users/robbrockbank/orgs","repos_url":"https://api.github.com/users/robbrockbank/repos","events_url":"https://api.github.com/users/robbrockbank/events{/privacy}","received_events_url":"https://api.github.com/users/robbrockbank/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/projectcalico/calico-containers/milestones/3","html_url":"https://github.com/projectcalico/calico-containers/milestones/v1.0.0","labels_url":"https://api.github.com/repos/projectcalico/calico-containers/milestones/3/labels","id":2119136,"number":3,"title":"v1.0.0","description":"","creator":{"login":"robbrockbank","id":3227729,"avatar_url":"https://avatars.githubusercontent.com/u/3227729?v=3","gravatar_id":"","url":"https://api.github.com/users/robbrockbank","html_url":"https://github.com/robbrockbank","followers_url":"https://api.github.com/users/robbrockbank/followers","following_url":"https://api.github.com/users/robbrockbank/following{/other_user}","gists_url":"https://api.github.com/users/robbrockbank/gists{/gist_id}","starred_url":"https://api.github.com/users/robbrockbank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbrockbank/subscriptions","organizations_url":"https://api.github.com/users/robbrockbank/orgs","repos_url":"https://api.github.com/users/robbrockbank/repos","events_url":"https://api.github.com/users/robbrockbank/events{/privacy}","received_events_url":"https://api.github.com/users/robbrockbank/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":26,"state":"open","created_at":"2016-11-07T14:48:03Z","updated_at":"2016-11-30T20:19:27Z","due_on":"2016-12-09T00:00:00Z","closed_at":null},"comments":3,"created_at":"2016-11-30T14:48:41Z","updated_at":"2016-11-30T20:45:11Z","closed_at":null,"body":"As summary.  For example, you may end up manipulating the k8s etcd instead of the calico one.\r\n\r\nPerhaps we should check for the existence of the `/calico` directory in etcd before writing a key into it - and error if there isn't one found.  Maybe with a `-f` flag to do it anyway (e.g. to set the Ready flag on a baremetal system at start of day).  And error if we don't find a `/calico` directory when reading a key? \r\n\r\nWith those two behaviours, it should become obvious to a user quickly if they're in this situation.\r\n"},"comment":{"url":"https://api.github.com/repos/projectcalico/calico-containers/issues/comments/263989915","html_url":"https://github.com/projectcalico/calico-containers/issues/1363#issuecomment-263989915","issue_url":"https://api.github.com/repos/projectcalico/calico-containers/issues/1363","id":263989915,"user":{"login":"caseydavenport","id":1944093,"avatar_url":"https://avatars.githubusercontent.com/u/1944093?v=3","gravatar_id":"","url":"https://api.github.com/users/caseydavenport","html_url":"https://github.com/caseydavenport","followers_url":"https://api.github.com/users/caseydavenport/followers","following_url":"https://api.github.com/users/caseydavenport/following{/other_user}","gists_url":"https://api.github.com/users/caseydavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/caseydavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseydavenport/subscriptions","organizations_url":"https://api.github.com/users/caseydavenport/orgs","repos_url":"https://api.github.com/users/caseydavenport/repos","events_url":"https://api.github.com/users/caseydavenport/events{/privacy}","received_events_url":"https://api.github.com/users/caseydavenport/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T20:45:11Z","updated_at":"2016-11-30T20:45:11Z","body":"> Maybe we should just warn the user if they have not explicitly specified an\r\netcd datastore and are using the default \"localhost:2379\"\r\n\r\nFeels like warning if `ETCD_ENDPOINTS=` would be fine behavior.  We could add a configuration option to disable warnings if they're annoying."}}
{"actor":{"display_login":"caseydavenport"}}