Commit Graph

37469 Commits

Author SHA1 Message Date
Yan, Zheng
6b59eade27 client: handle MDS 'force readonly' message
make client return -EROFS for write when MDS is readonly, instead of
waiting forever.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-12-02 10:47:23 +08:00
Yan, Zheng
f716903858 mds: notify clients when MDS goes to readonly
notice clients that MDS goes to readonly and MDS won't issue write
caps any more.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-12-02 10:47:23 +08:00
Yan, Zheng
e0637b47c7 mds: add helper to force MDS readonly
the helper function marks MDS readonly, then revokes write caps from
clients.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-12-02 10:47:23 +08:00
Yan, Zheng
5db3bbf532 mds: disallow reconnectiong to readonly MDS
this force reconnecting clients to drop any write caps.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-12-02 10:47:23 +08:00
Yan, Zheng
44d9abb567 mds: disable misc internal activitiles when MDS is readonly
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-12-02 10:47:23 +08:00
Yan, Zheng
cfef51518a mds: disallow slave requests when MDS is readonly
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-12-02 10:47:23 +08:00
Yan, Zheng
4aed0476fa mds: keep locks in sync state when MDS is readonly
when transit locks to sync state, we may submit new entries to the log.
This should be safe as long as we don't trim old log segments.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-12-02 10:47:23 +08:00
Yan, Zheng
2d4a746fa9 mds: don't trim log when MDS is readonly
When MDS is readonly, keep metadata objects (not include the journal) of
cephfs unchanged. This allows us to submit new entries to the log while
MDS is readonly. (Log entries submitted after MDS becomes readonly can
be safely dropped)

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-12-02 10:47:23 +08:00
Yan, Zheng
4f6474f2b7 mds: disallow write operations when MDS is readonly
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-12-02 10:47:23 +08:00
Sage Weil
01df222712 osd: tolerate sessionless con in fast dispatch path
We can now get a session cleared from a Connection at any time.  Change
the assert to an if in ms_fast_dispatch to cope.  It's pretty rare, but it
can happen, especially with delay injection.  In particular, a racing
thread can call mark_down() on us.

Fixes: #10209
Backport: giant
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 18:15:59 -08:00
Gregory Farnum
25fc21b837 Merge pull request #3008 from ceph/wip-10135
mon: OSDMonitor: allow adding tiers to FS pools

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2014-12-01 18:05:02 -08:00
Gregory Farnum
772a0d538a Merge pull request #3050 from dachary/wip-10213-const
msg: do not const methods that return a mutable pointer

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2014-12-01 17:30:36 -08:00
Loic Dachary
0f1c9fd1aa msg: do not const methods that return a mutable pointer
Add remove misleading const on post_rx_buffer argument.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-12-02 02:20:15 +01:00
Sage Weil
0d6c803dde osd/osd_types: drop category from object_info_t
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:37:56 -08:00
Sage Weil
5ecdce3b87 osdc/Objecter: drop category from copy-get
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:37:56 -08:00
Sage Weil
d229548db5 osd/ReplicatedPG: drop cateogry support from CREATE
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:37:56 -08:00
Sage Weil
4e1f4cfed1 rados: drop optional 'create [category]' arg
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:37:56 -08:00
Sage Weil
3008ca4eb1 rados: change 'df' output now that categories are gone
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:37:17 -08:00
Sage Weil
39c46a2de7 PendingReleaseNotes: not about dropping category
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:36:57 -08:00
Sage Weil
ee4f6d7288 osd/osd_types: drop useless conditionals on object_info_t decode
The incompat decode version is 8, so we will never see struct_v < 5.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:36:13 -08:00
Sage Weil
ee3b5b2661 osd/osd_types: remove cat_sum from object_stat_collection_t
This type is now just a useless wrapper around object_stat_sum_t, but that
is not easy to drop.

Note that now if we load and reencode a legacy object we'll drop those
fields.  We would mark the incompat flag in the object corpus accordingly,
but nothing in there populates the cat fields.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:36:13 -08:00
Sage Weil
c94c33b9a6 mon/PGMonitor: do not report per-category stats
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:36:13 -08:00
Sage Weil
387d055f13 osd: stop doing per-category accounting
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:36:12 -08:00
Sage Weil
bebcd1462b librados: drop create category args
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:36:12 -08:00
Sage Weil
5020bbe296 librados: add new get_pool_stats() variant; deprecate others
A new call will return a simple map of pool -> stats.  Drop the old ones
that did pool -> category -> stats, and deprecate the category one
entirely.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:36:12 -08:00
Sage Weil
080fae6e92 librados: mark category args and ops as unused
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:36:12 -08:00
Sage Weil
f868ca04d2 Merge pull request #2825 from ceph/wip-9921
SimpleMessenger: Pipe: do not block on takeover while holding global locks

Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-01 09:23:39 -08:00
Haomai Wang
dff5b7390d AsyncMessenger: Make WorkerPool use CephContext's singleton
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-12-02 01:23:21 +08:00
Haomai Wang
7fed5dee4f CephContext: Add AssociatedSingletonObject to allow CephContext's singleton
If some objects associated to CephContext want to create a singleton object,
it can inherit AssociatedSingletonObject and implement destruction to get notified.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-12-02 01:23:15 +08:00
Sage Weil
8cb8854f4d Merge pull request #3046 from yuyuyu101/fix-kinetic
KnieticStore: add necessary header file

Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-01 09:10:17 -08:00
Samuel Just
44b101c80d Merge pull request #2922 from ceph/wip-da-SCA-20141111
Coverity fixes

Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-01 09:08:13 -08:00
Samuel Just
77deeaa4ff Merge pull request #2937 from simon3z/master
common: do not unlock rwlock on destruction

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-01 09:07:38 -08:00
Samuel Just
310a3f1c65 Merge pull request #2945 from ceph/wip-9321
mon: PaxosService: can be readable even if proposing

Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-01 09:05:44 -08:00
Samuel Just
42c85e80b6 Merge pull request #2788 from ceph/wip-warn-max-pg
mon: warn when there are too many pgs per osd

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2014-12-01 09:05:04 -08:00
Samuel Just
34f0bfd132 Merge pull request #2735 from ceph/wip-pg-stat
mon: make 'pg stat -f json' not pg dump; make JSON dump of floats floats and not strings

Reviewed-by: Samuel Just <sjust@redhat.com>
2014-12-01 09:00:06 -08:00
Loic Dachary
06593813af documentation: replace deps.{deb,rpm}.txt with scripts
install-deps.sh installs the dependencies based on the content of
debian/control (if apt-get is found) or ceph.spec.in (if yum is
found). The manually maintained list of dependencies for deb based
operating systems (deps.deb.txt) and rpm based operating
systems (deps.rpm.txt) are deprecated.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-12-01 16:15:21 +01:00
Haomai Wang
e0190bd38e KnieticStore: add necessary header file
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-12-01 22:24:45 +08:00
Haomai Wang
49bedd4cd8 ObjectStoreBenchmark: Used to perf ObjectStore::Transaction
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-12-01 22:23:10 +08:00
Owen Synge
929fcd67aa better systemd support
Added ceph.target
Made ceph-mds, ceph-mon, ceph-osd services part of ceph.target
Made ceph-mds, ceph-mon, ceph-osd services require partitions to be available.
Added ceph init script with sysV like behaviour.

Provided by Tim Serong tserong@suse.com and Owen Synge osynge@suse.com

Signed-off-by: Owen Synge <osynge@suse.com>
2014-12-01 14:45:31 +01:00
Xiaoxi Chen
3376fee957 Cleanup noop in message
The noop loop are dead, so clean it up

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
2014-12-01 21:35:10 +08:00
John Spray
f9e2112b86 Merge pull request #2855 from ceph/wip-9881
#9881 MDS flush journal asok command

Reviewed-by: Yan, Zheng <zyan@redhat.com>
2014-12-01 12:20:44 +00:00
John Spray
5b5493db5b mds: implement "flush journal" asok
Start a new segment and flush everything older
to the backing store.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-12-01 12:09:13 +00:00
John Spray
efeaaaa0b0 mds: in segment expiry, use end instead of start
Previously we were always leaving the last log
segment un-expired from Journaler's POV, because
we were updating expire_pos to the *start* of the
expired journal segment instead of the *end*.

This was harmless, but cleaning it up makes it
easier to see what's going on during journal flushes
in testing.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-12-01 12:09:13 +00:00
John Spray
2ec67733ce mds: fix MDLog I/O callback without finisher
This could deadlock if another caller was waiting
on a write_head callback while holding mds_lock.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-12-01 12:09:13 +00:00
Haomai Wang
dba078a165 Cycles: A precious performance profile tool using rdstc
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-12-01 17:38:24 +08:00
Loic Dachary
efdfec487a Merge pull request #3037 from stiopaa1/cleanup
added some consts, some cleanup

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-11-30 23:31:17 +01:00
Michal Jarzabek
62a8f2d978 added consts, cleanup
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2014-11-30 22:01:36 +00:00
Haomai Wang
1a8aea715e AsyncMessenger: Fix thread destroy when no active Messenger
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-12-01 02:23:47 +08:00
Loic Dachary
f1296fd87a Merge pull request #3019 from theanalyst/doc/typo/ceph-auth
doc: minor fix in ceph-authtool man page

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-11-30 10:23:43 +01:00
Loic Dachary
f3d972828c Merge pull request #3023 from ktdreyer/rpm-rbd-replay-prep-conditional
rpm: unconditionally package rbd-replay-prep(8)

Reviewed-by: Adam Crume <adamcrume@gmail.com>
2014-11-30 10:18:26 +01:00