Project

General

Profile

Bug #45997

nautilus: ceph_volume_client.py: UnicodeEncodeError exception while removing volume with UTF-8 directory

Added by Dan van der Ster 6 months ago. Updated 2 months ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
VolumeClient
Labels (FS):
Manila
Pull request ID:
Crash signature:

Description

While deleting a Manila share, we get this backtrace:

 "Traceback (most recent call last):",
    "  File \"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py\", line 165, in _process_incoming",
    "    res = self.dispatcher.dispatch(message)",
    "  File \"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py\", line 274, in dispatch",
    "    return self._do_dispatch(endpoint, method, ctxt, args)",
    "  File \"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py\", line 194, in _do_dispatch",
    "    result = func(ctxt, **new_args)",
    "  File \"/usr/lib/python2.7/site-packages/manila/share/manager.py\", line 187, in wrapped",
    "    return f(self, *args, **kwargs)",
    "  File \"/usr/lib/python2.7/site-packages/manila/utils.py\", line 568, in wrapper",
    "    return func(self, *args, **kwargs)",
    "  File \"/usr/lib/python2.7/site-packages/manila/share/manager.py\", line 3033, in delete_share_instance",
    "    exception=excep)",
    "  File \"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py\", line 220, in __exit__",
    "    self.force_reraise()",
    "  File \"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py\", line 196, in force_reraise",
    "    six.reraise(self.type_, self.value, self.tb)",
    "  File \"/usr/lib/python2.7/site-packages/manila/share/manager.py\", line 3008, in delete_share_instance",
    "    share_server=share_server)",
    "  File \"/usr/lib/python2.7/site-packages/manila/share/drivers/cephfs/driver.py\", line 283, in delete_share",
    "    data_isolated=data_isolated)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 775, in purge_volume",
    "    rmtree(trashed_volume)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 766, in rmtree",
    "    rmtree(d_full)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 766, in rmtree",
    "    rmtree(d_full)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 766, in rmtree",
    "    rmtree(d_full)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 766, in rmtree",
    "    rmtree(d_full)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 766, in rmtree",
    "    rmtree(d_full)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 766, in rmtree",
    "    rmtree(d_full)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 766, in rmtree",
    "    rmtree(d_full)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 766, in rmtree",
    "    rmtree(d_full)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 766, in rmtree",
    "    rmtree(d_full)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 766, in rmtree",
    "    rmtree(d_full)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 766, in rmtree",
    "    rmtree(d_full)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 766, in rmtree",
    "    rmtree(d_full)",
    "  File \"/usr/lib/python2.7/site-packages/ceph_volume_client.py\", line 755, in rmtree",
    "    log.debug(\"rmtree {0}\".format(root_path))",
    "UnicodeEncodeError: 'ascii' codec can't encode characters in position 146-149: ordinal not in range(128)" 

It is crashing on this directory:

/volumes/_deleting/d09ac099-819e-4c8c-b48d-71f0ffa63796/build/externals/Boost-1.72.0/src/Boost/1.72.0/libs/wave/test/testwave/testfiles/
utf8-test-ßµ™∃
/volumes/_deleting/d09ac099-819e-4c8c-b48d-71f0ffa63796/build/externals/Boost-1.72.0/src/Boost/1.72.0/libs/wave/test/testwave/testfiles/
utf8-test-ßµ™∃/file.hpp

History

#1 Updated by Patrick Donnelly 6 months ago

  • Status changed from New to Triaged
  • Assignee set to Ramana Raja
  • Target version set to v16.0.0
  • Source set to Community (dev)
  • Backport set to octopus,nautilus

#2 Updated by Dan van der Ster 6 months ago

(We have a PR incoming)

#3 Updated by Patrick Donnelly 6 months ago

  • Status changed from Triaged to Fix Under Review
  • Pull request ID set to 35571

Found a fix being worked on in GitHub. Thanks for the link Dan. Updated.

#4 Updated by Patrick Donnelly 2 months ago

  • Subject changed from ceph_volume_client.py: UnicodeEncodeError exception while removing volume with UTF-8 directory to nautilus: ceph_volume_client.py: UnicodeEncodeError exception while removing volume with UTF-8 directory
  • Target version changed from v16.0.0 to v14.2.12
  • Backport deleted (octopus,nautilus)
  • Pull request ID changed from 35571 to 36679

Also available in: Atom PDF