]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agotests: librbd: admin socket commands to flush and invalidate cache 6453/head
Mykola Golub [Tue, 3 Nov 2015 11:24:36 +0000 (13:24 +0200)]
tests: librbd: admin socket commands to flush and invalidate cache

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agolibrbd: flush and invalidate cache via admin socket
Mykola Golub [Tue, 3 Nov 2015 06:55:23 +0000 (08:55 +0200)]
librbd: flush and invalidate cache via admin socket

Fixes: #2468
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agolibrbd: perf counter for cache invalidates
Mykola Golub [Wed, 4 Nov 2015 10:18:52 +0000 (12:18 +0200)]
librbd: perf counter for cache invalidates

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #6312 from liewegas/wip-kv
Sage Weil [Mon, 9 Nov 2015 14:10:37 +0000 (09:10 -0500)]
Merge pull request #6312 from liewegas/wip-kv

kv: optimize and clean up internal key/value interface

Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoMerge pull request #6300 from XinzeChi/wip-throttle-max
Sage Weil [Mon, 9 Nov 2015 14:04:25 +0000 (09:04 -0500)]
Merge pull request #6300 from XinzeChi/wip-throttle-max

common: fix reset max in Throttle using perf reset command

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #6364 from dillaman/wip-13491
Sage Weil [Mon, 9 Nov 2015 14:03:41 +0000 (09:03 -0500)]
Merge pull request #6364 from dillaman/wip-13491

osd: fix broken balance / localized read handling

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agotracing: fix librados signed/unsigned warnings 6312/head
Sage Weil [Sun, 8 Nov 2015 14:32:44 +0000 (09:32 -0500)]
tracing: fix librados signed/unsigned warnings

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/osd: disable extra iterator validation
Piotr Dałek [Thu, 29 Oct 2015 14:16:29 +0000 (15:16 +0100)]
os/osd: disable extra iterator validation

In a number of loops using ObjectMapIterator, the iterator is validated
twice, first as an loop break condition, then during iter->next() call.
Suppress the validation in next() method in those cases for better
performance.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoos/KeyValueDB: don't call self.valid() from next() and prev()
Piotr Dałek [Mon, 19 Oct 2015 06:32:10 +0000 (08:32 +0200)]
os/KeyValueDB: don't call self.valid() from next() and prev()

In most loops using ObjectMapIteratorImpl, there is a call to valid()
followed by a call to next(), which calls valid() again. Calling
valid() alone is particularly expensive, so don't do it twice if
possible.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agomon/MonitorDBStore: use single-key LevelDB::get() method
Piotr Dałek [Fri, 23 Oct 2015 13:46:20 +0000 (15:46 +0200)]
mon/MonitorDBStore: use single-key LevelDB::get() method

Make MonitorDBStore use single-key ::get() method for some performance
increase in heavy K/V workloads.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoos/DBObjectMap: use single-key LevelDB::get method
Piotr Dałek [Fri, 23 Oct 2015 13:44:47 +0000 (15:44 +0200)]
os/DBObjectMap: use single-key LevelDB::get method

Make FileStore use single-key ::get() method for some performance
increase in k/v-heavy workloads.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agokv/LevelDBStore: simpler code for single-key fetches
Piotr Dałek [Fri, 23 Oct 2015 13:22:52 +0000 (15:22 +0200)]
kv/LevelDBStore: simpler code for single-key fetches

Often there's a need to fetch value for a specified, single key. Publish
a new method in LevelDB that takes key and prefix and puts just value at
specified address, without the need for interim keysets or resultsets.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoos/LevelDBStore: faster LevelDBTransactionImpl::set
Piotr Dałek [Tue, 20 Oct 2015 13:11:08 +0000 (15:11 +0200)]
os/LevelDBStore: faster LevelDBTransactionImpl::set

This patch builds on Sage's idea to reduce bufferlist copying on
::set() calls. Initial patch reduced LevelDB's Slice generation
time from ~57ns to ~5ns in best-case scenario (bufferlist with
single bufferptr or contiguous bufferptrs), this patch reduces
slice generation time from ~57ns to ~11ns in worst case scenario
(under assumption that entire value length is at most 128KB),
leaving old code path for extremely-bad cases.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agokv/RocksDBStore: do not Delete before Put
Sage Weil [Tue, 20 Oct 2015 12:49:57 +0000 (08:49 -0400)]
kv/RocksDBStore: do not Delete before Put

A put implicitly overwrites the previous value.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agokv/LevelDBStore: do not Delete before Put
Sage Weil [Tue, 20 Oct 2015 12:49:42 +0000 (08:49 -0400)]
kv/LevelDBStore: do not Delete before Put

A put implicitly overwrites the previous value.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd/ReplicatedPG: use bl-based setkeys/rmkeys
Sage Weil [Mon, 19 Oct 2015 18:54:06 +0000 (14:54 -0400)]
osd/ReplicatedPG: use bl-based setkeys/rmkeys

FIXME: what about the tracepoint?

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6502 from dachary/wip-13691-rados-test
Kefu Chai [Mon, 9 Nov 2015 13:53:51 +0000 (21:53 +0800)]
Merge pull request #6502 from dachary/wip-13691-rados-test

tests: fix test_rados_tools.sh rados lookup

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6403 from xinxinsh/wip-13500
Jason Dillaman [Mon, 9 Nov 2015 13:33:22 +0000 (08:33 -0500)]
Merge pull request #6403 from xinxinsh/wip-13500

optimize clone write path if object-map is enabled

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6494 from trociny/wip-13720
Jason Dillaman [Mon, 9 Nov 2015 13:20:33 +0000 (08:20 -0500)]
Merge pull request #6494 from trociny/wip-13720

librbd: start perf counters after id is initialized

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agotests: fix test_rados_tools.sh rados lookup 6502/head
Loic Dachary [Mon, 9 Nov 2015 11:57:11 +0000 (12:57 +0100)]
tests: fix test_rados_tools.sh rados lookup

http://tracker.ceph.com/issues/13691 Fixes: #13691

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #6464 from dachary/wip-13691-rados-test
Kefu Chai [Mon, 9 Nov 2015 11:31:00 +0000 (19:31 +0800)]
Merge pull request #6464 from dachary/wip-13691-rados-test

tests: concatenate test_rados_test_tool from src and qa

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6497 from ukernel/wip-13714
John Spray [Mon, 9 Nov 2015 10:34:26 +0000 (10:34 +0000)]
Merge pull request #6497 from ukernel/wip-13714

client: use null snapc to check pool permission

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoclient: use null snapc to check pool permission 6497/head
Yan, Zheng [Mon, 9 Nov 2015 03:37:02 +0000 (11:37 +0800)]
client: use null snapc to check pool permission

snap inodes' ->snaprealm can be NULL, so dereferencing it in
check_pool_perm() can cause segment fault. The pool permission
check does not write any data, so it's safe to use null snapc.

Fixes: #13714
Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agolibrbd: start perf counters after id is initialized 6494/head
Mykola Golub [Sat, 7 Nov 2015 19:49:56 +0000 (21:49 +0200)]
librbd: start perf counters after id is initialized

So the perf counters section name has non-empty id.

Fixes: #13720
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #6228 from zhouyuan/fix_rgw_delete_exipre
Yehuda Sadeh [Fri, 6 Nov 2015 22:18:49 +0000 (14:18 -0800)]
Merge pull request #6228 from zhouyuan/fix_rgw_delete_exipre

rgw: fix response of delete expired objects

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #6214 from jmunhoz/wip-bucket-request-payment
Yehuda Sadeh [Fri, 6 Nov 2015 22:16:41 +0000 (14:16 -0800)]
Merge pull request #6214 from jmunhoz/wip-bucket-request-payment

rgw: bucket request payment support

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #5969 from rzarzynski/wip-conf-md-add
Yehuda Sadeh [Fri, 6 Nov 2015 21:58:05 +0000 (13:58 -0800)]
Merge pull request #5969 from rzarzynski/wip-conf-md-add

rgw: extend rgw_extended_http_attrs to affect Swift accounts and containers as well

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #5938 from zhuangzeqiang/rgw-cerr
Yehuda Sadeh [Fri, 6 Nov 2015 21:48:43 +0000 (13:48 -0800)]
Merge pull request #5938 from zhuangzeqiang/rgw-cerr

