Project

General

Profile

Bug #39406

ceph_volume_client: d_name needs to be converted to string before using

Added by Rishabh Dave 6 months ago. Updated 4 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
nautilus,mimic,luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
VolumeClient
Labels (FS):
Pull request ID:
Crash signature:

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.


Related issues

Duplicated by fs - Bug #39722: pybind: ceph_volume_client py3 error Duplicate
Copied to fs - Backport #40323: luminous: ceph_volume_client: d_name needs to be converted to string before using New
Copied to fs - Backport #40324: nautilus: ceph_volume_client: d_name needs to be converted to string before using Resolved
Copied to fs - Backport #40325: mimic: ceph_volume_client: d_name needs to be converted to string before using In Progress

History

#1 Updated by Patrick Donnelly 6 months ago

  • 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

#2 Updated by Patrick Donnelly 6 months ago

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

#3 Updated by Patrick Donnelly 6 months ago

  • Backport deleted (nautilus)

#4 Updated by Patrick Donnelly 6 months ago

  • Status changed from In Progress to Need Review
  • Pull request ID set to 27718

#5 Updated by Patrick Donnelly 5 months ago

  • Duplicated by Bug #39722: pybind: ceph_volume_client py3 error added

#6 Updated by Patrick Donnelly 5 months ago

  • Pull request ID changed from 27718 to 28196

#7 Updated by Patrick Donnelly 4 months ago

  • Status changed from Need Review to Pending Backport
  • Backport set to nautilus,mimic,luminous

#8 Updated by Nathan Cutler 4 months ago

  • Copied to Backport #40323: luminous: ceph_volume_client: d_name needs to be converted to string before using added

#9 Updated by Nathan Cutler 4 months ago

  • Copied to Backport #40324: nautilus: ceph_volume_client: d_name needs to be converted to string before using added

#10 Updated by Nathan Cutler 4 months ago

  • Copied to Backport #40325: mimic: ceph_volume_client: d_name needs to be converted to string before using added

Also available in: Atom PDF