dna plugin: use global configuration for replica communication #7273
Azure Pipelines / AzurePipeline.freeipa
succeeded
Mar 15, 2024 in 31m 4s
Build #20240315.2 had test failures
Details
- Failed: 2 (0.04%)
- Passed: 4,224 (92.63%)
- Other: 334 (7.32%)
- Total: 4,560
Annotations
Check failure on line 1 in test_fix_agreements
azure-pipelines / AzurePipeline.freeipa
test_fix_agreements
subprocess.CalledProcessError: Command '['ipa-server-upgrade']' returned non-zero exit status 1.
Raw output
self = <ipatests.test_integration.test_simple_replication.TestSimpleReplication object at 0x7f859e12e780>
def test_fix_agreements(self):
"""Test that upgrade fixes the list of attributes excluded from repl
Test for ticket 9385
"""
# Prepare the server by removing some values from
# from the nsDS5ReplicatedAttributeList
segment = find_segment(self.master, self.replicas[0], "domain")
self.master.run_command([
"ipa", "topologysegment-mod", "domain", segment,
"--replattrs",
"(objectclass=*) $ EXCLUDE memberof idnssoaserial entryusn"])
# Run the upgrade
> result = self.master.run_command(["ipa-server-upgrade"])
test_integration/test_simple_replication.py:122:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ipatests.pytest_ipa.integration.host.Host master1.ipa.test (master)>
argv = ['ipa-server-upgrade'], set_env = True, stdin_text = None
log_stdout = True, raiseonerr = True, cwd = None, bg = False, encoding = 'utf-8'
ok_returncode = 0
def run_command(self, argv, set_env=True, stdin_text=None,
log_stdout=True, raiseonerr=True,
cwd=None, bg=False, encoding='utf-8', ok_returncode=0):
"""Wrapper around run_command to log stderr on raiseonerr=True
:param ok_returncode: return code considered to be correct,
you can pass an integer or sequence of integers
"""
result = super().run_command(
argv, set_env=set_env, stdin_text=stdin_text,
log_stdout=log_stdout, raiseonerr=False, cwd=cwd, bg=bg,
encoding=encoding
)
# in FIPS mode SSH may print noise to stderr, remove the string
# "FIPS mode initialized" + optional newline.
result.stderr_bytes = FIPS_NOISE_RE.sub(b'', result.stderr_bytes)
try:
result_ok = result.returncode in ok_returncode
except TypeError:
result_ok = result.returncode == ok_returncode
if not result_ok and raiseonerr:
result.log.error('stderr: %s', result.stderr_text)
> raise subprocess.CalledProcessError(
result.returncode, argv,
result.stdout_text, result.stderr_text
)
E subprocess.CalledProcessError: Command '['ipa-server-upgrade']' returned non-zero exit status 1.
pytest_ipa/integration/host.py:202: CalledProcessError
Check failure on line 1 in test_replica_removal
azure-pipelines / AzurePipeline.freeipa
test_replica_removal
subprocess.CalledProcessError: Command '['ipa-replica-manage', 'list']' returned non-zero exit status 1.
Raw output
self = <ipatests.test_integration.test_simple_replication.TestSimpleReplication object at 0x7f859e12e450>
def test_replica_removal(self):
"""Test replica removal"""
> result = self.master.run_command(['ipa-replica-manage', 'list'])
test_integration/test_simple_replication.py:139:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ipatests.pytest_ipa.integration.host.Host master1.ipa.test (master)>
argv = ['ipa-replica-manage', 'list'], set_env = True, stdin_text = None
log_stdout = True, raiseonerr = True, cwd = None, bg = False, encoding = 'utf-8'
ok_returncode = 0
def run_command(self, argv, set_env=True, stdin_text=None,
log_stdout=True, raiseonerr=True,
cwd=None, bg=False, encoding='utf-8', ok_returncode=0):
"""Wrapper around run_command to log stderr on raiseonerr=True
:param ok_returncode: return code considered to be correct,
you can pass an integer or sequence of integers
"""
result = super().run_command(
argv, set_env=set_env, stdin_text=stdin_text,
log_stdout=log_stdout, raiseonerr=False, cwd=cwd, bg=bg,
encoding=encoding
)
# in FIPS mode SSH may print noise to stderr, remove the string
# "FIPS mode initialized" + optional newline.
result.stderr_bytes = FIPS_NOISE_RE.sub(b'', result.stderr_bytes)
try:
result_ok = result.returncode in ok_returncode
except TypeError:
result_ok = result.returncode == ok_returncode
if not result_ok and raiseonerr:
result.log.error('stderr: %s', result.stderr_text)
> raise subprocess.CalledProcessError(
result.returncode, argv,
result.stdout_text, result.stderr_text
)
E subprocess.CalledProcessError: Command '['ipa-replica-manage', 'list']' returned non-zero exit status 1.
pytest_ipa/integration/host.py:202: CalledProcessError
Loading