Mykola Golub
be2cdc0bcf
rbd: online re-sparsify of images
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-02-15 11:12:00 +00:00
Jason Dillaman
0474727294
rbd: simplify pool namespace positional argument handling
...
The pool and namespace can now be specified as in a
<pool-name>[/<namespace-name>] format as positional
arguments.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-01-28 14:36:44 -05:00
songweibin
1f2eef7f1f
librbd: disallow trash restoring when image being migrated
...
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2019-01-08 10:26:06 +08:00
Mykola Golub
472abc2ed9
test/librbd: migration supporting namespace tests
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-11-03 19:36:44 +02:00
Jason Dillaman
c60ffac61e
Merge pull request #24428 from trociny/wip-rbd-config-global
...
rbd: add 'config global' command to get/store overrides in mon config db
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-10-11 10:50:33 -04:00
Mykola Golub
c552f166c3
Merge pull request #24476 from dillaman/wip-35944
...
librbd: add new configuration option to always move deleted items to the trash
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-10-10 18:40:14 +03:00
Mykola Golub
b3e4d43c15
rbd: add 'config global' command to get/store overrides in mon config db
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-10-10 17:31:32 +03:00
Jason Dillaman
97950fec27
qa/workunits/rbd: test new move-to-trash on image remove config override
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-10-10 09:08:03 -04:00
Mykola Golub
24e1a6bd47
qa/workunits/rbd: force v2 image format for namespace test
...
While here, fix test_locking too.
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-10-10 10:50:30 +03:00
Mykola Golub
f2d72d46d4
qa/workunits/rbd: fix cli generic namespace test
...
expect_fail incorrectly unset '-e' option and if a consequent test
failed it did not abort the execution. And two typos in the namespace
tests were not detected due to this.
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-10-07 15:09:25 +03:00
Mykola Golub
ecdf8cd6b2
rbd: add config commands
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-09-20 10:35:18 +03:00
Jason Dillaman
d4c7ce3c0a
qa/workunits/rbd: test clone v2 across namespaces
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-19 08:05:29 -04:00
Mykola Golub
cec53e9bd2
qa/workunits/rbd: replace usage of 'rados rmpool'
...
This command was dropped.
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-09-05 22:52:20 +03:00
Jason Dillaman
0f0176ed4a
qa/workunits/rbd: replace usage of 'rados mkpool'
...
This command was dropped under commit 2c26fb0fe1, so use
'ceph osd pool create' instead.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-05 08:17:39 -04:00
Sage Weil
2c26fb0fe1
rados: drop mkpool, rmpool commands
...
- mkpool and rmpool users should use the normal cli/mon commands
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 09:27:36 -05:00
Mykola Golub
7f27f19753
rbd: CLI to migrate images
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Jason Dillaman
1e45d405da
qa/workunits/rbd: updates to the clone v2 CLI tests
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-07-24 08:52:33 -04:00
Jason Dillaman
3e8624f157
rbd: add support for namespaces
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-06-22 10:43:51 -04:00
Jason Dillaman
4437c136b4
rbd: add namespace create/remove/ls actions
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-06-18 18:43:40 -04:00
Jason Dillaman
d5b7d672b9
qa/workunits/rbd: fix unit formatting tests
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-24 15:54:31 -04:00
Sage Weil
ddd3095bc0
qa/workunits/rbd/cli_generic: update unit formatting
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-17 11:14:39 -05:00
Mykola Golub
e387f91955
rbd: deep copy option to copy clone parent data
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-05-16 16:07:48 +03:00
Jason Dillaman
3e8b74fb3d
qa/workunits/rbd/cli_generic: update unit formatting
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-04-20 11:26:48 -04:00
Jason Dillaman
3b08c0609c
Merge pull request #20460 from colletj/v1_image_creation_disallow
...
librbd: disallow creation of v1 image format
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-04-03 09:18:39 -04:00
Jason Dillaman
6885380c24
Merge pull request #18317 from hitoshikamei/master-rbd
...
rbd: eager-thick provisioning support
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-03-30 08:45:15 -04:00
Mykola Golub
4784d6202b
rbd: return image id in info command output
...
And as a side effect, previously when rbd info was called
with --image-id, the image id was shown instead of the image name,
so the user was not able to see the image name from info output.
Now it will show the image name.
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-03-18 06:37:19 +02:00
Hitoshi Kamei
b517532d53
rbd: qa code for thick provision support
...
Add the qa code for thick provision option, if applied.
The qa code creates and checks 64 MB thick-provision image
for small image test, and it also creates and checks 4 GB
thick-provision image for large image test.
Signed-off-by: Hitoshi Kamei <hitoshi.kamei.xm@hitachi.com>
Cc: Mitsuo Hayasaka <mitsuo.hayasaka.hu@hitachi.com>
2018-03-13 17:25:24 +09:00
Julien COLLET
18d9a74b69
test/librbd: use v1 images in the rbd unit tests
...
Update the test/qa scripts to support the v1 creation disallow fix (using
the RBD_FORCE_ALLOW_V1 environment variable).
Signed-off-by: Julien Collet <julien.collet@cern.ch>
2018-03-06 09:07:32 +01:00
Jason Dillaman
82ef376e80
librbd: auto-remove trash snapshots when image is deleted
...
Fixes: http://tracker.ceph.com/issues/22873
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-09 13:34:55 -05:00
Mykola Golub
57baca0166
qa/workunits/rbd/cli_generic: fix test_purge for rbd default format 1
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-02-09 16:04:43 +02:00
songweibin
21c3bc3e69
test/rbd: cli_generic fails if v1 image format or deep-flatten disabled
...
Fixes: http://tracker.ceph.com/issues/22950
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-02-09 16:17:27 +08:00
Jason Dillaman
57559a47f6
qa/workunits/rbd: force use of v1 clone when testing orphan
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-05 11:12:00 -05:00
Jason Dillaman
bba63db1b4
Merge pull request #20170 from trociny/wip-22803
...
qa/workunits/rbd: remove "trash purge --threshold" test
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-02-02 08:32:36 -05:00
Mykola Golub
be60490f15
qa/workunits/rbd: remove "trash purge --threshold" test
...
It is difficult to make it work reliably in different environments.
Fixes: http://tracker.ceph.com/issues/22803
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-02-01 17:36:21 +02:00
songweibin
c3e119d0d3
librbd: fix deep copy a child-image
...
* tweak create a cloned image when the source image is
a clone (or at least one of its snapshots is a clone).
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-02-01 08:17:19 +08:00
Jason Dillaman
6253490445
Merge pull request #19996 from Songweibin/wip-rbd-deep-cp
...
rbd: add deep cp CLI method
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-01-25 21:59:31 -05:00
songweibin
0551029242
rbd: add deep cp CLI method
...
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-01-24 09:04:33 +08:00
Theofilos Mouratidis
b9e4aa94b7
rbd trash: replace cli delay option, add rbd trash purge command
...
Replaced the delay argument for the trash move
command with a string acceptable by /bin/date, e.g.:
$ rbd trash move --pool foo --image bar --expires-in "2 weeks"
Added a "rbd trash purge" command that deletes any expired
image from the trash, has also a command to alter the current
expiration date with the "--older-than" argument which accepts
again a valid argument for /bin/date, e.g.:
$rbd trash purge mypool --older-than "2017-08-20"
There is also the "threshold" argument which tries to remove the
oldest trashed images (by deferment end time) until the pool space
is freed up to a percentage point, e.g.:
$ rbd trash purge mypool --threshold 0.9
If mypool uses 1GB it will try to remove trashed images until the
pool usage becomes equal to or lower than 900MB.
Signed-off-by: Theofilos Mouratidis <t.mour@cern.ch>
2018-01-23 11:41:54 +01:00
Mykola Golub
fcaffe7e01
qa/workunits/rbd: pool create may fail for small cluster
...
ceph osd pool create test 100
Error ERANGE: pg_num 100 size 3 would mean 648 total pgs, which exceeds max 600 (mon_max_pg_per_osd 200 * num_in_osds 3)
Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
2017-10-01 16:36:17 +02:00
xie xingguo
1ea448ac75
common/types: make numbers a bit nicer when displaying space usage
...
Was:
----------------------------------------------------------------------------
GLOBAL:
SIZE AVAIL RAW USED %RAW USED
30911M 27050M 3861M 12.49
POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
rbd 0 101216k 1.10 8913M 1178
cephfs_data_a 1 0 0 8913M 0
cephfs_metadata_a 2 892 0 8913M 21
----------------------------------------------------------------------------
Now:
----------------------------------------------------------------------------
GLOBAL:
SIZE AVAIL RAW USED %RAW USED
30.2G 26.4G 3.77G 12.50
POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
rbd 0 99.2M 1.10 8.70G 1180
cephfs_data_a 1 0 0 8.70G 0
cephfs_metadata_a 2 892 0 8.70G 21
----------------------------------------------------------------------------
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-22 12:33:10 +08:00
Jason Dillaman
c2b451e8cb
qa: fix RBD-related POOL_APP_NOT_ENABLED health warnings
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-03 09:50:41 -04:00
Jason Dillaman
fa90be842e
test: enable pool applications for new pools
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-19 13:13:01 -04:00
Mykola Golub
8c2631c6f7
Merge pull request #14846 from dillaman/wip-rbd-cli
...
qa/workunits/rbd: increased trash deferment period
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-04-30 09:59:52 +03:00
Jason Dillaman
b51db2655b
qa/workunits/rbd: increased trash deferment period
...
Teuthology would periodically fail due to a delay >10 seconds
between moving the item to the trash and checking its status.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-04-27 15:27:50 -04:00
Mykola Golub
40de8f1183
rbd: import needs to sanity check auto-generated image name
...
Fixes: http://tracker.ceph.com/issues/19128
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-04-24 20:29:36 +02:00
Mykola Golub
9a80faa546
Merge pull request #14460 from dillaman/wip-qa-rbd-cli
...
qa/workunits: corrected issues with RBD cli test
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-04-12 15:44:25 +03:00
Jason Dillaman
15e5b8e3dc
qa/workunits: corrected issues with RBD cli test
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-04-11 11:18:29 -04:00
Ricardo Dias
b844f58481
qa/workunits/rbd: cli testing of rbd trash commands
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2017-04-11 12:09:41 +01:00
Ning Yao
5b486d9628
test: add test for rbd import,import-diff,copy with sparse-size option
...
Signed-off-by: Ning Yao <yaoning@unitedstack.com>
2017-04-04 03:18:52 +00:00
Dongsheng Yang
064b23df85
qa: rbd: rename the copy.sh to generic.sh
...
The copy.sh is not only testing the rbd copy, but also
others such as rbd ls, rbd remove. Then rename it to generic.sh
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-23 11:10:59 +08:00