]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: update rbd cli tests to incorporate new mirror image commands
authorJason Dillaman <dillaman@redhat.com>
Tue, 15 Mar 2016 18:11:13 +0000 (14:11 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 16 Mar 2016 00:14:45 +0000 (20:14 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/cli/rbd/help.t
src/test/cli/rbd/not-enough-args.t

index 78897386e4bf0497225ed0d075046710c46c4835..e68f186a7104da45eca558401fe9b1c89c862edc 100644 (file)
       lock remove (lock rm)       Release a lock on an image.
       map                         Map image to a block device using the kernel.
       merge-diff                  Merge two diff exports together.
+      mirror image demote         Demote an image to secondary for RBD mirroring.
       mirror image disable        Disable RBD mirroring for an image.
       mirror image enable         Enable RBD mirroring for an image.
+      mirror image promote        Promote an image to primary for RBD mirroring.
+      mirror image resync         Force resync to primary image for RBD mirroring.
       mirror pool disable         Disable RBD mirroring by default within a pool.
       mirror pool enable          Enable RBD mirroring by default within a pool.
       mirror pool info            Show information about the pool mirroring
     --path arg           path to merged diff (or '-' for stdout)
     --no-progress        disable progress output
   
+  rbd help mirror image demote
+  usage: rbd mirror image demote [--pool <pool>] [--image <image>] 
+                                 <image-spec> 
+  
+  Demote an image to secondary for RBD mirroring.
+  
+  Positional arguments
+    <image-spec>         image specification
+                         (example: [<pool-name>/]<image-name>)
+  
+  Optional arguments
+    -p [ --pool ] arg    pool name
+    --image arg          image name
+  
   rbd help mirror image disable
   usage: rbd mirror image disable [--force] [--pool <pool>] [--image <image>] 
                                   <image-spec> 
   
   Enable RBD mirroring for an image.
   
+  Positional arguments
+    <image-spec>         image specification
+                         (example: [<pool-name>/]<image-name>)
+  
+  Optional arguments
+    -p [ --pool ] arg    pool name
+    --image arg          image name
+  
+  rbd help mirror image promote
+  usage: rbd mirror image promote [--force] [--pool <pool>] [--image <image>] 
+                                  <image-spec> 
+  
+  Promote an image to primary for RBD mirroring.
+  
+  Positional arguments
+    <image-spec>         image specification
+                         (example: [<pool-name>/]<image-name>)
+  
+  Optional arguments
+    --force              promote even if not cleanly demoted by remote cluster
+    -p [ --pool ] arg    pool name
+    --image arg          image name
+  
+  rbd help mirror image resync
+  usage: rbd mirror image resync [--pool <pool>] [--image <image>] 
+                                 <image-spec> 
+  
+  Force resync to primary image for RBD mirroring.
+  
   Positional arguments
     <image-spec>         image specification
                          (example: [<pool-name>/]<image-name>)
index 20e1e9e2d5b308a9f840f92b5d2c7a4a91b706f2..72adf186a973662198ee1840d8e3edef10cba982 100644 (file)
   $ rbd mirror pool peer remove rbd
   rbd: must specify peer uuid
   [22]
-
+  $ rbd mirror image demote
+  rbd: image name was not specified
+  [22]
+  $ rbd mirror image disable
+  rbd: image name was not specified
+  [22]
+  $ rbd mirror image enable
+  rbd: image name was not specified
+  [22]
+  $ rbd mirror image promote
+  rbd: image name was not specified
+  [22]
+  $ rbd mirror image resync
+  rbd: image name was not specified
+  [22]