Bug #41653
closed
[rbd-mirror] simplify peer bootstrapping
Added by Jason Dillaman over 4 years ago.
Updated over 4 years ago.
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.
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
- Status changed from New to In Progress
- Assignee set to Jason Dillaman
- Pull request ID set to 30411
- Status changed from In Progress to Fix Under Review
- Status changed from Fix Under Review to Pending Backport
- Copied to Backport #41972: nautilus: [rbd-mirror] simplify peer bootstrapping added
- Related to Feature #42355: mgr/dashboard: integrate support for RBD mirror peer bootstrap added
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF