Commit Graph

31897 Commits

Author SHA1 Message Date
James Ryan Cresawn
c9eaa6510d Changed Availability section of ceph-mds.rst to reference ceph-mds, not ceph-mon.
Signed-off-by: James Ryan Cresawn <jrcresawn@gmail.com>
2014-03-06 22:05:15 -07:00
Greg Farnum
c8c2f5473d Client: fix build issue (lost semicolon)
Signed-off-by: Greg Farnum <greg@inktank.com>
2014-03-06 11:32:38 -08:00
Gregory Farnum
b1ac3aff3c Merge pull request #1320 from ceph/wip-libcephfs-fixes
Wip libcephfs fixes

Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2014-03-06 10:54:44 -08:00
Loic Dachary
60a329f8b0 Merge pull request #1338 from dachary/wip-mailmap
mailmap updates

Reviewed-by: Christophe Courtaut <christophe.courtaut@gmail.com>
2014-03-05 08:55:41 +01:00
Loic Dachary
d4950a1d49 mailmap: Danny Al-Gaaf affiliation
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-05 08:47:37 +01:00
Loic Dachary
0eac1ba0b9 mailmap: Bjørnar Ness affiliation
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-05 08:47:36 +01:00
Loic Dachary
fdb644a2b9 mailmap: Ron Allred affiliation
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-05 08:47:36 +01:00
Loic Dachary
a85d0ef698 mailmap: Steve Stock affiliation
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-05 08:47:36 +01:00
Loic Dachary
076bec8528 mailmap: Christopher O'Connell affiliation
Reviewed-by: Christopher O'Connell <jwriteclub@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-05 08:47:07 +01:00
Josh Durgin
225eb4a7be Merge pull request #1370 from ceph/wip-7293
Make symlink  of librbd to qemu's folder so it can detect it.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-03-04 18:02:28 -08:00
Sandon Van Ness
65f3354903 Make symlink of librbd to qemu's folder so it can detect it.
Per issue #7293.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-03-04 16:15:15 -08:00
Wido den Hollander
a7057e1069 doc: Improve CloudStack RBD documentation 2014-03-04 22:24:36 +01:00
Loic Dachary
6d323c0481 mailmap: Mike Lundy affiliation
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-04 08:01:56 +01:00
Gregory Farnum
1684f1dba4 Merge pull request #1353 from ceph/wip-messenger-shutdown
msg: Make SimpleMessenger shutdown safer

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-03-03 21:15:02 -08:00
John Spray
4e06dfd988 msg: Make SimpleMessenger shutdown safer
...in the case where no dispatchers were ever added, previously
we would throw an assertion in wait().

Signed-off-by: John Spray <john.spray@inktank.com>
2014-03-03 19:05:03 +00:00
Gregory Farnum
82f62b1ea8 Merge pull request #1329 from ceph/wip-doc-cache-pool
fix up docs for cache pools

These are definitely not complete, but they bring a few of the commands more up to date with current syntax.

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-03-03 10:41:05 -08:00
Loic Dachary
9dd6e34cad mailmap: Mouad Benchchaoui affiliation
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-03 08:56:07 +01:00
Loic Dachary
e78205122f mailmap: Andrey Kuznetsov affiliation
Reviewed-by: Andrey Kuznetsov <Andrey_Kuznetsov@epam.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-03 08:55:49 +01:00
Loic Dachary
7b6d417182 mailmap: Wang, Yaguang affiliation
and name normalization

Reviewed-by: Wang, Yaguang <yaguang.wang@intel.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-03 08:55:15 +01:00
Loic Dachary
16b1cc4572 Merge pull request #1345 from leseb/wip-ceph-disk-typo
Fix typo ceph-disk

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-03-03 00:07:59 +01:00
Sébastien Han
855edc6e6b Fix typo ceph-disk
Fix typo

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-02 23:51:17 +01:00
Loic Dachary
43b7b0b440 mailmap: The Linux Box affiliations
Matt Benjamin, Adam C. Emerson and Casey Bodley are with The Linux Box

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-02 08:53:58 +01:00
Sage Weil
f3976c1653 Merge pull request #1334 from kazhang/wip-get-hit_set-parameter
OSDMonitor: enable getting hit set parameters

Reviewed-by: Sage Weil <sage@inktank.com>
2014-03-01 01:21:37 -08:00
Kai Zhang
dc20c7d674 OSDMonitor: enable getting hit set parameters
We would like to get the hit set parameters: hit_set_type |
hit_set_period | hit_set_count | hit_set_fpp via OSDMonitor

