Skip to content

PBM-1057 check PITR on PSA infrastructure #156

PBM-1057 check PITR on PSA infrastructure

PBM-1057 check PITR on PSA infrastructure #156

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

29 tests run, 20 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-26T13:50:20.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 0x7f2a2d2e4b10>

    @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 0x7f2a2d2e4b10>
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 = 1724680221.2632923
status = {'conf': True, 'error': '2024-08-26T13:50:20.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-26T13:50:20.000+0000 E [rs1/rs101:27017] [pitr] reconciling ready status: timeout while roconciling ready status'}

cluster.py:556: AssertionError