Project

General

Profile

Actions

Bug #20452

closed

Adding pool with id smaller then existing data pool ids breaks MDSMap::is_data_pool

Added by Jan Fajerski almost 7 years ago. Updated about 6 years ago.

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

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

To reproduce:
Setup ceph cluster with mds but don't create fs yet (nor the necessary pools). Equivalent to the result of MON=1 MDS=2 OSD=1 CEPH_NUM_FS=0 ../src/vstart.sh -d -n

Then add three pools:
ceph osd pool create foo 8 8
ceph osd pool create fs_data 8 8
ceph osd pool create fs_metadata 8 8

Create a fs instance with the 2 latter pools (or any pools with id !=1):
ceph fs new fs fs_metadata fs_data

Add pool with id 1 to fs:
ceph fs add_data_pool fs 1

Now mount the fs and create a file:
sudo ceph-fuse fs
touch fs/file
touch: setting times of 'fs/file': No such file or directory

Other operations will fail too , e.g. setting xattr ceph.dir.layout.pool to pool 1. Creating directories works.

PR: https://github.com/ceph/ceph/pull/15982


Related issues 1 (0 open1 closed)

Copied to CephFS - Backport #20714: jewel: Adding pool with id smaller then existing data pool ids breaks MDSMap::is_data_poolRejectedActions
Actions

Also available in: Atom PDF