There is error with logging and non-ascii characters

Bug #1631986 reported by Alexandr Kostrikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Fuel QA Team

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

Tags: area-qa
Maksym Strukov (unbelll)
Changed in fuel:
assignee: Alexey Stepanov (astepanov-m) → Fuel QA Team (fuel-qa)
Revision history for this message
Aleksei Stepanov (penguinolog) 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.

Revision history for this message
Maksym Strukov (unbelll) wrote :
Revision history for this message
Aleksei Stepanov (penguinolog) wrote :

Yes. It's fix for this issue.

чт, 13 окт. 2016 г., 16:26 Maksym Strukov <email address hidden>:

> @astepanov: https://review.openstack.org/#/c/384837/ ?
>
> --
> You received this bug notification because you are a member of Fuel QA
> Team, which is 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.

Maksym Strukov (unbelll)
Changed in fuel:
status: New → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-devops (release/2.9)

Fix proposed to branch: release/2.9
Review: https://review.openstack.org/433657

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-devops (release/2.9)

Reviewed: https://review.openstack.org/433657
Committed: https://git.openstack.org/cgit/openstack/fuel-devops/commit/?id=8d03357cf6e4bf787067a1dca0152953deb9e8cf
Submitter: Jenkins
Branch: release/2.9

commit 8d03357cf6e4bf787067a1dca0152953deb9e8cf
Author: Dmitry Belyaninov <email address hidden>
Date: Tue Feb 14 13:49:52 2017 +0000

    Make exceptions unicode

    Received non-unicode data in stdout, as result test failed

    Closes-Bug: 1631986

    Change-Id: I7df47caa68f3c84407275a02b97d5581e55769a7

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.