Commit Graph

34940 Commits

Author SHA1 Message Date
Loic Dachary
cc3b5ada19 mailmap: Abhishek Lekshmanan affiliation
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-08-17 10:43:14 +02:00
Loic Dachary
039591472a mailmap: Loic Dachary affiliation
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-08-16 11:06:59 +02:00
Loic Dachary
cb4c564933 Merge pull request #2213 from dachary/wip-9025-chunk-remapping
erasure-code: chunk remapping

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-08-15 12:43:03 +02:00
Loic Dachary
5c2d2320c0 erasure-code: remap chunks if not sequential
If the remap vector is not empty, use it to figure out the sequence of
data chunks.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-08-15 01:07:22 +02:00
Loic Dachary
164cfe8591 erasure-code: parse function for the mapping parameter
Each D letter is a data chunk. For instance:

    _DDD_DDD

is going to parse into:

   [ 1, 2, 3, 5, 6, 7 ]

the 0 and 4 positions are not used by chunks and do not show in the
mapping. Implement ErasureCode::parse to support a reasonable default
for the mapping parameter.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-08-15 01:07:22 +02:00
Loic Dachary
298da45c5c erasure-code: ErasureCodeInterface::get_chunk_mapping()
Add support for erasure code plugins that do not sequentially map the
chunks encoded to the corresponding index. This is mostly transparent to
the caller, except when it comes to retrieving the data chunks when
reading. For this purpose there needs to be a remapping function so the
caller has a way to figure out which chunks actually contain the data
and reorder them.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-08-15 01:07:21 +02:00
Sage Weil
8fb472995e Merge remote-tracking branch 'gh/next' 2014-08-14 16:02:22 -07:00
Sage Weil
435c6d6c4d Merge pull request #2235 from kevincox/wireshark
doc: Add documentation about Wireshark dissector.

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-14 13:50:04 -07:00
Kevin Cox
46d8c97e72 doc: Add documentation about Wireshark dissector.
Signed-Off-By: Kevin Cox <kevincox@kevincox.ca>
2014-08-14 16:42:56 -04:00
Yehuda Sadeh
6a555434ee rgw: fix compilation
RGWRadosPutObj couldn't refer to the ceph context.

Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2014-08-14 13:35:12 -07:00
Sage Weil
cec40dae17 qa/workunits/cephtool: verify setmaxosd doesn't let you clobber osds
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-14 13:18:07 -07:00
Anand Bhat
a1c3afb60a OSDMonitor: Do not allow OSD removal using setmaxosd
Description: Currently setmaxosd command allows removal of OSDs by providing
a number less than current max OSD number. This causes abrupt removal of
OSDs causing data loss as well as kernel panic when kernel RBDs are involved.
Fix is to avoid removal of OSDs if any of the OSDs in the range between
current max OSD number and new max OSD number is part of the cluster.

Fixes: #8865

Signed-off-by: Anand Bhat <anand.bhat@sandisk.com>
2014-08-14 12:58:50 -07:00
Sage Weil
a8cabfa664 Merge pull request #2257 from ceph/wip-8784
rgw: call throttle_data() even if renew_state() failed

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-14 11:27:13 -07:00
Sage Weil
8393fdea40 Merge pull request #2251 from ceph/wip-9102
ceph-disk: linter cleanup

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-14 08:36:29 -07:00
Sage Weil
321d4defd4 Merge pull request #2255 from ceph/wip-9062
msg/PipeConnection: make methods behave on 'anon' connection

Reviewed-by: John Spray <john.spray@redhat.com>
2014-08-14 06:50:07 -07:00
John Spray
f10a1384ee Merge remote-tracking branch 'origin/next' 2014-08-14 14:44:06 +01:00
John Spray
d0331a9602 Merge pull request #2254 from ceph/wip-8725
mds: fix MDSMap encoding to be backward-compatible

Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: John Spray <john.spray@redhat.com>
2014-08-14 14:29:40 +01:00
Sage Weil
ac70490d06 doc: update kernel recommendations (avoid 3.15!)
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-14 06:09:50 -07:00
Sage Weil
0a49db8e6f msg/PipeConnection: make methods behave on 'anon' connection
The monitor does a create_anon_connection() to create a pseudo Connection
object for forwarded messages.  If we try to call mark_down or similar
on one of these we should silently ignore the operation, not crash.

If we try to send a message, still crash (explicitly assert); the caller
should probably know better.

Fixes: #9062
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-13 17:52:25 -07:00
Sage Weil
d74d3f1cd6 mds/MDSMap: fix incompat version for encoding
Back in 8f7900a09c we added the new fields
before the 'extended' section, which made the encoding incompatible.
Instead, add them at the end--old clients don't care whether the enabled
flag is set or what the 'fs name' is.

