Error Message: TypeError: can only concatenate tuple (not "str") to tuple
This error message is fom: Method: __repr__ Class: 'CSN' File: lib389/_replication.py Line number: 87
Link: https://pagure.io/lib389/blob/master/f/lib389/_replication.py#_87
Bug reproduction: In any test just write the following line. ruv = DS_instance.replica.ruv(DEFAULT_SUFFIX) Where "DS_instance" Directory Server instance of any topology fixture.
It might be worth checking the ds_instance.replicas code, not replica. Note the 's'. Replica, is the ReplicaLegacy object, rather than the new one.
@mreynolds wrote this so he may know more about it. Is there a way to trigger a replication and block until it completes in the new replica module we have? I can see https://pagure.io/lib389/blob/master/f/lib389/replica.py#_1144 but that's async.
Metadata Update from @mreynolds: - Issue assigned to mreynolds
I can not reproduce the problem. Works fine for me.
@ankity10 - Can you provide the exact script that triggers the problem?
@mreynolds , I am providing you the link for the script. Link: https://pastebin.com/uRC8VJSs.
Let me know if this works. The above script is a pytest test.
The function right above that one is what you are looking for: start_and_wait()
Here is the patch to fix the repr function:
Metadata Update from @mreynolds: - Custom field Origin adjusted to Community - Custom field Review Status adjusted to review
repr fix looks good.
Metadata Update from @firstyear: - Custom field Review Status adjusted to ack (was: review)
@mreynolds Was this merged?
commit 2da336695567e85f9ee25c46dc3d131af426de70 Author: Mark Reynolds mreynolds@redhat.com Date: Mon Apr 24 16:02:37 2017 -0400
Issue 25 - Fix RUV __repr__ function Description: This function never worked and had the wrong parenthesis grouping https://pagure.io/lib389/issue/25 Reviewed by: firstyear(Thanks!)
Seems it was!
Metadata Update from @firstyear: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)