Bug #41653
closed[rbd-mirror] simplify peer bootstrapping
0%
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.
Updated by Jason Dillaman over 4 years ago
Suggested CLI ops:
CLUSTER 1- rbd mirror pool enable <pool>
- 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- cat <<EOF > peer-bootstrap
eyJtb25faG9zdCI6IFsiMS4yLjMuNCIsICIyLjMuNC41Il0sICJuYW1lIjogImNsaWVudC5yYmQtbWlycm9yLmJvb3RzdHJhcCIsICJrZXkiOiAiQVFDQWRXNWR6aHRlS3hBQWNrYUlKOWF6VFNCWmFHYUJqMHBoSHc9PSJ9
EOF - rbd mirror peer peer import <pool> peer-bootstrap
Updated by Jason Dillaman over 4 years ago
Updated by Jason Dillaman over 4 years ago
- Status changed from New to In Progress
- Assignee set to Jason Dillaman
Updated by Jason Dillaman over 4 years ago
- Status changed from In Progress to Fix Under Review
Updated by Mykola Golub over 4 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Nathan Cutler over 4 years ago
- Copied to Backport #41972: nautilus: [rbd-mirror] simplify peer bootstrapping added
Updated by Lenz Grimmer over 4 years ago
- Related to Feature #42355: mgr/dashboard: integrate support for RBD mirror peer bootstrap added
Updated by Jason Dillaman over 4 years ago
- Status changed from Pending Backport to Resolved