Uploaded image for project: 'Percona Operator for MongoDB'
  1. Percona Operator for MongoDB
  2. K8SPSMDB-560

serviceName tag not set to all members in replica

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 1.10.0
    • 1.12.0
    • None
    • Yes

    Description

      For some reason "_id: 0" replica member never has tag "serviceName" : "my-cluster-name" while other replica set members have it.
      Here's how it looks:

              "members" : [
                      {
                              "_id" : 0,
                              "host" : "34.135.56.110:27017",
                              "arbiterOnly" : false,
                              "buildIndexes" : true,
                              "hidden" : false,
                              "priority" : 2,
                              "tags" : {
      
                              },
                              "slaveDelay" : NumberLong(0),
                              "votes" : 1
                      },
                      {
                              "_id" : 1,
                              "host" : "35.202.206.184:27017",
                              "arbiterOnly" : false,
                              "buildIndexes" : true,
                              "hidden" : false,
                              "priority" : 2,
                              "tags" : {
                                      "serviceName" : "my-cluster-name"
                              },
                              "slaveDelay" : NumberLong(0),
                              "votes" : 1
                      },
                      {
                              "_id" : 2,
                              "host" : "34.70.184.105:27017",
                              "arbiterOnly" : false,
                              "buildIndexes" : true,
                              "hidden" : false,
                              "priority" : 2,
                              "tags" : {
                                      "serviceName" : "my-cluster-name"
                              },
                              "slaveDelay" : NumberLong(0),
                              "votes" : 1
                      },
      

      Some other info:
      1. externalNodes do not get this tag
      2. if we issue rs.stepDown() and primary steps down it is not added/removed anywhere
      3. cfg replica members do not get it currently

      So basically currently it looks like inconsistency and we should also investigate why it was added in the first place (maybe it's just obsolete and should be removed).

      Attachments

        Activity

          People

            andrii.dema Andrii Dema
            tomislav.plavcic@percona.com Tomislav Plavcic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist