Commit Graph

37192 Commits

Author SHA1 Message Date
Sage Weil
8dde6a6192 ceph_test_rados_api_tier: fix cleanup of whiteouts
Doing a normal DELETE on a whiteout returns ENOENT.  Use the IGNORE_CACHE
flag to make sure it removes the whiteout, too.

Fixes: #10052
Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-13 22:33:25 -08:00
Sage Weil
34e4d24391 osd/ReplicatedPG: allow whiteout deletion with IGNORE_CACHE flag
If the client specifies IGNORE_CACHE, allow a regular DELETE to zap a
whiteout.  Expand test case to verify this works.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-13 22:33:25 -08:00
Haomai Wang
a04bb135a4 Mailmap: add Rongze organization
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-11-14 11:42:41 +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
David Zafman
cba4ed44f2 librados: Fix operator= null ptr references
Fixes: #10082

dzafman-2014-11-13_10:42:58-rgw-wip-10082-testing-basic-multi

Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: David Zafman <dzafman@redhat.com>
2014-11-13 16:36:55 -08:00
Sage Weil
699fc054a8 msg/simple: ms_die_on_skipped_message
Assert if we skip an incoming seq.  The SimpleMessenger never does this,
but the kernel messenger does.  Hopefully useful for tracking down bugs
like #10057.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-13 13:28:06 -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
Swami Reddy
6e5bae4cfc mailmap: Dan Mick name normalization
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-11-13 20:30:14 +05:30
Swami Reddy
5fdec031e2 mailmap: Xan Peng affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-11-13 20:30:13 +05:30
Swami Reddy
e8a60ce4bf mailmap: BJ Lougee affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-11-13 20:30:13 +05:30
Swami Reddy
e8daba61f9 mailmap: Derrick Schneider affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-11-13 20:30:13 +05:30
Swami Reddy
e3865883cd mailmap: Federico Gimenez name normalization
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-11-13 20:28:50 +05:30
Loic Dachary
1cd7422a3b mon: ceph-monstore-tool must close()
Otherwise it asserts because the destructor checks for the is_open flag.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-13 15:37:48 +01: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
David Zafman
78d1e6cee2 osd: Check filter ops for pgls and pgnls
Fixes: #9439

Signed-off-by: David Zafman <dzafman@redhat.com>
2014-11-12 17:52:58 -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
Chendi.Xue
079a8d74fb Add myself to <contact@intel.com>
Signed-off-by: Chendi Xue <chendi.xue@intel.com>
2014-11-13 08:08:08 +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