Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git2consul 0.10.4 - 0.12.13 does not reset/override manual KV changes made through the latest consul web ui (v0.8.5) #153

Open
phantasm66 opened this issue Aug 1, 2017 · 0 comments

Comments

@phantasm66
Copy link

phantasm66 commented Aug 1, 2017

My git2consul config:

{
  "version": "1.0",
  "local_store": "/var/lib/git2consul_cache",
  "logger" : {
    "name" : "git2consul",
    "streams" : [
      {
        "level": "trace",
        "stream": "process.stdout"
      },
      {
        "level": "trace",
        "stream": "process.stderr"
      }
    ]
  },
  "repos" : [
    {
      "name" : "config",
      "mode" : "expand_keys",
      "url" : "[email protected]:<my_org>/<my_repo>.git",
      "include_branch_name" : false,
      "branches" : [ "<my_branch>" ],
      "hooks": [{
        "type" : "polling",
        "interval" : "1"
      }]
    }
  ]
}

I am using the latest consul and consul web ui (v.0.8.5 for both) and I've been able to reproduce the issue with git2consul 0.10.4 all the way through latest (0.12.13). I have not tried any versions lower than 0.10.4.

Also, note... I have all consul ACL stuff disabled.

When git2consul starts it always syncs the specified git repo and branch from the config above and syncs it (recursively) to the consul KV (no problem there). Also, as expected, when I commit and push any changes to my git branch, git2consul always detects and syncs to the consul KV on it's next polling interval.

The problem is this...

When running git2consul versions 0.10.4 through 0.12.13, but consul and consul web ui versions of 0.6.4 I can go into the consul web ui and manual edit a consul KV object. All versions of git2consul sync the change on the next polling interval. However, when I make a manual change through the web ui for consul 0.8.5 and git2consul does it's next poll, it doesn't re-sync or overwrite my manual web ui changes (presumably because it just checks the KV stored branch's ".ref" file with the current git sha).

Would love it if I could get some help with this.

Thanks!

@phantasm66 phantasm66 changed the title git2consul 0.10.4 - 0.12.13 does not reset/override manual KV changes made through the consul web ui (v0.8.5) git2consul 0.10.4 - 0.12.13 does not reset/override manual KV changes made through the latest consul web ui (v0.8.5) Aug 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant