{"action":"closed","issue":{"url":"https://api.github.com/repos/projectcalico/libcalico/issues/156","repository_url":"https://api.github.com/repos/projectcalico/libcalico","labels_url":"https://api.github.com/repos/projectcalico/libcalico/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/projectcalico/libcalico/issues/156/comments","events_url":"https://api.github.com/repos/projectcalico/libcalico/issues/156/events","html_url":"https://github.com/projectcalico/libcalico/issues/156","id":181665406,"number":156,"title":"calicoctl raises `NameError` due to missing import","user":{"login":"cutwater","id":62445,"avatar_url":"https://avatars.githubusercontent.com/u/62445?v=3","gravatar_id":"","url":"https://api.github.com/users/cutwater","html_url":"https://github.com/cutwater","followers_url":"https://api.github.com/users/cutwater/followers","following_url":"https://api.github.com/users/cutwater/following{/other_user}","gists_url":"https://api.github.com/users/cutwater/gists{/gist_id}","starred_url":"https://api.github.com/users/cutwater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cutwater/subscriptions","organizations_url":"https://api.github.com/users/cutwater/orgs","repos_url":"https://api.github.com/users/cutwater/repos","events_url":"https://api.github.com/users/cutwater/events{/privacy}","received_events_url":"https://api.github.com/users/cutwater/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-07T13:12:55Z","updated_at":"2016-10-07T17:40:37Z","closed_at":"2016-10-07T17:40:37Z","body":"calicoctl raises `NameError` exception, because `EtcdAlreadyExist` is not imported. \r\n\r\n```\r\nOct  7 13:41:49 ubuntu1604 calicoctl[10428]: Traceback (most recent call last):\r\nOct  7 13:41:49 ubuntu1604 calicoctl[10428]:   File \"startup.py\", line 310, in <module>\r\nOct  7 13:41:49 ubuntu1604 calicoctl[10428]:     main()\r\nOct  7 13:41:49 ubuntu1604 calicoctl[10428]:   File \"startup.py\", line 288, in main\r\nOct  7 13:41:49 ubuntu1604 calicoctl[10428]:     client.ensure_global_config()\r\nOct  7 13:41:49 ubuntu1604 calicoctl[10428]:   File \"/usr/lib/python2.7/site-packages/pycalico/datastore.py\", line 130, in wrapped\r\nOct  7 13:41:49 ubuntu1604 calicoctl[10428]:     return fn(*args, **kwargs)\r\nOct  7 13:41:49 ubuntu1604 calicoctl[10428]:   File \"/usr/lib/python2.7/site-packages/pycalico/datastore.py\", line 296, in ensure_global_config\r\nOct  7 13:41:49 ubuntu1604 calicoctl[10428]:     self._ensure_cluster_guid(CLUSTER_GUID_PATH)\r\nOct  7 13:41:49 ubuntu1604 calicoctl[10428]:   File \"/usr/lib/python2.7/site-packages/pycalico/datastore.py\", line 314, in _ensure_cluster_guid\r\nOct  7 13:41:49 ubuntu1604 calicoctl[10428]:     except EtcdAlreadyExist:\r\nOct  7 13:41:49 ubuntu1604 calicoctl[10428]: NameError: global name 'EtcdAlreadyExist' is not defined\r\n```"}}
{"actor":{"display_login":"cutwater"}}