Skip to content

[PBM-1179] Warn about unsupported MongoDB version #488

[PBM-1179] Warn about unsupported MongoDB version

[PBM-1179] Warn about unsupported MongoDB version #488

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / JUnit Test Report failed Sep 15, 2023 in 0s

13 tests run, 11 passed, 0 skipped, 2 failed.

Annotations

Check failure on line 106 in psmdb-testing/pbm-functional/pytest/test_fresh_sharded.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_fresh_sharded.test_incremental

AssertionError: Cannot start restore, another operation running
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f5c2afbbf90>
newcluster = <cluster.Cluster object at 0x7f5c2afba490>

    @pytest.mark.testcase(test_case_key="T209", test_step_key=1)
    @pytest.mark.timeout(300,func_only=True)
    def test_incremental(start_cluster,cluster,newcluster):
        cluster.check_pbm_status()
        cluster.make_backup("incremental --base")
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup=cluster.make_backup("incremental")
        cluster.destroy()
    
        newcluster.make_resync()
>       newcluster.make_restore(backup,restart_cluster=True, check_pbm_status=True)

test_fresh_sharded.py:106: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f5c2afba490>, name = '2023-09-15T07:18:53Z'
kwargs = {'check_pbm_status': True, 'restart_cluster': True}
client = MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True)
result = {'$clusterTime': {'clusterTime': Timestamp(1694762359, 6), 'signature': {'hash': b'\xc5\x8b\xe6\x85\x0f\xa4\x0b\x19$\xc2\x99\xadQ\x83\x8fSjV`\xe9', 'keyId': 7278948562799427608}}, 'ok': 1.0, 'operationTime': Timestamp(1694762359, 6)}
n = <testinfra.host.Host docker://newrscfg01>, timeout = 1694762419.5705576

    def make_restore(self, name, **kwargs):
        if self.layout == "sharded":
            client = pymongo.MongoClient(self.connection)
            result = client.admin.command("balancerStop")
            client.close()
            Cluster.log("Stopping balancer: " + str(result))
            self.stop_mongos()
        self.stop_arbiters()
        n = testinfra.get_host("docker://" + self.pbm_cli)
        timeout = time.time() + 60
    
        while True:
            if not self.get_status()['running']:
                break
            if time.time() > timeout:
>               assert False, "Cannot start restore, another operation running"
E               AssertionError: Cannot start restore, another operation running

cluster.py:429: AssertionError

Check failure on line 56 in psmdb-testing/pbm-functional/pytest/test_vault.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_vault.test_incremental

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f5c2ad70450>

    @pytest.mark.testcase(test_case_key="T200", test_step_key=1)
    @pytest.mark.timeout(300,func_only=True)
    def test_incremental(start_cluster,cluster):
        cluster.check_pbm_status()
>       cluster.make_backup("incremental --base")

test_vault.py:56: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f5c2ad70450>, type = 'incremental --base'

    def make_backup(self, type):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        timeout = time.time() + 120
        while True:
            running = self.get_status()['running']
            Cluster.log("Current operation: " + str(running))
            if not running:
                if type:
                    start = n.check_output(
                        'pbm backup --out=json --type=' + type)
                else:
                    start = n.check_output('pbm backup --out=json')
                name = json.loads(start)['name']
                Cluster.log("Backup started")
                break
            if time.time() > timeout:
>               assert False
E               AssertionError

cluster.py:389: AssertionError