rgw:  clarify the error message when trying to create an existed user

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #6479 from ceph/wip-systemd-rbdmap
Sage Weil [Fri, 6 Nov 2015 21:24:26 +0000 (16:24 -0500)]
Merge pull request #6479 from ceph/wip-systemd-rbdmap

rbdmap: systemd support

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6467 from fullerdj/wip-13697
Jason Dillaman [Fri, 6 Nov 2015 19:39:58 +0000 (14:39 -0500)]
Merge pull request #6467 from fullerdj/wip-13697

cls_rbd: change object_map_update to return 0 on success, add logging

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6059 from dwj192/dwj-master-tip
Yehuda Sadeh [Fri, 6 Nov 2015 19:33:40 +0000 (11:33 -0800)]
Merge pull request #6059 from dwj192/dwj-master-tip

rgw:mdlog trim add usage prompt

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #6408 from dwj192/swift-civetweb-ssl
Yehuda Sadeh [Fri, 6 Nov 2015 19:00:51 +0000 (11:00 -0800)]
Merge pull request #6408 from dwj192/swift-civetweb-ssl

rgw:swift use Civetweb ssl can not get right url

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agocls_rbd: change object_map_update to return 0 on success, add logging 6467/head
Douglas Fuller [Thu, 5 Nov 2015 00:58:12 +0000 (16:58 -0800)]
cls_rbd: change object_map_update to return 0 on success, add logging

The rbd_object_map_update class method returns the size of the data read
from the object map when no update is necessary. Change this to return 0
on success. Add error logging to differentiate error cases.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
9 years agoMerge pull request #6483 from ceph/wip-fix-doc-build
Kefu Chai [Fri, 6 Nov 2015 12:54:21 +0000 (20:54 +0800)]
Merge pull request #6483 from ceph/wip-fix-doc-build

doc/releases-notes: fix build error

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agodoc/releases-notes: fix build error 6483/head
Kefu Chai [Fri, 6 Nov 2015 12:52:21 +0000 (20:52 +0800)]
doc/releases-notes: fix build error

also change the release year of infernalis from 2014 to 2015

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agorbdmap: systemd support 6479/head
Boris Ranto [Mon, 2 Nov 2015 13:07:47 +0000 (14:07 +0100)]
rbdmap: systemd support

Fixes: #13374
Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoMerge pull request #6476 from xiexingguo/xxg-wip-13703
Kefu Chai [Fri, 6 Nov 2015 08:35:51 +0000 (16:35 +0800)]
Merge pull request #6476 from xiexingguo/xxg-wip-13703

librados: wrongly passed in argument for stat command

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoskip copyup if write is write_full 6403/head
xinxin shu [Fri, 30 Oct 2015 09:38:16 +0000 (17:38 +0800)]
skip copyup if write is write_full

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
9 years agooptimize clone write path if object-map is enabled
xinxin shu [Tue, 27 Oct 2015 03:34:25 +0000 (11:34 +0800)]
optimize clone write path if object-map is enabled

Fixes : #13500

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
9 years agoMerge pull request #5645 from xinxinsh/wip-snap-rename
Jason Dillaman [Thu, 5 Nov 2015 21:09:40 +0000 (16:09 -0500)]
Merge pull request #5645 from xinxinsh/wip-snap-rename

implement snapshot rename

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agorbdmap: Move do_map and do_unmap shell functions to rbdmap script
Boris Ranto [Fri, 30 Oct 2015 17:33:36 +0000 (18:33 +0100)]
rbdmap: Move do_map and do_unmap shell functions to rbdmap script

This patch creates rbdmap shell script that is called from init-rbdmap
init script. The patch also renames src/rbdmap configuration file to
src/etc-rbdmap so that rbdmap shell script can be installed via build
system directly. Finally, the patch accomodates these changes in spec
file and build system.

Fixes: #13374
Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoMerge pull request #5856 from runsisi/wip-misc-remove-dup-test
Jason Dillaman [Thu, 5 Nov 2015 17:25:49 +0000 (12:25 -0500)]
Merge pull request #5856 from runsisi/wip-misc-remove-dup-test

librbd: remove duplicate read_only test in librbd::async_flatten

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6339 from xinxinsh/wip-13558
Jason Dillaman [Thu, 5 Nov 2015 15:34:53 +0000 (10:34 -0500)]
Merge pull request #6339 from xinxinsh/wip-13558

