Commit Graph

34918 Commits

Author SHA1 Message Date
John Wilkins
118ae72609 doc: Created a new User Management doc to replace authentication.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-08-13 20:27:00 -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
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
Sage Weil
afa176e7fe Merge pull request #2239 from ceph/wip-8912
librbd: fix error path cleanup for opening an image

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-12 12:41:31 -07:00
Sage Weil
41e44611ad doc/changelog: v0.67.10 notes
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-12 12:36:47 -07:00
Sage Weil
ce7cd60a44 Merge branch 'wip-8860'
Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-12 12:22:31 -07:00
Alfredo Deza
44ed1885fb init-ceph: conditionally update after argparsing
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-08-12 12:22:13 -07:00
Sage Weil
350b512406 doc/release-notes: v0.67.10
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-12 11:30:48 -07:00
Sage Weil
e3e4883081 Merge remote-tracking branch 'gh/next'
Conflicts:
	PendingReleaseNotes
2014-08-12 09:35:08 -07:00
Loic Dachary
7e7afafeb3 Merge pull request #2243 from ceph/wip-log-client
common/LogClient: fix sending dup log items

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-08-12 17:08:37 +02:00
Sage Weil
057c6808be common/LogClient: fix sending dup log items
We need to skip even the most recently sent item in order to get to the
ones we haven't sent yet.

Fixes: #9080
Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-12 07:05:34 -07:00
Loic Dachary
95fbce22c5 Merge pull request #2232 from dachary/wip-9044-use-ruleset
erasure-code: ErasureCodeJerasure::create_ruleset must return a ruleset

Reviewed-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
Reviewed-by: Ma Jianpeng <jianpeng.ma@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-12 15:00:02 +02:00
Ma Jianpeng
71e827f0f2 utime: Because class Clock didn't exist,so remove the declaration in class utime_t.
Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
2014-08-12 18:16:05 +08:00
John Wilkins
78dc4df1cb doc: Replace [default] with [global].
Fixes: #8955

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-08-11 18:16:01 -07:00
John Wilkins
e5324edb35 doc: Added yum-priorities procedure to manual install.
Fixes: #8734

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-08-11 18:05:26 -07:00
John Wilkins
a01252a4bf doc: Added priority = 2 to packages.
Fixes: #8734

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-08-11 18:04:39 -07:00
Josh Durgin
3dfa72d5b9 librbd: fix error path cleanup for opening an image
If the image doesn't exist and caching is enabled, the ObjectCacher
was not being shutdown, and the ImageCtx was leaked. The IoCtx could
later be closed while the ObjectCacher was still running, resulting in
a segfault. Simply use the usual cleanup path in open_image(), which
works fine here.

Fixes: #8912
Backport: dumpling, firefly
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-08-11 16:43:07 -07:00
Sylvain Munaut
0a2b4c2554 rgw: Don't send error body when it's a HEAD request
The main 'operation' know not to send any body for HEAD requests.

However for errors, this was not the case, the formatter would be
flushed and would send the error 'message' in the body in all cases.

For the FastCGI case it doesn't seem to be an issue, it's possible
that the webserver (apache/lighttpd/...) cleans up the response
into shape.

But when using the new civetweb frontend this cause invalid HTTP.

Backport: firefly
Fixes #8539

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Sylvain Munaut <s.munaut@whatever-company.com>
2014-08-11 12:36:05 -07:00
Josh Durgin
616cb927cd Merge pull request #2214 from ceph/wip-rados-df-json
rados: fix 'rados df --format=json' field names

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-08-11 12:30:35 -07:00
Sage Weil
b0f5ba9595 rados: remove {read,write}_kb fields from rados df json output
Redundant.  Do not backport.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-11 11:53:10 -07:00
Sage Weil
5663f91b60 rados: fix {read,write}_bytes value
Fill this in with kb * 1024 instead of the ops count.

Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-11 11:53:10 -07:00
Samuel Just
c2e2fc56ea Merge pull request #2238 from ceph/wip-9057
msg/Pipe: do not wait for self in Pipe::stop_and_wait() 

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-08-11 10:25:43 -07:00
Sage Weil
8180713c10 msg/Pipe: do not wait for self in Pipe::stop_and_wait()
The fast dispatch code necessitated adding a wait for the fast dispatch
to complete when taking over sockets back in commit
2d5d3097c3.  This included mark_down()
(although I am not certain mark_down was required to fix the previous set
of races).

In any case, if the fast dispatch thread itself tries to mark down its
own connection, it will deadlock in this method waiting for itself to
return and clear reader_dispatching.  Skip this wait if we are in fact
the reader thread.  This avoids the deadlock.

Alternatively, we could change mark_down() to not use stop_and_wait(), but
I am less clear about the potential races there, so I'm opting for the
minimal (though ugly) fix.

Fixes: #9057
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-10 20:22:23 -07:00
Sage Weil
fd421b2674 mon/MonitorDBStore: add get_{keys,bytes}() accounting to Transaction
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-10 14:09:16 -07:00