# Not able to generate Replicaset tag

**URL:** https://forums.percona.com/t/not-able-to-generate-replicaset-tag/30462
**Category:** Percona Operator for MongoDB
**Created:** [May 21, 2024, 10:55am UTC](https://forums.percona.com/t/not-able-to-generate-replicaset-tag/30462 "2024-05-21T10:55:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![swapnil\_paralkar](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/swapnil_paralkar/32/14754_2.png) [@swapnil\_paralkar](https://forums.percona.com/u/swapnil_paralkar)
#### Post date: [May 21, 2024, 10:55am UTC](https://forums.percona.com/t/not-able-to-generate-replicaset-tag/30462/1 "2024-05-21T10:55:57Z")

</div>

## Description:

[Detailed description of the issue or question]

I am using Percona operator for mongodb (1.15.0) (Mongodb 6) . I was trying to set a custom replicaset tag on one of the members . However , when i check rs.conf() , i do not see the new tags .

One of other the strange behaviour we witness is that after setting the replica set tag to null (which works sometimes) , the rs.conf shows the original tag.

Original replica set tag is as follows:  
tags: {  
podName: ‘my-cluster-name-rs0-3’,  
serviceName: ‘my-cluster-name’  
}

I tried setting the replicaset tag on my local (which is not on k8s) and it worked fine . My guess is Percona operator is resetting the tags .

## Steps to Reproduce:

[Step-by-step instructions on how to reproduce the issue, including any specific settings or configurations]

1. Login to database via an admin user (on primary)
2. load config to a variable  
conf = rs.conf()
3. Add tag to one of the members  
conf.members[2].tags = {“tag\_testing” : “test”}
4. Add the tag to the config  
rs.reconfig(conf,{force: true});
5. Verify the replicaset tag  
rs.conf()

## Version:

Mongodb version 6  
Percona operator for Mongodb : 1.15.0

## Logs:

[If applicable, include any relevant log files or error messages]

## Expected Result:

[What the user expected to see or happen before the issue occurred]

## Actual Result:

[What actually happened when the user encountered the issue]

## Additional Information:

[Include any additional information that could be helpful to diagnose the issue, such as browser or device information]

---

<div class="post-metadata">

### Author: ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)
#### Post date: [May 21, 2024, 2:18pm UTC](https://forums.percona.com/t/not-able-to-generate-replicaset-tag/30462/2 "2024-05-21T14:18:52Z")

</div>

Hi, unfortunately it’s not possible to customize tags at the moment. If you need that feature, I suggest you open a request at [jira.percona.com](http://jira.percona.com)

---

<div class="post-metadata">

### Author: ![swapnil\_paralkar](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/swapnil_paralkar/32/14754_2.png) [@swapnil\_paralkar](https://forums.percona.com/u/swapnil_paralkar)
#### Post date: [May 22, 2024, 7:33am UTC](https://forums.percona.com/t/not-able-to-generate-replicaset-tag/30462/3 "2024-05-22T07:33:47Z")

</div>

Hi @Ivan_Groenewold ,

Thank you for the update . I have raised the jira . Curious question though , was there any specific reason why custom tags are not allowed as of now ?

---

<div class="post-metadata">

### Author: ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)
#### Post date: [May 22, 2024, 11:03am UTC](https://forums.percona.com/t/not-able-to-generate-replicaset-tag/30462/4 "2024-05-22T11:03:37Z")

</div>

Thank you. Adding the link here for context [[K8SPSMDB-1093] - Percona JIRA](https://perconadev.atlassian.net/browse/K8SPSMDB-1093)  
No special reason, just that the operator uses its own tags and we don’t currently have a mechanism to customize them through yaml file/kubectl

---

<div class="post-metadata">

### Author: ![swapnil\_paralkar](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/swapnil_paralkar/32/14754_2.png) [@swapnil\_paralkar](https://forums.percona.com/u/swapnil_paralkar)
#### Post date: [May 22, 2024, 11:26am UTC](https://forums.percona.com/t/not-able-to-generate-replicaset-tag/30462/5 "2024-05-22T11:26:00Z")

</div>

Got it . Thanks again for the info . Appreciate it .

---

<div class="post-metadata">

### Author: ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)
#### Post date: [May 22, 2024, 12:44pm UTC](https://forums.percona.com/t/not-able-to-generate-replicaset-tag/30462/6 "2024-05-22T12:44:01Z")

</div>


