diff options
Diffstat (limited to 'qa/suites/rbd/migration-external/6-prepare/native-clone.yaml')
-rw-r--r-- | qa/suites/rbd/migration-external/6-prepare/native-clone.yaml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/qa/suites/rbd/migration-external/6-prepare/native-clone.yaml b/qa/suites/rbd/migration-external/6-prepare/native-clone.yaml new file mode 100644 index 00000000000..2ca92dccfde --- /dev/null +++ b/qa/suites/rbd/migration-external/6-prepare/native-clone.yaml @@ -0,0 +1,29 @@ +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-src + - rbd --cluster cluster2 migration execute client.0.0-src + - rbd --cluster cluster2 migration commit client.0.0-src + - rbd --cluster cluster2 snap create client.0.0-src@snap + - rbd --cluster cluster2 snap protect client.0.0-src@snap + - rbd --cluster cluster2 clone client.0.0-src@snap client.0.0 + - rbd --cluster cluster2 snap create client.0.0@snap + - rbd --cluster cluster2 create --size 1G client.0.1-src + - rbd --cluster cluster2 bench --io-type write --io-pattern rand --io-size 16K --io-threads 1 --io-total 1M client.0.1-src + - rbd --cluster cluster2 snap create client.0.1-src@snap + - rbd --cluster cluster2 snap protect client.0.1-src@snap + - rbd --cluster cluster2 clone client.0.1-src@snap client.0.1 + - rbd --cluster cluster2 bench --io-type write --io-pattern rand --io-size 16K --io-threads 1 --io-total 1M client.0.1 + - rbd --cluster cluster2 snap create client.0.1@snap + - rbd --cluster cluster2 create --size 1G client.0.2-src + - rbd --cluster cluster2 bench --io-type write --io-pattern rand --io-size 16K --io-threads 1 --io-total 1M client.0.2-src + - rbd --cluster cluster2 snap create client.0.2-src@snap + - rbd --cluster cluster2 snap protect client.0.2-src@snap + - rbd --cluster cluster2 clone client.0.2-src@snap client.0.2 + - rbd --cluster cluster2 bench --io-type write --io-pattern rand --io-size 16K --io-threads 1 --io-total 2M client.0.2 + - rbd --cluster cluster2 snap create client.0.2@snap + - exec: + cluster1.client.0: + - echo '{"type":"native","cluster_name":"cluster2","client_name":"client.admin","pool_name":"rbd","image_name":"client.0.0","snap_name":"snap"}' | rbd --cluster cluster1 migration prepare --import-only --source-spec-path - client.0.0 + - echo '{"type":"native","cluster_name":"cluster2","client_name":"client.admin","pool_name":"rbd","image_name":"client.0.1","snap_name":"snap"}' | rbd --cluster cluster1 migration prepare --import-only --source-spec-path - client.0.1 + - echo '{"type":"native","cluster_name":"cluster2","client_name":"client.admin","pool_name":"rbd","image_name":"client.0.2","snap_name":"snap"}' | rbd --cluster cluster1 migration prepare --import-only --source-spec-path - client.0.2 |