Gu Zhongyan
b79107d53a
test/pybind/test_rados.py: expand test_xattrs/test_obj_xattrs
...
to cover attribute with empty value case.
Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
2018-02-05 12:14:42 +08:00
Gu Zhongyan
015736d484
librados: invalid free() in rados_getxattrs_next()
...
Invalid free() can cause corruption when getting an object
attribute with empty value.
Check the validity of the pointer before free(). Also move
the free() call at the start of rados_getxattrs_next() to
avoid memory leak.
Fixes: http://tracker.ceph.com/issues/22042
Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
2018-02-05 12:06:12 +08:00
yuelongguang
417720f2b4
libradosstriper: fix the function declaration of rados_striper_trunc
...
change the type of first parameter from rados_ioctx_t to rados_striper_t
Signed-off-by: yuelongguang <yuelongguang@gmail.com>
2018-02-05 11:33:25 +08:00
xie xingguo
585ba6f941
pybind/mgr/balancer: be more specific on execute() error
...
i.e.:
Was:
~# ceph balancer execute upmap
Now:
~# ceph balancer execute upmap
Error EPERM: min_compat_client jewel < luminous, which is required for pg-upmap.
Try 'ceph osd set-require-min-compat-client luminous' before using the new interface
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2018-02-05 11:18:54 +08:00
Kefu Chai
164ed9399e
Merge pull request #20270 from ivancich/wip-fix-bad-dmclock-sim-change
...
osd,dmclock: fix dmclock test simulator change
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-02-05 11:05:35 +08:00
Kefu Chai
b813b13306
Merge pull request #20258 from tchaikov/wip-balancer-cleanup
...
mgr/balancer: replace magic value of -1 for DEFAULT_CHOOSE_ARGS
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
2018-02-05 10:01:11 +08:00
Kefu Chai
155c8c6ee1
Merge pull request #20230 from ifed01/wip-ifed-store-test-improve
...
test/store_test: update Many4KWritesTest* test cases to finalize with…
Reviewed-by: Sage Weil <sage@redhat.com>
2018-02-05 09:59:39 +08:00
Kefu Chai
72997da4a1
Merge pull request #20221 from fangyuxiangGL/max
...
osd/ReplicatedBackend: 'osd_deep_scrub_keys' doesn't work
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-02-05 09:57:59 +08:00
Kefu Chai
764814cc81
Merge pull request #20217 from rzarzynski/wip-osd-legacy-conf-for-perf
...
osd: avoid the config's get_val() overhead on the read path.
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-02-05 09:54:55 +08:00
Kefu Chai
72bfe3ae40
Merge pull request #20169 from liewegas/wip-22668-revert
...
os/bluestore: disable on_applied sync_complete
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2018-02-05 09:41:00 +08:00
Yan Jun
3887c47003
osd: use defined osd_required features for messenger policy
...
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
2018-02-04 23:16:58 +08:00
Orit Wasserman
1223baf76b
rgw: bucket resharding should not update bucket ACL or user stats
...
bucket link op resets bucket ACL using rgw_link_bucket instead
Fixes: http://tracker.ceph.com/issues/22124
Fixes: http://tracker.ceph.com/issues/22742
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2018-02-04 16:02:58 +02:00
Shengjing Zhu
24fe1cae63
pybind/mgr/dashboard: fix duplicated slash in html href
...
The url_prefix val in html templates is expected not containing '/'
in the end. Otherwise the href will be rendered as '//static/', which
causes browser treating it as http://static/ .
Fixes: http://tracker.ceph.com/issues/22851
Signed-off-by: Shengjing Zhu <zhsj@umcloud.com>
2018-02-04 18:47:44 +08:00
Mykola Golub
355e8796f7
test/pybind/rbd: skip test_deep_copy_clone if layering not enabled
...
(otherwise it will fail on protect snap)
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-02-04 10:13:18 +02:00
Xie Xingguo
42c73a87d6
Merge pull request #20184 from shun-s/wip-add-osdmap-epoch-show
...
osd/OSDMap: add osdmap epoch info when printing info summary
Reviewed-by: John Spray <john.spray@redhat.com>
2018-02-04 10:08:06 +08:00
Xie Xingguo
18bf4c5551
Merge pull request #20225 from xiexingguo/wip-balancer-pool-options
...
mgr/balancer: more pool-specific enhancements
Reviewed-by: Sage Weil <sage@redhat.com>
2018-02-04 10:06:16 +08:00
Xie Xingguo
6b58809ecf
Merge pull request #20224 from xiexingguo/wip-still-mgr-fixes
...
pybind/mgr/balancer: remove optimization plan properly
Reviewed-by: Sage Weil <sage@redhat.com>
2018-02-04 10:05:34 +08:00
Xie Xingguo
940188797a
Merge pull request #20278 from xiexingguo/wip-null-ws-check
...
pybind/mgr/balancer: fix sanity check against empty weight-set
Reviewed-by: Sage Weil <sage@redhat.com>
2018-02-04 10:03:19 +08:00
Patrick Donnelly
9a843c518a
ptl-tool: open githubmap with utf-8 code
...
This resolves a decode error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 8: ordinal not in range(128)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-03 13:38:37 -08:00
Patrick Donnelly
8711d79133
Merge PR #20261 into master
...
* refs/pull/20261/head:
doc: Fix path in ceph-fuse.rst
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-03 12:23:30 -08:00
Kefu Chai
acf0b68c22
mgr/mgr_module: do not offer empty default value for choose_args
...
as it should be always available. this also silence a pep8 warning.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-04 01:15:56 +08:00
Kefu Chai
a4d79b5789
mgr/balancer: introduce CRUSHMap.DEFAULT_CHOOSE_ARGS and use it
...
avoid using '-1' as a magic variable.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-04 01:15:56 +08:00
Sage Weil
314b65e439
test/objectstore/run_seed_to_range.sh: objects
...
We need some initial objects for this to work.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-03 09:22:51 -06:00
Sage Weil
490c9bb31a
test/objectstore/run_seed_to.sh: make output readable
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-03 09:21:53 -06:00
Sage Weil
29a8306dd4
ceph_test_filestore_idempotent_sequence: fix clone check
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-03 09:21:28 -06:00
Sage Weil
db3004e1f4
ceph_test_filestore_idempotent_sequence: fix do_coll_create
...
The old code made no sense whatsoever!
- create one colletion, not a zillion
- inform the model in the parent class
Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-03 09:21:09 -06:00
Sage Weil
543de52c54
ceph_test_filestore_idempotent_sequence: fix gap in ops
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-03 09:20:21 -06:00
Sage Weil
1ce551dc08
ceph_test_filestore_idempotent_sequence: start poolid at 2
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-03 09:19:58 -06:00
Sage Weil
eeeaa14ae5
test/objectstore/FilestoreDiff: write to stdout
...
This keeps our output separate from the filestore log, which we send to
a file so that the terminal output is readable.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-03 09:19:34 -06:00
xie xingguo
f10696e7e1
pybind/mgr/balancer: fix sanity check against empty weight-set
...
There are paths get_compat_weight_set_weights() will return a
empty dict, not None.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2018-02-03 22:05:02 +08:00
J. Eric Ivancich
18b963cf03
Revert change from commit 8c5fea68cb
...
that introduced a compilation error that was not noticed since the
dmclock support/testing simulators are not built by ceph.
Also, changes below the src/dmclock tree should be made in the dmclock
library and then pulled into ceph.
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
2018-02-02 14:56:36 -05:00
Jason Dillaman
3ac57a7eb7
Merge pull request #19711 from trociny/wip-20762
...
rbd: unified way to map images using different drivers
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2018-02-02 13:56:13 -05:00
Sage Weil
cd013ed417
mon/OSDMonitor: ignore and/or remove pgs that shouldn't exist
...
The update_creating_pgs() change is there mainly for clusters that already
have an invalid pg in the map; going forward they hopefully shouldn't
appear!
Fixes: https://tracker.ceph.com/issues/22847
Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-02 12:25:00 -06:00
Sage Weil
5aadca16f0
mon/OSDMonitor: reject force-create-pg on pgids that shouldn't exist
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-02 12:19:37 -06:00
Matt Benjamin
dcdb7aba28
Merge pull request #19902 from linuxbox2/wip-rgw-mploc
...
rgw: return valid Location element, CompleteMultipartUpload
2018-02-02 11:37:01 -05:00
Jianpeng Ma
46c5eaf69e
osd/ReplicatedBackend: only do once encode log_entries for multi MOSDRepOp
...
Encode log_entries is the same work for multi MOSDRepOp and encode is
heavy load.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2018-02-03 00:35:15 +08:00
Jason Dillaman
deeeaebfa4
Merge pull request #20199 from Songweibin/wip-group-cleanup
...
rbd: group misc cleanup and update rbd man page
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-02-02 10:25:50 -05:00
Matt Benjamin
6a09ad15c6
Merge pull request #20002 from malc0lm/fix-copypart
...
rgw: fix 'copy part' without 'x-amz-copy-source-range'
2018-02-02 09:35:14 -05:00
Alfredo Deza
00b14177bd
ceph-volume tests.functional add simple xenial filestore dmcrypt plain support
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-02 09:11:09 -05:00
Alfredo Deza
0b2f869ccb
ceph-volume tests.functional add simple xenial filestore dmcrypt luks support
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-02 09:10:56 -05:00
Alfredo Deza
0174f9e164
ceph-volume tests.functional add simple xenial bluestore dmcrypt plain support
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-02 09:10:36 -05:00
Alfredo Deza
4c26162002
ceph-volume tests.functional add simple centos7 filestore dmcrypt plain support
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-02 09:10:12 -05:00
Alfredo Deza
a911d7c6a9
ceph-volume tests.functional add simple centos7 filestore dmcrypt luks support
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-02 09:09:57 -05:00
Alfredo Deza
8e0213ab05
ceph-volume tests.functional add simple centos7 bluestore dmcrypt plain support
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-02 09:09:41 -05:00
Alfredo Deza
76151c461b
ceph-volume tests.functional add simple centos7 bluestore dmcrypt luks support
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-02 09:09:21 -05:00
Alfredo Deza
d6e24022e8
ceph-volume tests.functional add simple bluestore dmcrypt luks support
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-02 09:08:23 -05:00
Alfredo Deza
0b2075759e
doc/ceph-volume lvm prepare fully supports encryption now
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-02 08:36:45 -05:00
Alfredo Deza
e0d3bb8225
doc/ceph-volume scan update for encryption support
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-02 08:36:02 -05:00
Jason Dillaman
f0850a99a6
Merge pull request #20222 from trociny/wip-deep-copy-default-format
...
librbd: by default use new format for deep copy destination
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-02-02 08:32:52 -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