#8839 TestCASpecificRUVs.test_replica_uninstall_deletes_ruvs start failing with assertion error in test_master_previous
Closed: duplicate by frenaud. Opened by sumedhs.

TestCASpecificRUVs.test_replica_uninstall_deletes_ruvs start failing with assertion error

Errors:

E AssertionError: Replica RUVs were not clean during replica uninstallation
E assert 'replica2.ipa.test' not in 'Replica Upd...est:389: 5\n'
E 'replica2.ipa.test' is contained here:
E Replica Update Vectors:
E master.ipa.test:389: 4
E replica1.ipa.test:389: 3
E replica2.ipa.test:389: 7
E Certificate Server Replica Update Vectors:
E master.ipa.test:389: 6...
E
E ...Full output truncated (2 lines hidden), use '-vv' to show

Logs : http://freeipa-org-pr-ci.s3-website.eu-central-1.amazonaws.com/jobs/991e91c6-b48a-11eb-8b48-fa163e472ef6/report.html

self = <ipatests.test_integration.test_topology.TestCASpecificRUVs object at 0x7f7e64488ac0>
    def test_replica_uninstall_deletes_ruvs(self):
        """
        http://www.freeipa.org/page/V4/Manage_replication_topology_4_4/Test_Plan
        #Test_case:_.2A-ruv_subcommands_of_ipa-replica-manage_are_extended
        _to_handle_CA-specific_RUVs
        """
        master = self.master
        replica = self.replicas[1]
        res1 = master.run_command(['ipa-replica-manage', 'list-ruv', '-p',
                                  master.config.dirman_password]).stdout_text
        assert(res1.count(replica.hostname) == 2), (
            "Did not find proper number of replica hostname (%s) occurrencies"
            " in the command output: %s" % (replica.hostname, res1))
        master.run_command(['ipa-replica-manage', 'del', replica.hostname,
                            '-p', master.config.dirman_password])
        tasks.uninstall_master(replica)
        # ipa-replica-manage del launches a clean-ruv task which is
        # ASYNCHRONOUS
        # wait for the task to finish before checking list-ruv
        tasks.wait_for_cleanallruv_tasks(self.master.ldap_connect())
        res2 = master.run_command(['ipa-replica-manage', 'list-ruv', '-p',
                                  master.config.dirman_password]).stdout_text
>       assert(replica.hostname not in res2), (
            "Replica RUVs were not clean during replica uninstallation")
E       AssertionError: Replica RUVs were not clean during replica uninstallation
E       assert 'replica2.ipa.test' not in 'Replica Upd...est:389: 5\n'
E         'replica2.ipa.test' is contained here:
E           Replica Update Vectors:
E               master.ipa.test:389: 4
E               replica1.ipa.test:389: 3
E               replica2.ipa.test:389: 7
E           Certificate Server Replica Update Vectors:
E               master.ipa.test:389: 6...
E         
E         ...Full output truncated (2 lines hidden), use '-vv' to show

Tried re-opening https://pagure.io/freeipa/issue/7545 but did not find an option there.

Hi @sumedhs
as this is a duplicate of https://pagure.io/freeipa/issue/8023, I'm closing this one.

Metadata Update from @frenaud:
- Issue close_status updated to: duplicate
- Issue status updated to: Closed (was: Open)

Metadata