librbd : fix enable objectmap feature issue

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrados: wrongly passed in argument for stat command 6476/head
xiexingguo [Thu, 5 Nov 2015 14:59:00 +0000 (22:59 +0800)]
librados: wrongly passed in argument for stat command

The first argument of io_ctx_impl->stat() requires an obj(of type object_t), but an oid(of type string) is directly passed in instead.
Fixes: #13703
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #6445 from ceph/wip-init-rbdmap
Kefu Chai [Thu, 5 Nov 2015 13:41:09 +0000 (21:41 +0800)]
Merge pull request #6445 from ceph/wip-init-rbdmap

Init rbdmap patchset.

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6468 from cxwshawn/wip-mail-fix 6386/head
Loic Dachary [Thu, 5 Nov 2015 06:35:56 +0000 (07:35 +0100)]
Merge pull request #6468 from cxwshawn/wip-mail-fix

modify member info in mailmap

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years ago[mailmap] add member info. 6468/head
Xiaowei Chen [Thu, 5 Nov 2015 01:54:54 +0000 (20:54 -0500)]
[mailmap] add member info.
Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
9 years agoMerge tag 'v9.2.0'
Sage Weil [Thu, 5 Nov 2015 00:40:17 +0000 (19:40 -0500)]
Merge tag 'v9.2.0'

v9.2.0

9 years agolibrbd : fix enable objectmap feature issue 6339/head
xinxin shu [Wed, 21 Oct 2015 11:01:21 +0000 (19:01 +0800)]
librbd : fix enable objectmap feature issue

Fixes: #13558
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
9 years agodoc/release-notes: edits from Nathan Cutler
Sage Weil [Wed, 4 Nov 2015 20:02:54 +0000 (15:02 -0500)]
doc/release-notes: edits from Nathan Cutler

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodoc/release-notes: final infernalis notes
Sage Weil [Tue, 20 Oct 2015 16:15:36 +0000 (12:15 -0400)]
doc/release-notes: final infernalis notes

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6334 from xinxinsh/wip-13533
Jason Dillaman [Wed, 4 Nov 2015 19:39:43 +0000 (14:39 -0500)]
Merge pull request #6334 from xinxinsh/wip-13533

rbd : fix clone isssue

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6465 from oritwas/wip-13596
Yehuda Sadeh [Wed, 4 Nov 2015 18:40:19 +0000 (10:40 -0800)]
Merge pull request #6465 from oritwas/wip-13596

radosgw-admin: metadata list user should return an empty list when user pool is empty

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoradosgw-admin: metadata list user should return an empty list when pool is empty 6465/head
Orit Wasserman [Wed, 4 Nov 2015 16:37:34 +0000 (17:37 +0100)]
radosgw-admin: metadata list user should return an empty list when pool is empty

Fixes: #13596
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agotests: concatenate test_rados_test_tool from src and qa 6464/head
Loic Dachary [Wed, 4 Nov 2015 17:24:15 +0000 (18:24 +0100)]
tests: concatenate test_rados_test_tool from src and qa

It is good for src/test/test_rados_tool.sh to be run by
rados/singleton/all/radostool.yaml because it contains a lot more tests
than qa/workunits/rados/test_rados_tool.sh

http://tracker.ceph.com/issues/13691 Fixes: #13691

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #6340 from joaquimrocha/rados_write_benchmark_new_options
Loic Dachary [Wed, 4 Nov 2015 17:22:26 +0000 (18:22 +0100)]
Merge pull request #6340 from joaquimrocha/rados_write_benchmark_new_options

Rados write benchmark new options

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agotest/test_rados_tool.sh: Add tests for the new bench's write options 6340/head
Joaquim Rocha [Wed, 4 Nov 2015 12:56:18 +0000 (13:56 +0100)]
test/test_rados_tool.sh: Add tests for the new bench's write options

Those are the combinations of --write-omap, --write-xattr and --write-object.

Signed-off-by: Joaquim Rocha <joaquim.rocha@cern.ch>
9 years agotools/rados/rados.cc: Add options to choose the benchmark's write destination
Joaquim Rocha [Mon, 19 Oct 2015 14:40:21 +0000 (16:40 +0200)]
tools/rados/rados.cc: Add options to choose the benchmark's write destination

Signed-off-by: Joaquim Rocha <joaquim.rocha@cern.ch>
9 years agotools/rados/rados.cc: Write to different destinations
Joaquim Rocha [Mon, 19 Oct 2015 13:31:45 +0000 (15:31 +0200)]
tools/rados/rados.cc: Write to different destinations

The write benchmark only writes the objects' contents, not the omap
nor the extended attributes, which is something also interesting to
measure depending on the cluster's configuration.

These changes add a way to specify where the contents should be
written, allowing to combine any of the destinations mentioned above.

Signed-off-by: Joaquim Rocha <joaquim.rocha@cern.ch>
9 years agoMerge pull request #6400 from ceph/wip-12997
Yehuda Sadeh [Wed, 4 Nov 2015 04:42:53 +0000 (20:42 -0800)]
Merge pull request #6400 from ceph/wip-12997

rgw: Add default quota config

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #5738 from dwj192/dwj192_bkt_index
Yehuda Sadeh [Tue, 3 Nov 2015 19:27:18 +0000 (11:27 -0800)]
Merge pull request #5738 from dwj192/dwj192_bkt_index

rgw: fix objects can not be displayed which object name does not cont…

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years ago9.2.0 v9.2.0
Jenkins Build Slave User [Tue, 3 Nov 2015 16:58:32 +0000 (16:58 +0000)]
9.2.0

9 years agoMerge pull request #6452 from dachary/wip-13664-test-ec
Loic Dachary [Tue, 3 Nov 2015 07:22:36 +0000 (08:22 +0100)]
Merge pull request #6452 from dachary/wip-13664-test-ec

tests: test/librados/test.cc must create profile

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #6410 from Vicente-Cheng/ceph-disk-list-plain-single-failure
Loic Dachary [Tue, 3 Nov 2015 07:05:19 +0000 (08:05 +0100)]
Merge pull request #6410 from Vicente-Cheng/ceph-disk-list-plain-single-failure

ceph-disk: get Nonetype when ceph-disk list with --format plain on single device.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agorbd: fix clone issue when we specify image feature 6334/head
xinxin shu [Wed, 21 Oct 2015 06:56:17 +0000 (14:56 +0800)]
rbd: fix clone issue when we specify image feature

Fixes: #13553
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
9 years agotests: test/librados/test.cc must create profile 6452/head
Loic Dachary [Mon, 2 Nov 2015 23:21:51 +0000 (00:21 +0100)]
tests: test/librados/test.cc must create profile

Now that the create_one_ec_pool function removes the testprofile each
time it is called, it must create the testprofile erasure code profile
again for the test to use.

http://tracker.ceph.com/issues/13664 Refs: #13664

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #6446 from dachary/wip-13664-test-ec
Loic Dachary [Mon, 2 Nov 2015 22:12:31 +0000 (23:12 +0100)]
Merge pull request #6446 from dachary/wip-13664-test-ec

tests: destroy testprofile before creating one

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agotests: destroy testprofile before creating one 6446/head
Loic Dachary [Mon, 2 Nov 2015 19:24:51 +0000 (20:24 +0100)]
tests: destroy testprofile before creating one

The testprofile erasure code profile is destroyed before creating a new
one so that it does not fail when another testprofile erasure code
profile already exists with different parameters.

This must be done when creating erasure coded pools with the C++
interface, in the same way it's done with the C interface.

http://tracker.ceph.com/issues/13664 Fixes: #13664

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agotests: add destroy_ec_profile{,_pp} helpers
Loic Dachary [Mon, 2 Nov 2015 19:23:52 +0000 (20:23 +0100)]
tests: add destroy_ec_profile{,_pp} helpers

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #6444 from liewegas/wip-pg-key
Samuel Just [Mon, 2 Nov 2015 16:17:19 +0000 (08:17 -0800)]
Merge pull request #6444 from liewegas/wip-pg-key

osd/PG: tolerate missing epoch key

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #6406 from xiexingguo/xxg-wip-13626
David Zafman [Mon, 2 Nov 2015 16:14:37 +0000 (08:14 -0800)]
Merge pull request #6406 from xiexingguo/xxg-wip-13626

FileJournal:_fdump wrongly returns if journal is currently unreadable.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoceph.spec.in: We no longer need redhat-lsb-core 6445/head
Boris Ranto [Fri, 23 Oct 2015 14:39:16 +0000 (16:39 +0200)]
ceph.spec.in: We no longer need redhat-lsb-core

Drop the redhat-lsb-core dependency as it is no longer necessary on
fedora/rhel.

The other two init scripts do not use redhat-lsb-core either. The
init-ceph.in conditionally requires /lib/lsb/init-functions and does not
use any of the functions defined in that file (at least not directly).
The init-radosgw file includes /etc/rc.d/init.d/functions on non-debian
platforms instead of /lib/lsb/init-functions file so it does not require
redhat-lsb-core either.

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoinit-rbdmap: Rewrite to use logger + clean-up
Boris Ranto [Fri, 23 Oct 2015 13:31:27 +0000 (15:31 +0200)]
init-rbdmap: Rewrite to use logger + clean-up

This patch rewrites the init-rbdmap init script so that it uses logger
instead of the log_* functions. The patch also fixes various smaller
bugs like:
* MAP_RV was undefined if mapping already existed
* UMNT_RV and UMAP_RV were almost always empty (if they succeeded) ->
  removed them
* use of continue instead RET_OP in various places (RET_OP was not being
  checked after the switch to logger messages)
* removed use of DESC (used only twice and only one occurrence actually
  made sense)

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoosd/PG: tolerate missing epoch key 6444/head
Sage Weil [Sat, 24 Oct 2015 23:51:15 +0000 (19:51 -0400)]
osd/PG: tolerate missing epoch key

An orphan PG may have an info attr but no epoch key.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5133 from stiopaa1/ThreadMoveCopyConstr
Kefu Chai [Mon, 2 Nov 2015 13:24:44 +0000 (21:24 +0800)]
Merge pull request #5133 from stiopaa1/ThreadMoveCopyConstr

Thread.h: disable copy constructor and assignment op

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6344 from dillaman/wip-13559-infernalis
Jason Dillaman [Sat, 31 Oct 2015 03:41:34 +0000 (23:41 -0400)]
Merge pull request #6344 from dillaman/wip-13559-infernalis

librbd: potential assertion failure during cache read

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6329 from dzafman/wip-zafman-ceph
Dan Mick [Sat, 31 Oct 2015 03:00:49 +0000 (20:00 -0700)]
Merge pull request #6329 from dzafman/wip-zafman-ceph

Wip zafman ceph

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoceph.in: Notify user that 'tell' can't be used in interactive mode 6329/head
David Zafman [Wed, 21 Oct 2015 01:10:39 +0000 (18:10 -0700)]
ceph.in: Notify user that 'tell' can't be used in interactive mode

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoMerge pull request #6435 from ceph/docs-new-url
Ken Dreyer [Fri, 30 Oct 2015 22:28:16 +0000 (16:28 -0600)]
Merge pull request #6435 from ceph/docs-new-url

updates all http://ceph.com/ to download.ceph.com

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
9 years agodoc: update rpm links to download.ceph.com 6435/head
Alfredo Deza [Fri, 30 Oct 2015 21:48:21 +0000 (17:48 -0400)]
doc: update rpm links to download.ceph.com

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agodoc: update debian links to download.ceph.com
Alfredo Deza [Fri, 30 Oct 2015 21:46:12 +0000 (17:46 -0400)]
doc: update debian links to download.ceph.com

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoMerge pull request #5783 from dzafman/wip-12738
David Zafman [Fri, 30 Oct 2015 20:14:49 +0000 (13:14 -0700)]
Merge pull request #5783 from dzafman/wip-12738

