-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librbd/migration: add external clusters support
This commits extends NativeFormat (aka migration where the migration source is an RBD image) to support external Ceph clusters. Signed-off-by: Or Ozeri <[email protected]>
- Loading branch information
Showing
21 changed files
with
188 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.qa/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
meta: | ||
- desc: run two ceph clusters | ||
tasks: | ||
- install: | ||
- ceph: | ||
cluster: cluster1 | ||
- ceph: | ||
cluster: cluster2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.qa/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
meta: | ||
- desc: 2 ceph clusters with 1 mon and 3 osds each | ||
roles: | ||
- - cluster1.mon.a | ||
- cluster1.mgr.x | ||
- cluster2.mgr.x | ||
- cluster1.osd.0 | ||
- cluster1.osd.1 | ||
- cluster1.osd.2 | ||
- cluster1.client.0 | ||
- cluster2.client.0 | ||
- - cluster2.mon.a | ||
- cluster2.osd.0 | ||
- cluster2.osd.1 | ||
- cluster2.osd.2 | ||
- cluster2.client.migrator | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.qa/objectstore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../basic/msgr-failures |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.qa/distros/supported-random-distro$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.qa/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
meta: | ||
- desc: configure the permissions for client.migrator | ||
overrides: | ||
ceph: | ||
conf: | ||
client: | ||
rbd default features: 125 | ||
debug rbd: 20 | ||
log to stderr: false | ||
# override to make these names predictable | ||
client.migrator: | ||
admin socket: /var/run/ceph/rbd-migration.$cluster-$name.asok | ||
pid file: /var/run/ceph/rbd-migration.$cluster-$name.pid | ||
tasks: | ||
- exec: | ||
cluster2.client.migrator: | ||
- "sudo ceph --cluster cluster2 auth caps client.migrator mon 'profile rbd' osd 'profile rbd-read-only'" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.qa/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
tasks: | ||
- exec: | ||
cluster2.client.0: | ||
- echo '{"type":"qcow","stream":{"type":"http","url":"http://download.ceph.com/qa/ubuntu-12.04.qcow2"}}' | rbd --cluster cluster2 migration prepare --import-only --source-spec-path - client.0.0 | ||
- rbd --cluster cluster2 migration execute client.0.0 | ||
- rbd --cluster cluster2 migration commit client.0.0 | ||
- rbd --cluster cluster2 snap create client.0.0@snap | ||
- exec: | ||
cluster1.client.0: | ||
- echo '{"type":"native","cluster_name":"cluster2","client_name":"client.migrator","pool_name":"rbd","image_name":"client.0.0","snap_name":"snap"}' | valgrind rbd --cluster cluster1 migration prepare --import-only --source-spec-path - client.0.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.qa/ |
17 changes: 17 additions & 0 deletions
17
qa/suites/rbd/migration-external/08-io-workload/qemu_xfstests.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
io_workload: | ||
sequential: | ||
- ceph: | ||
cluster: cluster1 | ||
- qemu: | ||
cluster1.client.0: | ||
clone: true | ||
type: block | ||
disks: | ||
- action: none | ||
image_name: client.0.0 | ||
- action: create | ||
image_name: client.0.1 | ||
- action: create | ||
image_name: client.0.2 | ||
test: qa/run_xfstests_qemu.sh | ||
exclude_arch: armv7l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.qa/ |
12 changes: 12 additions & 0 deletions
12
qa/suites/rbd/migration-external/09-migrate-workload/execute.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
tasks: | ||
- parallel: | ||
- io_workload | ||
- migrate_workload | ||
migrate_workload: | ||
sequential: | ||
- exec: | ||
cluster1.client.0: | ||
- sleep 60 | ||
- rbd --cluster cluster1 migration execute client.0.0 | ||
- sleep 60 | ||
- rbd --cluster cluster1 migration commit client.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.qa/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
tasks: | ||
- exec: | ||
cluster2.client.0: | ||
- rbd --cluster cluster2 snap remove client.0.0@snap || true | ||
- rbd --cluster cluster2 migration abort client.0.0 || true | ||
- rbd --cluster cluster2 rm client.0.0 || true |
Oops, something went wrong.