[PBM-1228] Support multiple storages #308
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
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 0x7fc232befe30>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:08:59.029306713Z 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 0x7fc232befe30>, 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 0x7fc231a21fd0>
@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 0x7fc231a21fd0>
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 0x7fc232befe30>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:08:59.029306713Z 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 0x7fc232befe30>, 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
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 0x7fc230b142c0>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:13:21.450954058Z 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 0x7fc230b142c0>, 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 0x7fc23033ddc0>
newcluster = <cluster.Cluster object at 0x7fc23033edb0>
@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 0x7fc23033edb0>
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 0x7fc230b142c0>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:13:21.450954058Z 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 0x7fc230b142c0>, 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
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 0x7fc230836cf0>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:16:38.494243419Z 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 0x7fc230836cf0>, 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 0x7fc2303eed20>
@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 0x7fc2303eed20>
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 0x7fc230836cf0>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:16:38.494243419Z 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 0x7fc230836cf0>, 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
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 0x7fc230836cf0>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:19:54.074890226Z 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 0x7fc230836cf0>, 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 0x7fc2303eed20>
@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 0x7fc2303eed20>
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 0x7fc230836cf0>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:19:54.074890226Z 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 0x7fc230836cf0>, 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
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 0x7fc232befe30>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:22:47.944929575Z 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 0x7fc232befe30>, 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 0x7fc23033e3f0>
@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 0x7fc23033e3f0>
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 0x7fc232befe30>, exit_status=1, command=b'pbm restore --external', _stdout=b'Starting restore 2024-06-13T12:22:47.944929575Z 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 0x7fc232befe30>, 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