Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 39 commits into from
Feb 24, 2025

Merge branch 'dev' into PBM-1474-aws-s3-migration

4674e04
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

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

Merge branch 'dev' into PBM-1474-aws-s3-migration
4674e04
Select commit
Loading
Failed to load commit list.
GitHub Actions / JUnit Test Report failed Feb 24, 2025 in 0s

23 tests run, 22 passed, 0 skipped, 1 failed.

Annotations

Check failure on line 123 in psmdb-testing/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 0x7f4182151150>, exit_status=1, command=b'pbm config --force-resync --out json', _stdout=b'', _stderr=b'Error: another operation in progress, Resync storage/67bca75760e9c60cacbdfe8f [newrscfg/newrscfg01:27017]\n')
assert 1 == 0
 +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7f4182151150>, exit_status=1, command=b'pbm ..._stderr=b'Error: another operation in progress, Resync storage/67bca75760e9c60cacbdfe8f [newrscfg/newrscfg01:27017]\n').rc
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f4181fcd910>
newcluster = <cluster.Cluster object at 0x7f418208e550>
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 0x7f418208e550>

    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 0x7f4182151150>, exit_status=1, command=b'pbm config --force-resync --out json', _stdout=b'', _stderr=b'Error: another operation in progress, Resync storage/67bca75760e9c60cacbdfe8f [newrscfg/newrscfg01:27017]\n')
E       assert 1 == 0
E        +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7f4182151150>, exit_status=1, command=b'pbm ..._stderr=b'Error: another operation in progress, Resync storage/67bca75760e9c60cacbdfe8f [newrscfg/newrscfg01:27017]\n').rc

cluster.py:362: AssertionError