#8581 Nightly test failure in test_acme.py::TestACME::test_third_party_certs (updates-testing)
Closed: fixed 5 months ago by frenaud. Opened 5 months ago by frenaud.

Issue

The nightly test test_acme.py::TestACME::test_third_party_certs failed in PR #533 (master branch with updates-testing enabled).

Logs and report:

args = (<ipatests.test_integration.test_acme.TestACME object at 0x7ff85c4e2a60>,)
master = <ipatests.pytest_ipa.integration.host.Host master.ipa.test (master)>

    def wrapped(*args):
        master = args[0].master
        try:
>           func(*args)

test_integration/test_acme.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_integration/test_acme.py:347: in test_third_party_certs
    self.create_pkcs12('ca1/server')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'ipatests.test_integration.test_acme.TestACME'>
nickname = 'ca1/server', filename = 'server.p12', password = None

    @classmethod
    def create_pkcs12(cls, nickname, filename='server.p12', password=None):
        """Create a cert chain and generate pkcs12 cert"""
        if password is None:
>           password = cls.cert_password
E           AttributeError: type object 'TestACME' has no attribute 'cert_password'

test_integration/test_caless.py:331: AttributeError
 -------------------------------Captured log call-------------------------------- 
INFO     ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN ['ipa-acme-manage', 'enable']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd116:transport.py:513 RUN ['ipa-acme-manage', 'enable']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd116:transport.py:557 The ipa-acme-manage command was successful
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd116:transport.py:217 Exit code: 0
INFO     ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN ['certutil', '-d', '/etc/pki/nssdb', '-D', '-n', 'External CA cert']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd117:transport.py:513 RUN ['certutil', '-d', '/etc/pki/nssdb', '-D', '-n', 'External CA cert']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd117:transport.py:557 certutil: could not find certificate named "External CA cert": SEC_ERROR_INVALID_ARGS: security library: invalid arguments.
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd117:transport.py:217 Exit code: 255
INFO     ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN ['certutil', '-L', '-d', '/etc/httpd/alias']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd118:transport.py:513 RUN ['certutil', '-L', '-d', '/etc/httpd/alias']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd118:transport.py:557 certutil: function failed: SEC_ERROR_BAD_DATABASE: security library: bad database.
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd118:transport.py:217 Exit code: 255

@rcritten could you have a look at the test failure? Thanks.

A call to super(TestACME, cls).install(mh) was removed in c4a6b0e

I'm not sure how this passed PR-CI but perhaps the temporary test only called one of the test classes.

Metadata Update from @rcritten:
- Issue assigned to rcritten

5 months ago

Same failure in [testing_master_pki Nightly PR #535 ; report

master:

  • 790b765 ipatests: call the CALess install method to generate the CA
  • 89fddb0 ipatests: Configure a replica in TestACMEwithExternalCA
  • 7030651 ipatests: Clean up existing ACME registration and certs
  • 3a9fc01 ipatests: configure MDStoreDir for mod_md ACME test
  • e6489dc ipatests: honor class inheritance in TestACMEwithExternalCA
  • 75e3803 ipatests: Increase timeout for ACME in gating.yaml
  • b6004cf ipatests: Bump PR-CI templates

ipa-4-9:

  • 3cd6b81 ipatests: call the CALess install method to generate the CA
  • de5baf8 ipatests: Configure a replica in TestACMEwithExternalCA
  • 5d286e7 ipatests: Clean up existing ACME registration and certs
  • b474b26 ipatests: configure MDStoreDir for mod_md ACME test
  • 75ad575 ipatests: honor class inheritance in TestACMEwithExternalCA
  • 17f293e ipatests: Increase timeout for ACME in gating.yaml
  • a3c5c71 ipatests: Bump PR-CI templates

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

5 months ago

Login to comment on this ticket.

Metadata