Bug #43567
closedqa: UnicodeDecodeError in TestGetAndPut.test_put_and_get_without_target_directory
0%
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)
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
Updated by Rishabh Dave over 4 years ago
- Status changed from In Progress to Fix Under Review
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)
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
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)
Updated by Greg Farnum about 4 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to octopus
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
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".