Bug #39406
closed
ceph_volume_client: d_name needs to be converted to string before using
Added by Rishabh Dave about 5 years ago.
Updated almost 4 years ago.
Backport:
nautilus,mimic,luminous
Component(FS):
VolumeClient
Description
The d_name in DirEntry is obtained by ceph_volume_client.py as bytes array while it expects it to be a string. Make the conversion before using it. Originally this commit converted byte to string which was recently reversed by this commit.
- Target version set to v15.0.0
- Start date deleted (
04/23/2019)
- Source set to Development
- Backport set to nautilus
- Component(FS) VolumeClient added
Also seen in QA:
2019-04-17T22:25:04.761 INFO:teuthology.orchestra.run.smithi170.stderr:Traceback (most recent call last):
2019-04-17T22:25:04.761 INFO:teuthology.orchestra.run.smithi170.stderr: File "<string>", line 9, in <module>
2019-04-17T22:25:04.761 INFO:teuthology.orchestra.run.smithi170.stderr: File "/usr/lib/python3/dist-packages/ceph_volume_client.py", line 506, in connect
2019-04-17T22:25:04.761 INFO:teuthology.orchestra.run.smithi170.stderr: self._connect(premount_evict)
2019-04-17T22:25:04.761 INFO:teuthology.orchestra.run.smithi170.stderr: File "/usr/lib/python3/dist-packages/ceph_volume_client.py", line 484, in _connect
2019-04-17T22:25:04.761 INFO:teuthology.orchestra.run.smithi170.stderr: self.recover()
2019-04-17T22:25:04.761 INFO:teuthology.orchestra.run.smithi170.stderr: File "/usr/lib/python3/dist-packages/ceph_volume_client.py", line 309, in recover
2019-04-17T22:25:04.762 INFO:teuthology.orchestra.run.smithi170.stderr: match = re.search(regex, d.d_name)
2019-04-17T22:25:04.762 INFO:teuthology.orchestra.run.smithi170.stderr: File "/usr/lib/python3.6/re.py", line 182, in search
2019-04-17T22:25:04.762 INFO:teuthology.orchestra.run.smithi170.stderr: return _compile(pattern, flags).search(string)
2019-04-17T22:25:04.762 INFO:teuthology.orchestra.run.smithi170.stderr:TypeError: cannot use a string pattern on a bytes-like object
From: /ceph/teuthology-archive/pdonnell-2019-04-17_06:02:40-fs-wip-pdonnell-testing-20190417.032809-distro-basic-smithi/3857057/teuthology.log
- Backport deleted (
nautilus)
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 27718
- Has duplicate Bug #39722: pybind: ceph_volume_client py3 error added
- Pull request ID changed from 27718 to 28196
- Status changed from Fix Under Review to Pending Backport
- Backport set to nautilus,mimic,luminous
- Copied to Backport #40323: luminous: ceph_volume_client: d_name needs to be converted to string before using added
- Copied to Backport #40324: nautilus: ceph_volume_client: d_name needs to be converted to string before using added
- Copied to Backport #40325: mimic: ceph_volume_client: d_name needs to be converted to string before using added
- 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".
Also available in: Atom
PDF