Fixes: #8725
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-13 15:05:05 -07:00
Sage Weil
369c6392c5 mds/MDSMap: drop trailing else in favor of early return
This keeps the old-version special cases in one place and make it obvious
what the current/forward-looking path is.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-13 15:03:03 -07:00
Samuel Just
0f6956b3f4 Merge remote-tracking branch 'upstream/next' 2014-08-13 14:11:12 -07:00
Samuel Just
e74ad5f8b6 Merge pull request #2252 from ceph/wip-9087
test/system/systest_runnable.cc: debugging on start and end

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-13 14:10:45 -07:00
Sage Weil
473f4bd395 Merge remote-tracking branch 'gh/next' 2014-08-13 14:10:31 -07:00
Samuel Just
b2c1fa8609 test/system/systest_runnable.cc: debugging on start and end
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-08-13 14:08:27 -07:00
Alfredo Deza
d74ed9d53f ceph-disk: linter cleanup
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-08-13 17:00:33 -04:00
Sage Weil
239401db7b mon: fix divide by zero when pg_num adjusted and no osds
Fixes: #9052
Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-13 13:31:16 -07:00
Sage Weil
c5687b1310 mon: fix potential divide by zero on can_mark_{down,out}
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-13 13:31:16 -07:00
Sage Weil
f81d2b0eaa mon: fix divide by zero when pg_num adjusted and no osds
Fixes: #9101
Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-13 13:15:36 -07:00
Sage Weil
8a647f7d40 mon: fix potential divide by zero on can_mark_{down,out}
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-13 13:15:19 -07:00
Sage Weil
b3fd96121f Merge pull request #2236 from ceph/wip-9055
ceph_test_rados_api_tier: fix cache pool cleanup during test

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-08-13 12:54:40 -07:00
Sage Weil
14f73e037a Merge pull request #2222 from ceph/wip-9029
mds: Make min/max UID configurable for who is allowed to create a snapsh...

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-13 12:40:58 -07:00
Wido den Hollander
5ed9f4eeae mds: Revert from mds_mksnap_ setting to mds_snap_ settings 2014-08-13 21:07:59 +02:00
Samuel Just
561208af4b Merge pull request #2249 from ceph/wip-9096
osd: fix require_same_peer_instance from fast_dispatch

Reviewed-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
2014-08-13 10:48:32 -07:00
Sage Weil
5be56ff86d osd/ReplicatedPG: only do agent mode calculations for positive values
After a split we can get negative values here.  Only do the arithmetic if
we have a valid (positive) value that won't through the floating point
unit for a loop.

Fixes: #9082
Tested-by: Karan Singh <karan.singh@csc.fi>
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-13 10:34:53 -07:00
Sage Weil
7b3714ce7a osd: fix some line wrapping
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-13 09:38:07 -07:00
Sage Weil
df945a900a osd: fix require_same_peer_instance from fast_dispatch
The mark-down of old peers needs to take the session_dispatch_lock in order
to safely clear the Session ref cycle.  However, for fast dispatch callers,
that lock is already held.  Pass a flag down from the callers indicating
whether we need to take the additional lock.

Fixes: #9096
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-13 08:30:25 -07:00
Sage Weil
3d7e2b357a osd: inline require_osd_up_peer
There is only one caller.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-13 08:20:42 -07:00
Sage Weil
0479db8c2b Merge pull request #2233 from majianpeng/fix1
os/chain_xattr: Remove all old xattr entry when overwrite the xattr.

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-12 21:22:25 -07:00
Sage Weil
3da1c711ef Merge pull request #2230 from ceph/wip-fsx-flatten
test_librbd_fsx: also flatten as part of randomize_parent_overlap

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-12 21:17:12 -07:00
Sage Weil
3bd1b33122 Merge pull request #2234 from kevincox/net-docs
doc: Initial network docs.

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-12 21:14:10 -07:00
Sage Weil
b06d1b0a60 Merge pull request #2237 from ceph/wip-8560
mon: instrument paxos

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-08-12 21:06:16 -07:00
Sage Weil
b09b8563d3 mon/Paxos: add perfcounters for most paxos operations
I'm focusing primarily on the ones that result in IO here.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-12 21:05:40 -07:00
Sage Weil
128aaa509b Merge pull request #2242 from majianpeng/fix4
utime: Because class Clock didn't exist,so remove the declaration in class utime_t

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-12 21:01:09 -07:00
Samuel Just
ea90d9f46b Revert "ReplicatedPG: do not pass cop into C_Copyfrom"
The ref was introduced in 589b639af7
and is actually necessary to keep the buffers around.

This reverts commit 300b5e8ecb.
2014-08-12 16:34:30 -07:00
Samuel Just
300b5e8ecb ReplicatedPG: do not pass cop into C_Copyfrom
We do not know when the objecter will finally let go of this Context.  Thus, we
cannot know whether it will happen before the flush, at which point the
object_context held by the cop must have been released.

Also, we simply don't need it, process_copy_chunk alrady works in terms of the
tid!

Fixes: #8894
Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-08-12 16:21:00 -07:00
Sage Weil
bb121e416d Merge pull request #2246 from ceph/wip-9064
ReplicatedPG::maybe_handle_cache: do not skip promote for write_ordered

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-12 15:50:59 -07:00
Samuel Just
24aeca9c43 ReplicatedPG::maybe_handle_cache: do not skip promote for write_ordered
We cannot redirect a RW ordered read.

Fixes: #9064
Introduced: 0ed3adc1e0
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-08-12 15:25:03 -07:00
Sage Weil
7bd67fa1ae Merge pull request #2245 from dachary/wip-9085-isa-link
erasure-code: isa plugin must link with ErasureCode.cc

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-12 14:37:28 -07:00
Loic Dachary
984f6148cc erasure-code: isa plugin must link with ErasureCode.cc
Otherwise it will not get the methods it needs. A test is added to check
the plugin loads as expected, from the command line. The test is not run
if the isa plugin is not found, which happens on platforms that are not
supported.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-08-12 23:07:50 +02:00