Ilya Dryomov
c4888ddc1f
qa/workunits/rbd: remove set_ro.py
...
This test is incomplete and has been obsoleted by krbd_blkroset.t.
It's also not wired up, so it's not actually being run.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-10-31 13:40:16 +01:00
Jason Dillaman
27613a63d1
qa/suites/rbd: run cls tests for all dependencies
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-27 15:23:45 -04:00
Sage Weil
7740af808c
Merge pull request #18552 from liewegas/wip-mds-cluster-down
...
qa/workunits/rest/test.py: stop trying to test obsolte cluster_up/down
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-10-26 17:47:51 -05:00
Sage Weil
810a138133
qa/workunits/rest/test.py: stop trying to test obsolete 'mds *' commands
...
These were recently removed.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-26 11:22:20 -05:00
Sage Weil
c337b8739d
Merge pull request #18533 from tchaikov/wip-qa-cephtool
...
qa: do not "ceph fs get cephfs" w/o a cephfs fs
Reviewed-by: Douglas Fuller <dfuller@redhat.com>
2017-10-26 09:19:11 -05:00
Kefu Chai
3ceab4ca43
Merge pull request #16332 from badone/wip-warn-about-objects-with-too-many-omap-entries
...
osd: Warn about objects with too many omap entries
Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-10-25 19:20:00 +08:00
Kefu Chai
0f1e97238c
qa: do not "ceph fs get cephfs" w/o a cephfs fs
...
introduced by 183646c
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-10-25 19:12:39 +08:00
Patrick Donnelly
c58161f25b
Merge PR #17266 into master
...
* refs/pull/17266/head:
qa: update test_ceph_argparse to test fs cmds
qa: use fs rm_data_pool
qa: fix mdsmap lookup
qa: remove usage of mds dump
PendingReleaseNotes: add obsoleted mds commands
qa: remove use of obsolete mds commands
ceph_volume_client: remove use of obsolete mds cmd
doc: update on obsolete mds commands
cephfs: obsolete deprecated mds commands
Reviewed-by: Douglas Fuller <dfuller@redhat.com>
2017-10-24 16:37:14 -07:00
Patrick Donnelly
b897ef9445
qa: use fs rm_data_pool
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-10-24 11:51:02 -07:00
Brad Hubbard
71bf04775b
osd: Warn about objects with too many omap entries
...
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2017-10-24 17:27:57 +10:00
Jason Dillaman
918df91213
rbd: bench should flush prior to starting a test
...
For the new read-based bench tests, flushing prior to the start of the test
will result in the exclusive lock being acquired and the object map being
utilized.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-23 13:22:50 -04:00
Kefu Chai
9911e905e4
Merge pull request #16745 from Liuchang0812/object-store-repair
...
common, tool: update kvstore-tool to repair key/value database
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-10-18 00:24:39 +08:00
Jason Dillaman
ecec3217b6
Merge pull request #17134 from PCzhangPC/metaexin
...
rbd: export/import image-meta when we export/import an image
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-10-16 21:00:08 -04:00
Chang Liu
8d5d9c6a62
test: new test case for ceph-kvstore-tool
...
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2017-10-16 22:52:10 +08:00
Jason Dillaman
22816ed3f4
qa/workunits/rbd: fixed variable name for resync image id
...
Fixes: http://tracker.ceph.com/issues/21663
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-03 13:25:33 -04:00
Patrick Donnelly
183646c919
qa: remove use of obsolete mds commands
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-10-01 17:22:36 -07: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
PCzhangPC
2f0b233a31
rbd:export/import image-meta when we export/import an image
...
when we do exporting/importing an image, we should export or import the image-meta of this image at the same time
Signed-off-by: PCzhangPC <pengcheng.zhang@easystack.cn>
2017-09-29 13:30:01 +08:00
Jason Dillaman
9aa5dfb8ec
rbd-mirror: sync image metadata when transfering remote image
...
Fixes: http://tracker.ceph.com/issues/21535
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-09-28 15:22:08 -04:00
Sage Weil
07fe4fd5b5
Merge pull request #17528 from liewegas/wip-mgr-localpool
...
pybind/mgr/localpool: module to automagically create localized pools
Reviewed-by: John Spray <john.spray@redhat.com>
2017-09-25 12:30:05 -05:00
Sage Weil
6383fa5b30
qa/workunits/mgr/test_localpool: simple test for localpool mode
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-25 12:34:53 -04:00
Sage Weil
e0beb1e02a
Merge pull request #17848 from liewegas/wip-ruleset-errors
...
mon/OSDMonitor: error out if setting ruleset-* ec profile property
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2017-09-24 21:15:42 -05:00
Sage Weil
6376d75eda
mon/OSDMonitor: error out if setting ruleset-* ec profile property
...
We change ruleset -> crush back in dc7a2aaf7a
.
If someone tries to use the old property, error out early, instead of
silently not doing the thing they thought they told us to do.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-24 11:25:01 -04:00
xie xingguo
b60d3498e2
osd/PrimaryLogPG: prepare_transaction - fix EDQUOT vs ENOSPC
...
We now set full flag if a pool is currently running out of space and
set both full and full_no_quota flags if it is running out of quota.
Therefore the full_no_quota flag should be instead used to uniquely
identify whether we are running out of quota or not.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-09-20 08:49:42 +08:00
xie xingguo
5dd3458eec
qa: fix pool-quota related tests
...
https://github.com/ceph/ceph/pull/17371 introduces support of
per-pool space-full flag, which turns out to set both
full and full_no_quota flags now if a pool is currently running out
of quota.
Actually this test is fragile as long as we keep appending new flags
at pool granularity, but let's not bother with that complexity now.
Fixes: http://tracker.ceph.com/issues/21409
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-09-16 13:50:18 +08:00
Mykola Golub
0bafa7e8d4
Merge pull request #17559 from dillaman/wip-21181
...
qa/workunits/rbd: relax greps to support upgrade formatting change
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-09-09 11:23:57 +03:00
Tamilarasi Muthamizhan
594b736228
Merge pull request #17536 from ceph/wip-cd-rbd-pool
...
qa/tests: fix rbd pool creation for systemd tests
2017-09-07 15:13:32 -07:00
Sage Weil
1006b62fe6
Merge pull request #17322 from liewegas/wip-post-luminous-mon
...
mon: remove pre-luminous compat cruft (2 of many)
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2017-09-07 13:47:43 -05:00
Sage Weil
e715533feb
qa/workunits/*: require-osd-release mimic, not luminous
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-07 09:18:56 -04:00
Jason Dillaman
273c84578b
qa/workunits/rbd: relax greps to support upgrade formatting change
...
Fixes: http://tracker.ceph.com/issues/21181
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-09-07 08:56:16 -04:00
Jason Dillaman
b0f1545d3b
Merge pull request #16998 from trociny/wip-20860
...
rbd-mirror: update asok hook name on image rename
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-09-07 08:34:42 -04:00
Vasu Kulkarni
49f95b3d8b
create the rbd pool right after install
...
rbd pool should exist for many rbd tests to work properly, create
the pool right after install is successful.
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2017-09-06 18:07:54 -07:00
Sage Weil
e21e63cb88
qa/workunits/cephtool/test.sh: drop 'pg set_full_ratio'
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:06 -04:00
Sage Weil
1ae70df392
Merge pull request #17329 from xiexingguo/wip-21162
...
mon/OSDMonitor: make 'osd crush rule rename' idempotent
Reviewed-by: Sage Weil <sage@redhat.com>
2017-08-29 15:58:21 -05:00
Yuri Weinstein
f4c4a9d90c
Merge pull request #17125 from xiexingguo/wip-add-bucket-with-loc
...
mon/OSDMonitor: add location option for "crush add-bucket" command
Reviewed-by: Sage Weil <sage@redhat.com>
2017-08-29 09:12:43 -07:00
Mykola Golub
9ddb5da337
rbd-mirror: update asok hook name on image rename
...
Fixes: http://tracker.ceph.com/issues/20860
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-08-29 08:30:20 +02:00
xie xingguo
cd2191c3f1
mon/OSDMonitor: make 'osd crush rule rename' idempotent
...
Fixes: http://tracker.ceph.com/issues/21162
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-29 08:29:13 +08:00
Kefu Chai
30b5b4627c
Merge pull request #16494 from asomers/bin_bash
...
misc: Fix bash path in shebangs
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-08-27 10:14:14 +08:00
Sage Weil
d930a4e062
Merge pull request #17029 from xiexingguo/wip-crush-rule-rename
...
mon: "ceph osd crush rule rename" support
Reviewed-by: Sage Weil <sage@redhat.com>
2017-08-25 10:21:38 -05: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
xie xingguo
ac36b471a3
mon/OSDMonitor: add location option for "crush add-bucket" command
...
So we can combine "crush add-bucket" with "crush move" command,
and hence avoid making two separate changes to the osdmap,
and hence slow down map-epoch generation.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-22 10:39:03 +08:00
Xie Xingguo
89d28a176c
Merge pull request #16955 from xiexingguo/wip-app-ls
...
mon/OSDMonitor: "osd pool application get" support
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-08-19 17:49:43 +08:00
Mykola Golub
c4c7075029
qa/workunits/rbd: test data pool is mirrored correctly
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-08-17 10:07:12 +02:00
xie xingguo
7c67f95201
crush, mon: "ceph osd crush rule ls-by-class" support
...
This command returns all crush rules that are currently
referencing the device class specified by user.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-17 13:34:36 +08:00
xie xingguo
46586b2288
mon/OSDMonitor: "osd pool application ls" support
...
It would be a pain if we have to call 'ceph osd dump --format=json-pretty'
to find out these each time...
Demo output:
(1) ceph osd pool application get
{
"cephfs_data_b": {
"cephfs": {}
},
"cephfs_metadata_a": {
"cephfs": {}
},
"test_pool": {
"rbd": {
"test": "me"
}
}
}
(2) ceph osd pool application get test_pool
{
"rbd": {
"test": "me"
}
}
(3) ceph osd pool application get test_pool rbd
{
"test": "me"
}
(4) ceph osd pool application get test_pool rbd test
me
Fixes: http://tracker.ceph.com/issues/20976
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-16 09:41:11 +08:00
xie xingguo
a5075ed253
mon: "ceph osd crush rule rename" support
...
User may specify a rule with the same name of the pool that it serves.
Since a pool can be renamed, so does the rule.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-15 17:01:26 +08:00
Sage Weil
9c42597f09
qa/workunits/mon/crush_ops.sh: test weight sets vs device classes
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-11 09:40:11 -04:00
Yuri Weinstein
c1b87c71e3
Merge pull request #16892 from xiexingguo/wip-clean-pg-temp
...
mon/OSDMonitor: fix 'osd pg temp' unable to cleanup pg-temp
Reviewed-by: Sage Weil <sage@redhat.com>
2017-08-09 16:34:38 -07:00
Mykola Golub
6a575136a7
qa/workunits/rbd: use command line option to specify watcher asok
...
The previous method to get the watcher admin socket was fragile
and had started to fail after the recent changes to vstart ceph.conf.
Fixes: http://tracker.ceph.com/issues/20954
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-08-09 09:03:00 +02:00
xie xingguo
71cef3cb74
mon/OSDMonitor: fix 'osd pg temp' unable to cleanup pg-temp
...
This is not very elegant way but should work..
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-08 17:33:35 +08:00