Project

General

Profile

Actions

Bug #52829

open

cephfs/mirroring: peer_bootstrap import failed with EPERM

Added by Kotresh Hiremath Ravishankar over 2 years ago. Updated over 2 years ago.

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

0%

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

Description

Tried setting up mirroring on vstart cluster as below but peer_bootstrap import failed with EPERM.

#Create vstart cluster
env MDS=2 OSD=3 MON=3 ../src/vstart.sh -d -b -n --without-dashboard

#Create user on primary site
bin/ceph auth get-or-create client.mirror mon 'profile cephfs-mirror' mds 'allow r' osd 'allow rw tag cephfs metadata=*, allow r tag cephfs data=*' mgr 'allow r'

#Append the above user's key to keyring file

#Create secondary fs
bin/ceph fs flag set enable_multiple true --yes-i-really-mean-it
bin/ceph osd pool create cephfs.mr_fs.data
bin/ceph osd pool create cephfs.mr_fs.meta
bin/ceph fs new mr_fs cephfs.mr_fs.meta cephfs.mr_fs.data

#Create user on secondary site
bin/ceph fs authorize mr_fs client.mirror_remote / rwps

#Append the above user's key to keyring file

#Enable mirroring
bin/ceph mgr module enable mirroring
bin/ceph fs snapshot mirror enable a

#start mirroring daemon
bin/cephfs-mirror --id mirror

#bootstrap peer
#ceph fs snapshot mirror peer_bootstrap create <remote_fs_name> <client_entity> <site-name>
bin/ceph fs snapshot mirror peer_bootstrap create mr_fs client.mirror_remote site-remote

#Import token
#ceph fs snapshot mirror peer_bootstrap import <fs_name> <token>
bin/ceph fs snapshot mirror peer_bootstrap import a eyJmc2lkIjogIjRjMTMxY2JiLTg4NDctNDIwNS1hYjU5LWEyM2I2YzVhMzk3YiIsICJmaWxlc3lzdGVtIjogIm1yX2ZzIiwgInVzZXIiOiAiY2xpZW50Lm1pcnJvcl9yZW1vdGUiLCAic2l0ZV9uYW1lIjogInNpdGUtcmVtb3RlIiwgImtleSI6ICJBUUR6ZmwxaHdsekJEaEFBNGI4cXk5MWU3empka0xvTWFWOEIxZz09IiwgIm1vbl9ob3N0IjogIlt2MjoxOTIuMTY4LjEuMTI6NDA4ODYsdjE6MTkyLjE2OC4xLjEyOjQwODg3XSBbdjI6MTkyLjE2OC4xLjEyOjQwODg4LHYxOjE5Mi4xNjguMS4xMjo0MDg4OV0gW3YyOjE5Mi4xNjguMS4xMjo0MDg5MCx2MToxOTIuMTY4LjEuMTI6NDA4OTFdIn0=
Error EPERM: failed to add peer


Files

mgr.x.log.2.tar.gz (637 KB) mgr.x.log.2.tar.gz Mgr logs - Part-2 Kotresh Hiremath Ravishankar, 10/06/2021 01:07 PM
mgr.x.log.1.tar.gz (543 KB) mgr.x.log.1.tar.gz Mgr logs - Part-1 Kotresh Hiremath Ravishankar, 10/06/2021 01:07 PM
Actions #1

Updated by Kotresh Hiremath Ravishankar over 2 years ago

  • Project changed from Ceph to CephFS
  • Component(FS) cephfs-mirror added

Updated by Kotresh Hiremath Ravishankar over 2 years ago

Attaching mgr logs split into two files

Actions #3

Updated by Venky Shankar over 2 years ago

  • Assignee set to Venky Shankar
Actions

Also available in: Atom PDF