Project

General

Profile

Bug #42096

mgr/volumes: creating subvolume and subvolume group snapshot fails

Added by Ramana Raja 12 months ago. Updated 10 months ago.

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

0%

Source:
Development
Tags:
Backport:
nautilus
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:
Crash signature:

Description

[rraja@bzn build]$ ./bin/ceph fs subvolume create a subvol00

[rraja@bzn build]$ ./bin/ceph fs subvolume snapshot create a subvol00 snap00

Error EINVAL: Traceback (most recent call last):
  File "/home/rraja/git/ceph/src/pybind/mgr/mgr_module.py", line 924, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/home/rraja/git/ceph/src/pybind/mgr/volumes/module.py", line 187, in handle_command
    return handler(inbuf, cmd)
  File "/home/rraja/git/ceph/src/pybind/mgr/volumes/module.py", line 262, in _cmd_fs_subvolume_snapshot_create
    group_name=cmd.get('group_name', None))
  File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/volume.py", line 353, in conn_wrapper
    result = func(self, fs_h, **kwargs)
  File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/volume.py", line 448, in create_subvolume_snapshot
    sv.create_subvolume_snapshot(spec, snapname)
  File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/subvolume.py", line 276, in create_subvolume_snapshot
    snappath = spec.make_subvol_snap_path(self.rados.conf_get('client_snapdir'), snapname)
  File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/subvolspec.py", line 93, in make_subvol_snap_path
    return os.path.join(self.subvolume_path, snapdir, snapname)
  File "/usr/lib64/python3.7/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib64/python3.7/genericpath.py", line 151, in _check_arg_types
    raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: Can't mix strings and bytes in path components

Related issues

Copied to fs - Backport #42180: nautilus: mgr/volumes: creating subvolume and subvolume group snapshot fails Resolved

History

#1 Updated by Ramana Raja 12 months ago

  • Component(FS) mgr/volumes added

#2 Updated by Patrick Donnelly 12 months ago

  • Description updated (diff)
  • Assignee set to Ramana Raja
  • Target version set to v15.0.0
  • Start date deleted (09/30/2019)
  • Source set to Development
  • Backport set to nautilus

#3 Updated by Ramana Raja 12 months ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 30654
  • Affected Versions v14.2.3, v14.2.4 added

#4 Updated by Jos Collin 12 months ago

  • Status changed from Fix Under Review to Pending Backport

#5 Updated by Nathan Cutler 12 months ago

  • Copied to Backport #42180: nautilus: mgr/volumes: creating subvolume and subvolume group snapshot fails added

#6 Updated by Nathan Cutler 10 months 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".

Also available in: Atom PDF