Project

General

Profile

Actions

Bug #41653

closed

[rbd-mirror] simplify peer bootstrapping

Added by Jason Dillaman over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Jason Dillaman
Target version:
-
% Done:

0%

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

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 2 (0 open2 closed)

Related to Dashboard - Feature #42355: mgr/dashboard: integrate support for RBD mirror peer bootstrapResolvedJason Dillaman

Actions
Copied to rbd - Backport #41972: nautilus: [rbd-mirror] simplify peer bootstrappingResolvedJason DillamanActions
Actions #1

Updated by Jason Dillaman over 4 years 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
Actions #3

Updated by Jason Dillaman over 4 years ago

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

Updated by Jason Dillaman over 4 years ago

  • Pull request ID set to 30411
Actions #5

Updated by Jason Dillaman over 4 years ago

  • Status changed from In Progress to Fix Under Review
Actions #6

Updated by Mykola Golub over 4 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #7

Updated by Nathan Cutler over 4 years ago

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

Updated by Lenz Grimmer over 4 years ago

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

Updated by Jason Dillaman over 4 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF