Skip to content

PBM-1474 - Swap AWS s3 v1 with v2 #708

PBM-1474 - Swap AWS s3 v1 with v2

PBM-1474 - Swap AWS s3 v1 with v2 #708

GitHub Actions / JUnit Test Report failed Feb 5, 2025 in 0s

23 tests run, 0 passed, 3 skipped, 20 failed.

Annotations

Check failure on line 45 in psmdb-testing/pbm-functional/pytest/test_PBM-1058.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1058.test_physical_PBM_T205

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

    @pytest.mark.timeout(300,func_only=True)
    def test_physical_PBM_T205(start_cluster,cluster):
>       cluster.check_pbm_status()

test_PBM-1058.py:45: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e273710>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 109 in psmdb-testing/pbm-functional/pytest/test_PBM-1155.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1155.test_physical_PBM_T247

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

    @pytest.mark.timeout(6000, func_only=True)
    def test_physical_PBM_T247(start_cluster,cluster):
>       cluster.check_pbm_status()

test_PBM-1155.py:109: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e65e1d0>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 53 in psmdb-testing/pbm-functional/pytest/test_PBM-1171.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1171.test_physical_mixed_env_PBM_T248

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

    @pytest.mark.timeout(600,func_only=True)
    def test_physical_mixed_env_PBM_T248(start_cluster,cluster):
>       cluster.check_pbm_status()

test_PBM-1171.py:53: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e64c950>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 55 in psmdb-testing/pbm-functional/pytest/test_PBM-1211.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1211.test_pitr_PBM_T268[physical]

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fca6e2a6590>
backup_type = 'physical'

    @pytest.mark.timeout(900,func_only=True)
    @pytest.mark.parametrize('backup_type',['logical','physical'])
    def test_pitr_PBM_T268(start_cluster,cluster,backup_type):
        def insert_docs():
            client=pymongo.MongoClient(cluster.connection)
            for i in range(1500):
                client['test']['test'].insert_one({"doc":i})
                time.sleep(0.1)
    
>       cluster.check_pbm_status()

test_PBM-1211.py:55: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e2a6590>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 55 in psmdb-testing/pbm-functional/pytest/test_PBM-1228.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1228.test_pitr_PBM_T256[base-physical]

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fca6e12d410>
backup_type = 'physical', base_snapshot = 'base'

    @pytest.mark.timeout(900,func_only=True)
    @pytest.mark.parametrize('backup_type',['logical','physical'])
    @pytest.mark.parametrize('base_snapshot',['base','profile'])
    def test_pitr_PBM_T256(start_cluster,cluster,backup_type,base_snapshot):
        def insert_docs():
            client=pymongo.MongoClient(cluster.connection)
            for i in range(1500):
                client['test']['test'].insert_one({"doc":i})
                time.sleep(0.1)
    
>       cluster.check_pbm_status()

test_PBM-1228.py:55: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e12d410>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 55 in psmdb-testing/pbm-functional/pytest/test_PBM-1228.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1228.test_pitr_PBM_T256[profile-physical]

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fca6e12d410>
backup_type = 'physical', base_snapshot = 'profile'

    @pytest.mark.timeout(900,func_only=True)
    @pytest.mark.parametrize('backup_type',['logical','physical'])
    @pytest.mark.parametrize('base_snapshot',['base','profile'])
    def test_pitr_PBM_T256(start_cluster,cluster,backup_type,base_snapshot):
        def insert_docs():
            client=pymongo.MongoClient(cluster.connection)
            for i in range(1500):
                client['test']['test'].insert_one({"doc":i})
                time.sleep(0.1)
    
>       cluster.check_pbm_status()

test_PBM-1228.py:55: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e12d410>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 51 in psmdb-testing/pbm-functional/pytest/test_PBM-1344.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1344.test_physical_PBM_T279

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

    @pytest.mark.timeout(600, func_only=True)
    def test_physical_PBM_T279(start_cluster, cluster):
>       cluster.check_pbm_status()

test_PBM-1344.py:51: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e08c250>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 66 in psmdb-testing/pbm-functional/pytest/test_PBM-1391.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1391.test_physical_PBM_T278

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

    @pytest.mark.timeout(600, func_only=True)
    def test_physical_PBM_T278(start_cluster, cluster):
>       cluster.check_pbm_status()

test_PBM-1391.py:66: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e2e7d10>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 113 in psmdb-testing/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_physical_PBM_T195

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

    @pytest.mark.timeout(300,func_only=True)
    def test_physical_PBM_T195(start_cluster,cluster):
        time.sleep(5) # wait for delayed node
>       cluster.check_pbm_status()

test_PBM-979.py:113: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e0f6c50>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 107 in psmdb-testing/pbm-functional/pytest/test_azurite.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_azurite.test_physical

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

    @pytest.mark.timeout(300, func_only=True)
    def test_physical(start_cluster, cluster):
>       cluster.check_pbm_status()

test_azurite.py:107: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e07f690>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 40 in psmdb-testing/pbm-functional/pytest/test_directoryperdb.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_directoryperdb.test_physical_PBM_T220

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

    @pytest.mark.timeout(300,func_only=True)
    def test_physical_PBM_T220(start_cluster,cluster):
>       cluster.check_pbm_status()

test_directoryperdb.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e0e9410>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 40 in psmdb-testing/pbm-functional/pytest/test_encryption.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_encryption.test_physical_PBM_T223

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

    @pytest.mark.timeout(300,func_only=True)
    def test_physical_PBM_T223(start_cluster,cluster):
>       cluster.check_pbm_status()

test_encryption.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e342190>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 83 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_physical_PBM_T207

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fca6e150490>
newcluster = <cluster.Cluster object at 0x7fca6e150690>

    @pytest.mark.timeout(600,func_only=True)
    def test_physical_PBM_T207(start_cluster,cluster,newcluster):
>       cluster.check_pbm_status()

test_fresh_sharded.py:83: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e150490>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 40 in psmdb-testing/pbm-functional/pytest/test_kmip.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_kmip.test_physical_PBM_T197

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

    @pytest.mark.timeout(300,func_only=True)
    def test_physical_PBM_T197(start_cluster,cluster):
>       cluster.check_pbm_status()

test_kmip.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e20f710>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 82 in psmdb-testing/pbm-functional/pytest/test_remap_sharded.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_remap_sharded.test_physical_PBM_T242

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fca6e0c0ed0>
newcluster = <cluster.Cluster object at 0x7fca6e0c3110>

    @pytest.mark.timeout(600,func_only=True)
    def test_physical_PBM_T242(start_cluster,cluster,newcluster):
>       cluster.check_pbm_status()

test_remap_sharded.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e0c0ed0>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 125 in psmdb-testing/pbm-functional/pytest/test_replicaset.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_replicaset.test_physical

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

    @pytest.mark.timeout(300,func_only=True)
    def test_physical(start_cluster,cluster):
>       cluster.check_pbm_status()

test_replicaset.py:125: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e199f90>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 167 in psmdb-testing/pbm-functional/pytest/test_sharded.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_sharded.test_physical

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

    @pytest.mark.timeout(600,func_only=True)
    def test_physical(start_cluster,cluster):
>       cluster.check_pbm_status()

test_sharded.py:167: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e07ead0>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 179 in psmdb-testing/pbm-functional/pytest/test_sharded.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_sharded.test_physical_pitr_PBM_T244

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

    @pytest.mark.timeout(600, func_only=True)
    def test_physical_pitr_PBM_T244(start_cluster,cluster):
>       cluster.check_pbm_status()

test_sharded.py:179: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e07ead0>

    def check_pbm_status(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
        result = n.check_output('pbm status --out=json')
        parsed_result = json.loads(result)
        Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
        #Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
        hosts = []
        for replicaset in parsed_result['cluster']:
            for host in replicaset['nodes']:
                if host['role'] != "A":
                    hosts.append(host)
>                   assert host['ok'] == True
E                   AssertionError

cluster.py:762: AssertionError

Check failure on line 72 in psmdb-testing/pbm-functional/pytest/test_upgrade.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_upgrade.test_physical_PBM_T276

AssertionError: Starting restore 2025-02-05T13:51:40.689858113Z from '2025-02-05T13:51:10Z'.panic: errors: *target must be interface or implement error

goroutine 1 [running]:
errors.As({0x13fa460, 0xc000496300}, {0x11133c0, 0xc000012600})
	/usr/local/go/src/errors/wrap.go:111 +0x206
github.com/pkg/errors.As(...)
	/percona-backup-mongodb/vendor/github.com/pkg/errors/go113.go:31
github.com/percona/percona-backup-mongodb/pbm/errors.As(...)
	/percona-backup-mongodb/pbm/errors/errors.go:33
github.com/percona/percona-backup-mongodb/pbm/storage/s3.(*S3).FileStat(0xc0002ac900, {0xc0000461e0, 0x30})
	/percona-backup-mongodb/pbm/storage/s3/s3.go:497 +0x691
github.com/percona/percona-backup-mongodb/pbm/restore.GetPhysRestoreMeta({0xc0003025e0, 0x1e}, {0x140a1e0, 0xc0002ac900}, {0x1407960, 0xc000336f80})
	/percona-backup-mongodb/pbm/restore/storage.go:21 +0x104
main.doRestore.func1({0x1406510, 0xc0002b4a10}, {0x140cc58, 0xc0000d26d0}, {0xc0003025e0, 0x1e})
	/percona-backup-mongodb/cmd/pbm/restore.go:500 +0x15e
main.waitForRestoreStatus({0x1406510, 0xc0002b4a10}, {0x140cc58, 0xc0000d26d0}, {0xc0003025e0, 0x1e}, 0xc00001f980)
	/percona-backup-mongodb/cmd/pbm/restore.go:563 +0x21e
main.doRestore({0x1406468, 0xc0000bb260}, {0x140cc58, 0xc0000d26d0}, 0xc000000180, 0x0, 0x0, {0x0, 0x0, 0x0}, ...)
	/percona-backup-mongodb/cmd/pbm/restore.go:506 +0xdc5
main.runRestore({0x1406468, 0xc0000bb260}, {0x140cc58, 0xc0000d26d0}, 0xc0003187c0, 0xc000000180, {0xc000301500, 0xd}, {0x11e420c, 0x4})
	/percona-backup-mongodb/cmd/pbm/restore.go:162 +0xaf5
main.(*pbmApp).buildRestoreCmd.func1(0xe7b76f1200000000?, {0xc00020a8e0?, 0x0?, 0x0?})
	/percona-backup-mongodb/cmd/pbm/main.go:742 +0xa5
main.(*pbmApp).buildRestoreCmd.(*pbmApp).wrapRunE.func2(0xc0001a5000?, {0xc00020a8e0?, 0x4?, 0x11e430c?})
	/percona-backup-mongodb/cmd/pbm/main.go:85 +0x33
github.com/spf13/cobra.(*Command).execute(0xc000238308, {0xc00020a8c0, 0x2, 0x2})
	/percona-backup-mongodb/vendor/github.com/spf13/cobra/command.go:985 +0xaca
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001a6608)
	/percona-backup-mongodb/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
	/percona-backup-mongodb/vendor/github.com/spf13/cobra/command.go:1041
main.main()
	/percona-backup-mongodb/cmd/pbm/main.go:76 +0x45
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fca6e1b71d0>

    @pytest.mark.timeout(600,func_only=True)
    def test_physical_PBM_T276(start_cluster,cluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup=cluster.make_backup("physical")
        result=pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
        assert int(result.deleted_count) == len(documents)
        cluster.upgrade()
        cluster.check_pbm_status()
>       cluster.make_restore(backup,restart_cluster=True, check_pbm_status=True)

test_upgrade.py:72: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e1b71d0>, name = '2025-02-05T13:51:10Z'
kwargs = {'check_pbm_status': True, 'restart_cluster': True}
client = MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True)
result = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fca6fa8e2d0>, exit_status=2, command=b'time...godb/vendor/github.com/spf13/cobra/command.go:1041\nmain.main()\n\t/percona-backup-mongodb/cmd/pbm/main.go:76 +0x45\n')
n = <testinfra.host.Host docker://rscfg01>, timeout = 240, error = ''
host = 'rscfg03', container = <Container: 0dd7ad6c165b>

    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"
            time.sleep(1)
        Cluster.log("Restore started")
        timeout=kwargs.get('timeout', 240)
        result = n.run('timeout ' + str(timeout) + ' pbm restore ' + name + ' --wait')
    
        if result.rc == 0:
            Cluster.log(result.stdout)
        else:
            # try to catch possible failures if timeout exceeded
            error=''
            for host in self.mongod_hosts:
                try:
                    container = docker.from_env().containers.get(host)
                    get_logs = container.exec_run(
                        'cat /var/lib/mongo/pbm.restore.log', stderr=False)
                    if get_logs.exit_code == 0:
                        Cluster.log(
                            "!!!!Possible failure on {}, file pbm.restore.log was found:".format(host))
                        logs = get_logs.output.decode('utf-8')
                        Cluster.log(logs)
                        if '"s":"F"' in logs:
                            error = logs
                except docker.errors.APIError:
                    pass
            if error:
                assert False, result.stdout + result.stderr + "\n" + error
            else:
>               assert False, result.stdout + result.stderr
E               AssertionError: Starting restore 2025-02-05T13:51:40.689858113Z from '2025-02-05T13:51:10Z'.panic: errors: *target must be interface or implement error
E               
E               goroutine 1 [running]:
E               errors.As({0x13fa460, 0xc000496300}, {0x11133c0, 0xc000012600})
E               	/usr/local/go/src/errors/wrap.go:111 +0x206
E               github.com/pkg/errors.As(...)
E               	/percona-backup-mongodb/vendor/github.com/pkg/errors/go113.go:31
E               github.com/percona/percona-backup-mongodb/pbm/errors.As(...)
E               	/percona-backup-mongodb/pbm/errors/errors.go:33
E               github.com/percona/percona-backup-mongodb/pbm/storage/s3.(*S3).FileStat(0xc0002ac900, {0xc0000461e0, 0x30})
E               	/percona-backup-mongodb/pbm/storage/s3/s3.go:497 +0x691
E               github.com/percona/percona-backup-mongodb/pbm/restore.GetPhysRestoreMeta({0xc0003025e0, 0x1e}, {0x140a1e0, 0xc0002ac900}, {0x1407960, 0xc000336f80})
E               	/percona-backup-mongodb/pbm/restore/storage.go:21 +0x104
E               main.doRestore.func1({0x1406510, 0xc0002b4a10}, {0x140cc58, 0xc0000d26d0}, {0xc0003025e0, 0x1e})
E               	/percona-backup-mongodb/cmd/pbm/restore.go:500 +0x15e
E               main.waitForRestoreStatus({0x1406510, 0xc0002b4a10}, {0x140cc58, 0xc0000d26d0}, {0xc0003025e0, 0x1e}, 0xc00001f980)
E               	/percona-backup-mongodb/cmd/pbm/restore.go:563 +0x21e
E               main.doRestore({0x1406468, 0xc0000bb260}, {0x140cc58, 0xc0000d26d0}, 0xc000000180, 0x0, 0x0, {0x0, 0x0, 0x0}, ...)
E               	/percona-backup-mongodb/cmd/pbm/restore.go:506 +0xdc5
E               main.runRestore({0x1406468, 0xc0000bb260}, {0x140cc58, 0xc0000d26d0}, 0xc0003187c0, 0xc000000180, {0xc000301500, 0xd}, {0x11e420c, 0x4})
E               	/percona-backup-mongodb/cmd/pbm/restore.go:162 +0xaf5
E               main.(*pbmApp).buildRestoreCmd.func1(0xe7b76f1200000000?, {0xc00020a8e0?, 0x0?, 0x0?})
E               	/percona-backup-mongodb/cmd/pbm/main.go:742 +0xa5
E               main.(*pbmApp).buildRestoreCmd.(*pbmApp).wrapRunE.func2(0xc0001a5000?, {0xc00020a8e0?, 0x4?, 0x11e430c?})
E               	/percona-backup-mongodb/cmd/pbm/main.go:85 +0x33
E               github.com/spf13/cobra.(*Command).execute(0xc000238308, {0xc00020a8c0, 0x2, 0x2})
E               	/percona-backup-mongodb/vendor/github.com/spf13/cobra/command.go:985 +0xaca
E               github.com/spf13/cobra.(*Command).ExecuteC(0xc0001a6608)
E               	/percona-backup-mongodb/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
E               github.com/spf13/cobra.(*Command).Execute(...)
E               	/percona-backup-mongodb/vendor/github.com/spf13/cobra/command.go:1041
E               main.main()
E               	/percona-backup-mongodb/cmd/pbm/main.go:76 +0x45

cluster.py:467: AssertionError

Check failure on line 47 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_physical_PBM_T196

AssertionError: Starting restore 2025-02-05T13:52:26.599439914Z from '2025-02-05T13:52:18Z'.panic: errors: *target must be interface or implement error

goroutine 1 [running]:
errors.As({0x13fa460, 0xc00050b740}, {0x11133c0, 0xc00039c498})
	/usr/local/go/src/errors/wrap.go:111 +0x206
github.com/pkg/errors.As(...)
	/percona-backup-mongodb/vendor/github.com/pkg/errors/go113.go:31
github.com/percona/percona-backup-mongodb/pbm/errors.As(...)
	/percona-backup-mongodb/pbm/errors/errors.go:33
github.com/percona/percona-backup-mongodb/pbm/storage/s3.(*S3).FileStat(0xc00031ee00, {0xc0003e2090, 0x30})
	/percona-backup-mongodb/pbm/storage/s3/s3.go:497 +0x691
github.com/percona/percona-backup-mongodb/pbm/restore.GetPhysRestoreMeta({0xc000340380, 0x1e}, {0x140a1e0, 0xc00031ee00}, {0x1407960, 0xc00031ecc0})
	/percona-backup-mongodb/pbm/restore/storage.go:21 +0x104
main.doRestore.func1({0x1406510, 0xc000382d20}, {0x140cc58, 0xc0001e9940}, {0xc000340380, 0x1e})
	/percona-backup-mongodb/cmd/pbm/restore.go:500 +0x15e
main.waitForRestoreStatus({0x1406510, 0xc000382d20}, {0x140cc58, 0xc0001e9940}, {0xc000340380, 0x1e}, 0xc0004a7980)
	/percona-backup-mongodb/cmd/pbm/restore.go:563 +0x21e
main.doRestore({0x1406468, 0xc000402120}, {0x140cc58, 0xc0001e9940}, 0xc0001fe0c0, 0x0, 0x0, {0x0, 0x0, 0x0}, ...)
	/percona-backup-mongodb/cmd/pbm/restore.go:506 +0xdc5
main.runRestore({0x1406468, 0xc000402120}, {0x140cc58, 0xc0001e9940}, 0xc0003847e0, 0xc0001fe0c0, {0xc000400830, 0xb}, {0x11e420c, 0x4})
	/percona-backup-mongodb/cmd/pbm/restore.go:162 +0xaf5
main.(*pbmApp).buildRestoreCmd.func1(0x2d4b13fc00000000?, {0xc0001e48a0?, 0x0?, 0x0?})
	/percona-backup-mongodb/cmd/pbm/main.go:742 +0xa5
main.(*pbmApp).buildRestoreCmd.(*pbmApp).wrapRunE.func2(0xc00016f000?, {0xc0001e48a0?, 0x4?, 0x11e430c?})
	/percona-backup-mongodb/cmd/pbm/main.go:85 +0x33
github.com/spf13/cobra.(*Command).execute(0xc000206308, {0xc0001e4880, 0x2, 0x2})
	/percona-backup-mongodb/vendor/github.com/spf13/cobra/command.go:985 +0xaca
github.com/spf13/cobra.(*Command).ExecuteC(0xc000170608)
	/percona-backup-mongodb/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
	/percona-backup-mongodb/vendor/github.com/spf13/cobra/command.go:1041
main.main()
	/percona-backup-mongodb/cmd/pbm/main.go:76 +0x45
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fca6e1f1990>

    @pytest.mark.timeout(300,func_only=True)
    def test_physical_PBM_T196(start_cluster,cluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup=cluster.make_backup("physical")
        result=pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
        assert int(result.deleted_count) == len(documents)
>       cluster.make_restore(backup,restart_cluster=True, check_pbm_status=True)

test_vault.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fca6e1f1990>, name = '2025-02-05T13:52:18Z'
kwargs = {'check_pbm_status': True, 'restart_cluster': True}
result = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fca6e08dc50>, exit_status=2, command=b'time...godb/vendor/github.com/spf13/cobra/command.go:1041\nmain.main()\n\t/percona-backup-mongodb/cmd/pbm/main.go:76 +0x45\n')
n = <testinfra.host.Host docker://rs101>, timeout = 240, error = ''
host = 'rs103', container = <Container: fbde3d178be5>

    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"
            time.sleep(1)
        Cluster.log("Restore started")
        timeout=kwargs.get('timeout', 240)
        result = n.run('timeout ' + str(timeout) + ' pbm restore ' + name + ' --wait')
    
        if result.rc == 0:
            Cluster.log(result.stdout)
        else:
            # try to catch possible failures if timeout exceeded
            error=''
            for host in self.mongod_hosts:
                try:
                    container = docker.from_env().containers.get(host)
                    get_logs = container.exec_run(
                        'cat /var/lib/mongo/pbm.restore.log', stderr=False)
                    if get_logs.exit_code == 0:
                        Cluster.log(
                            "!!!!Possible failure on {}, file pbm.restore.log was found:".format(host))
                        logs = get_logs.output.decode('utf-8')
                        Cluster.log(logs)
                        if '"s":"F"' in logs:
                            error = logs
                except docker.errors.APIError:
                    pass
            if error:
                assert False, result.stdout + result.stderr + "\n" + error
            else:
>               assert False, result.stdout + result.stderr
E               AssertionError: Starting restore 2025-02-05T13:52:26.599439914Z from '2025-02-05T13:52:18Z'.panic: errors: *target must be interface or implement error
E               
E               goroutine 1 [running]:
E               errors.As({0x13fa460, 0xc00050b740}, {0x11133c0, 0xc00039c498})
E               	/usr/local/go/src/errors/wrap.go:111 +0x206
E               github.com/pkg/errors.As(...)
E               	/percona-backup-mongodb/vendor/github.com/pkg/errors/go113.go:31
E               github.com/percona/percona-backup-mongodb/pbm/errors.As(...)
E               	/percona-backup-mongodb/pbm/errors/errors.go:33
E               github.com/percona/percona-backup-mongodb/pbm/storage/s3.(*S3).FileStat(0xc00031ee00, {0xc0003e2090, 0x30})
E               	/percona-backup-mongodb/pbm/storage/s3/s3.go:497 +0x691
E               github.com/percona/percona-backup-mongodb/pbm/restore.GetPhysRestoreMeta({0xc000340380, 0x1e}, {0x140a1e0, 0xc00031ee00}, {0x1407960, 0xc00031ecc0})
E               	/percona-backup-mongodb/pbm/restore/storage.go:21 +0x104
E               main.doRestore.func1({0x1406510, 0xc000382d20}, {0x140cc58, 0xc0001e9940}, {0xc000340380, 0x1e})
E               	/percona-backup-mongodb/cmd/pbm/restore.go:500 +0x15e
E               main.waitForRestoreStatus({0x1406510, 0xc000382d20}, {0x140cc58, 0xc0001e9940}, {0xc000340380, 0x1e}, 0xc0004a7980)
E               	/percona-backup-mongodb/cmd/pbm/restore.go:563 +0x21e
E               main.doRestore({0x1406468, 0xc000402120}, {0x140cc58, 0xc0001e9940}, 0xc0001fe0c0, 0x0, 0x0, {0x0, 0x0, 0x0}, ...)
E               	/percona-backup-mongodb/cmd/pbm/restore.go:506 +0xdc5
E               main.runRestore({0x1406468, 0xc000402120}, {0x140cc58, 0xc0001e9940}, 0xc0003847e0, 0xc0001fe0c0, {0xc000400830, 0xb}, {0x11e420c, 0x4})
E               	/percona-backup-mongodb/cmd/pbm/restore.go:162 +0xaf5
E               main.(*pbmApp).buildRestoreCmd.func1(0x2d4b13fc00000000?, {0xc0001e48a0?, 0x0?, 0x0?})
E               	/percona-backup-mongodb/cmd/pbm/main.go:742 +0xa5
E               main.(*pbmApp).buildRestoreCmd.(*pbmApp).wrapRunE.func2(0xc00016f000?, {0xc0001e48a0?, 0x4?, 0x11e430c?})
E               	/percona-backup-mongodb/cmd/pbm/main.go:85 +0x33
E               github.com/spf13/cobra.(*Command).execute(0xc000206308, {0xc0001e4880, 0x2, 0x2})
E               	/percona-backup-mongodb/vendor/github.com/spf13/cobra/command.go:985 +0xaca
E               github.com/spf13/cobra.(*Command).ExecuteC(0xc000170608)
E               	/percona-backup-mongodb/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
E               github.com/spf13/cobra.(*Command).Execute(...)
E               	/percona-backup-mongodb/vendor/github.com/spf13/cobra/command.go:1041
E               main.main()
E               	/percona-backup-mongodb/cmd/pbm/main.go:76 +0x45

cluster.py:467: AssertionError