Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipa-cert-fix is failing with hsm using @pki/master copr repo #4873

Open
amore17 opened this issue Oct 8, 2024 · 3 comments
Open

ipa-cert-fix is failing with hsm using @pki/master copr repo #4873

amore17 opened this issue Oct 8, 2024 · 3 comments

Comments

@amore17
Copy link

amore17 commented Oct 8, 2024

With the PKI packages from @pki/master repository, the scenario ipa-cert-fix fails.

DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557 INFO: Configuring LDAP connection for ACME
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557 ERROR: 'internaldb.ldapauth.authtype'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557 Traceback (most recent call last):
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557   File "/usr/lib/python3.12/site-packages/pki/server/pkiserver.py", line 41, in <module>
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557     cli.execute(sys.argv)
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557   File "/usr/lib/python3.12/site-packages/pki/server/cli/__init__.py", line 144, in execute
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557     super().execute(args)
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557   File "/usr/lib/python3.12/site-packages/pki/cli/__init__.py", line 217, in execute
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557     module.execute(module_args)
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557   File "/usr/lib/python3.12/site-packages/pki/cli/__init__.py", line 217, in execute
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557     module.execute(module_args)
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557   File "/usr/lib/python3.12/site-packages/pki/server/cli/cert.py", line 1430, in execute
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557     ldap_password_authn(
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557   File "/usr/lib64/python3.12/contextlib.py", line 137, in __enter__
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557     return next(self.gen)
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557            ^^^^^^^^^^^^^^
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557   File "/usr/lib/python3.12/site-packages/pki/server/cli/cert.py", line 1615, in ldap_password_authn
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557     authtype = cfg['internaldb.ldapauth.authtype']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557                ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557 KeyError: 'internaldb.ldapauth.authtype'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557 
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557 Enter "yes" to proceed: Proceeding.
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557 ipapython.admintool: DEBUG:   File "/usr/lib/python3.12/site-packages/ipapython/admintool.py", line 180, in execute
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557     return_value = self.run()
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557                    ^^^^^^^^^^
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557   File "/usr/lib/python3.12/site-packages/ipaserver/install/ipa_cert_fix.py", line 152, in run
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557     run_cert_fix(certs, extra_certs)
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557   File "/usr/lib/python3.12/site-packages/ipaserver/install/ipa_cert_fix.py", line 375, in run_cert_fix
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557     ipautil.run(cmd, raiseonerr=True)
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557   File "/usr/lib/python3.12/site-packages/ipapython/ipautil.py", line 594, in run
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557     raise CalledProcessError(
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd72:transport.py:557 

@amore17 amore17 changed the title ipa-cert-fix is failing with @pki/master copr repo ipa-cert-fix is failing with hsm using @pki/master copr repo Oct 8, 2024
@amore17
Copy link
Author

amore17 commented Oct 8, 2024

PKI log

@flo-renaud
Copy link

The issue also happens without HSM: report

@flo-renaud
Copy link

The issue also happens with dogtag-pki-server-11.6.0-0.1.alpha1.fc42.noarch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants