Project

General

Profile

Actions

Bug #55762

open

mgr/volumes: Handle internal metadata directories under '/volumes' properly.

Added by Kotresh Hiremath Ravishankar almost 2 years ago. Updated over 1 year ago.

Status:
Pending Backport
Priority:
Normal
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Tags:
backport_processed
Backport:
quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

1) The subvolumegroup ls lists `_index` directory as subvolumegroup

# bin/ceph fs subvolumegroup ls a
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2022-05-25T12:28:24.565+0530 7f2eb7c03700 -1 WARNING: all dangerous and experimental features are enabled.
2022-05-25T12:28:24.573+0530 7f2eb7c03700 -1 WARNING: all dangerous and experimental features are enabled.
[
    {
        "name": "_nogroup" 
    },
    {
        "name": "_index" 
    }
]
root@kotresh-T490s:~/sandbox/kotresh-ceph/ceph/build# 

The `_index` directory should be filtered.

2) The subvolume ls with internal directories as group_name lists contents inside.

# bin/ceph fs subvolume ls a --group-name=_index
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2022-05-25T12:31:07.125+0530 7f78dac3e700 -1 WARNING: all dangerous and experimental features are enabled.
2022-05-25T12:31:07.133+0530 7f78dac3e700 -1 WARNING: all dangerous and experimental features are enabled.
[
    {
        "name": "clone" 
    }
]

# bin/ceph fs subvolume ls a --group-name=_deleting
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2022-05-25T12:31:27.209+0530 7f151262e700 -1 WARNING: all dangerous and experimental features are enabled.
2022-05-25T12:31:27.217+0530 7f151262e700 -1 WARNING: all dangerous and experimental features are enabled.
[]

This should throw proper error.


Related issues 2 (0 open2 closed)

Copied to CephFS - Backport #57057: quincy: mgr/volumes: Handle internal metadata directories under '/volumes' properly.ResolvedNikhilkumar ShelkeActions
Copied to CephFS - Backport #57058: pacific: mgr/volumes: Handle internal metadata directories under '/volumes' properly.ResolvedKotresh Hiremath RavishankarActions
Actions

Also available in: Atom PDF