Commit Graph

60540 Commits

Author SHA1 Message Date
Casey Bodley
6869cf1ca4 doc: add docs for rgw compression
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-11-30 16:26:36 -05:00
Casey Bodley
c40b60ba8c Merge pull request #12230 from yehudasa/wip-18078
rgw-admin: new commands to control placement

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-11-30 12:21:10 -05:00
Yehuda Sadeh
ead132ae84 rgw_admin: commands to manage placement targets
Fixes: http://tracker.ceph.com/issues/18078

added the following commands:

 radosgw-admin zone placement add
 radosgw-admin zone placement modify
 radosgw-admin zone placement rm
 radosgw-admin zone placement list

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-11-30 08:34:26 -08:00
Yehuda Sadeh
a91c7b5cc6 rgw-admin: add commands to manage zonegroup placement fields
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-11-30 08:34:26 -08:00
Haomai Wang
ea019fba8f Merge pull request #12236 from gongchuang/gc-wip-1130
msg/async/rdma: fixup memory free

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-11-30 23:35:07 +08:00
Casey Bodley
b3e2719abd Merge pull request #12138 from oritwas/wip-rgw-doc-upgrade-region-pool
rgw: add documentation for upgrading with rgw_region_root_pool

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-11-30 09:50:45 -05:00
John Spray
c891971d51 Merge pull request #12061 from guihecheng/my-fix
cephfs: fix missing ll_get for ll_walk

Reviewed-by: John Spray <john.spray@redhat.com>
2016-11-30 13:36:37 +00:00
gongchuang
45fc18683e msg/async/rdma: fixup memory free
Signed-off-by: gongchuang <gong.chuang@zte.com.cn>
2016-11-30 16:06:56 +08:00
Kefu Chai
63b42dd3ee Merge pull request #12235 from tchaikov/wip-osd_stat_t-decode
osd/osd_types: fix the osd_stat_t::decode()

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-11-30 15:51:56 +08:00
Kefu Chai
433efe0c4d osd/osd_types: fix the osd_stat_t::decode()
should decode the deprecated num_hb_out as vector<int> instead of uint32_t.

