]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agomailmap: Samuel Just name normalization
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:48:17 +0000 (12:18 +0530)]
mailmap: Samuel Just name normalization

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Pavan Rallabhandi name normalization
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:13:26 +0000 (11:43 +0530)]
mailmap: Pavan Rallabhandi name normalization

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Swami Reddy name normalization
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:18:18 +0000 (11:48 +0530)]
mailmap: Swami Reddy name normalization

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Swami Reddy <swamireddy@gmail.com>
10 years agomailmap: Volker Voigt affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:47:09 +0000 (12:17 +0530)]
mailmap: Volker Voigt affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Laurent Guerby affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:46:39 +0000 (12:16 +0530)]
mailmap: Laurent Guerby affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Johnu George affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 10:01:15 +0000 (15:31 +0530)]
mailmap: Johnu George affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Johnu George <johnugeo@cisco.com>
10 years agomailmap: Janne Grunau affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 10:41:09 +0000 (16:11 +0530)]
mailmap: Janne Grunau affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Daniel Schepler affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:44:45 +0000 (12:14 +0530)]
mailmap: Daniel Schepler affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Cheng Cheng affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:44:20 +0000 (12:14 +0530)]
mailmap: Cheng Cheng affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Sahid Ferdjaoui affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:43:21 +0000 (12:13 +0530)]
mailmap: Sahid Ferdjaoui affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
10 years agomailmap: Jiang Heng affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 09:58:39 +0000 (15:28 +0530)]
mailmap: Jiang Heng affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: JuanJose Galvez affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:20:58 +0000 (11:50 +0530)]
mailmap: JuanJose Galvez affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Roman Haritonov affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:19:36 +0000 (11:49 +0530)]
mailmap: Roman Haritonov affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Yongyue Sun affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:17:06 +0000 (11:47 +0530)]
mailmap: Yongyue Sun affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: Yan Zheng affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:07:52 +0000 (11:37 +0530)]
mailmap: Yan Zheng affiliation

Also adding Yan Zheng to .peoplemap to track org. change

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Thorsten Glaser affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 05:59:05 +0000 (11:29 +0530)]
mailmap: Thorsten Glaser affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Thorsten Glaser <tg@mirbsd.de>
10 years agomailmap: William A. Kennington III affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 05:54:30 +0000 (11:24 +0530)]
mailmap: William A. Kennington III affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Jason Dillaman affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 05:51:45 +0000 (11:21 +0530)]
mailmap: Jason Dillaman affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agoMerge pull request #2547 from wkennington/master
Loic Dachary [Sun, 21 Sep 2014 11:22:08 +0000 (13:22 +0200)]
Merge pull request #2547 from wkennington/master

Cleanup boost optionals for boost 1.56

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoosd: Cleanup boost optionals 2547/head
William A. Kennington III [Sun, 21 Sep 2014 05:52:31 +0000 (22:52 -0700)]
osd: Cleanup boost optionals

Signed-off-by: William A. Kennington III <william@wkennington.com>
10 years agoMerge pull request #2431 from ceph/wip-6613
Yan, Zheng [Sat, 20 Sep 2014 03:51:36 +0000 (11:51 +0800)]
Merge pull request #2431 from ceph/wip-6613

Wip 9178

10 years agoMerge pull request #2529 from dachary/wip-doc-troubleshooting
Sage Weil [Fri, 19 Sep 2014 21:40:47 +0000 (14:40 -0700)]
Merge pull request #2529 from dachary/wip-doc-troubleshooting

documentation: fix bugous osd stop/start example

10 years agoMerge pull request #2532 from dachary/wip-doc-tiering
Sage Weil [Fri, 19 Sep 2014 21:40:24 +0000 (14:40 -0700)]
Merge pull request #2532 from dachary/wip-doc-tiering

documentation: tiering typo

10 years agoMerge remote-tracking branch 'gh/wip-9301'
Sage Weil [Fri, 19 Sep 2014 21:27:19 +0000 (14:27 -0700)]
Merge remote-tracking branch 'gh/wip-9301'

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
10 years agorbd: Use a rolling average to compute RBD write throughput
Jason Dillaman [Sun, 7 Sep 2014 04:50:55 +0000 (00:50 -0400)]
rbd: Use a rolling average to compute RBD write throughput

Replace the cumulative average with a rolling average
to better expose variations within IOS/sec and bytes/sec.

Fixes: #9374
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2537 from ceph/wip-coverity-20140919
Sage Weil [Fri, 19 Sep 2014 18:34:30 +0000 (11:34 -0700)]
Merge pull request #2537 from ceph/wip-coverity-20140919

Various fixes for Coverity issues

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2526 from ceph/wip-6228
Sage Weil [Fri, 19 Sep 2014 16:47:21 +0000 (09:47 -0700)]
Merge pull request #2526 from ceph/wip-6228

common: Add cctid meta variable

Backport: giant, firefly
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agorgw_main.cc: add missing virtual destructor for RGWRequest 2537/head
Danny Al-Gaaf [Fri, 19 Sep 2014 10:25:07 +0000 (12:25 +0200)]
rgw_main.cc: add missing virtual destructor for RGWRequest

CID 1160858 (#1 of 1): Non-virtual destructor (VIRTUAL_DTOR)
 nonvirtual_dtor: Class RGWLoadGenRequest has a destructor
 and a pointer to it is upcast to class RGWRequest which doesn't
 have a virtual destructor.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoos/GenericObjectMap.cc: pass big parameter by reference
Danny Al-Gaaf [Fri, 19 Sep 2014 10:06:49 +0000 (12:06 +0200)]
os/GenericObjectMap.cc: pass big parameter by reference

CID 1188142 (#1 of 1): Big parameter passed by value (PASS_BY_VALUE)
 pass_by_value: Passing parameter header of type
 GenericObjectMap::_Header (size 176 bytes) by value.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agocommon/buffer.cc: catch exception by reference
Danny Al-Gaaf [Fri, 19 Sep 2014 09:47:43 +0000 (11:47 +0200)]
common/buffer.cc: catch exception by reference

CID 1135926 (#1 of 1): Big parameter passed by value (PASS_BY_VALUE)
pass_by_value: Catching an exception object of size 264 bytes by value.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest/kv_store_bench.cc: fix coverity REVERSE_INULL
Danny Al-Gaaf [Thu, 18 Sep 2014 11:28:47 +0000 (13:28 +0200)]
test/kv_store_bench.cc: fix coverity REVERSE_INULL

CID 1021214 (#1 of 1): Dereference before null check (REVERSE_INULL)
 check_after_deref: Null-checking cb_args suggests that it may be
 null, but it has already been dereferenced on all paths leading to
 the check.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest/libradosstriper/striping.cc: remove dead initialization
Danny Al-Gaaf [Thu, 18 Sep 2014 09:39:18 +0000 (11:39 +0200)]
test/libradosstriper/striping.cc: remove dead initialization

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomds/Beacon.*: fix UNINIT_CTOR cases
Danny Al-Gaaf [Wed, 17 Sep 2014 17:31:13 +0000 (19:31 +0200)]
mds/Beacon.*: fix UNINIT_CTOR cases

CID 1238905 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member want_state is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member last_send is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoErasureCodeLrc.h: fix UNINIT_CTOR
Danny Al-Gaaf [Wed, 17 Sep 2014 17:28:11 +0000 (19:28 +0200)]
ErasureCodeLrc.h: fix UNINIT_CTOR

Fix Coverity issue, preinit with 0:

uninit_member: Non-static class member chunk_count is not initialized
 in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoErasureCodeLrc.h: fix data_chunk_count UNINIT_CTOR
Danny Al-Gaaf [Wed, 17 Sep 2014 16:56:00 +0000 (18:56 +0200)]
ErasureCodeLrc.h: fix data_chunk_count UNINIT_CTOR

CID 1238903 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member data_chunk_count is not
 initialized in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoLogEntry.h: init LogEntry::seq with 0
Danny Al-Gaaf [Wed, 17 Sep 2014 07:35:15 +0000 (09:35 +0200)]
LogEntry.h: init LogEntry::seq with 0

CID 1238904 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use_in_call: Using uninitialized value e.seq when calling
 log_to_syslog.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest/librados/aio.cc: close resource leak
Danny Al-Gaaf [Tue, 16 Sep 2014 12:51:30 +0000 (14:51 +0200)]
test/librados/aio.cc: close resource leak

Release my_completion4.

CID 1219581 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion4 going out of scope leaks
 the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #2536 from dachary/wip-doc-reweight
Loic Dachary [Fri, 19 Sep 2014 15:30:02 +0000 (17:30 +0200)]
Merge pull request #2536 from dachary/wip-doc-reweight

documentation: explain ceph osd reweight vs crush weight

Reviewed-by: Laurent Guerby <laurent@guerby.net>
10 years agodocumentation: explain ceph osd reweight vs crush weight 2536/head
Loic Dachary [Fri, 19 Sep 2014 15:19:41 +0000 (17:19 +0200)]
documentation: explain ceph osd reweight vs crush weight

Using the wording from Gregory Farnum at
http://lists.ceph.com/pipermail/ceph-users-ceph.com/2014-June/040961.html

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agodocumentation: tiering typo 2532/head
Loic Dachary [Fri, 19 Sep 2014 13:05:27 +0000 (15:05 +0200)]
documentation: tiering typo

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agodocumentation: fix bugous osd stop/start example 2529/head
Loic Dachary [Fri, 19 Sep 2014 08:28:55 +0000 (10:28 +0200)]
documentation: fix bugous osd stop/start example

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agocommon: Add cctid meta variable 2526/head
Adam Crume [Thu, 18 Sep 2014 23:57:27 +0000 (16:57 -0700)]
common: Add cctid meta variable

Fixes: #6228
Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agoMerge pull request #2514 from ceph/wip-acl-test
Gregory Farnum [Thu, 18 Sep 2014 22:01:15 +0000 (15:01 -0700)]
Merge pull request #2514 from ceph/wip-acl-test

qa/workunits/fs/misc: Add a workunit for ACL

Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agomon: re-bootstrap if we get probed by a mon that is way ahead
Sage Weil [Thu, 18 Sep 2014 21:23:36 +0000 (14:23 -0700)]
mon: re-bootstrap if we get probed by a mon that is way ahead

During bootstrap we verify that our paxos commits overlap with the other
mons we will form a quorum with.  If they do not, we do a sync.

However, it is possible we pass those checks, then fail to join a quorum
before the quorum moves ahead in time such that we no longer overlap.
Currently nothing kicks up back into a probing state to discover we need
to sync... we will just keep trying to call or join an election instead.

Fix this by jumping back to bootstrap if we get a probe that is ahead of
us.  Only do this from non probe or sync states as these will be common;
it is only the active and electing states that matter (and probably just
electing!).

Fixes: #9301
Backport: giant, firefly
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomon/Paxos: fix off-by-one in last_ vs first_committed check
Sage Weil [Thu, 18 Sep 2014 21:11:24 +0000 (14:11 -0700)]
mon/Paxos: fix off-by-one in last_ vs first_committed check

peon last_committed + 1 == leader first_committed is okay.  Note that the
other check (where I clean up whitespace) gets this correct.

Fixes: #9301 (partly)
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2457 from ceph/wip-7767-b
Samuel Just [Thu, 18 Sep 2014 16:28:05 +0000 (09:28 -0700)]
Merge pull request #2457 from ceph/wip-7767-b

msg: prefetch data when doing recv()

Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktnak.com>
10 years agoMerge pull request #2440 from somnathr/wip-optracker-optimization
Samuel Just [Thu, 18 Sep 2014 16:26:40 +0000 (09:26 -0700)]
Merge pull request #2440 from somnathr/wip-optracker-optimization

Wip optracker optimization

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2445 from wonzhq/req-pending
Samuel Just [Thu, 18 Sep 2014 16:25:18 +0000 (09:25 -0700)]
Merge pull request #2445 from wonzhq/req-pending

Cache tiering: do not allow flush/evict when there are requests pending

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2515 from ceph/wip-9518
John Spray [Thu, 18 Sep 2014 12:53:45 +0000 (13:53 +0100)]
Merge pull request #2515 from ceph/wip-9518

mds: fix not journaling client metadata

Reviewed-by: Yan, Zheng <ukernel@gmail.com>
10 years agomds: fix not journaling client metadata 2515/head
John Spray [Thu, 18 Sep 2014 09:29:06 +0000 (10:29 +0100)]
mds: fix not journaling client metadata

Previously the code was there for storing in
the SessionMap table, but not for the ESession
logevent.

Fixes: #9518
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoclient: preserve ordering of readdir result in cache 2431/head
Yan, Zheng [Tue, 9 Sep 2014 09:34:46 +0000 (17:34 +0800)]
client: preserve ordering of readdir result in cache

Preserve ordering of readdir result in a list, so that the result of cached
readdir is consistant with uncached readdir.

As a side effect, this commit also removes the code that removes stale dentries.
This is OK because stale dentries does not have valid lease, they will be
filter out by the shared gen check in Client::_readdir_cache_cb()

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoclient: introduce a new flag indicating if dentries in directory are sorted
Yan, Zheng [Tue, 9 Sep 2014 06:06:06 +0000 (14:06 +0800)]
client: introduce a new flag indicating if dentries in directory are sorted

When creating a file, Client::insert_dentry_inode() set the dentry's offset
based on directory's max offset. The offset does not reflect the real
postion of the dentry in directory. Later readdir reply from real postion
of the dentry in directory. Later readdir reply from MDS may change the
dentry's position/offset. This inconsistency can cause missing/duplicate
entries in readdir result if readdir is partly satisfied by dcache_readdir().

The fix is introduce a new flag indicating if dentries in directory are
sorted. We use _readdir_cache_cb() to handle readdir only when the flag is
set, clear the flag after creating/deleting/renaming file.

Fixes: #9178
Signed-off-by: Yan, Zheng <zyan@redhat.com>
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>