Open Lisiadito opened 1 year ago
what is the server version here?
@harshavardhana server version is RELEASE.2022-11-17T23-20-09Z
@harshavardhana server version is RELEASE.2022-11-17T23-20-09Z
Please upgrade to latest @Lisiadito
even on the latest server version I get the same output
would be why do I get the result that the buckets are in sync even though not all objects are replicated into the new site?
mc admin replicate status
reports on whether bucket metadata is in sync - not the status of objects within the bucket. You should look atmc replicate status alias/bucket
for that info
Can you share the output of ./mc admin replicate status stage_minio --json
- are the users that didn't sync service accounts? site replication should heal missing users automatically every 10s. Please double check if it has healed in your stage instance after you last checked
@poornas here the output:
./mc admin replicate status stage_minio --json
{
"Enabled": true,
"MaxBuckets": 4,
"MaxUsers": 2,
"MaxGroups": 0,
"MaxPolicies": 7,
"Sites": {
"56784047-4bb6-4edb-bd30-82c419ff7036": {
"endpoint": "http://our.domain.com",
"name": "newprod",
"deploymentID": "56784047-4bb6-4edb-bd30-82c419ff7036"
},
"f5b65608-0d03-46f8-88c7-67b69ee36d0d": {
"endpoint": "http://127.0.0.1:9000",
"name": "stage",
"deploymentID": "f5b65608-0d03-46f8-88c7-67b69ee36d0d"
}
},
"StatsSummary": {
"56784047-4bb6-4edb-bd30-82c419ff7036": {
"ReplicatedBuckets": 4,
"ReplicatedTags": 0,
"ReplicatedBucketPolicies": 4,
"ReplicatedIAMPolicies": 7,
"ReplicatedUsers": 2,
"ReplicatedGroups": 0,
"ReplicatedLockConfig": 0,
"ReplicatedSSEConfig": 0,
"ReplicatedVersioningConfig": 4,
"ReplicatedQuotaConfig": 0,
"ReplicatedUserPolicyMappings": 2,
"ReplicatedGroupPolicyMappings": 0,
"TotalBucketsCount": 4,
"TotalTagsCount": 0,
"TotalBucketPoliciesCount": 4,
"TotalIAMPoliciesCount": 7,
"TotalLockConfigCount": 0,
"TotalSSEConfigCount": 0,
"TotalVersioningConfigCount": 4,
"TotalQuotaConfigCount": 0,
"TotalUsersCount": 2,
"TotalGroupsCount": 0,
"TotalUserPolicyMappingCount": 2,
"TotalGroupPolicyMappingCount": 0
},
"f5b65608-0d03-46f8-88c7-67b69ee36d0d": {
"ReplicatedBuckets": 4,
"ReplicatedTags": 0,
"ReplicatedBucketPolicies": 4,
"ReplicatedIAMPolicies": 7,
"ReplicatedUsers": 2,
"ReplicatedGroups": 0,
"ReplicatedLockConfig": 0,
"ReplicatedSSEConfig": 0,
"ReplicatedVersioningConfig": 4,
"ReplicatedQuotaConfig": 0,
"ReplicatedUserPolicyMappings": 2,
"ReplicatedGroupPolicyMappings": 0,
"TotalBucketsCount": 4,
"TotalTagsCount": 0,
"TotalBucketPoliciesCount": 4,
"TotalIAMPoliciesCount": 7,
"TotalLockConfigCount": 0,
"TotalSSEConfigCount": 0,
"TotalVersioningConfigCount": 4,
"TotalQuotaConfigCount": 0,
"TotalUsersCount": 2,
"TotalGroupsCount": 0,
"TotalUserPolicyMappingCount": 2,
"TotalGroupPolicyMappingCount": 0
}
},
"BucketStats": {},
"PolicyStats": {},
"UserStats": {
"BHZKD8XTDCTORZO9DNZO": {
"56784047-4bb6-4edb-bd30-82c419ff7036": {
"DeploymentID": "",
"PolicyMismatch": false,
"UserInfoMismatch": true,
"HasUser": true,
"HasPolicyMapping": true
},
"f5b65608-0d03-46f8-88c7-67b69ee36d0d": {
"DeploymentID": "",
"PolicyMismatch": false,
"UserInfoMismatch": true,
"HasUser": true,
"HasPolicyMapping": true
}
},
"orYyTaBZq9PaNRx47ksc": {
"56784047-4bb6-4edb-bd30-82c419ff7036": {
"DeploymentID": "",
"PolicyMismatch": false,
"UserInfoMismatch": true,
"HasUser": true,
"HasPolicyMapping": true
},
"f5b65608-0d03-46f8-88c7-67b69ee36d0d": {
"DeploymentID": "",
"PolicyMismatch": false,
"UserInfoMismatch": true,
"HasUser": true,
"HasPolicyMapping": true
}
}
},
"GroupStats": {}
}
The users do sync just the output of mc suggests that they are not in sync thats whats confuse me.
These seem to be service accounts - can you do mc admin user svcacct info stage_minio BHZKD8XTDCTORZO9DNZO --json
and mc admin user svcacct info prod_minio BHZKD8XTDCTORZO9DNZO --json
- and paste the output? If this is not a service acct, you can drop the svcacct in above command.
Can you share server logs - it should report if there was a failure in healing these users. There seems to be some mismatch in policy/status/ secret key that could not be healed. I will try to repro this locally, but any info you share will be helpful. Thanks
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.
Expected behavior
That the status is the same for both sites.
Actual behavior
This is what I get when I query the status for the site from which I initiated the site replication:
And this is the result from the site which I try to replicate to:
First of all the result for the users is different and an additional question would be why do I get the result that the buckets are in sync even though not all objects are replicated into the new site?
Steps to reproduce the behavior
mc --version
System information