Skip to content

PBM-1090 move the test to jenkins #157

PBM-1090 move the test to jenkins

PBM-1090 move the test to jenkins #157

GitHub Actions / JUnit Test Report failed Aug 27, 2024 in 0s

28 tests run, 19 passed, 8 skipped, 1 failed.

Annotations

Check failure on line 92 in pbm-functional/pytest/test_PBM-979.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-979.test_logical_pitr_PBM_T263

AssertionError: {'conf': True, 'run': False, 'nodes': None, 'error': '2024-08-27T12:59:22.000+0000 E [rs1/rs101:27017] [pitr] reconciling ready status: timeout while roconciling ready status'}
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f799d3d2bd0>

    @pytest.mark.timeout(600,func_only=True)
    def test_logical_pitr_PBM_T263(start_cluster,cluster):
        time.sleep(5) # wait for delayed node
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup=cluster.make_backup("logical")
        #check if the backup was taken from the hidden node
        logs=cluster.exec_pbm_cli("logs -n rs1/rs103:27017 -e backup -o json").stdout
        assert backup in logs
        Cluster.log("Logs from hidden node:\n" + logs)
>       cluster.enable_pitr(pitr_extra_args="--set pitr.oplogSpanMin=0.5")

test_PBM-979.py:92: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f799d3d2bd0>
kwargs = {'pitr_extra_args': '--set pitr.oplogSpanMin=0.5'}
n = <testinfra.host.Host docker://rs101>
pitr_extra_args = '--set pitr.oplogSpanMin=0.5'
result = '[{"key":"pitr.enabled","value":"true"},{"key":"pitr.compression","value":"none"},{"key":"pitr.oplogSpanMin","value":"0.5"}]'
timeout = 1724763563.2339609
status = {'conf': True, 'error': '2024-08-27T12:59:22.000+0000 E [rs1/rs101:27017] [pitr] reconciling ready status: timeout while roconciling ready status', 'nodes': None, 'run': False}

    def enable_pitr(self,**kwargs):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        pitr_extra_args = kwargs.get('pitr_extra_args', "")
        result = n.check_output(
            "pbm config --set pitr.enabled=true --set pitr.compression=none --out json " + pitr_extra_args)
        Cluster.log("Enabling PITR: " + result)
        timeout = time.time() + 150
        while True:
            if self.check_pitr():
                break
            if time.time() > timeout:
                status=self.get_status()['pitr']
>               assert False, status
E               AssertionError: {'conf': True, 'run': False, 'nodes': None, 'error': '2024-08-27T12:59:22.000+0000 E [rs1/rs101:27017] [pitr] reconciling ready status: timeout while roconciling ready status'}

cluster.py:556: AssertionError