Commit Graph

44764 Commits

Author SHA1 Message Date
Ken Dreyer
ed4cf3dcec Merge pull request #5193 from SUSE/wip-babeltrace-suse
ceph.spec.in: fix lttng/babeltrace conditionals

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-09-04 15:37:26 -06:00
Ken Dreyer
b08da2c622 Merge pull request #5796 from SUSE/wip-group-cond
ceph.spec.in: put distro conditionals around Group:

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-09-04 15:37:00 -06:00
Sage Weil
7d781f7a09 doc: 'ceph --admin-daemon ...' -> 'ceph daemon ...'
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-04 15:59:34 -04:00
Jason Dillaman
404dd16d4b tests: base gmock class support for librbd
Created mock classes to represent a few central librbd classes
and a basic gmock test fixture for future gmock-based unit tests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-09-04 15:01:38 -04:00
Jason Dillaman
e8749b2a7f librbd: support templating of ImageCtx for async state machines
This will facilitate the creation of unit test mocks to verify
non-librados actions. The templates (by default) will be flagged
as extern to avoid the translation unit bloat.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-09-04 14:59:09 -04:00
Yehuda Sadeh
b3edcadcad Merge pull request #5624 from vumrao/wip-vumrao-12714
rgw : setting max number of buckets for users via ceph.conf option

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-09-04 11:11:03 -07:00
Nathan Cutler
1c522be109 ceph.spec.in: put distro conditional around Group:
Neither RHEL and Fedora require a Group: line, so retain
only for SLE/openSUSE (and set the right value for these distros)

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-09-04 20:07:13 +02:00
Ken Dreyer
8c17e01974 Merge pull request #5798 from SUSE/wip-fix-license
ceph.spec.in: fix License line

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-09-04 11:38:12 -06:00
Jason Dillaman
0d18f9b83a librados_test_stub: add mock class for IoCtx operations
Unit tests can now use gmock to simulate responses from the OSDs
via a mocked librados library.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-09-04 13:30:45 -04:00
Yehuda Sadeh
fdb6c74147 Merge pull request #5801 from dreamhost/wip-12939-header
Fix casing of Content-Type header

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-09-04 10:21:19 -07:00
Loic Dachary
669253c3a6 Merge pull request #5811 from vumrao/wip-vumrao-12944
doc: Add pgcalc tool link in placement-groups document

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-09-04 18:58:44 +02:00
Nathan Cutler
e267128ce2 ceph.spec.in: fix lttng/babeltrace conditionals
lttng and babeltrace are build dependencies for rbd-replay-prep. Make
sure the right package names are used. Enable for SLE12, as well as
for openSUSE 13.1 and higher.

Move the BuildRequires out of the ceph-test subpackage and into the
distro-conditional dependencies section.

Make ordering of BuildRequires a little more alphabetical.

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

Signed-off-by: Nathan Cutler <ncutler@suse.com>

sqme
2015-09-04 17:57:02 +02:00
Ken Dreyer
74fc195abe Merge pull request #5791 from SUSE/wip-drop-lsb-release
ceph.spec.in: drop lsb-release dependency from ceph-common

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-09-04 09:48:17 -06:00
Radoslaw Zarzynski
b0714c3d2d rgw: don't append empty ETag HTTP header.
Fixes: #12950
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2015-09-04 15:15:06 +02:00
Sage Weil
f5553fcb4e Merge pull request #5808 from ceph/wip-simplify-logrotate
logrotate.conf: Simplify log files reopening after log rotation

