Skip to content

using File copy based initial sync fails when trying to scale replicaset #2172

@KyriosGN0

Description

@KyriosGN0

Report

when we enable File copy based initial sync via the configuration spec, and then scale the replicaset, the pods get created, but the operator pod fails to add them to the replicaset and continue the reconciliation cycle, it reports that reconcile statefulsets: reconcile replset rs0: reconcile StatefulSet for rs0: failed to run smartUpdate: is pod primary: failed to create standalone client: ping mongo: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism \"SCRAM-SHA-1\": (AuthenticationFailed)

More about the problem

when trying to access the new mongo pod with mongosh --username clusterAdmin --password CLUSTER_ADMIN_PASSWORD, you get AuthenticationFailed

we tested this on a cluster with PSA setup, i don't know if this is related

Steps to reproduce

  1. create a cluster without File copy based initial sync
  2. update the cluster to use File copy based initial sync
  3. scale the cluster

Versions

  1. Kubernetes 1.33
  2. Operator 1.21.1
  3. Database mongodb 7.0.24-16

Anything else?

No response

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