Comment 1 for bug 1631986

Revision history for this message
Alexey Stepanov (astepanov-m) wrote : Re: [Bug 1631986] Re: There is error with logging and non-ascii characters

Has been fixed in the fuel-devops 3.0.3

чт, 13 окт. 2016 г. в 15:36, Maksym Strukov <email address hidden>:

> ** Changed in: fuel
> Assignee: Alexey Stepanov (astepanov-m) => Fuel QA Team (fuel-qa)
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1631986
>
> Title:
> There is error with logging and non-ascii characters
>
> Status in Fuel for OpenStack:
> New
>
> Bug description:
> During swarm run[0] there were an error:
>
> 2016-10-10 11:58:10 - ERROR decorators.py:126 -- Traceback (most recent
> call last):
> File
> "/home/jenkins/workspace/10.0.system_test.ubuntu.custom_graph/fuelweb_test/helpers/decorators.py",
> line 120, in wrapper
> result = func(*args, **kwargs)
> File
> "/home/jenkins/workspace/10.0.system_test.ubuntu.custom_graph/fuelweb_test/tests/tests_custom_graph/test_custom_graph.py",
> line 168, in custom_graph_leakage
> self.move_ubuntu_target_image(2, cluster_id)
> File
> "/home/jenkins/workspace/10.0.system_test.ubuntu.custom_graph/fuelweb_test/tests/tests_custom_graph/test_custom_graph.py",
> line 77, in move_ubuntu_target_image
> cmd=move_img_cmd)
> File
> "/home/jenkins/workspace/10.0.system_test.ubuntu.custom_graph/fuelweb_test/helpers/ssh_manager.py",
> line 314, in execute_on_remote
> sudo=sudo
> File
> "/home/jenkins/workspace/10.0.system_test.ubuntu.custom_graph/fuelweb_test/helpers/ssh_manager.py",
> line 275, in check_call
> raise_on_err=raise_on_err
> File
> "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/devops/helpers/ssh_client.py",
> line 586, in check_call
> stderr=ret['stderr_str'])
> File
> "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/devops/error.py",
> line 44, in __init__
> message += "\n\tSTDERR:\n{}".format(self.stderr)
> UnicodeEncodeError: 'ascii' codec can't encode character u'\u2018' in
> position 16: ordinal not in range(128)
>
> cp command returns to stdout '`':
> cp /tmp/x /tmp/y
> cp: cannot stat ‘/tmp/x’: No such file or directory
>
> And it is non-ascii character.
>
>
> Additional info:
> It may cause troubleshoot pain.
>
> [0] https://product-
>
> ci.infra.mirantis.net/job/10.0.system_test.ubuntu.custom_graph/99/console
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/fuel/+bug/1631986/+subscriptions
>
--
Best regards, Alexey Stepanov.