Reviewed-by: Milan Broz <mbroz@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2015-09-04 09:02:24 -04:00
Vikhyat Umrao
406b1d0347 doc: Add pgcalc tool link in placement-groups document
Fixes #12944

Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
2015-09-04 17:03:57 +05:30
Kefu Chai
54494991b5 Merge pull request #5771 from ceph/wip-fix-i386-build
memstore: fix the build on i386

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-09-04 19:29:01 +08:00
Radoslaw Zarzynski
f850d058be rgw: improve debugs in RGWPutObj and RGWPutObj_ObjStore_SWIFT.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2015-09-04 12:47:58 +02:00
Loic Dachary
d362acf040 Merge pull request #5794 from dachary/wip-12933-erasure-code-dir
tests: ceph-erasure-code-corpus must test SIMD variants

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-09-04 11:23:21 +02:00
Loic Dachary
1369fc3740 Merge pull request #5804 from tchaikov/wip-fix-build-boost-1.59
mon: fix the build with boost 1.59

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-09-04 11:19:22 +02:00
Takanori Nakao
ab430f14da erasure code: shec performance optimization with decoding cache
continued from https://github.com/ceph/ceph/pull/4132

Signed-off-by: Takanori Nakao <nakao.takanori@jp.fujitsu.com>
2015-09-04 17:24:36 +09:00
Boris Ranto
58ea8bebf7 logrotate.conf: Simplify log files reopening after log rotation
SIGHUP (1) signal makes ceph services reopen its log files so we do not
need to call any init scripts magic, here.

Additionally, the old approach caused problems with rhel-based systems
since it found the service command and tried to reload ceph.service
instead of ceph.target.

This also caused problems with SELinux as processes with context
logrotate_t are not allowed to issue systemctl reload on a process.

This patch is also in sync with other logrotate postrotate scripts which
do exactly the same thing (send SIGHUP to the daemon).

Signed-off-by: Boris Ranto <branto@redhat.com>
2015-09-04 10:08:43 +02:00
Loic Dachary
f1931648b2 Merge pull request #5802 from liewegas/wip-coverity
a few coverity fixes

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-09-04 09:18:35 +02:00
Kefu Chai
3dc29de56c mon: fix the build with boost 1.59
cmd_vartype is a
boost::variant<std::string, bool, int64_t, double,
               std::vector<std::string>>, so we can not get a
int8_t from it.

Fixes: #12922
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-09-04 11:36:25 +08:00
Jason Dillaman
c0a6218da1 librados_test_stub: add reference counting to pools
This will ensure that in-flight operations can't access freed
pool memory.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-09-03 23:28:54 -04:00
Jason Dillaman
5755370468 gtest: enable use of TR1 tuples
Since the TR1 tuple is already in use within the Ceph project,
this flag needs to be enabled to avoid gmock link errors within
gtest.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-09-03 23:18:36 -04:00
Jason Dillaman
cfe8fa221b rbd: export diff needs should write chunks in-order
Use new OrderedThrottle class to ensure multiple AIO reads are
written to the export diff in-order.