Signed-off-by: Kai Zhang <zakir.exe@gmail.com>
2014-03-01 00:22:14 -08:00
Yehuda Sadeh
332c0e242c Merge pull request #1333 from ceph/wip-s3radoscheck-wusui
Use pgrep radosgw to determine if rados gateway is running.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
2014-02-28 21:57:25 -08:00
Warren Usui
5b88856cd2 Use pgrep radosgw to determine if rados gateway is running.
Fixes: 7528
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-28 21:43:31 -08:00
Yan, Zheng
0ed63fd3e5 client: fix Client::trim_caps()
allow trimming non-auth caps if the issued auth caps include all
caps client wants/uses.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-03-01 13:13:28 +08:00
Yan, Zheng
cdbe413c29 client: update dirfragtree/fragmap according to mds request reply
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-03-01 13:13:26 +08:00
Yan, Zheng
214977abaa client: choose hash function according to dir layout
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-03-01 13:04:07 +08:00
Yan, Zheng
23de48b258 client: check inode's cap when looking up dentry
Some inodes in readdir reply may have no caps. Getattr mds request
for these inodes can return -ESTALE. The fix is consider dentry that
links to inode with no caps as invalid. Invalid dentry causes a
lookup request to send to the mds, the MDS will send caps back.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-03-01 13:04:07 +08:00
Yan, Zheng
0638d61222 client: add flushing inode to proper list when auth mds changes
add flushing inode to the new auth MDS' flushing caps list

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-03-01 13:04:07 +08:00
Yan, Zheng
4bdecf1cd8 client: add imported caps when handling cap export message
Version 3 cap export message includes information about the imported
caps. It allows us to add the imported caps if the corresponding cap
import message still hasn't been received.

This allow us to handle situation that the importer MDS crashes and
the cap import message is missing.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-03-01 13:04:07 +08:00
Yan, Zheng
1ddc951be0 client: remove exported caps when handling cap import message
Version 3 cap import message includes the ID of the exported
caps. It allow us to remove the exported caps if we still haven't
received the corresponding cap export message.

We remove the exported caps because they are stale, keeping them
can compromise consistence.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-03-01 13:04:07 +08:00
Yan, Zheng
a7b7c311b4 client: use ceph_seq_cmp() to compare cap seq/mseq
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-03-01 13:04:07 +08:00
Yan, Zheng
3dd323e240 client: don't send cap release when removing exported cap
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-03-01 13:04:05 +08:00
Sage Weil
4baa632e31 Merge pull request #1323 from ceph/wip-requests-dependencies
Fix python-requests package dependencies.

Backport: firefly
Reviewed-by: Sage Weil <sage@inktank.com>
2014-02-28 08:34:14 -08:00
Sage Weil
a850a38711 doc/dev/cache-pool: fix notes
Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-28 08:11:57 -08:00
Yan, Zheng
30aa2d6580 client: clear migrate seq when MDS restarts
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-02-27 11:59:59 +08:00
Yan, Zheng
c1e40c60ac client: fix race between cap issue and revoke
If we receive new caps from the auth MDS and the non-auth MDS is
revoking the newly issued caps, we should release the caps from
the non-auth MDS. The scenario is filelock's state changes from
SYNC to LOCK. Non-auth MDS revokes Fc cap, the client gets Fc cap
from the auth MDS at the same time.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-02-27 11:59:59 +08:00
Yan, Zheng
5c55eb106f client: check mds_wanted for imported cap
The MDS may have incorrect wanted caps after importing caps. So the
client should check the value mds has and send cap update if necessary.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-02-27 11:59:59 +08:00
Yan, Zheng
9476f84716 client: allow revoking duplicated caps issued by non-auth MDS
Allow revoking duplicated caps issued by non-auth MDS if these caps
are also issued by auth MDS.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-02-27 11:59:59 +08:00
Yan, Zheng
6797d30032 client: call handle_cap_grant() for cap import message
If client sends cap message that requests new max size during
exporting caps, the exporting MDS will drop the message quietly.
So the client may wait for the reply that updates the max size
forever. call handle_cap_grant() for cap import message can
avoid this issue.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-02-27 11:59:59 +08:00
Yan, Zheng
154efb1534 client: don't update i_max_size when handle reply from non-auth MDS
caps from non-auth mds don't have meaningful max_size

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-02-27 11:59:59 +08:00
Dan Mick
9a0ef6a181 Fix python-requests package dependencies.
python-ceph does not require requests, but ceph-common does (for ceph-brag).

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-02-26 17:11:05 -08:00
Gregory Farnum
fc33eaed0d Merge pull request #1263 from ceph/wip-mds-dumper
mds: Dumper improvements

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-02-26 10:30:57 -08:00
John Spray
c07a758c4e mds: Add dump-journal-entries
This adds a somewhat-human-readable peer to
the 'dump-journal' command.

Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-26 18:19:06 +00:00
John Spray
7a985df633 mds: Create MDSUtility as base for Dumper/Resetter
These classes has lots of similar functionality and we may
want to add more similar things in the future.

Also, get a copy of the MDS map at startup
to learn the ID of the metadata pool instead of
assuming it's the default.

Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-26 18:19:02 +00:00
John Spray
410c5074de mds: Fix Dumper shutdown
It was shutting down messenger before monclient.  This
caused a sometimes-assertion when monclient tried to
reconnect in response to ms_handle_reset.

Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-26 18:15:45 +00:00
Gregory Farnum
9a040bfd46 Merge pull request #1283 from ceph/wip-7485
mon/MDSMonitor: Cope with failures during creation

Reviewed-by: Greg Farnum <greg@inktank.com
2014-02-26 09:46:31 -08:00
Gregory Farnum
aee6925e11 Merge pull request #1264 from ceph/wip-mds-dencoder
mds: Add encode/decode/dump for use with dencoder

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-02-25 21:26:58 -08:00