Project

General

Profile

Bug #41653

[rbd-mirror] simplify peer bootstrapping

Added by Jason Dillaman 7 months ago. Updated 5 months ago.

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

0%

Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Provide a CLI and dashboard UI tool to create a token that (1) generates a "profile bootstrap-rbd-mirror" CephX user, (2) encodes the local mon addresses and the bootstrap CephX name + key.

This new token should be able to be imported via "rbd mirror peer add" and via the dashboard UI.

It should also support (optionally) performing this operation bi-directionally such that "rbd mirror peer add" would create a new local "profile rbd-mirror" CephX user and configure the remote cluster with the local mon addresses and local CephX user for mirroring.


Related issues

Related to mgr - Feature #42355: mgr/dashboard: integrate support for RBD mirror peer bootstrap Pending Backport
Copied to rbd - Backport #41972: nautilus: [rbd-mirror] simplify peer bootstrapping Resolved

History

#1 Updated by Jason Dillaman 7 months ago

Suggested CLI ops:

CLUSTER 1
  1. rbd mirror pool enable <pool>
  2. rbd mirror pool peer bootstrap create
    eyJtb25faG9zdCI6IFsiMS4yLjMuNCIsICIyLjMuNC41Il0sICJuYW1lIjogImNsaWVudC5yYmQtbWlycm9yLmJvb3RzdHJhcCIsICJrZXkiOiAiQVFDQWRXNWR6aHRlS3hBQWNrYUlKOWF6VFNCWmFHYUJqMHBoSHc9PSJ9

The token is just a simple JSON object encoded in base64 to facilitate copy-paste: {"mon_host": ["1.2.3.4", "2.3.4.5"], "name": "client.rbd-mirror.bootstrap", "key": "AQCAdW5dzhteKxAAckaIJ9azTSBZaGaBj0phHw=="}

CLUSTER 2
  1. cat <<EOF > peer-bootstrap
    eyJtb25faG9zdCI6IFsiMS4yLjMuNCIsICIyLjMuNC41Il0sICJuYW1lIjogImNsaWVudC5yYmQtbWlycm9yLmJvb3RzdHJhcCIsICJrZXkiOiAiQVFDQWRXNWR6aHRlS3hBQWNrYUlKOWF6VFNCWmFHYUJqMHBoSHc9PSJ9
    EOF
  2. rbd mirror peer peer import <pool> peer-bootstrap

#3 Updated by Jason Dillaman 7 months ago

  • Status changed from New to In Progress
  • Assignee set to Jason Dillaman

#4 Updated by Jason Dillaman 7 months ago

  • Pull request ID set to 30411

#5 Updated by Jason Dillaman 7 months ago

  • Status changed from In Progress to Fix Under Review

#6 Updated by Mykola Golub 6 months ago

  • Status changed from Fix Under Review to Pending Backport

#7 Updated by Nathan Cutler 6 months ago

  • Copied to Backport #41972: nautilus: [rbd-mirror] simplify peer bootstrapping added

#8 Updated by Lenz Grimmer 6 months ago

  • Related to Feature #42355: mgr/dashboard: integrate support for RBD mirror peer bootstrap added

#9 Updated by Jason Dillaman 5 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF