Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes Failing to add shard to Config server when TLS enabled #411

Open
Mehdi-Bendriss opened this issue Apr 30, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Mehdi-Bendriss
Copy link
Contributor

The current issue happens on the tls_sharding test, example run

unit-config-server-0: 17:44:18 ERROR unit.config-server/0.juju-log config-server:6: Failed to add shard shard-one to the config server, error=OperationFailure('Could not find host matching read preference *** mode: "primary" *** for set shard-one, full error: ***\'ok\': 0.0, \'errmsg\': \'Could not find host matching read preference *** mode: "primary" *** for set shard-one\', \'code\': 133, \'codeName\': \'FailedToSatisfyReadPreference\', \'$clusterTime\': ***\'clusterTime\': Timestamp(1714499057, 2), \'signature\': ***\'hash\': b\'\\xcc\\x19iw\\x99\\xf7\\x15\\x13\\xa1\\x97\\x80jK\\xb8\\x16\\xae\\x16%j\\xce\', \'keyId\': 7363716618628628505***, \'operationTime\': Timestamp(1714499057, 2)***')
unit-config-server-0: 17:44:18 ERROR unit.config-server/0.juju-log config-server:6: Failed to add shard-one to cluster
unit-config-server-0: 17:44:18 ERROR unit.config-server/0.juju-log config-server:6: Deferring _on_relation_event for shards interface since: error=OperationFailure('Could not find host matching read preference *** mode: "primary" *** for set shard-one, full error: ***\'ok\': 0.0, \'errmsg\': \'Could not find host matching read preference *** mode: "primary" *** for set shard-one\', \'code\': 133, \'codeName\': \'FailedToSatisfyReadPreference\', \'$clusterTime\': ***\'clusterTime\': Timestamp(1714499057, 2), \'signature\': ***\'hash\': b\'\\xcc\\x19iw\\x99\\xf7\\x15\\x13\\xa1\\x97\\x80jK\\xb8\\x16\\xae\\x16%j\\xce\', \'keyId\': 7363716618628628505***, \'operationTime\': Timestamp(1714499057, 2)***')
unit-config-server-0: 17:44:39 ERROR unit.config-server/0.juju-log config-server:7: Failed to add shard shard-two to the config server, error=OperationFailure("Authentication failed., full error: ***'ok': 0.0, 'errmsg': 'Authentication failed.', 'code': 18, 'codeName': 'AuthenticationFailed', '$clusterTime': ***'clusterTime': Timestamp(1714499078, 1), 'signature': ***'hash': b'\\xa3\\xe1\\xce\\xeb7\\x16w\\xb2,H~\\x86\\xad0\\xf1c\\xd4\\r\\xc5^', 'keyId': 7363716618628628505***, 'operationTime': Timestamp(1714499078, 1)***")
unit-config-server-0: 17:44:39 ERROR unit.config-server/0.juju-log config-server:7: shard-two shard does not have the same auth as the config server.

@Mehdi-Bendriss Mehdi-Bendriss added the bug Something isn't working label Apr 30, 2024
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant