]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoqa/workunits/fs/misc: Add a workunit for ACL 2514/head
Yan, Zheng [Thu, 18 Sep 2014 04:04:29 +0000 (12:04 +0800)]
qa/workunits/fs/misc: Add a workunit for ACL

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #2503 from ceph/wip-xattr-fix
Yan, Zheng [Thu, 18 Sep 2014 02:55:43 +0000 (10:55 +0800)]
Merge pull request #2503 from ceph/wip-xattr-fix

Wip xattr fix

10 years agoMerge remote-tracking branch 'origin/giant'
Josh Durgin [Wed, 17 Sep 2014 19:23:17 +0000 (12:23 -0700)]
Merge remote-tracking branch 'origin/giant'

10 years agoMerge pull request #2498 from ceph/wip-objecter-cancel
John Spray [Wed, 17 Sep 2014 18:07:22 +0000 (19:07 +0100)]
Merge pull request #2498 from ceph/wip-objecter-cancel

osdc/Objecter: cancel timeout before clearing op->session

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #2513 from ceph/wip-decode-dump
Gregory Farnum [Wed, 17 Sep 2014 17:15:03 +0000 (10:15 -0700)]
Merge pull request #2513 from ceph/wip-decode-dump

msg: dump messages we can' decode at a low devel level

Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agomsg: hexdump bad messages at debug level 1 (not 30) 2513/head
Sage Weil [Wed, 17 Sep 2014 16:53:36 +0000 (09:53 -0700)]
msg: hexdump bad messages at debug level 1 (not 30)

These are rare, and when they do happen, we want to see them in the
logs.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomsg: hexdump messages we can't decode at configurable debug level
Sage Weil [Wed, 17 Sep 2014 16:52:54 +0000 (09:52 -0700)]
msg: hexdump messages we can't decode at configurable debug level

We had this hard-coded to 30.  Make it tunable.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2512 from dachary/wip-9490-crushtool-num-rep
John Spray [Wed, 17 Sep 2014 12:59:33 +0000 (13:59 +0100)]
Merge pull request #2512 from dachary/wip-9490-crushtool-num-rep

Revert "crushtool: safeguard for missing --num-rep when --test"

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoRevert "crushtool: safeguard for missing --num-rep when --test" 2512/head
Loic Dachary [Wed, 17 Sep 2014 12:56:10 +0000 (14:56 +0200)]
Revert "crushtool: safeguard for missing --num-rep when --test"

This reverts commit 10b8966c8da38f8ae5ac7dbb2e16a5e45e502ba3.

10 years agoMerge pull request #2496 from ceph/wip-9189
John Spray [Wed, 17 Sep 2014 12:47:27 +0000 (13:47 +0100)]
Merge pull request #2496 from ceph/wip-9189

#9375 and #9189 - add client metadata and improve health messages

Reviewed-by: Greg Farnum greg@inktank.com
10 years agomds: use new Session::human_name in health msgs 2496/head
John Spray [Wed, 10 Sep 2014 22:28:52 +0000 (23:28 +0100)]
mds: use new Session::human_name in health msgs

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: implement const SessionMap::get_session
John Spray [Wed, 10 Sep 2014 22:28:30 +0000 (23:28 +0100)]
mds: implement const SessionMap::get_session

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: generate friendly name for client sessions
John Spray [Wed, 10 Sep 2014 13:44:36 +0000 (14:44 +0100)]
mds: generate friendly name for client sessions

...from the client metadata, for use in health messages.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoceph_fuse: include mount point in client metadata
John Spray [Tue, 9 Sep 2014 16:12:02 +0000 (17:12 +0100)]
ceph_fuse: include mount point in client metadata

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoclient: send metadata in session open
John Spray [Mon, 8 Sep 2014 22:44:23 +0000 (23:44 +0100)]
client: send metadata in session open

Populated with hostname and entity_id by
default, with interface for outer layers
like ceph_fuse, libcephfs to inject their
own metadata.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoceph_fuse: refactor init to make mount_point accessible
John Spray [Mon, 8 Sep 2014 22:43:20 +0000 (23:43 +0100)]
ceph_fuse: refactor init to make mount_point accessible

...so that we can read out the mount point between init
and start() in order to feed it to Client before it connects
to the MDS.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: include client metadata in `session ls`
John Spray [Tue, 9 Sep 2014 15:43:15 +0000 (16:43 +0100)]
mds: include client metadata in `session ls`

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: store client metadata on Session
John Spray [Mon, 8 Sep 2014 22:40:34 +0000 (23:40 +0100)]
mds: store client metadata on Session

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomessages: add cephfs client metadata to MClientSession
John Spray [Mon, 8 Sep 2014 22:35:38 +0000 (23:35 +0100)]
messages: add cephfs client metadata to MClientSession

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: collapse numerous client warnings into one
John Spray [Mon, 8 Sep 2014 15:05:17 +0000 (16:05 +0100)]
mds: collapse numerous client warnings into one

...to avoid sending O(N_clients) sized beacons.

Fixes: #9375
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #2508 from dachary/wip-9490-crushtool-num-rep
Loic Dachary [Wed, 17 Sep 2014 07:06:44 +0000 (09:06 +0200)]
Merge pull request #2508 from dachary/wip-9490-crushtool-num-rep

crushtool: safeguard for missing --num-rep when --test

Reviewed-by: Johnu George <johnugeorge109@gmail.com>
10 years agoclient: request xattrs if xattr_version is 0 2503/head
Yan, Zheng [Tue, 16 Sep 2014 06:40:13 +0000 (14:40 +0800)]
client: request xattrs if xattr_version is 0

Following sequence of events can happen.
 - Client releases an inode, queues cap release message.
 - A 'lookup' reply brings the same inode back, but the reply
   doesn't contain xattrs because MDS didn't receive the cap release
   message and thought client already has up-to-data xattrs.

The fix is force sending a getattr request to MDS if xattrs_version is 0.
The getattr mask is set to CEPH_STAT_CAP_XATTR, so MDS knows client does
not have xattr.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: return xattrs when client explictly requests xattrs
Yan, Zheng [Tue, 16 Sep 2014 06:33:41 +0000 (14:33 +0800)]
mds: return xattrs when client explictly requests xattrs

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #2507 from ceph/wip-9435
Gregory Farnum [Wed, 17 Sep 2014 00:37:26 +0000 (17:37 -0700)]
Merge pull request #2507 from ceph/wip-9435

#9435 - enforce rules for using EC/tiered pools with CephFS

Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agomon: forbid tier changes when in use by FS 2507/head
John Spray [Tue, 16 Sep 2014 09:49:15 +0000 (10:49 +0100)]
mon: forbid tier changes when in use by FS

* Removing tiers from a base pool in use by CephFS is forbidden.
* Using CephFS pools as tiers is forbidden.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomon: prevent cache pools being used CephFS
John Spray [Mon, 15 Sep 2014 19:47:18 +0000 (20:47 +0100)]
mon: prevent cache pools being used CephFS

Fixes two things:
 * EC pools are now permissible if they have a cache overlay
 * Pools are not permissible if they are a cache tier.

Fixes: #9435
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agocrushtool: safeguard for missing --num-rep when --test 2508/head
Loic Dachary [Tue, 16 Sep 2014 18:29:12 +0000 (20:29 +0200)]
crushtool: safeguard for missing --num-rep when --test

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2475 from ceph/wip-lttng
Josh Durgin [Tue, 16 Sep 2014 19:15:30 +0000 (12:15 -0700)]
Merge pull request #2475 from ceph/wip-lttng

Update rbd-replay

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2473 from ceph/wip-doc-preflight
John Wilkins [Tue, 16 Sep 2014 18:47:12 +0000 (11:47 -0700)]
Merge pull request #2473 from ceph/wip-doc-preflight

doc: Revised the Preflight Doc

Reviewed-by: John Wilkins <jowilkin@redhat.com>
10 years agodoc: Fixed broken hyperlink.
John Wilkins [Tue, 16 Sep 2014 18:28:19 +0000 (11:28 -0700)]
doc: Fixed broken hyperlink.

Signed-off-by: John Wilkins <jowilki@redhat.com>
10 years agoscript/run-coverity: update submodules
Sage Weil [Tue, 16 Sep 2014 18:01:29 +0000 (11:01 -0700)]
script/run-coverity: update submodules

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2394 from ceph/wip-da-fix-make_check
Loic Dachary [Tue, 16 Sep 2014 13:26:40 +0000 (15:26 +0200)]
Merge pull request #2394 from ceph/wip-da-fix-make_check

Fix some issues with make check

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2504 from dachary/wip-erasure-code-valgrind
Loic Dachary [Tue, 16 Sep 2014 13:22:10 +0000 (15:22 +0200)]
Merge pull request #2504 from dachary/wip-erasure-code-valgrind

test: libtool --mode=execute valgrind

Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
10 years agoMerge pull request #2497 from ceph/wip-xfs-inode64
Loic Dachary [Tue, 16 Sep 2014 13:12:24 +0000 (15:12 +0200)]
Merge pull request #2497 from ceph/wip-xfs-inode64

ceph-disk: mount xfs with inode64 by default

Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest/mon/mkfs.sh: add check for default keyring 2394/head
Danny Al-Gaaf [Thu, 4 Sep 2014 10:25:05 +0000 (12:25 +0200)]
test/mon/mkfs.sh: add check for default keyring

The auth_cephx_key check always fails if there is a default
keyring in /etc/ceph/ available. Check if keyring exists and
fail with error message if keyring file in path.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest/ceph-disk.sh: resolve symlinks before check
Danny Al-Gaaf [Thu, 4 Sep 2014 10:23:27 +0000 (12:23 +0200)]
test/ceph-disk.sh: resolve symlinks before check

Make sure symlinks are resolved in command_fixture()
before compare result of which command and the current
path.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #2487 from wonzhq/org
Loic Dachary [Tue, 16 Sep 2014 08:55:13 +0000 (10:55 +0200)]
Merge pull request #2487 from wonzhq/org

mailmap: correcting Zhiqiang Wang's mailmap and org affiliation

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: correcting Zhiqiang Wang's mailmap and org affiliation 2487/head
Zhiqiang Wang [Tue, 16 Sep 2014 08:46:07 +0000 (16:46 +0800)]
mailmap: correcting Zhiqiang Wang's mailmap and org affiliation

Signed-off-by: Zhiqiang Wang <wonzhq@hotmail.com>
10 years agotest: libtool --mode=execute valgrind 2504/head
Loic Dachary [Tue, 16 Sep 2014 08:24:12 +0000 (10:24 +0200)]
test: libtool --mode=execute valgrind

otherwise valgrind will not actually run against the binary.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomds: set new inode's xattr version to 1
Yan, Zheng [Mon, 15 Sep 2014 13:39:26 +0000 (21:39 +0800)]
mds: set new inode's xattr version to 1

set new inode's xattr version to 1 even if it has no xattr. This allow
client to differentiate no xattr in inode from MDS skips sending xattr
to client (because MDS think client already has uptodate xattr).

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #2499 from ceph/wip-9219-giant
Sage Weil [Tue, 16 Sep 2014 00:40:28 +0000 (17:40 -0700)]
Merge pull request #2499 from ceph/wip-9219-giant

wip-9219: subscribe to the newest osdmap when reconnecting to a monitor

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoosd: subscribe to the newest osdmap when reconnecting to a monitor 2499/head
Greg Farnum [Tue, 16 Sep 2014 00:07:41 +0000 (17:07 -0700)]
osd: subscribe to the newest osdmap when reconnecting to a monitor

This is mostly relevant in testing clusters, but it ensures that an OSD
disconnecting from the monitor at the wrong time will still see any recent
map updates and prevent accidental loss of map injection into the OSD cluster.
Fixes: #9219
Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoosdc/Objecter: fix command op cancellation race 2498/head
Sage Weil [Mon, 15 Sep 2014 23:45:19 +0000 (16:45 -0700)]
osdc/Objecter: fix command op cancellation race

Cancel the command op timeout event before we clear out the op from the
session struct.  This isn't strictly necessary because command_op_cancel
will "gracefully" handle the case where the tid is no longer present, but
this avoids that noise and is cleaner.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosdc/Objecter: cancel timeout before clearing op->session
Sage Weil [Mon, 15 Sep 2014 23:40:39 +0000 (16:40 -0700)]
osdc/Objecter: cancel timeout before clearing op->session

The C_CancelOp path assumes op->session != NULL.  Cancel that op before
we clear it.  This fixes a crash like

#0  pthread_rwlock_wrlock () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:39
#1  0x00007fc82690a4b1 in RWLock::get_write (this=0x18, lockdep=<optimized out>) at ./common/RWLock.h:88
#2  0x00007fc8268f4d79 in Objecter::op_cancel (this=0x1f61830, s=0x0, tid=0, r=-110) at osdc/Objecter.cc:1850
#3  0x00007fc8268ba449 in Context::complete (this=0x1f68c20, r=<optimized out>) at ./include/Context.h:64
#4  0x00007fc8269769aa in RWTimer::timer_thread (this=0x1f61950) at common/Timer.cc:268
#5  0x00007fc82697a85d in RWTimerThread::entry (this=<optimized out>) at common/Timer.cc:200
#6  0x00007fc82651ce9a in start_thread (arg=0x7fc7e3fff700) at pthread_create.c:308

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoceph-disk: mount xfs with inode64 by default 2497/head
Sage Weil [Mon, 15 Sep 2014 22:29:08 +0000 (15:29 -0700)]
ceph-disk: mount xfs with inode64 by default

We did this forever ago with mkcephfs, but ceph-disk didn't.  Note that for
modern XFS this option is obsolete, but for older kernels it was not the
default.

Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2492 from ceph/wip-9284
John Spray [Mon, 15 Sep 2014 22:23:46 +0000 (23:23 +0100)]
Merge pull request #2492 from ceph/wip-9284

#9284 - fix client RECALL handling and add health metrics

Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agoMerge pull request #2482 from dachary/wip-erasure-code-documentation
Sage Weil [Mon, 15 Sep 2014 22:23:16 +0000 (15:23 -0700)]
Merge pull request #2482 from dachary/wip-erasure-code-documentation

erasure code documentation

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2476 from ceph/wip-9307
Sage Weil [Mon, 15 Sep 2014 22:19:07 +0000 (15:19 -0700)]
Merge pull request #2476 from ceph/wip-9307

rgw: push hash calculater deeper

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2493 from ceph/wip-rbd-objectcacher-hang
Josh Durgin [Mon, 15 Sep 2014 20:25:33 +0000 (13:25 -0700)]
Merge pull request #2493 from ceph/wip-rbd-objectcacher-hang

rbd: ObjectCacher reads can hang when reading sparse files

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2495 from dachary/wip-erasure-code-preload
Sage Weil [Mon, 15 Sep 2014 18:26:51 +0000 (11:26 -0700)]
Merge pull request #2495 from dachary/wip-erasure-code-preload

erasure-code: preload fails if < 0

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoerasure-code: preload fails if < 0 2495/head
Loic Dachary [Mon, 15 Sep 2014 18:21:14 +0000 (20:21 +0200)]
erasure-code: preload fails if < 0

And not if < -1.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agodoc: Added feedback. 2473/head
John Wilkins [Mon, 15 Sep 2014 18:10:35 +0000 (11:10 -0700)]
doc: Added feedback.

Signed-off-by: John Wilkins <jowilki@redhat.com>
10 years agoMerge pull request #2486 from jgalvez/master
Sage Weil [Mon, 15 Sep 2014 16:41:45 +0000 (09:41 -0700)]
Merge pull request #2486 from jgalvez/master

init-radosgw.sysv: Support systemd for starting the gateway

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2472 from dachary/wip-9429-bench
Loic Dachary [Mon, 15 Sep 2014 16:23:08 +0000 (18:23 +0200)]
Merge pull request #2472 from dachary/wip-9429-bench

erasure-code: fix erasure_code_benchmark goop (decode)

Reviewed-by: Janne Grunau <j@jannau.net>
10 years agomds: limit number of caps inspected in caps_tick 2420/head 2492/head
John Spray [Wed, 10 Sep 2014 13:01:54 +0000 (14:01 +0100)]
mds: limit number of caps inspected in caps_tick

This is to avoid hitting an O(caps) loop in the worst
cast scenario.  This mechanism is a little crude but
should be superceded at some point by admin socket
functionality to inspect session caps so that we
don't need to spit out this level of detail in logs.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: keep per-client revoking caps list
John Spray [Wed, 10 Sep 2014 12:37:37 +0000 (13:37 +0100)]
mds: keep per-client revoking caps list

...to avoid doing an O(caps) scan to find out
which clients are responsible for any late-revoking
caps during health checks.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoxlist: implement copy constructor
John Spray [Wed, 10 Sep 2014 12:21:42 +0000 (13:21 +0100)]
xlist: implement copy constructor

...so that I can have a std::map of them.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: health metric for late releasing caps
John Spray [Sun, 7 Sep 2014 15:22:37 +0000 (16:22 +0100)]
mds: health metric for late releasing caps

Follow up on Yan Zheng's "mds: warn clients which
aren't revoking cap" to include a health metric
for this condition as well as the clog messages.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomon: trigger transaction on MDS health changes
John Spray [Fri, 5 Sep 2014 11:49:53 +0000 (12:49 +0100)]
mon: trigger transaction on MDS health changes

I think this was previously only working as a side effect
of other MDS map changes.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: add a health metric for failure to recall caps
John Spray [Thu, 4 Sep 2014 15:47:38 +0000 (16:47 +0100)]
mds: add a health metric for failure to recall caps

Fixes: #9284
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: add state for tracking RECALL progress
John Spray [Thu, 4 Sep 2014 12:04:18 +0000 (13:04 +0100)]
mds: add state for tracking RECALL progress

To be used later for generating health metrics
for clients which are failing to promptly service
CEPH_SESSION_RECALL_STATE messages.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoxlist: implement const_iterator
John Spray [Fri, 5 Sep 2014 13:10:40 +0000 (14:10 +0100)]
xlist: implement const_iterator

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoclient: fix trim_caps for inodes in root
John Spray [Mon, 8 Sep 2014 00:14:27 +0000 (01:14 +0100)]
client: fix trim_caps for inodes in root

Previously client would fail to release caps for files
in the root directory in response to CEPH_SESSION_RECALL_STATE
messages.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoclient: failure injection for cap release
John Spray [Fri, 5 Sep 2014 12:16:16 +0000 (13:16 +0100)]
client: failure injection for cap release

Used for simulating a buggy client that trips
the error detection in #9282 (warn clients
which aren't revoking caps)

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoclient: fix potentially invalid read in trim_caps
John Spray [Wed, 3 Sep 2014 18:31:38 +0000 (19:31 +0100)]
client: fix potentially invalid read in trim_caps

trim_dentry can potentially free an inode, so get/put
it around the block where we use the inode's dn_set.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoclient: more precise cap trimming
John Spray [Wed, 3 Sep 2014 17:30:00 +0000 (18:30 +0100)]
client: more precise cap trimming

Two fixes:
 * Client would unlink everything it could, instead of just
   meeting its goal, because caps.size() doesn't change until
   dentries are cleaned up later.  Take account of the trimmed
   count in the while() condition to fix that.
 * Don't count the root ino as trimmed, as although it has no
   dentries (of course), we will never give up the cap.

With this change, the client will now precisely achieve the number
of caps requested in CEPH_SESSION_RECALL_STATE messages.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoclient: fix crash in trim_caps
John Spray [Wed, 3 Sep 2014 01:00:33 +0000 (02:00 +0100)]
client: fix crash in trim_caps

In a75af4c2, procedure was added to invalidate root's dentries
if the trimming failed to free enough caps.  This would sometimes
crash because root->dir wasn't necessarily open.

Fix by only doing it if root dir is open, though I suspect this
may not be the end of it...

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #2485 from Abioy/master
Loic Dachary [Mon, 15 Sep 2014 13:40:44 +0000 (15:40 +0200)]
Merge pull request #2485 from Abioy/master

bugfix: wrong socket address in log msg of Pipe.cc

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agobugfix: wrong socket address in log msg of Pipe.cc 2485/head
Abioy [Mon, 15 Sep 2014 02:52:47 +0000 (10:52 +0800)]
bugfix: wrong socket address in log msg of Pipe.cc

paddr was not yet set up for the socket address

Signed-off-by: Yongyue Sun abioy.sun@gmail.com
10 years agoMerge pull request #2442 from dachary/wip-6754-jerasure-parameters
Loic Dachary [Mon, 15 Sep 2014 10:24:19 +0000 (12:24 +0200)]
Merge pull request #2442 from dachary/wip-6754-jerasure-parameters

erasure-code: fix BlaumRoth sanity check on w

Reviewed-by: Andreas Peters <andreas.joachim.peters@cern.ch>
10 years agoMerge pull request #2488 from cernceph/docfix
Loic Dachary [Mon, 15 Sep 2014 09:39:46 +0000 (11:39 +0200)]
Merge pull request #2488 from cernceph/docfix

doc: osd_backfill_scan_(min|max) are object counts

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agodoc: osd_backfill_scan_(min|max) are object counts 2488/head
Dan van der Ster [Mon, 15 Sep 2014 09:23:11 +0000 (11:23 +0200)]
doc: osd_backfill_scan_(min|max) are object counts

osd_backfill_scan_min and osd_backfill_scan_max set the number of
items grabbed during a single backfill scan, not an interval in
seconds. Correct the doc.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
10 years agorbd: ObjectCacher reads can hang when reading sparse files 2493/head
Jason Dillaman [Mon, 15 Sep 2014 04:53:50 +0000 (00:53 -0400)]
rbd: ObjectCacher reads can hang when reading sparse files

The pending read list was not properly flushed when empty objects
were read from a space file.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoinit-radosgw.sysv: Support systemd for starting the gateway 2486/head
JuanJose 'JJ' Galvez [Mon, 15 Sep 2014 03:38:20 +0000 (20:38 -0700)]
init-radosgw.sysv: Support systemd for starting the gateway

When using RHEL7 the radosgw daemon needs to start under systemd.

Check for systemd running on PID 1. If it is then start
the daemon using: systemd-run -r <cmd>. pidof returns null
as it is executed too quickly, adding one second of sleep and
script reports startup correctly.

Signed-off-by: JuanJose 'JJ' Galvez <jgalvez@redhat.com>
10 years agoMerge pull request #2484 from sjahl/master
Loic Dachary [Sun, 14 Sep 2014 15:46:04 +0000 (17:46 +0200)]
Merge pull request #2484 from sjahl/master

doc: Added bucket management commands to ops/crush-map

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agodoc: Added bucket management commands to ops/crush-map 2484/head
Stephen Jahl [Sun, 14 Sep 2014 14:41:16 +0000 (10:41 -0400)]
doc: Added bucket management commands to ops/crush-map

Describes the CLI for adding and removing buckets, in addition to the
'moving' instructions which were already present.

Signed-off-by: Stephen Jahl <stephenjahl@gmail.com>
10 years agoMerge remote-tracking branch 'gh/giant'
Sage Weil [Sun, 14 Sep 2014 04:20:33 +0000 (21:20 -0700)]
Merge remote-tracking branch 'gh/giant'

10 years agodocumentation: jerasure plugin is sub section of erasure code profile 2482/head
Loic Dachary [Sat, 13 Sep 2014 23:01:04 +0000 (01:01 +0200)]
documentation: jerasure plugin is sub section of erasure code profile

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agodocumentation: isa plugin is sub section of erasure code profile
Loic Dachary [Sat, 13 Sep 2014 22:58:13 +0000 (00:58 +0200)]
documentation: isa plugin is sub section of erasure code profile

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agodocumentation: erasure code profile update
Loic Dachary [Sat, 13 Sep 2014 22:54:40 +0000 (00:54 +0200)]
documentation: erasure code profile update

The plugins are made a sub-section of the erasure code profile
section. The k and m parameters are removed from erasure code profile
documentation. They were added for simplicity in the first version
because there was only one plugin. But they should really be in the
plugin documentation.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2481 from sjahl/master
Sage Weil [Sat, 13 Sep 2014 19:46:24 +0000 (12:46 -0700)]
Merge pull request #2481 from sjahl/master

doc: fixes a formatting error on ops/crush-map

10 years agodoc: fixes a formatting error on ops/crush-map 2481/head
Stephen Jahl [Sat, 13 Sep 2014 19:31:53 +0000 (15:31 -0400)]
doc: fixes a formatting error on ops/crush-map

Signed-off-by: Stephen Jahl <stephenjahl@gmail.com>
10 years agoMerge pull request #2467 from majianpeng/fix3
Loic Dachary [Sat, 13 Sep 2014 15:56:16 +0000 (17:56 +0200)]
Merge pull request #2467 from majianpeng/fix3

buffer: In rebuild_page_aligned for the last ptr is page aligned, no need call rebuild().

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2478 from ceph/wip-9445
Loic Dachary [Sat, 13 Sep 2014 15:32:57 +0000 (17:32 +0200)]
Merge pull request #2478 from ceph/wip-9445

global: fix hang when segv happens inside logging code

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2477 from ceph/wip-client-msg-leak
Yan, Zheng [Sat, 13 Sep 2014 00:42:15 +0000 (08:42 +0800)]
Merge pull request #2477 from ceph/wip-client-msg-leak

client: fix a message leak

10 years agomds: update segment references during journal rewrite
John Spray [Thu, 11 Sep 2014 13:07:59 +0000 (14:07 +0100)]
mds: update segment references during journal rewrite

... to avoid leaving log events that reference log
segments by offsets which no longer exist.

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 386f2d7c829422695a1b1f41bd3f17ca3eef1f61)
Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agoMerge pull request #2469 from ceph/wip-9427-rewrite
Gregory Farnum [Sat, 13 Sep 2014 00:35:54 +0000 (17:35 -0700)]
Merge pull request #2469 from ceph/wip-9427-rewrite

mds: update segment references during journal rewrite

Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agolog: add simple test to verify an internal SEGV doesn't hang 2478/head
Sage Weil [Sat, 13 Sep 2014 00:18:01 +0000 (17:18 -0700)]
log: add simple test to verify an internal SEGV doesn't hang

Test that the segv injection works.

Test that a segv while logging something doesn't hang when the signal
handlers are installed.  Note that this fails/hangs without the previous
fix.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoclient: fix a message leak 2477/head
John Spray [Fri, 12 Sep 2014 17:42:02 +0000 (18:42 +0100)]
client: fix a message leak

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoglobal/signal_handler: do not log if SEGV originated inside log code
Sage Weil [Fri, 12 Sep 2014 22:25:03 +0000 (15:25 -0700)]
global/signal_handler: do not log if SEGV originated inside log code

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agolog: add Log::is_inside_log_lock()
Sage Weil [Fri, 12 Sep 2014 22:24:50 +0000 (15:24 -0700)]
log: add Log::is_inside_log_lock()

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: update segment references during journal rewrite 2469/head
John Spray [Thu, 11 Sep 2014 13:07:59 +0000 (14:07 +0100)]
mds: update segment references during journal rewrite

... to avoid leaving log events that reference log
segments by offsets which no longer exist.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agorgw: push hash calculater deeper 2476/head
Yehuda Sadeh [Fri, 12 Sep 2014 21:07:44 +0000 (14:07 -0700)]
rgw: push hash calculater deeper

This might have been the culprit for #9307. Before we were calculating
the hash after the call to processor->handle_data(), however, that
method might have spliced the bufferlist, so we can't be sure that the
pointer that we were holding originally is still invalid. Instead, push
the hash calculation down. Added a new explicit complete_hash() call to
the processor, since when we're at complete() it's too late (we need to
have the hash at that point already).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agodoc: Added clarifications and added additional preflight steps for CentOS/RHEL.
John Wilkins [Fri, 12 Sep 2014 16:15:53 +0000 (09:15 -0700)]
doc: Added clarifications and added additional preflight steps for CentOS/RHEL.

Fixes: #8995
Signed-off-by: John Wilkins <jowilki@redhat.com>
10 years agodoc: Deleted redundant text string.
John Wilkins [Fri, 12 Sep 2014 16:14:51 +0000 (09:14 -0700)]
doc: Deleted redundant text string.

Signed-off-by: John Wilkins <jowilki@redhat.com>
10 years agoMerge pull request #2471 from ceph/wip-9446
John Spray [Fri, 12 Sep 2014 15:47:52 +0000 (16:47 +0100)]
Merge pull request #2471 from ceph/wip-9446

mon: fix MDS health detail output

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoerasure-code: fix erasure_code_benchmark goop (decode) 2472/head
Loic Dachary [Fri, 12 Sep 2014 15:36:35 +0000 (17:36 +0200)]
erasure-code: fix erasure_code_benchmark goop (decode)

Using a stringstream that is only displayed on error when calling the
erasure code factory, instead of cerr. The user expects the output to be
clean when there is no error. That was done for the encode function but
not the decode function.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomon: fix MDS health detail output 2471/head
John Spray [Fri, 5 Sep 2014 11:49:09 +0000 (12:49 +0100)]
mon: fix MDS health detail output

I fat fingered a couple of things here.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agobuffer: Add a test for bufferlist::rebuild_page_aligned 2467/head
Ma Jianpeng [Fri, 12 Sep 2014 13:52:56 +0000 (21:52 +0800)]
buffer: Add a test for bufferlist::rebuild_page_aligned

Make the last prt of bufferlist which is page-aligned don't change anything
after rebuild_page_aligned.

Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
10 years agobuffer: In rebuild_page_aligned for the last ptr is page aligned, no need call rebuild().
Ma Jianpeng [Fri, 12 Sep 2014 03:21:58 +0000 (11:21 +0800)]
buffer: In rebuild_page_aligned for the last ptr is page aligned, no need call rebuild().

This only happen for the last ptr. Because rebuild() don't change the len
of ptr, so if last ptr isn't page-size aligned but is page aligned, the
rebuild() don't change anything.

Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>