[PBM-780] PBM SDK (incremental impl) #513
This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / JUnit Test Report
failed
Oct 4, 2023 in 0s
13 tests run, 11 passed, 0 skipped, 2 failed.
Annotations
Check failure on line 55 in psmdb-testing/pbm-functional/pytest/test_PBM-979.py
github-actions / JUnit Test Report
test_PBM-979.test_incremental
failed on setup with "AssertionError: Unexpected exit code 7 for CommandResult(command=b'supervisorctl stop pbm-agent', exit_status=7, stdout=b'unix:///run/supervisor/supervisor.sock no such file\n', stderr=None)
assert 7 == 0
+ where 7 = CommandResult(command=b'supervisorctl stop pbm-agent', exit_status=7, stdout=b'unix:///run/supervisor/supervisor.sock no such file\n', stderr=None).rc"
Raw output
cluster = <cluster.Cluster object at 0x7f6e26327510>
request = <SubRequest 'start_cluster' for <Function test_incremental>>
@pytest.fixture(scope="function")
def start_cluster(cluster,request):
try:
cluster.destroy()
> cluster.create()
test_PBM-979.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cluster.py:271: in create
self.__delete_pbm(host['host'])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <cluster.Cluster object at 0x7f6e26327510>, host = 'rs105'
def __delete_pbm(self, host):
n = testinfra.get_host("docker://" + host)
> n.check_output("supervisorctl stop pbm-agent")
E AssertionError: Unexpected exit code 7 for CommandResult(command=b'supervisorctl stop pbm-agent', exit_status=7, stdout=b'unix:///run/supervisor/supervisor.sock no such file\n', stderr=None)
E assert 7 == 0
E + where 7 = CommandResult(command=b'supervisorctl stop pbm-agent', exit_status=7, stdout=b'unix:///run/supervisor/supervisor.sock no such file\n', stderr=None).rc
cluster.py:676: AssertionError
Check failure on line 88 in psmdb-testing/pbm-functional/pytest/test_upgrade.py
github-actions / JUnit Test Report
test_upgrade.test_incremental
Failed: Timeout >300.0s
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f6e264bf850>
@pytest.mark.timeout(300,func_only=True)
def test_incremental(start_cluster,cluster):
cluster.check_pbm_status()
cluster.make_backup("incremental --base")
pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
backup = cluster.make_backup("incremental")
result=pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
assert int(result.deleted_count) == len(documents)
cluster.upgrade()
cluster.check_pbm_status()
try:
> cluster.make_restore(backup,restart_cluster=True, check_pbm_status=True)
test_upgrade.py:88:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cluster.py:461: in make_restore
self.check_pbm_status()
cluster.py:706: in check_pbm_status
result = n.check_output('pbm status --out=json')
/usr/lib/python3.11/site-packages/testinfra/host.py:98: in run
return self.backend.run(command, *args, **kwargs)
/usr/lib/python3.11/site-packages/testinfra/backend/docker.py:32: in run
out = self.run_local("docker exec %s /bin/sh -c %s", self.name, cmd)
/usr/lib/python3.11/site-packages/testinfra/backend/base.py:221: in run_local
stdout, stderr = p.communicate()
/usr/lib/python3.11/subprocess.py:1209: in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
/usr/lib/python3.11/subprocess.py:2108: in _communicate
ready = selector.select(timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.PollSelector object at 0x7f6e2633d9d0>, timeout = None
def select(self, timeout=None):
# This is shared between poll() and epoll().
# epoll() has a different signature and handling of timeout parameter.
if timeout is None:
timeout = None
elif timeout <= 0:
timeout = 0
else:
# poll() has a resolution of 1 millisecond, round away from
# zero to wait *at least* timeout seconds.
timeout = math.ceil(timeout * 1e3)
ready = []
try:
> fd_event_list = self._selector.poll(timeout)
E Failed: Timeout >300.0s
/usr/lib/python3.11/selectors.py:415: Failed
Loading