#8495 [tracker] Nightly test failure in rawhide during CA installation: NoClassDefFoundError: javax/xml/bind/JAXBContext
Closed: fixed 3 years ago by frenaud. Opened 3 years ago by frenaud.

Issue

The nightly PR [testing_master_rawhide] has multiple tests with similar failures in the server or replica installation, during the pkispawn step.

See PR #401 with the following test failures:
- dns_locations: report, logs
- test_adtrust_install: report, logs
- test_crlgen_manage: report, logs
- test_replication_layouts_TestCompleteTopologyWithCAKRA: report, logs
- test_sssd: report, logs
- test_trust: report, logs

The logs can appear either in the journal or in the ipa-server|replica-install.log:

Sep 13 18:57:12 master.ipa.test systemd[1]: Starting PKI Tomcat Server pki-tomcat...
Sep 13 18:57:15 master.ipa.test pki-server[26964]: NoClassDefFoundError: javax/xml/bind/JAXBContext
Sep 13 18:57:15 master.ipa.test pki-server[26940]: ERROR: Command: pki -d /etc/pki/pki-tomcat/alias -C /tmp/tmp2zs37p5s/password.txt nss-cert-export --with-chain --format PEM Server-Cert cert-pki-ca /etc/pki/pki-tomcat/alias/ca.crt
Sep 13 18:57:15 master.ipa.test systemd[1]: pki-tomcatd@pki-tomcat.service: Control process exited, code=exited, status=255/EXCEPTION
Sep 13 18:57:15 master.ipa.test systemd[1]: pki-tomcatd@pki-tomcat.service: Failed with result 'exit-code'.
Sep 13 18:57:15 master.ipa.test systemd[1]: Failed to start PKI Tomcat Server pki-tomcat.

or

Installation failed: Command failed: pki -d /etc/pki/pki-tomcat/alias -C /etc/pki/pki-tomcat/pfile pkcs12-cert-find --pkcs12 /tmp/ca.p12 --password-file /tmp/tmpe9j93mxj/password.txt

Please check pkispawn logs in /var/log/pki/pki-ca-spawn.20200913175939.log

2020-09-13T17:59:44Z DEBUG stderr=NoClassDefFoundError: javax/xml/bind/JAXBContext
ERROR: CalledProcessError: Command '['pki', '-d', '/etc/pki/pki-tomcat/alias', '-C', '/etc/pki/pki-tomcat/pfile', 'pkcs12-cert-find', '--pkcs12', '/tmp/ca.p12', '--password-file', '/tmp/tmpe9j93mxj/password.txt']' returned non-zero exit status 255.
  File "/usr/lib/python3.9/site-packages/pki/server/pkispawn.py", line 575, in main
    scriptlet.spawn(deployer)
  File "/usr/lib/python3.9/site-packages/pki/server/deployment/scriptlets/security_databases.py", line 171, in spawn
    pkcs12.show_certs()
  File "/usr/lib/python3.9/site-packages/pki/pkcs12.py", line 73, in show_certs
    subprocess.check_call(cmd)
  File "/usr/lib64/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)

The issue does not always happen as other tests with CA installation completed successfully in the same PR.


Metadata Update from @abbra:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1878616

3 years ago

The pki issue has been fixed upstream, waiting for a release that contains the fix.

Metadata Update from @frenaud:
- Issue tagged with: test-failure, tests, tracker

3 years ago

The issue can be closed as the pki fix was released.

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

3 years ago

Login to comment on this ticket.

Metadata