Skip to content

Cannot promote member from follower when auth is enabled #20757

@jason-lynch

Description

@jason-lynch

Bug report criteria

What happened?

In a cluster with auth enabled, member promotion operations fail and timeout if they are submitted to a follower member. The leader member repeatedly logs this warning:

failed to promote a member

Along with the error:

auth: user name is empty

What did you expect to happen?

The follower should forward the promotion request to the leader, and that promotion request should succeed.

How can we reproduce it (as minimally and precisely as possible)?

  • Create a cluster with two members and enable auth
  • Determine which member is the follower
  • Add a learner member to the cluster
  • Submit a "member promote" request to the follower member

I've written an E2E test that demonstrates this process here: jason-lynch@58e8806

Anything else we need to know?

No response

Etcd version (please run commands below)

I'm embedding Etcd in my project, and I'm currently at version 3.6.1. I've used my E2E test above to verify this issue on v3.6.1, v3.6.5, and the current head of main.

Etcd configuration (command line flags or environment variables)

No response

Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)

No response

Relevant log output

failed to promote a member error="auth: user name is empty"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions