Commit Graph

59609 Commits

Author SHA1 Message Date
Kefu Chai
36b7f28873 Merge pull request #11731 from kylinstorage/wip-avoid-unnecessary-verify
FileStore: Only verify split when it has been really done and done correctly

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-04 10:50:58 +08:00
Josh Durgin
b75f0a9900 OSDMonitor: remove duplicate jewel/kraken flag warning
Since 6244755a70 and
12e508313d, the original check added in
ae0d6eb1c0 (perhaps by a bad
rebase/merge?)  is duplicated and doubles the warning messages.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-11-03 15:37:58 -07:00
Willem Jan Withagen
c1e4b2e429 test/common/test_bloom_filter.cc: Fix a mismatch for the random_seed parameter
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2016-11-03 22:59:36 +01:00
Sage Weil
85aa6fa411 mon/OSDMonitor: require 'sortbitwise' before 'require_jewel_osds'
This forces users upgrading past jewel to first set
'sortbitwise', which in turn means that post-jewel OSDs
do not need to support nibblewise sort.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-03 16:55:53 -04:00
Sage Weil
dfb350e489 osd: do not boot unless SORTBITWISE and REQUIRE_JEWEL flags are set
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-03 16:51:16 -04:00
Sage Weil
ab0b6dffed Merge pull request #11554 from mslovy/wip-fix-fiemap
os/FileStore: fix fiemap issue in xfs when #extents > 1364 

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-03 13:19:37 -05:00
Ning Yao
fb119ac40e test: add test for fiemap xfs issue when #extents > 1364
Signed-off-by: Ning Yao <yaoning@unitedstack.com>
2016-11-04 02:16:06 +08:00
Ning Yao
1a1c126d80 FileStore:: fix fiemap issue in xfs when #extents > 1364
Signed-off-by: Ning Yao <yaoning@unitedstack.com>
2016-11-04 02:15:58 +08:00
Sage Weil
3941f630d0 os/kstore: fix collection_list end bound off-by-one
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-03 14:14:33 -04:00
Sage Weil
a115062fa5 os/bluestore: fix collection_list end bound off-by-one
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-03 14:14:23 -04:00
Sage Weil
592a4753b2 ceph_test_objectstore: test collection_list end bound
Ensure that it is not included in the result!

Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-03 14:14:07 -04:00
Kefu Chai
6478a3dd1d Merge pull request #11617 from umullan/brokenlinks
doc: Fixing the broken hyperlinks by pointing to correct documentation.

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-04 01:03:10 +08:00
Mykola Golub
c1f374ef6c librbd: snap_get_limit compatibility check
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-11-03 18:36:04 +02:00
Sage Weil
1014850996 Merge pull request #10707 from SUSE/wip-fix-suse-usermod
rpm: Remove trailing whitespace in usermod command (SUSE)

Reviewed-by: Nathan Cutler <ncutler@suse.com>
2016-11-03 11:29:02 -05:00
Orit Wasserman
40ba752410 Merge pull request #11494 from aclamk/wip-rgw-compression
[RGW] Wip rgw compression
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-11-03 17:25:02 +01:00
Jianpeng Ma
ac898e61cb osd/ReplicatedBackend: let MOSDRepOP record the correctly largest_data_off_in_data_bl.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-11-03 12:08:25 -04:00
Jianpeng Ma
2b0ea15b56 os/ObjectStore: fix bug about calc largest_data_off_in_data_bl.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-11-03 12:08:25 -04:00
Jianpeng Ma
a72a1c2d26 os/ObjectStore: remove the legacy tbl support completely.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-11-03 12:08:25 -04:00
Sage Weil
6d6d4b3243 os/bluestore: fix build error
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-03 11:10:14 -04:00
Matt Benjamin
2e2ca3b620 Merge pull request #11768 from linuxbox2/xio-build-2
xio: fix build
2016-11-03 11:07:17 -04:00
Sage Weil
bb879215fa Merge pull request #11769 from liewegas/wip-option-name
kv/RocksDBStore: rename option

Reviewed-by: Mark Nelson <mnelson@redhat.com>
2016-11-03 10:05:35 -05:00
Sage Weil
e1c6152e0f kv/RocksDBStore: rename option
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-03 11:02:00 -04:00
Sage Weil
9c6a84e810 Merge pull request #11767 from ceph/wip-cmake
cmake: pass CMAKE_BUILD_TYPE down to rocksdb

Reviewed-by: Bassam Tabbara <bassam.tabbara@quantum.com>
2016-11-03 10:00:48 -05:00
Matt Benjamin
c5aa43d3a6 xio: build fixes (some unittest targets need XIO_LIBRARY)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-11-03 10:51:40 -04:00
Igor Fedotov
8e1e51a8cb Merge pull request #11748 from liewegas/wip-bluestore-split
os/bluestore: fix _split_collections race with osr_reap

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2016-11-03 17:50:45 +03:00
Matt Benjamin
2ac2ef350c xio: build fixes (XioMessenger lacks features argument)
Applies the constructor signature change to the uses in
xio_client and xio_server test programs.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-11-03 10:49:44 -04:00
Marov Aleksey
7b10c6c3a1 xio: compile fix removing undeclared 'features'
This fix was proposed on ceph-devel and acked by Sage Weil.
The corresponding change in in the later print is obvious
from context.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-11-03 10:49:25 -04:00
Sage Weil
d4209863b7 os/bluestore: fix _split_collections race with osr_reap
The SharedBlobSet may not yet be empty at split time because previous
transactions may not have been reaped, leaving some Blobs still alive
even after the cache refs are cleared.  Drop them explicitly here (they
will go away shortly).

Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-03 10:33:23 -04:00
Sage Weil
ccfc644f80 Merge pull request #9444 from Adirl/dout_prefix
xio: provide dout_prefix for XioConnection

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-11-03 09:21:27 -05:00
Kefu Chai
0b5fcc0797 cmake: pass CMAKE_BUILD_TYPE down to rocksdb
so rocksdb share the same ${CMAKE_BUILD_TYPE} with ceph

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-11-03 22:18:12 +08:00
Mykola Golub
9933e0df1f Merge pull request #11704 from dillaman/wip-17752
librbd: do not create empty object map object on image creation

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-11-03 15:59:49 +02:00
Sage Weil
1184a03f1b Merge pull request #11696 from tanghaodong25/rocksdb-breakdown-wip
kv/rocksdb: enable rocksdb write path breakdown

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-03 08:51:48 -05:00
Sage Weil
b0b8c5a9bf Merge pull request #11752 from stiopaa1/mds_mdsrank_addConstToMemFunc
mds/MDSRank: add const to member functions
2016-11-03 08:48:37 -05:00
Sage Weil
13dbff2de9 Merge pull request #11761 from xiexingguo/xxg-wip-fix-envmirror-cleanup
os/bluestore: fixes and cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-03 08:43:15 -05:00
Matt Benjamin
47a2749f2f Merge pull request #11762 from atheism/doc-rgw-s3-javaapi
doc: rgw: fix a typo in S3 java api example
2016-11-03 09:31:56 -04:00
Mykola Golub
5577ada030 librbd: proper check for get_data_pool compatibility
Fixes: http://tracker.ceph.com/issues/17791
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-11-03 15:27:14 +02:00
Mykola Golub
2012b4dfc6 rbd-nbd: disallow mapping images >2TB in size
Fixes: http://tracker.ceph.com/issues/17219
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-11-03 14:50:47 +02:00
Weibing Zhang
654112000e doc: rgw: fix a typo in S3 java api example
ObjectSummary.getSize() should be objectSummary.getSize()

Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
2016-11-03 18:23:02 +08:00
Orit Wasserman
f216268083 Merge pull request #11753 from yehudasa/wip-17790
rgw: support for x-robots-tag header
Reviewed-by: Orit wasserman <owasserm@redhat.com>
2016-11-03 11:07:24 +01:00
Uday Mullangi
7c7395c1cc doc: Fixing the broken hyperlinks by pointing to correct documentation.
Signed-off-by: umullangi@walmartlabs.com
2016-11-03 14:55:12 +05:30
xie xingguo
a47e20aeae os/bluestore: fix improper call of shutdown() to mempool_thread
Because below here we haven't called mempool_thread.init() yet,
and call to mempool_thread.shutdown() will therefore raise an assert instead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-11-03 16:57:33 +08:00
xie xingguo
d129a2868a os/bluestore: drop safe check against g_conf
We are using g_conf unconditionly everywhere...

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-11-03 14:44:42 +08:00
xie xingguo
69b8e4d55a os/bluestore: drop redundant boundary check
As we have done the sanity check ahead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-11-03 14:18:24 +08:00
xie xingguo
88ca5b113d os/bluestore: fix "rm -rf" cmd
The original cmd won't do the tidy-up work completedly.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-11-03 14:14:49 +08:00
Venky Shankar
05653b7c51 librbd: batch ObjectMap updations upon trim
Shrinking a clone which has snapshots and does not share
majority of objects with its parent (i.e., there are less
objects to be copied up) involves huge number of object
map updates -- two (pre, post) per object. This results
in lots of requests to be send to OSDs especially when
trimming a gigantus image. This situation can be optimized
by sending batch ObjectMap updates for an object range
thereby significantly cutting down OSD traffic resulting
in faster trim times.

Fixes: http://tracker.ceph.com/issues/17356
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2016-11-03 08:53:55 +05:30
Joao Eduardo Luis
f0e29abe4c tools: monmaptool: support monmap features
Adds three new options:

  --feature-list     will list monmap features, as well as available
                     features.
  --feature-set      sets a feature on the monmap
  --feature-unset    unsets a feature on the monmap

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2016-11-02 23:50:12 +00:00
Joao Eduardo Luis
acf4b8604c test/mon: few more cases for mon_feature_t
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2016-11-02 23:50:12 +00:00
Joao Eduardo Luis
dcd70789f6 mon: Monitor: mon debug cli via admin socket
Purpose: allow a dev to test certain portions of the monitors on-the-fly
that would otherwise be nearly impossible without requiring shutting
them off.

Description:

  Currently we are adding support to debug monitors on-the-fly via the
  ceph tool cli, via the admin socket.

  An initial attempt was made to make this interface available via
  over-the-network ceph cli, but that would require a quorum to exist,
  or significant changes to be made to the handling of commands to allow
  this interface to be an exception to the rule.

  Therefore, this interface will live on the admin sockets for the time
  being; potentially forever, because the jury is still out on whether
  there's added value making this available via any other medium that's
  not the admin socket.

  The work means to test the newly added monmap features. This new
  interface will allow one to set, unset and list supported features.

  This will make it easier to implement functional tests for the
  features themselves, for quorum features that are expected to be set
  on-quorum, as well as to test upgrade paths from version A to version
  B.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2016-11-02 23:50:12 +00:00
Joao Eduardo Luis
5435aca15b mon: MonMap: move functions from header to source file
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2016-11-02 23:50:12 +00:00
Joao Eduardo Luis
cd6ff52e75 mon: MonMap: add a new test instance
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2016-11-02 23:50:12 +00:00