Project

General

Profile

Actions

Bug #43567

closed

qa: UnicodeDecodeError in TestGetAndPut.test_put_and_get_without_target_directory

Added by Rishabh Dave over 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
qa
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

decode() is run on a type str -

2020-01-13 15:07:24,721.721 INFO:__main__:======================================================================
2020-01-13 15:07:24,721.721 INFO:__main__:ERROR: test_put_and_get_without_target_directory (tasks.cephfs.test_cephfs_shell.TestGetAndPut)
2020-01-13 15:07:24,721.721 INFO:__main__:----------------------------------------------------------------------
2020-01-13 15:07:24,721.721 INFO:__main__:Traceback (most recent call last):
2020-01-13 15:07:24,721.721 INFO:__main__:  File "/home/rishabh/repos/ceph/fs-shell-retval/qa/tasks/cephfs/test_cephfs_shell.py", line 185, in test_put_and_get_without_target_directory
2020-01-13 15:07:24,722.722 INFO:__main__:    self.run_cephfs_shell_cmd("!mkdir p1")
2020-01-13 15:07:24,722.722 INFO:__main__:  File "/home/rishabh/repos/ceph/fs-shell-retval/qa/tasks/cephfs/test_cephfs_shell.py", line 56, in run_cephfs_shell_cmd
2020-01-13 15:07:24,722.722 INFO:__main__:    stderr=StringIO(), stdin=stdin)
2020-01-13 15:07:24,722.722 INFO:__main__:  File "../qa/tasks/vstart_runner.py", line 390, in run
2020-01-13 15:07:24,722.722 INFO:__main__:    proc.wait()
2020-01-13 15:07:24,722.722 INFO:__main__:  File "../qa/tasks/vstart_runner.py", line 179, in wait
2020-01-13 15:07:24,722.722 INFO:__main__:    out, err = out.decode(), err.decode()
2020-01-13 15:07:24,722.722 INFO:__main__:UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 31: ordinal not in range(128)
2020-01-13 15:07:24,722.722 INFO:__main__:
2020-01-13 15:07:24,722.722 INFO:__main__:----------------------------------------------------------------------
2020-01-13 15:07:24,722.722 INFO:__main__:Ran 1 test in 16.701s
2020-01-13 15:07:24,722.722 INFO:__main__:
2020-01-13 15:07:24,723.723 INFO:__main__:FAILED (errors=1)

Related issues 1 (0 open1 closed)

Copied to CephFS - Backport #45227: octopus: qa: UnicodeDecodeError in TestGetAndPut.test_put_and_get_without_target_directoryResolvedNathan CutlerActions
Actions #1

Updated by Rishabh Dave over 4 years ago

  • Subject changed from qa/test_cephfs_shell: UnicodeDecodeError in TestGetAndPut.test_put_and_get_without_target_directory to qa: UnicodeDecodeError in TestGetAndPut.test_put_and_get_without_target_directory
  • Labels (FS) qa added
Actions #2

Updated by Rishabh Dave over 4 years ago

  • Pull request ID set to 32612
Actions #3

Updated by Rishabh Dave over 4 years ago

  • Status changed from In Progress to Fix Under Review
Actions #4

Updated by Rishabh Dave over 4 years ago

-> out, err = out.decode(), err.decode()
(Pdb) p self.args
['cephfs-shell', '-c', './ceph.conf', '--', '!mkdir p1']
(Pdb) p err
'mkdir: cannot create directory \xe2\x80\x98p1\xe2\x80\x99: File exists\n'
(Pdb) 
Actions #5

Updated by Rishabh Dave about 4 years ago

Here's the root cause behind the error - https://github.com/ceph/ceph/pull/32612#discussion_r366312713

Actions #6

Updated by Rishabh Dave about 4 years ago

Saw the same error again with a different testsuite -

2020-03-31 11:19:50,786.786 INFO:__main__:======================================================================
2020-03-31 11:19:50,786.786 INFO:__main__:ERROR: test_auth_for_multiple_fss (tasks.cephfs.test_multifs.TestMdsCaps)
2020-03-31 11:19:50,786.786 INFO:__main__:----------------------------------------------------------------------
2020-03-31 11:19:50,786.786 INFO:__main__:Traceback (most recent call last):
2020-03-31 11:19:50,786.786 INFO:__main__: File "/home/rishabh/repos/ceph/multifs-auth/qa/tasks/cephfs/test_multifs.py", line 73, in setUp
2020-03-31 11:19:50,787.787 INFO:__main__: super(TestClientsWithAuth, self).setUp()
2020-03-31 11:19:50,787.787 INFO:__main__: File "/home/rishabh/repos/ceph/multifs-auth/qa/tasks/cephfs/test_multifs.py", line 47, in setUp
2020-03-31 11:19:50,787.787 INFO:__main__: super(TestMultiFSClients, self).setUp()
2020-03-31 11:19:50,787.787 INFO:__main__: File "/home/rishabh/repos/ceph/multifs-auth/qa/tasks/cephfs/cephfs_test_case.py", line 145, in setUp
2020-03-31 11:19:50,787.787 INFO:__main__: self.mounts[i].mount()
2020-03-31 11:19:50,787.787 INFO:__main__: File "../qa/tasks/vstart_runner.py", line 700, in mount
2020-03-31 11:19:50,787.787 INFO:__main__: if 'file exists' not in stderr.getvalue().decode().lower():
2020-03-31 11:19:50,787.787 INFO:__main__:UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 31: ordinal not in range(128)

Actions #7

Updated by Greg Farnum about 4 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to octopus
Actions #8

Updated by Nathan Cutler about 4 years ago

  • Copied to Backport #45227: octopus: qa: UnicodeDecodeError in TestGetAndPut.test_put_and_get_without_target_directory added
Actions #9

Updated by Nathan Cutler almost 4 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF