Commit Graph

37024 Commits

Author SHA1 Message Date
Haomai Wang
dcecfb89fe MemStore: Return -ENODATA when collection_getattr hit nonexist attr
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-11-19 13:11:31 +08:00
Haomai Wang
7a9b75577b KeyValueStore: Fix collection_getattrs problem when zero-length attr
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-11-19 13:11:23 +08:00
Haomai Wang
877237f096 KeyValueStore: Return -ENODATA if collection_getattr is nonexist
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-11-19 11:53:12 +08:00
Haomai Wang
00b275b0ae StoreTest: Add collection_getattr(s) tests
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-11-19 11:52:52 +08:00
Haomai Wang
ffb6f78fd0 KeyValueStore: Remove assert for collection_getattr method
Merge 22b6c1a531 introduce
5dc990c1ca commit which will lookup "remove"
attr. It shouldn't exist for most of cases but KeyValueStore will crash
if attr isn't exist. It seemed that this assert isn't correct.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-11-19 11:52:33 +08:00
Sage Weil
ef2565ecf1 vstart.sh: complain less about fullish mon disks
Lots of people develop on file systems  > 70% full.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-13 16:41:34 -08:00
Sage Weil
c15391b132 Merge remote-tracking branch 'gh/next' 2014-11-13 13:26:04 -08:00
Yan, Zheng
20f99ca526 mds: don't overwrite reply's snapbl
set_trace_dist() updates reply's snapbl, don't overwrite it. For MKSNAP
request, just need to set mdr->tracei, set_trace_dist() will set reply's
snapbl.

Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-11-13 13:25:39 -08:00
Loic Dachary
4509674d79 Merge pull request #2772 from ceph/wip-init-radosgw
init-radosgw.sysv: set ulimit -n before starting daemon

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-11-13 21:58:45 +01:00
Samuel Just
4d8e90be3a Merge pull request #2920 from ceph/wip-10095
crush: fix detach_bucket

Reviewed-by: Samuel Just <sjust@redhat.com>
2014-11-13 11:08:23 -08:00
Sage Weil
6f8b96a9fe crush/CrushWrapper: fix detach_bucket
In commit 9850227d2f we changed the call that
changed the weight of all instances of item to one that explicitly
changes it in the parent bucket, but parent_id may not be valid at the
call site.  Move this into the conditional block to fix.

Fixes: #10095
Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-13 10:59:58 -08:00
Sage Weil
a46fb02381 Makefile: include 'ceph' in base target
This makes 'make base' enough to vstart.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-13 10:49:33 -08:00
Sage Weil
a820bf6f08 Merge pull request #2906 from ceph/wip-9835
osd: fix misdirected ec ops stuck in optracker (9835)

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-11-13 10:35:04 -08:00
Sage Weil
585b9065ec msg/Makefile: add new header to tarball
Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-13 10:05:53 -08:00
Sage Weil
b61d834032 Merge pull request #2909 from yuyuyu101/wip-10079
AsyncMessenger: Add select support and tests for async drivers
2014-11-13 09:12:26 -08:00
Jason Dillaman
ff01842e2f Merge pull request #2912 from dachary/wip-warning
tests: fix compilation warning

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2014-11-13 09:26:02 -05:00
Loic Dachary
7da691af28 Merge pull request #2911 from keichwa/wip-doc-rados
Wip doc rados

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-11-13 13:45:02 +01:00
Loic Dachary
d6be062be4 tests: fix compilation warning
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-13 13:03:22 +01:00
Karl Eichwalder
0ee6437856 doc: remove superfluous white spaces (for testing)
Signed-off-by: Karl Eichwalder <ke@suse.de>
2014-11-13 11:42:09 +01:00
Karl Eichwalder
ee45f48e3f doc: Fix 2 syntax errors.
Signed-off-by: Karl Eichwalder <ke@suse.de>
2014-11-13 11:17:01 +01:00
Haomai Wang
571c8577a9 AsyncMessenger: Fix select driver for add_event
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-11-13 15:36:05 +08:00
Haomai Wang
17ce4ec36e AsyncMessenger: Add tests for async drivers
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-11-13 15:35:58 +08:00
Haomai Wang
ebc8875a92 AsyncMessenger: Support select for other OS such as Windows
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-11-13 15:35:47 +08:00
Sage Weil
9e05ba086a osd/OSD: use OSDMap helper to determine if we are correct op target
Use the new helper.  This fixes our behavior for EC pools where targetting
a different shard is not correct, while for replicated pools it may be. In
the EC case, it leaves the op hanging indefinitely in the OpTracker because
the pgid exists but as a different shard.

Fixes: #9835
Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-12 17:11:10 -08:00
Sage Weil
89c0263791 osd/OSDMap: add osd_is_valid_op_target()
Helper to check whether an osd is a given op target for a pg.  This
assumes that for EC we always send ops to the primary, while for
replicated we may target any replica.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-12 17:04:35 -08:00
David Zafman
5ce09198bf ceph_objectstore_tool: Fixes to make import work again
The is_pg() call is now true even for pgs pending removal, fix broken
    finish_remove_pgs() by removing is_pg() check.
Need to add create_collection() to the initial transaction on import

Fixes: #10090

Signed-off-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2014-11-12 16:00:14 -08:00
Sage Weil
21fc9b5ff1 Merge pull request #2903 from ceph/wip-crush-tree
crush: fix tree bucket functions

