Skip to content

No keys are returned from KV when no prefix is specified #20

Description

@martinwaite

Using the 0.2.2 release, any attempts to backup the entire KV store failed to find any keys. Examining strace output from this process revealed that the api URL is "GET /v1/kv//?consistent=&recurse=". These URLs lead to redirects.

There is a fix that went into Consul API a few weeks after the 0.2.2 release that avoids a API redirect by removing the trailing slash from the key:

hashicorp/consul@8c3db1c

I downloaded consul-snapshot source and recompiled after patching the vendored consul/api to match, and using that build, the KV backup worked.

Is it possible to create a new release compiled against the newer version of the Consol API ? I believe that will fix this problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions