Skip to content

PBM-CUSTOM

PBM-CUSTOM #48

GitHub Actions / JUnit Test Report failed May 6, 2025 in 0s

25 tests run, 24 passed, 0 skipped, 1 failed.

Annotations

Check failure on line 123 in pbm-functional/pytest/test_PBM-1355.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1355.test_remap_PBM_T265[physical]

AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7febdd257d50>, exit_status=1, command=b'pbm config --force-resync --out json', _stdout=b'', _stderr=b'Error: another operation in progress, Resync storage/6819ff23153793f15e5a349e [newrscfg/newrscfg01:27017]\n')
assert 1 == 0
 +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7febdd257d50>, exit_status=1, command=b'pbm ..._stderr=b'Error: another operation in progress, Resync storage/6819ff23153793f15e5a349e [newrscfg/newrscfg01:27017]\n').rc
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7febdd209e90>
newcluster = <cluster.Cluster object at 0x7febdd26e290>
backup_type = 'physical'

    @pytest.mark.timeout(900,func_only=True)
    @pytest.mark.parametrize('backup_type',['logical','physical'])
    def test_remap_PBM_T265(start_cluster,cluster,newcluster,backup_type):
        cluster.check_pbm_status()
        client=pymongo.MongoClient(cluster.connection)
        for i in range(600):
            client['test']['test'].insert_one({"doc":i})
    
        backup=cluster.make_backup(backup_type)
        backup = backup + ' --replset-remapping="newrs1=rs1,newrscfg=rscfg"'
        cluster.destroy()
    
        newcluster.create()
        client=pymongo.MongoClient(newcluster.connection)
        Cluster.log(client.admin.command({'transitionFromDedicatedConfigServer': 1}))
        newcluster.setup_pbm()
        result = newcluster.exec_pbm_cli("config --set storage.type=filesystem --set storage.filesystem.path=/backups --set backup.compression=none")
        assert result.rc == 0
>       newcluster.make_resync()

test_PBM-1355.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7febdd26e290>

    def make_resync(self):
        n = testinfra.get_host("docker://" + self.pbm_cli)
>       result = n.check_output('pbm config --force-resync --out json')
E       AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7febdd257d50>, exit_status=1, command=b'pbm config --force-resync --out json', _stdout=b'', _stderr=b'Error: another operation in progress, Resync storage/6819ff23153793f15e5a349e [newrscfg/newrscfg01:27017]\n')
E       assert 1 == 0
E        +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7febdd257d50>, exit_status=1, command=b'pbm ..._stderr=b'Error: another operation in progress, Resync storage/6819ff23153793f15e5a349e [newrscfg/newrscfg01:27017]\n').rc

cluster.py:386: AssertionError