Bug 1669439
Summary: | When running upgrade playbook, received the error: 'UnicodeEncodeError: 'ascii' codec can't encode character u'\\xfc' in position 1: ordinal not in range (128)' | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | David Caldwell <dcaldwel> |
Component: | Installer | Assignee: | Vadim Rutkovsky <vrutkovs> |
Installer sub component: | openshift-ansible | QA Contact: | Gaoyun Pei <gpei> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | unspecified | CC: | gpei, rsandu, vrutkovs |
Version: | 3.11.0 | ||
Target Milestone: | --- | ||
Target Release: | 3.11.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-02-20 14:11:02 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
David Caldwell
2019-01-25 09:55:28 UTC
PR with a possible fix - https://github.com/openshift/openshift-ansible/pull/11094 Could reproduce this bug with previous version openshift-ansible, such as openshift-ansible-3.11.69-1 1. Replace openshift CA file with a certificate with unicode symbols in CN [root@gpei-preserve-ansible-slave ~]# openssl x509 -in www.test.com.cert.pem -subject -noout subject= /C=GB/ST=England/O=Alice Ltd/CN=\xC3\x83\xC2\x9C-test Add openshift_master_ca_certificate={'certfile': '/root/www.test.com.cert.pem', 'keyfile':'/root/www.test.com.key.pem'} in anssible inventory file Run playbooks/openshift-master/redeploy-openshift-ca.yml 2. After CA file updated, run ansible-playbook -v playbooks/openshift-checks/certificate_expiry/easy-mode.yaml TASK [openshift_certificate_expiry : Check cert expirys on host] ************************************************************************************************************ fatal: [ec2-3-92-240-125.compute-1.amazonaws.com]: FAILED! => {"changed": false, "module_stderr": "Shared connection to ec2-3-92-240-125.compute-1.amazonaws.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1549941562.6-43432922140505/AnsiballZ_openshift_cert_expiry.py\", line 113, in <module>\r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1549941562.6-43432922140505/AnsiballZ_openshift_cert_expiry.py\", line 105, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1549941562.6-43432922140505/AnsiballZ_openshift_cert_expiry.py\", line 48, in invoke_module\r\n imp.load_module('__main__', mod, module, MOD_DESC)\r\n File \"/tmp/ansible_openshift_cert_expiry_payload_xlcguU/__main__.py\", line 835, in <module>\r\n File \"/tmp/ansible_openshift_cert_expiry_payload_xlcguU/__main__.py\", line 549, in main\r\n File \"/tmp/ansible_openshift_cert_expiry_payload_xlcguU/__main__.py\", line 292, in load_and_handle_cert\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} With openshift-ansible-3.11.82-1.git.0.f29227a.el7, no such issue, move bug to verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0326 |