Skip to content

PBM-1417. Allow multi-DB backup

Sign in for the full log view
GitHub Actions / JUnit Test Report failed Nov 6, 2024 in 0s

21 tests run, 20 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 0x7f13f3d9bbd0>, exit_status=1, command=b'pbm config --force-resync --out json', _stdout=b'{"error":"another operation in progress","operation":{"node":"newrscfg01:27017","opid":"672ba7c8685ca7b333ed1f0b","replset":"newrscfg","type":"resync"}}\n', _stderr=b'')
assert 1 == 0
 +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7f13f3d9bbd0>, exit_status=1, command=b'pbm ...n":{"node":"newrscfg01:27017","opid":"672ba7c8685ca7b333ed1f0b","replset":"newrscfg","type":"resync"}}\n', _stderr=b'').rc
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f13f435d450>
newcluster = <cluster.Cluster object at 0x7f13f40f70d0>
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 0x7f13f40f70d0>

    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 0x7f13f3d9bbd0>, exit_status=1, command=b'pbm config --force-resync --out json', _stdout=b'{"error":"another operation in progress","operation":{"node":"newrscfg01:27017","opid":"672ba7c8685ca7b333ed1f0b","replset":"newrscfg","type":"resync"}}\n', _stderr=b'')
E       assert 1 == 0
E        +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7f13f3d9bbd0>, exit_status=1, command=b'pbm ...n":{"node":"newrscfg01:27017","opid":"672ba7c8685ca7b333ed1f0b","replset":"newrscfg","type":"resync"}}\n', _stderr=b'').rc

cluster.py:359: AssertionError