PBM-1090 move the test to jenkins #157
GitHub Actions / JUnit Test Report
failed
Aug 27, 2024 in 0s
28 tests run, 17 passed, 9 skipped, 2 failed.
Annotations
Check failure on line 92 in pbm-functional/pytest/test_PBM-979.py
github-actions / JUnit Test Report
test_PBM-979.test_logical_pitr_PBM_T263
AssertionError: {'conf': True, 'run': False, 'nodes': None, 'error': '2024-08-27T12:59:17.000+0000 E [rs1/rs101:27017] [pitr] reconciling ready status: timeout while roconciling ready status'}
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f0de0582410>
@pytest.mark.timeout(600,func_only=True)
def test_logical_pitr_PBM_T263(start_cluster,cluster):
time.sleep(5) # wait for delayed node
cluster.check_pbm_status()
pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
backup=cluster.make_backup("logical")
#check if the backup was taken from the hidden node
logs=cluster.exec_pbm_cli("logs -n rs1/rs103:27017 -e backup -o json").stdout
assert backup in logs
Cluster.log("Logs from hidden node:\n" + logs)
> cluster.enable_pitr(pitr_extra_args="--set pitr.oplogSpanMin=0.5")
test_PBM-979.py:92:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <cluster.Cluster object at 0x7f0de0582410>
kwargs = {'pitr_extra_args': '--set pitr.oplogSpanMin=0.5'}
n = <testinfra.host.Host docker://rs101>
pitr_extra_args = '--set pitr.oplogSpanMin=0.5'
result = '[{"key":"pitr.oplogSpanMin","value":"0.5"},{"key":"pitr.enabled","value":"true"},{"key":"pitr.compression","value":"none"}]'
timeout = 1724763557.6320899
status = {'conf': True, 'error': '2024-08-27T12:59:17.000+0000 E [rs1/rs101:27017] [pitr] reconciling ready status: timeout while roconciling ready status', 'nodes': None, 'run': False}
def enable_pitr(self,**kwargs):
n = testinfra.get_host("docker://" + self.pbm_cli)
pitr_extra_args = kwargs.get('pitr_extra_args', "")
result = n.check_output(
"pbm config --set pitr.enabled=true --set pitr.compression=none --out json " + pitr_extra_args)
Cluster.log("Enabling PITR: " + result)
timeout = time.time() + 150
while True:
if self.check_pitr():
break
if time.time() > timeout:
status=self.get_status()['pitr']
> assert False, status
E AssertionError: {'conf': True, 'run': False, 'nodes': None, 'error': '2024-08-27T12:59:17.000+0000 E [rs1/rs101:27017] [pitr] reconciling ready status: timeout while roconciling ready status'}
cluster.py:556: AssertionError
Check failure on line 45 in pbm-functional/pytest/test_ldap.py
github-actions / JUnit Test Report
test_ldap.test_logical_PBM_T203
failed on setup with "AssertionError"
Raw output
cluster = <cluster.Cluster object at 0x7f0dda44b950>
request = <SubRequest 'start_cluster' for <Function test_logical_PBM_T203>>
@pytest.fixture(scope="function")
def start_cluster(cluster,request):
try:
cluster.destroy()
> cluster.create()
test_ldap.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cluster.py:338: in create
Cluster.setup_authorization(self.config['mongos'],self.pbm_mongodb_uri)
cluster.py:602: in setup_authorization
Cluster.wait_for_primary(host, "mongodb://127.0.0.1:27017")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = 'mongos', connection = 'mongodb://127.0.0.1:27017'
@staticmethod
def wait_for_primary(host, connection):
n = testinfra.get_host("docker://" + host)
timeout = time.time() + 60
Cluster.log("Checking ismaster() on host " + host)
while True:
result = n.run(
"mongo " + connection + " --quiet --eval 'db.hello().isWritablePrimary'")
if 'true' in result.stdout.lower():
Cluster.log("Host " + host + " became primary")
return True
break
elif 'mongoservererror' in result.stderr.lower():
assert False, result.stderr
else:
Cluster.log("Waiting for " + host + " to became primary")
if time.time() > timeout:
> assert False
E AssertionError
cluster.py:678: AssertionError
Loading