#25 Unable to retrieve RUV of Directory Server instance
Closed: Fixed 6 years ago Opened 6 years ago by ankity10.

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

6 years ago

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.

@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.

The function right above that one is what you are looking for: start_and_wait()

Here is the patch to fix the repr function:

0001-Issue-25-Fix-RUV-__repr__-function.patch

Metadata Update from @mreynolds:
- Custom field Origin adjusted to Community
- Custom field Review Status adjusted to review

6 years ago

Metadata Update from @firstyear:
- Custom field Review Status adjusted to ack (was: review)

6 years ago

commit 2da3366
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)

6 years ago

Login to comment on this ticket.

Metadata
Attachments 1