Fix scrub error handling and log output
Add set-size and remove-clone-metadata to ceph-objectstore-tool
Fix trim_object() to not crash on corrupt snapset
Add scrub clones test and add clones to ceph-objectstore-tool test

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agotest: osd-scrub-snaps.sh uses ceph-helpers.sh and added to make check 5783/head
David Zafman [Thu, 29 Oct 2015 04:34:44 +0000 (21:34 -0700)]
test: osd-scrub-snaps.sh uses ceph-helpers.sh and added to make check

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoosd: Use boost::optional instead of snap 0 for "all_clones"
David Zafman [Mon, 26 Oct 2015 18:36:43 +0000 (11:36 -0700)]
osd: Use boost::optional instead of snap 0 for "all_clones"

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoosd, test: When head missing a snapset, clones not an error
David Zafman [Mon, 26 Oct 2015 01:57:18 +0000 (18:57 -0700)]
osd, test: When head missing a snapset, clones not an error

Fix log message for this case and make into "info"

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoosd, test: Keep missing count and log number of missing clones
David Zafman [Sat, 24 Oct 2015 23:23:13 +0000 (16:23 -0700)]
osd, test: Keep missing count and log number of missing clones

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agotest: Eliminate check for bogus "obj13/head snaps empty" error
David Zafman [Tue, 20 Oct 2015 18:14:42 +0000 (11:14 -0700)]
test: Eliminate check for bogus "obj13/head snaps empty" error

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoceph-objectstore-tool: Add new remove-clone-metadata object op
David Zafman [Thu, 15 Oct 2015 03:34:28 +0000 (20:34 -0700)]
ceph-objectstore-tool: Add new remove-clone-metadata object op

Fixes: #12740
Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoosd: Fix trim_object() to not crash on corrupt snapset
David Zafman [Thu, 15 Oct 2015 03:42:48 +0000 (20:42 -0700)]
osd: Fix trim_object() to not crash on corrupt snapset

Add test case to check for trim_object() osd crash

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoceph-objectstore-tool: Improve object spec error handling
David Zafman [Wed, 14 Oct 2015 20:12:17 +0000 (13:12 -0700)]
ceph-objectstore-tool: Improve object spec error handling

Add test cases

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoceph-objectstore-tool: Add undocumented clear-snapset command for testing
David Zafman [Thu, 8 Oct 2015 00:25:44 +0000 (17:25 -0700)]
ceph-objectstore-tool: Add undocumented clear-snapset command for testing

Add test cases using new feature to corrupt SnapSet

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoceph-objectstore-tool: Add set-size command for objects
David Zafman [Thu, 15 Oct 2015 04:59:50 +0000 (21:59 -0700)]
ceph-objectstore-tool: Add set-size command for objects

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoceph-objectstore-tool: Enhanced dump command replaces dump-info
David Zafman [Thu, 15 Oct 2015 05:04:05 +0000 (22:04 -0700)]
ceph-objectstore-tool: Enhanced dump command replaces dump-info

Show object stat information from objectstore
Show SnapSet if present
Add --head for search by object name

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agotest: Add some clones to ceph-objectstore-tool test
David Zafman [Fri, 2 Oct 2015 20:39:29 +0000 (13:39 -0700)]
test: Add some clones to ceph-objectstore-tool test

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoceph-objectstore-tool: For corrupt objectstores, don't abort listing on errors
David Zafman [Fri, 2 Oct 2015 02:28:54 +0000 (19:28 -0700)]
ceph-objectstore-tool: For corrupt objectstores, don't abort listing on errors

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoceph-objectstore-tool: Improve some error messages
David Zafman [Tue, 13 Oct 2015 20:02:40 +0000 (13:02 -0700)]
ceph-objectstore-tool: Improve some error messages

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoceph-objectstore-tool: White space fixes
David Zafman [Thu, 3 Sep 2015 21:22:20 +0000 (14:22 -0700)]
ceph-objectstore-tool: White space fixes

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agotools/rados: Improve xattr import handling so future internal xattrs ignored
David Zafman [Tue, 13 Oct 2015 22:33:26 +0000 (15:33 -0700)]
tools/rados: Improve xattr import handling so future internal xattrs ignored

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agotest: Test scrubbing of snapshot problems
David Zafman [Wed, 30 Sep 2015 02:57:43 +0000 (19:57 -0700)]
test: Test scrubbing of snapshot problems

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoosd: Don't crash if OI_ATTR attribute is missing or corrupt
David Zafman [Mon, 28 Sep 2015 17:59:42 +0000 (10:59 -0700)]
osd: Don't crash if OI_ATTR attribute is missing or corrupt

Signed-off-by: David Zafman <dzafman@redhat.com>