#7521 ipa-kra-install fails with "UnicodeEncodeError: \'ascii\' codec can\'t encode character u\'\\u2013\'"
Closed: worksforme 5 years ago Opened 5 years ago by fbarreto.

Issue

ipa-kra-install fails during test_installation::TestInstallWithCA_KRA2::test_replica2_ipa_kra_install with the message

[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] RUN ['ipa-kra-install', '-U', '-p', 'Secret.123']
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] 
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] ===================================================================
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] This program will setup Dogtag KRA for the FreeIPA Server.
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] 
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] 
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] Waiting for keys to appear on host: replica1.ipa.test, please wait until this has completed.
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] Configuring KRA server (pki-tomcatd). Estimated time: 2 minutes
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56]   [1/10]: creating installation admin user
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56]   [2/10]: configuring KRA instance
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56]   [error] RuntimeError: KRA configuration failed.
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] Waiting up to 300 seconds to see our keys appear on host: replica1.ipa.test
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] Failed to configure KRA instance: CalledProcessError(Command ['/usr/sbin/pkispawn', '-s', 'KRA', '-f', '/tmp/tmp2kpe9dy6'] returned non-zero exit status 1: 'WARNING: cert caSigningCert cert-pki-ca already exists\nTraceback (most recent call last):\n  File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main\n    "__main__", fname, loader, pkg_name)\n  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code\n    exec code in run_globals\n  File "/usr/lib/python2.7/site-packages/pki/server/pkispawn.py", line 876, in <module>\n    main(sys.argv)\n  File "/usr/lib/python2.7/site-packages/pki/server/pkispawn.py", line 553, in main\n    print(r.text)\nUnicodeEncodeError: \'ascii\' codec can\'t encode character u\'\\u2013\' in position 60: ordinal not in range(128)\n')
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] See the installation logs and the following files/directories for more information:
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56]   /var/log/pki/pki-tomcat
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] 
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] Your system may be partly configured.
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] If you run into issues, you may have to re-install IPA on this server.
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] 
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] KRA configuration failed.
[ipatests.pytest_plugins.integration.host.Host.replica2.cmd56] The ipa-kra-install command failed. See /var/log/ipaserver-kra-install.log for more information
ipa: ERROR: Exit code: 1

The logs can be found here:
https://fedorapeople.org/groups/freeipa/prci/jobs/7ca1d2c4-48e5-11e8-8c1c-fa163eda94f2/

Steps to Reproduce

  1. run test_installation::TestInstallWithCA_KRA2::test_replica2_ipa_kra_install test

Version/Release/Distribution

Git master (last commit: 415578a)


@ftweedal could you please take a look at this?

@fbarreto thanks for the heads-up.

/me pushes it into the queue

Metadata Update from @fbarreto:
- Issue priority set to: important
- Issue set to the milestone: FreeIPA 4.6.4

5 years ago

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.6.5 (was: FreeIPA 4.6.4)

5 years ago

Is this still failing or was it resolved by the earlier tranche of Dogtag python3 fixes? @cheimes

Issue does not happen any more, at least since the dependency on Dogtag was bumped to 10.6.7-3 (see commit 795fe62. Hence closing as works for me.

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

5 years ago

Login to comment on this ticket.

Metadata