Openshift upgrade fails with ascii codec can't decode error

Solution Verified - Updated -

Issue

NOTE: This issue has been fixed in ERRATA RHSA-2017:1244

During the upgrade of Openshift Container Platform from 3.4 to 3.5 the Ansible task fails with the following error:

TASK [Check for invalid namespaces and SDN errors] *****************************
fatal: [master.example.com]: FAILED! => {
    "changed": false,
    "failed": true,
    "module_stderr": "Shared connection to master.example.com closed.\r\n",
    "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_ryUzAE/ansible_module_oc_objectvalidator.py\", line 1420, in <module>\r\n    main()\r\n  File \"/tmp/ansible_ryUzAE/ansible_module_oc_objectvalidator.py\", line 1413, in main\r\n    rval = OCObjectValidator.run_ansible(module.params)\r\n  File \"/tmp/ansible_ryUzAE/ansible_module_oc_objectvalidator.py\", line 1375, in run_ansible\r\n    success, rval, invalid = objectvalidator.get_invalid(resource, invalid_filter)\r\n  File \"/tmp/ansible_ryUzAE/ansible_module_oc_objectvalidator.py\", line 1324, in get_invalid\r\n    rval = self._get(kind)\r\n  File \"/tmp/ansible_ryUzAE/ansible_module_oc_objectvalidator.py\", line 853, in _get\r\n    rval = self.openshift_cmd(cmd, output=True)\r\n  File \"/tmp/ansible_ryUzAE/ansible_module_oc_objectvalidator.py\", line 979, in openshift_cmd\r\n    returncode, stdout, stderr = self._run(cmds, input_data)\r\n  File \"/tmp/ansible_ryUzAE/ansible_module_oc_objectvalidator.py\", line 954, in _run\r\n    return proc.returncode, stdout.decode(), stderr.decode()\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1542: ordinal not in range(128)\r\n"
}

Environment

  • Openshift Container Platform 3.4 upgrade to 3.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.