Skip to content

[PBM-1228] Support multiple storages #308

[PBM-1228] Support multiple storages

[PBM-1228] Support multiple storages #308

GitHub Actions / JUnit Test Report failed Jun 13, 2024 in 0s

5 tests run, 0 passed, 0 skipped, 5 failed.

Annotations

Check failure on line 153 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_external_PBM_T240

AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9de24cf20>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:08:44.637726594Z from [external]........................................................................................................................', _stderr=b'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n')
assert 1 == 0
 +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9de24cf20>, exit_status=1, command=b'pbm ...'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n').rc
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fd9ddd438f0>

    @pytest.mark.timeout(600,func_only=True)
    def test_external_PBM_T240(start_cluster,cluster):
        time.sleep(5)
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup = cluster.external_backup_start()
        result=pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
        assert int(result.deleted_count) == len(documents)
        cluster.external_backup_copy(backup)
        cluster.external_backup_finish(backup)
        time.sleep(10)
>       restore=cluster.external_restore_start()

test_PBM-979.py:153: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fd9ddd438f0>

    def external_restore_start(self):
        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)
>       result = n.check_output("pbm restore --external")
E       AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9de24cf20>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:08:44.637726594Z from [external]........................................................................................................................', _stderr=b'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n')
E       assert 1 == 0
E        +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9de24cf20>, exit_status=1, command=b'pbm ...'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n').rc

cluster.py:866: AssertionError

Check failure on line 118 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_external_PBM_T238

AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9de0cf7a0>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:12:43.942371577Z from [external]........................................................................................................................', _stderr=b'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n')
assert 1 == 0
 +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9de0cf7a0>, exit_status=1, command=b'pbm ...'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n').rc
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fd9dd8fcec0>
newcluster = <cluster.Cluster object at 0x7fd9dd8fccb0>

    @pytest.mark.timeout(600,func_only=True)
    def test_external_PBM_T238(start_cluster,cluster,newcluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup = cluster.external_backup_start()
        cluster.external_backup_copy(backup)
        cluster.external_backup_finish(backup)
        cluster.destroy()
    
        newcluster.make_resync()
>       restore=newcluster.external_restore_start()

test_fresh_sharded.py:118: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fd9dd8fccb0>

    def external_restore_start(self):
        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)
>       result = n.check_output("pbm restore --external")
E       AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9de0cf7a0>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:12:43.942371577Z from [external]........................................................................................................................', _stderr=b'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n')
E       assert 1 == 0
E        +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9de0cf7a0>, exit_status=1, command=b'pbm ...'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n').rc

cluster.py:866: AssertionError

Check failure on line 163 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_external_meta_PBM_T236

AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9dd8fd520>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:16:00.719732969Z from [external]........................................................................................................................', _stderr=b'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n')
assert 1 == 0
 +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9dd8fd520>, exit_status=1, command=b'pbm ...'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n').rc
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fd9dd942cc0>

    @pytest.mark.timeout(600,func_only=True)
    def test_external_meta_PBM_T236(start_cluster,cluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup = cluster.external_backup_start()
        result=pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
        assert int(result.deleted_count) == len(documents)
        cluster.external_backup_copy(backup)
        cluster.external_backup_finish(backup)
        time.sleep(10)
>       restore=cluster.external_restore_start()

test_sharded.py:163: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fd9dd942cc0>

    def external_restore_start(self):
        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)
>       result = n.check_output("pbm restore --external")
E       AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9dd8fd520>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:16:00.719732969Z from [external]........................................................................................................................', _stderr=b'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n')
E       assert 1 == 0
E        +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9dd8fd520>, exit_status=1, command=b'pbm ...'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n').rc

cluster.py:866: AssertionError

Check failure on line 181 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_external_nometa_PBM_T237

AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9dd8fd520>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:19:17.531840842Z from [external]........................................................................................................................', _stderr=b'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n')
assert 1 == 0
 +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9dd8fd520>, exit_status=1, command=b'pbm ...'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n').rc
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fd9dd942cc0>

    @pytest.mark.timeout(600,func_only=True)
    def test_external_nometa_PBM_T237(start_cluster,cluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup = cluster.external_backup_start()
        result=pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
        assert int(result.deleted_count) == len(documents)
        cluster.external_backup_copy(backup)
        cluster.external_backup_finish(backup)
        time.sleep(10)
        os.system("find /backups/ -name pbm.rsmeta.* | xargs rm -f")
>       restore=cluster.external_restore_start()

test_sharded.py:181: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fd9dd942cc0>

    def external_restore_start(self):
        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)
>       result = n.check_output("pbm restore --external")
E       AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9dd8fd520>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:19:17.531840842Z from [external]........................................................................................................................', _stderr=b'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n')
E       assert 1 == 0
E        +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9dd8fd520>, exit_status=1, command=b'pbm ...'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n').rc

cluster.py:866: AssertionError

Check failure on line 74 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_external_PBM_T239

AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9de24cf20>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:22:09.813184393Z from [external]........................................................................................................................', _stderr=b'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n')
assert 1 == 0
 +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9de24cf20>, exit_status=1, command=b'pbm ...'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n').rc
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fd9dd8fda60>

    @pytest.mark.timeout(600,func_only=True)
    def test_external_PBM_T239(start_cluster,cluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup = cluster.external_backup_start()
        result=pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
        assert int(result.deleted_count) == len(documents)
        cluster.external_backup_copy(backup)
        cluster.external_backup_finish(backup)
        time.sleep(10)
    
>       restore=cluster.external_restore_start()

test_vault.py:74: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7fd9dd8fda60>

    def external_restore_start(self):
        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)
>       result = n.check_output("pbm restore --external")
E       AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9de24cf20>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:22:09.813184393Z from [external]........................................................................................................................', _stderr=b'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n')
E       assert 1 == 0
E        +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd9de24cf20>, exit_status=1, command=b'pbm ...'Error: no confirmation that restore has successfully started. Replsets status:\n<no replset has started restore>\n\n').rc

cluster.py:866: AssertionError