Fixes: #12911
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-09-03 22:05:34 -04:00
Jason Dillaman
3fec9da435 librbd: migrate diff iterate to new OrderedThrottle implementation
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-09-03 22:05:34 -04:00
Jason Dillaman
eceadee257 Throttle: added new OrderedThrottle class
It is similar to the SimpleThrottle in usage but intercepts Context
callbacks to ensure they are completed in-order.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-09-03 22:05:33 -04:00
Sage Weil
f6f442d4da osd/ReplicatedPG: ProxyWriteOp::reqid should not be a ref
CID 1322778 (#1 of 1): Pointer to local outside scope (RETURN_LOCAL)
1. escape_local_addr: Returning, through this->reqid, the address of stack variable _reqid.
   	2. return: Returning here.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 22:01:19 -04:00
Sage Weil
15fa138251 osd/osd_types: init coll_t::removal_seq in all ctors
CID 1322784 (#1 of 1): Uninitialized scalar variable (UNINIT)
2. uninit_use_in_call: Using uninitialized value coll.removal_seq when calling coll_t. [show details]

Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 21:59:00 -04:00
Sage Weil
c3d379429e test_cls_numops: fix iterator use
CID 1322828 (#1 of 1): Wrapper object use after free (WRAPPER_ESCAPE)
28. use_after_free: Using invalidated internal representation of local it.
CID 1322827 (#1 of 1): Wrapper object use after free (WRAPPER_ESCAPE)
25. use_after_free: Using invalidated internal representation of local it.
CID 1322826 (#1 of 1): Wrapper object use after free (WRAPPER_ESCAPE)
31. use_after_free: Using invalidated internal representation of local it.
CID 1322825 (#1 of 1): Wrapper object use after free (WRAPPER_ESCAPE)
31. use_after_free: Using invalidated internal representation of local it.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 21:57:56 -04:00
Robin H. Johnson
1b9fbffdc2 Fix casing of Content-Type header
It turns out, despite the HTTP spec declaring that header field names
should be case-insensitive, some clients treat them wrongly, and
consider "Content-type" to not match "Content-Type".

CyberDuck was one of those clients, now fixed upstream in
https://trac.cyberduck.io/ticket/8999

To reduce future occurances of this bug, fix the casing of the
Content-Type header, to strictly comply with the HTTP specification (be
strict about what you send, and generous about what you receive).

Fixes: #12939
Backport: infernalis, hammer, firefly
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2015-09-04 01:18:11 +00:00
Sage Weil
2d1d2efb1b debian: package radosgw-object-expirer in radosgw deb
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 18:41:52 -04:00
Sage Weil
fbf4e6bebf ceph.spec: package new rgw files
/usr/bin/radosgw-object-expirer
   /usr/lib64/rados-classes/libcls_timeindex.so

Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 18:41:26 -04:00
Sage Weil
3ce06e185c ceph-disk: set ownership of newly mapped dm device
This needs to be ceph:ceph or else things fail in confusin ways later.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 17:10:01 -04:00
Sage Weil
0f974a3e54 ceph-disk: use async upstart job for trigger
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 17:01:21 -04:00
Sage Weil
bde6ab3222 ceph-disk: is_upstart()
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 16:27:31 -04:00
Sage Weil
b092bd0273 ceph-disk: use blkid for get_partition_{type,uuid}
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 16:18:16 -04:00
Sage Weil
d65372162b Merge pull request #5799 from liewegas/wip-cmake
cmake: fix build (newstore issues)

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2015-09-03 15:44:43 -04:00
Sage Weil
6d459c0244 CMakeLists.txt: add newstore files
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 15:27:45 -04:00
Sage Weil
86da373523 .gitignore: ignore build (usually used by cmake)
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 15:27:34 -04:00
Sage Weil
038e91b15d Merge remote-tracking branch 'gh/master' into infernalis 2015-09-03 15:15:01 -04:00
Sage Weil
64a0f0c014 rgw/Makefile.am: ship rgw_object_expirer_core.h
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 15:13:53 -04:00
Sage Weil
030b3edeac Merge pull request #5744 from ceph/wip-12909
cmake: update FUSE_INCLUDE_DIRS to match autoconf
2015-09-03 15:09:49 -04:00
Sage Weil
dffb1b0497 Merge pull request #5610 from ceph/wip-cmake
cmake: make check
2015-09-03 15:08:36 -04:00
Sage Weil
df44a57949 ceph.spec: build requires cmake
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 15:01:53 -04:00
Sage Weil
322ad808cd debian/control: build requires cmake
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 15:01:34 -04:00
Sage Weil
f69498f320 debian/control: build-requires libboost-regex-dev
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-03 14:59:37 -04:00
Loic Dachary
50bc48b141 tests: ceph-erasure-code-corpus must test SIMD variants
ceph_erasure_code.cc and ceph_erasure_code_benchmark.cc failed to load
the plugins. It went unnoticed when
660ae5bcbb was reviewed because

  * ceph_erasure_code_benchmark is not used in make check
  * qa/workunits/erasure-code/encode-decode-non-regression.sh silently
    interpreted the failure as the absence of SIMD variants

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-03 20:55:35 +02:00