{"action":"created","issue":{"url":"https://api.github.com/repos/projectcalico/felix/issues/1772","repository_url":"https://api.github.com/repos/projectcalico/felix","labels_url":"https://api.github.com/repos/projectcalico/felix/issues/1772/labels{/name}","comments_url":"https://api.github.com/repos/projectcalico/felix/issues/1772/comments","events_url":"https://api.github.com/repos/projectcalico/felix/issues/1772/events","html_url":"https://github.com/projectcalico/felix/issues/1772","id":311480842,"number":1772,"title":"Calico-felix Failed to read global datastore 'Ready' flag on compute host","user":{"login":"huynhducbk95","id":18211069,"avatar_url":"https://avatars2.githubusercontent.com/u/18211069?v=4","gravatar_id":"","url":"https://api.github.com/users/huynhducbk95","html_url":"https://github.com/huynhducbk95","followers_url":"https://api.github.com/users/huynhducbk95/followers","following_url":"https://api.github.com/users/huynhducbk95/following{/other_user}","gists_url":"https://api.github.com/users/huynhducbk95/gists{/gist_id}","starred_url":"https://api.github.com/users/huynhducbk95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huynhducbk95/subscriptions","organizations_url":"https://api.github.com/users/huynhducbk95/orgs","repos_url":"https://api.github.com/users/huynhducbk95/repos","events_url":"https://api.github.com/users/huynhducbk95/events{/privacy}","received_events_url":"https://api.github.com/users/huynhducbk95/received_events","type":"User","site_admin":false},"labels":[{"id":109800031,"url":"https://api.github.com/repos/projectcalico/felix/labels/kind/support","name":"kind/support","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-04-05T05:51:51Z","updated_at":"2018-04-05T16:30:15Z","closed_at":null,"author_association":"NONE","body":"<!--- Provide a general summary of the issue in the Title above -->\r\nI have an openstack deployment: 1 controller (all-in-one) and 1 compute. I have done on controller with following state:\r\n```\r\nopenstack network agent list\r\n+--------------------------------------+-------------------------------+------------+-------------------+-------+-------+------------------------+\r\n| ID                                   | Agent Type                    | Host       | Availability Zone | Alive | State | Binary                 |\r\n+--------------------------------------+-------------------------------+------------+-------------------+-------+-------+------------------------+\r\n| 42143951-029f-4124-ae8b-8cf07fcccf7e | L3 agent                      | controller | nova              | :-)   | UP    | neutron-l3-agent       |\r\n| 7dda5e46-ab42-4484-8407-453d58f41f7b | Calico per-host agent (felix) | controller | None              | :-)   | UP    | calico-felix           |\r\n| c955a5bc-a93c-4cf8-a42d-3bd1d03dca4c | Metadata agent                | controller | None              | :-)   | UP    | neutron-metadata-agent |\r\n+--------------------------------------+-------------------------------+------------+-------------------+-------+-------+------------------------+\r\n\r\n```\r\nBut, on compute host, I don't know what I missed? I walked through all step on compute host at here:\r\n[official docs](https://docs.projectcalico.org/v2.6/getting-started/openstack/installation/ubuntu)\r\n## Expected Behavior\r\n<!--- If you're describing a bug, tell us what should happen -->\r\nCompute host work fine with calico\r\n<!--- If you're suggesting a change/improvement, tell us how it should work -->\r\n\r\n## Current Behavior\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\nI got an error in calico-felix on compute host:\r\n```\r\nMar 30 12:56:28 compute calico-felix[6866]: 2018-03-30 12:56:28.317 [ERROR][6866] felix.go 673: Failed to read global datastore 'Ready' flag, will retry... error=resource does not exist: ReadyFlagKey()\r\nMar 30 12:56:29 compute calico-felix[6866]: 2018-03-30 12:56:29.320 [ERROR][6866] felix.go 673: Failed to read global datastore 'Ready' flag, will retry... error=resource does not exist: ReadyFlagKey()\r\nMar 30 12:56:30 compute calico-felix[6866]: 2018-03-30 12:56:30.321 [ERROR][6866] felix.go 673: Failed to read global datastore 'Ready' flag, will retry... error=resource does not exist: ReadyFlagKey()\r\n\r\n```\r\nand Calico per-host agent (felix) not show on controller host with command `neutron agent-list`.\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\n\r\n## Possible Solution\r\n<!--- Not obligatory, but suggest a fix/reason/workaround for the bug, -->\r\n<!--- or ideas how to implement the addition or change -->\r\n\r\n## Steps to Reproduce (for bugs)\r\n<!--- Provide a link to a live example, or an unambiguous set of steps to -->\r\n<!--- reproduce this bug. Include code to reproduce, if relevant -->\r\n1.\r\n2.\r\n3.\r\n4.\r\n\r\n## Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Felix version (if using Felix binary directly `calico-felix --version`): 2.6.5\r\n* And/Or, `calico/node` container version (if running Felix in a container):\r\n* Which orchestrator are you using (e.g. Kubernetes, OpenStack, Docker, Mesos): Openstack\r\n* Orchestrator version (if used): pike\r\n* Etcd version (if using etcd datastore driver): etcdv2 (2.2.5)\r\n* Operating System and version: Ubuntu 16.04.4 LTS xenial\r\n* Link to your project (optional):\r\n"},"comment":{"url":"https://api.github.com/repos/projectcalico/felix/issues/comments/378996559","html_url":"https://github.com/projectcalico/felix/issues/1772#issuecomment-378996559","issue_url":"https://api.github.com/repos/projectcalico/felix/issues/1772","id":378996559,"user":{"login":"huynhducbk95","id":18211069,"avatar_url":"https://avatars2.githubusercontent.com/u/18211069?v=4","gravatar_id":"","url":"https://api.github.com/users/huynhducbk95","html_url":"https://github.com/huynhducbk95","followers_url":"https://api.github.com/users/huynhducbk95/followers","following_url":"https://api.github.com/users/huynhducbk95/following{/other_user}","gists_url":"https://api.github.com/users/huynhducbk95/gists{/gist_id}","starred_url":"https://api.github.com/users/huynhducbk95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huynhducbk95/subscriptions","organizations_url":"https://api.github.com/users/huynhducbk95/orgs","repos_url":"https://api.github.com/users/huynhducbk95/repos","events_url":"https://api.github.com/users/huynhducbk95/events{/privacy}","received_events_url":"https://api.github.com/users/huynhducbk95/received_events","type":"User","site_admin":false},"created_at":"2018-04-05T16:30:15Z","updated_at":"2018-04-05T16:30:15Z","author_association":"NONE","body":"@fasaxc Thanks for your keeping contact,\r\nin the neutron-server.log, it has no ERROR or WARNING for search with `calico`:\r\n```\r\n2018-03-31 11:17:07.663 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:17:07.667 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:17:13.085 23211 INFO networking_calico.etcdutils [-] (Re)connecting to etcd. Old etcd cluster ID was 7e27652122e8b2ae.\r\n2018-03-31 11:17:17.668 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:17:17.671 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:17:23.090 23211 INFO networking_calico.etcdutils [-] (Re)connecting to etcd. Old etcd cluster ID was 7e27652122e8b2ae.\r\n2018-03-31 11:17:27.671 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:17:27.674 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:17:33.021 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [-] Felix on host controller is alive; fanning out status report\r\n2018-03-31 11:17:37.675 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:17:37.678 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:17:43.050 23211 INFO networking_calico.etcdutils [-] (Re)connecting to etcd. Old etcd cluster ID was 7e27652122e8b2ae.\r\n2018-03-31 11:17:47.679 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:17:47.682 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:17:53.053 23211 INFO networking_calico.etcdutils [-] (Re)connecting to etcd. Old etcd cluster ID was 7e27652122e8b2ae.\r\n2018-03-31 11:17:54.723 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] I am master: doing periodic resync\r\n2018-03-31 11:17:54.723 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Resyncing subnets\r\n2018-03-31 11:17:54.724 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Scanning etcd for all subnets\r\n2018-03-31 11:17:54.726 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] No subnet key present.\r\n2018-03-31 11:17:54.793 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Resyncing profiles\r\n2018-03-31 11:17:54.794 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Scanning etcd for all profiles\r\n2018-03-31 11:17:54.796 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] No profiles key present\r\n2018-03-31 11:17:54.810 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Resyncing endpoints\r\n2018-03-31 11:17:54.810 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Scanning etcd for all endpoints\r\n2018-03-31 11:17:54.812 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] No endpoint key present.\r\n2018-03-31 11:17:54.897 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Providing Felix configuration\r\n2018-03-31 11:17:54.899 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] ClusterGUID is 77b019fd8aea4ae6b725c214e9e0f3b2\r\n2018-03-31 11:17:57.683 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:17:57.687 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:18:03.012 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [-] Felix on host controller is alive; fanning out status report\r\n2018-03-31 11:18:07.687 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:18:07.690 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:18:13.032 23211 INFO networking_calico.etcdutils [-] (Re)connecting to etcd. Old etcd cluster ID was 7e27652122e8b2ae.\r\n2018-03-31 11:18:17.691 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:18:17.694 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:18:23.037 23211 INFO networking_calico.etcdutils [-] (Re)connecting to etcd. Old etcd cluster ID was 7e27652122e8b2ae.\r\n2018-03-31 11:18:27.695 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:18:27.698 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:18:33.015 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [-] Felix on host controller is alive; fanning out status report\r\n2018-03-31 11:18:37.699 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:18:37.703 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:18:43.035 23211 INFO networking_calico.etcdutils [-] (Re)connecting to etcd. Old etcd cluster ID was 7e27652122e8b2ae.\r\n2018-03-31 11:18:47.705 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:18:48.076 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:18:53.039 23211 INFO networking_calico.etcdutils [-] (Re)connecting to etcd. Old etcd cluster ID was 7e27652122e8b2ae.\r\n2018-03-31 11:18:54.904 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] I am master: doing periodic resync\r\n2018-03-31 11:18:54.905 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Resyncing subnets\r\n2018-03-31 11:18:54.906 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Scanning etcd for all subnets\r\n2018-03-31 11:18:54.909 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] No subnet key present.\r\n2018-03-31 11:18:55.002 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Resyncing profiles\r\n2018-03-31 11:18:55.003 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Scanning etcd for all profiles\r\n2018-03-31 11:18:55.005 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] No profiles key present\r\n2018-03-31 11:18:55.022 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Resyncing endpoints\r\n2018-03-31 11:18:55.023 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Scanning etcd for all endpoints\r\n2018-03-31 11:18:55.026 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] No endpoint key present.\r\n2018-03-31 11:18:55.338 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] Providing Felix configuration\r\n2018-03-31 11:18:55.341 23211 INFO networking_calico.plugins.ml2.drivers.calico.t_etcd [req-2442d800-b68a-4471-9a7d-7e154525e1cb - - - - -] ClusterGUID is 77b019fd8aea4ae6b725c214e9e0f3b2\r\n2018-03-31 11:18:58.076 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:18:58.079 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:19:03.021 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [-] Felix on host controller is alive; fanning out status report\r\n2018-03-31 11:19:08.080 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:19:08.083 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:19:13.042 23211 INFO networking_calico.etcdutils [-] (Re)connecting to etcd. Old etcd cluster ID was 7e27652122e8b2ae.\r\n2018-03-31 11:19:18.083 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:19:18.087 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:19:23.046 23211 INFO networking_calico.etcdutils [-] (Re)connecting to etcd. Old etcd cluster ID was 7e27652122e8b2ae.\r\n2018-03-31 11:19:28.088 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshing master role\r\n2018-03-31 11:19:28.092 23211 INFO networking_calico.plugins.ml2.drivers.calico.election [-] Refreshed master role\r\n2018-03-31 11:19:33.049 23211 INFO networking_calico.etcdutils [-] (Re)connecting to etcd. Old etcd cluster ID was 7e27652122e8b2ae.\r\n2018-03-31 11:19:33.077 23211 INFO networking_calico.plugins.ml2.drivers.calico.mech_calico [-] Felix on host controller is alive; fanning out status report\r\n```\r\nwhile I install compute node section on controller and compute host, I found two difference things between controller host and compute host:\r\n- on controller host, I didn't make this command: `sudo apt-get install neutron-common neutron-dhcp-agent nova-api-metadata`, because these package already install on controller host. But, on compute host, I made this command.\r\n- on controller host, `felix.cfg` file:\r\n```\r\n[global]\r\nEtcdAddr = http://192.168.122.55:2379\r\nFelixHostname = controller\r\n```\r\nAnd, on compute host:\r\n```\r\n[global]\r\nEtcdAddr = http://192.168.122.211:2379\r\nFelixHostname = compute\r\n```\r\n\r\nhave you any idea?"}}
{"actor":{"display_login":"huynhducbk95"}}