Reviewed-by: Sage Weil <sage@redhat.com>
2014-11-12 13:58:14 -08:00
Sage Weil
a69b8450f6 vstart.sh: warn less
Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-12 13:35:43 -08:00
Josh Durgin
7695a61e89 Merge pull request #2892 from leseb/doc-juno-client-socket
doc: enable RBD cache and socket on OpenStack deployments

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2014-11-12 21:57:06 +01:00
Sage Weil
292be9799e Merge pull request #2902 from dachary/wip-10083-noisy-osd
qa: handle CEPH_CLI_TEST_DUP_COMMAND on ceph osd create

Reviewed-by: Sage Weil <sage@redhat.com>
2014-11-12 11:27:08 -08:00
Josh Durgin
94a10196b5 Merge remote-tracking branch 'origin/next' 2014-11-12 11:18:52 -08:00
Loic Dachary
6c80525551 qa: handle CEPH_CLI_TEST_DUP_COMMAND on ceph osd create
If CEPH_CLI_TEST_DUP_COMMAND is set when ceph osd create is called, it
will create two osd. They must be cleaned up afterwards instead of
assuming only one is going to be created.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-12 19:33:46 +01:00
Sage Weil
22b6c1a531 Merge pull request #2124 from ceph/wip-objectstore
simplify ObjectStore interface

sage-2014-11-11_08:26:01-rados-wip-sage-testing-distro-basic-multi

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2014-11-12 10:02:52 -08:00
Sage Weil
1eed56bf5d Merge pull request #2722 from ceph/wip-9598
msgr: make mark_down not block on fast dispatch

sage-2014-11-11_08:26:01-rados-wip-sage-testing-distro-basic-multi

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-11-12 10:01:50 -08:00
John Wilkins
636316a15a Merge pull request #2901 from ktdreyer/doc-spelling-grammar
doc: spelling & grammar fixes

Reviewed-by: John Wilkins <jowilkin@redhat.com>
2014-11-12 09:18:42 -08:00
Ken Dreyer
0cff9148ff doc: correct grammar in RGW SSL cert installation
The SSL certificate generation instruction was missing a preposition.
Add it.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2014-11-12 09:55:55 -07:00
Ken Dreyer
731ea68bfb doc: correct spelling of "fqdn"
The "fqdn" (fully-qualified domain name) was misspelled in a couple
places as fgdn". Use the correct spelling.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2014-11-12 09:53:43 -07:00
Jason Dillaman
d76bfc2e8e Merge pull request #2899 from jdurgin/wip-import-export-next
qa: allow small allocation diffs for exported rbds

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2014-11-12 09:26:45 -05:00
Sébastien Han
40994c918a doc: enable RBD cache and socket on OpenStack deployments
Enabling the RBD cache improves sequential IOs and the socket helps a
lot while troubleshooting. These 2 items are considered as best
practice for OpenStack deployments with Ceph.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-11-12 10:19:44 +01:00
Josh Durgin
e94d3c11ed qa: allow small allocation diffs for exported rbds
The local filesytem may behave slightly differently. This isn't
foolproof, but seems to be reliable enough on rhel7 rootfs, where
exact comparison was failing.

Fixes: #10002
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2014-11-11 18:16:04 -08:00
Josh Durgin
e5e92c7cb1 Merge pull request #2898 from ceph/wip-rbd-python-tests
librbd: Python unit tests now use unique pools and images

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2014-11-12 03:13:04 +01:00
Josh Durgin
c224014ac0 Merge pull request #2820 from ceph/wip-9854
osdc: Constrain max number of in-flight read requests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2014-11-12 03:05:28 +01:00
Loic Dachary
b0eb532796 Merge pull request #2890 from zhouyuan/fix_mailmap
Fix Yuan's mailmap

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-11-12 01:52:44 +01:00
Sage Weil
80865fea71 Merge remote-tracking branch 'gh/next' 2014-11-11 16:22:40 -08:00
Yuan Zhou
09eefac760 Fix Yuan's mailmap
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
2014-11-12 08:16:45 +08:00
Sage Weil
05a1c3f128 doc/release-notes: v0.88
Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-11 16:15:08 -08:00
Sage Weil
8e6fe680e6 Merge pull request #2897 from ceph/wip-da-revert-10b68b
Revert "osd: detect (some) misordered ondisk tmaps"

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2014-11-11 15:28:20 -08:00
Rongze Zhu
1342548888 crush: fix tree bucket functions
There are incorrect nodes' weight in tree bucket when construct tree
bucket. The tree bucket don't store item id in items array, so the tree
bucket will not work correctly. The patch fix above bugs and add a
simple test for tree bucket.

Signed-off-by: Rongze Zhu <zrzhit@gmail.com>
2014-11-11 11:18:35 -08:00
Sage Weil
e444b22173 crush/builder: replace printf with an empty dprintk macro
This mirrors mapper.c.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-11 11:16:58 -08:00
Danny Al-Gaaf
109bcd44ba Revert "osd: detect (some) misordered ondisk tmaps"
This reverts commit 10b68b2e1a.

The check for 'nextkey < last_disk_key' makes not much sense since
last_disk_key is an empty string and not set before. Comparing a
decoded string to be less than an empty string will be never true.

Since this if() isn't part of a loop last_disk_key is only set
once and there is no other consumer: revert this dead code.

Conflicts:
	src/osd/ReplicatedPG.cc
2014-11-11 19:06:12 +01:00