it's a regression introduced by 85f22ec

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-11-30 15:05:50 +08:00
Kefu Chai
bc27d93348 Merge pull request #12194 from tchaikov/wip-unit.cc
test,cmake: turn unit.h into unit.cc to speed up compilation

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-11-30 10:01:00 +08:00
Gui Hecheng
ad846d10d5 cephfs: fix missing ll_get for ll_walk
Fixs: http://tracker.ceph.com/issues/18086

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
2016-11-30 10:00:08 +08:00
Josh Durgin
e76d6ef4ec Merge pull request #12178 from liupan1111/wip-fix-bug-hb-out
osd: replace hb_out and hb_in with a single hb_peers

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-29 14:26:04 -08:00
Yehuda Sadeh
12162d654c rgw: use set for zonegroup placement target tags
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-11-29 14:05:27 -08:00
Jason Dillaman
a1c6017a7a Merge pull request #12220 from liewegas/wip-coverity
librbd/ImageCtx: no need for virtual dtor

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-11-29 15:47:36 -05:00
Sage Weil
8f2ccff3e5 Merge pull request #12219 from zealoussnow/wip-1130
osdc: pass a string reference type to "osdmap->lookup_pg_pool_name"

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-29 15:14:25 -05:00
Sage Weil
b44032f335 Merge pull request #12166 from liewegas/wip-osdmap-encoding
osd: condition OSDMap encoding on features

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-11-29 15:10:04 -05:00
Mark Nelson
dd5845c5c1 Merge pull request #12202 from liewegas/wip-bluestore-coverity
os/bluestore: misc coverity fixes/cleanups
2016-11-29 13:44:55 -06:00
Matt Benjamin
27c1462db7 Merge pull request #12047 from rzarzynski/wip-rgw-17931
rgw: add support for the prefix parameter in account listing of Swift API
2016-11-29 14:27:09 -05:00
Yehuda Sadeh
515c14c051 Merge pull request #11671 from linuxbox2/rgw_file-17663
rgw_file:  apply missed base64 try-catch

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-11-29 10:42:12 -08:00
Matt Benjamin
750d8cf7de Merge pull request #11751 from yehudasa/wip-17788
rgw: extract host name from host:port string
2016-11-29 13:41:36 -05:00
Samuel Just
2a233bda45 Merge pull request #12217 from dzafman/wip-tests-off
Turn off tests again due to Jenkins failures

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-11-29 10:13:54 -08:00
Mark Nelson
b67df1ebba Merge pull request #12204 from liewegas/wip-bluestore-17824
os/bluestore/KernelDevice: fix race in aio_thread vs aio_wait
2016-11-29 11:20:31 -06:00
Sage Weil
b42dfca0b1 Merge pull request #12130 from liupan1111/wip-osd-hearteat
osd: remove redudant call of heartbeat_check

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-11-29 12:13:19 -05:00
Sage Weil
d5596026e9 Merge pull request #12169 from liewegas/wip-rados-bench-hints
rados: add hints to rados bench

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-29 12:11:53 -05:00
Leo Zhang
b660630f5b osdc: pass a string reference type to "osdmap->lookup_pg_pool_name"
Signed-off-by: Leo Zhang <nguzcf@gmail.com>
2016-11-30 00:32:29 +08:00
David Zafman
982af4af58 test: Turn off test-erasure-eio.sh due to Jenkins failures
Signed-off-by: David Zafman <dzafman@redhat.com>
2016-11-29 08:04:19 -08:00
David Zafman
a405e44212 test: Turn off osd-scrub-repair.sh due to Jenkins failures
Signed-off-by: David Zafman <dzafman@redhat.com>
2016-11-29 08:02:50 -08:00
Kefu Chai
bfa66be2b0 Merge pull request #11764 from bassamtabbara/wip-embedded
cmake: Support for embedding Ceph Daemons

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-29 19:53:45 +08:00
John Spray
4bb05b9871 Merge pull request #12097 from ceph/wip-17837
src/mds: fix MDSMap upgrade decoding

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-11-29 11:50:09 +00:00
Kefu Chai
6a155a8418 Merge pull request #12090 from wjwithagen/wip-wjw-do_freebsd.sh
FreeBSD: do_freebsd.sh

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-29 19:45:07 +08:00
Pan Liu
85f22ec827 osd: replace hb_out and hb_in with a single hb_peers
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2016-11-29 17:39:51 +08:00
Loic Dachary
e69430c464 Merge pull request #12200 from ddiss/tracker18049_ceph_disk_trigger_flock_timeout
systemd/ceph-disk: reduce ceph-disk flock contention

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-29 09:08:49 +01:00
Loic Dachary
d5d7e3665f Merge pull request #12180 from tchaikov/wip-silence-get_timeout_delays
tests: disable the echo when running get_timeout_delays()

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-11-29 09:06:43 +01:00
Bassam Tabbara
d447a80815 embedded: Add RADOS classes to embedded cephd library
RADOS classes can now be statically compiled and added to
the embedded cephd library.

The RADOS ClassHandler now has an option to skip calling dlclose
just like PluginRegistry.

All RADOS classes where changed to use a CLS_INIT macro that
will either use __cls_init or classname_cls_init. this enables
the static compiling of all RADOS classes in a single library. Also
global method definitions where moved to inside cls_init.

Also added a few aconfig defines including WITH_EMBEDDED, WITH_CEPHFS,
WITH_RBD, and WITH_KVS. Note that WITH_RBD was not defined before
and the ceph-dencoder was broken when it was turned on.

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
2016-11-28 23:48:02 -08:00
Bassam Tabbara
9e8519cdd6 embedded: Add librbd and librados to embedded ceph
This commit add librados, librbd to the embedded ceph static library. This is needed to support daemons built with libcephd that want to run mon commands, create rbd volumes, snapshots etc.

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
2016-11-28 23:48:02 -08:00
Bassam Tabbara
0664759127 embedded: Support for running MON and OSD from libcephd
Added supported for running MON and OSD daemon code almost
untouched directly from libcephd.

Also added two API functions for generating an FSID and secret
key that can be used to bootstrap a new cluster.

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
2016-11-28 23:48:02 -08:00
Bassam Tabbara
b5d57c97c7 embedded: add compression and EC plugins to libcephd
Compression and erasure coding plugins are now statically compiled
into libcephd. A new method is added to load them into the
respective registry.

The static libraries are only built when WITH_EMBEDDED is enabled
and existing plugins are unaffected.

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
2016-11-28 23:48:02 -08:00
Bassam Tabbara
c6067f48ec embedded: Add a skeleton libcephd library
libcephd is a library that contains ceph daemon code
that can be statically linked in other applications.

Added MergeStaticLibraries.cmake that can merge static libraries
to form a bigger one. This approach avoids the need to mess with
STATIC libraries all over the code base.

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
2016-11-28 23:48:02 -08:00
Sage Weil
d368069ebb librbd/ImageCtx: no need for virtual dtor
CID 1396232 (#1 of 1): Non-virtual destructor (VIRTUAL_DTOR)
1. nonvirtual_dtor: Class librbd::<unnamed>::SafeTimerSingleton has a destructor and a pointer to it is upcast to class SafeTimer which doesn't have a virtual destructor.

The SafeTimerSingleton is not polymorphic; no need for
a virtual dtor.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-28 22:47:53 -05:00
Kefu Chai
79b08ef2af Merge pull request #12170 from dzafman/wip-ec-error-tests
test: test-erasure-eio.sh fix recovery testing and enable it

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-29 11:47:35 +08:00
Yehuda Sadeh
7d0f977607 Merge pull request #10672 from ceph/wip-rgw-http-getcmd
RGWHTTPArgs::get_str() - return argument string that was set.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-11-28 15:06:12 -08:00
Yehuda Sadeh
77b7e30a95 Merge pull request #10546 from cbodley/wip-rgw-log-trim-lease
rgw multisite: use a rados lock to coordinate data log trimming

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-11-28 15:04:15 -08:00
Sage Weil
6ecb44f0c6 Merge pull request #12114 from liewegas/wip-bluestore-failops
os/bluestore: mark ops that can't tolerate ENOENT

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-11-28 17:06:19 -05:00
Gregory Farnum
0e60bf85b8 Merge pull request #12022 from jcsp/wip-17853
mds: more deterministic timing on frag split/join

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2016-11-28 16:28:21 -05:00
Sage Weil
6c7e628c6b Merge pull request #12094 from 363921219/cleanup_C_CompleteSplits
osd: cleanup C_CompleteSplits::finish()

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-11-28 16:21:52 -05:00
Sage Weil
03e87016bb Merge pull request #12148 from tchaikov/wip-scan-build-fixes
scan build fixes

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-28 16:21:08 -05:00
Sage Weil
ccf6da4fae Merge pull request #12099 from wjin/fix_filestore_perfcounter
os/filestore: fix journal logger

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-11-28 16:18:56 -05:00
Sage Weil
6ffaa54c9b os/bluestore/KernelDevice: fix race in aio_thread vs aio_wait
The caller is free to destroy the aio vector contents
once aio_wait completes.  This is exactly what
BlueFS::_fsync() does.  Delay the num_running dec
(which is what aio_wait waits for) until after we've
examined the aios.

Fixes: http://tracker.ceph.com/issues/17824
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-28 15:56:29 -05:00
Sage Weil
4a60eadd89 os/Transaction: add missing break
CID 1395137 (#1 of 1): Missing break in switch (MISSING_BREAK)
unterminated_case: The case for value ObjectStore::Transaction::OP_TRY_RENAME is not terminated by a 'break' statement.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-28 14:29:14 -05:00