Commit Graph

24884 Commits

Author SHA1 Message Date
Noah Watkins
1cbcc04467 Merge remote-tracking branch 'origin/wip-osd-addr-api'
Reviewed-by: Sage Weil <sage@inktank.com>
2013-03-14 13:27:56 -07:00
Sage Weil
efd153e9e2 debian: add start ceph-mds-all on ceph-mds install
This ensures that when we then start individual mds instances, we can
stop ceph-mds-all and they will get stopped.  We do the same already for
ceph-all.

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 41897fcba1)
2013-03-14 12:33:57 -07:00
Sage Weil
41897fcba1 debian: add start ceph-mds-all on ceph-mds install
This ensures that when we then start individual mds instances, we can
stop ceph-mds-all and they will get stopped.  We do the same already for
ceph-all.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-14 12:33:08 -07:00
Noah Watkins
47378d69ed libcephfs: add ceph_get_osd_addr interface
Return the network address for an OSD by ID.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-03-14 12:25:17 -07:00
Sage Weil
b6102c0945 Revert "ceph-disk-activate: rely on default/configured keyring path"
This reverts commit 936b8f20af.

This is necessary because we mount the osd in a temporary location.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-14 12:05:52 -07:00
Sage Weil
3e628eee77 Revert "ceph-disk-activate: don't override default or configured osd journal path"
This reverts commit 813e9fe2b4.

We run --mkfs with the osd disk mounted in a temporary location, so it is
necessary to explicitly pass in these paths.

If we want to support journals in a different location, we need to make
ceph-disk-prepare update the journal symlink accordingly.. not control it via
the config option.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-14 12:04:44 -07:00
Sage Weil
8f462d476a Merge pull request #109 from dalgaaf/wip-da-performance-1-v2
prefer prefix ++/--operator for e.g. iterators for performance reasons

Reviewed-by: Sage Weil <sage@inktank.com>
2013-03-14 11:41:04 -07:00
Sage Weil
ab54d67f8e Merge pull request #108 from ceph/wip-refuse-last-mon-remove
mon: refuse "mon remove" if only one mon left

Reviewed-by: Sage Weil <sage@inktank.com>
2013-03-14 11:38:21 -07:00
Danny Al-Gaaf
282d3aa478 monmaptool.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:02 +01:00
Danny Al-Gaaf
0c5532cfce mon/PGMonitor.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:02 +01:00
Danny Al-Gaaf
01c6a7e50f mon/MonmapMonitor.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:02 +01:00
Danny Al-Gaaf
45a3d0cc56 mon/Monitor.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:02 +01:00
Danny Al-Gaaf
a26a9f7ca8 mon/MonMap.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:02 +01:00
Danny Al-Gaaf
a6c454320d mon/MDSMonitor.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:01 +01:00
Danny Al-Gaaf
a66170df11 mon/LogMonitor.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:01 +01:00
Danny Al-Gaaf
23ce79ff13 mon/AuthMonitor.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:01 +01:00
Danny Al-Gaaf
ab0dac1559 mds/mdstypes.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:01 +01:00
Danny Al-Gaaf
c0506c2e2f mds/SnapServer.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:01 +01:00
Danny Al-Gaaf
823a56f0b3 mds/SnapServer.h: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:01 +01:00
Danny Al-Gaaf
6127f43158 mds/SnapServer.h: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:01 +01:00
Danny Al-Gaaf
e98432c048 mds/Mutation.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:01 +01:00
Danny Al-Gaaf
e317a9787f mds/MDSTableServer.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:00 +01:00
Danny Al-Gaaf
d0a0ee5460 mds/MDSTableClient.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:00 +01:00
Danny Al-Gaaf
f8825a3603 mds/MDSMap.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:00 +01:00
Danny Al-Gaaf
3ff204e376 mds/MDS.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:00 +01:00
Danny Al-Gaaf
865d7a8d31 mds/MDLog.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:00 +01:00
Danny Al-Gaaf
6735383c6b mds/MDCache.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:00 +01:00
Danny Al-Gaaf
ce8060e867 mds/MDBalancer.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:00 +01:00
Danny Al-Gaaf
180d93a2b7 mds/Locker.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:24:00 +01:00
Danny Al-Gaaf
f2452b1171 mds/MDCache.h: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:23:59 +01:00
Danny Al-Gaaf
a42e9ef802 mds/CInode.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:23:59 +01:00
Danny Al-Gaaf
1e60fcfa67 mds/CDir.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:21:45 +01:00
Danny Al-Gaaf
d0d8929437 mds/AnchorServer.h: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:05 +01:00
Danny Al-Gaaf
8b96655b33 mds/AnchorServer.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:05 +01:00
Danny Al-Gaaf
1525053c15 mds/AnchorClient.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:05 +01:00
Danny Al-Gaaf
f4a78a244e librbd/internal.cc: prefer prefix ++operator for iterators
Prefer prefix ++operator for iterators, move iterator declaration into
the related for loop.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:05 +01:00
Danny Al-Gaaf
2ef97a689e librbd/ImageCtx.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:05 +01:00
Danny Al-Gaaf
7332796023 librados/RadosClient.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:05 +01:00
Danny Al-Gaaf
5ac012acfd librados/IoCtxImpl.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:05 +01:00
Danny Al-Gaaf
ab46e6d56c libcephfs.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:05 +01:00
Danny Al-Gaaf
e8d59d563e kv_flat_btree_async.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:04 +01:00
Danny Al-Gaaf
46c0d9ce55 key_value_store/cls_kvs.cc: prefer prefix --operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:04 +01:00
Danny Al-Gaaf
e2776a93e6 crush/CrushWrapper.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:04 +01:00
Danny Al-Gaaf
9a1b86303d crush/CrushCompiler.cc: prefer prefix --operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:04 +01:00
Danny Al-Gaaf
381bee3e32 common/lockdep.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:04 +01:00
Danny Al-Gaaf
60cedb1163 client/SyntheticClient.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-14 19:18:04 +01:00
Dan Mick
31a3645173 mon: refuse "mon remove" if only one mon left
Fixes: #4439
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-03-14 11:02:12 -07:00
David Zafman
f56620b7fc osd: data loss: low space handling
Add check whether to allow writing ops based on failsafe full percentage
Check for failsafe nearfull warning or full error message every heartbeat
Use clock to limit messages to every 30 secs (osd_op_complaint_time)

Feature: #4197

Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-03-14 10:20:03 -07:00
Gary Lowell
ce7ee72792 ceph_common.sh: Fix sed regex in get_local_daemon_list
In get_local_daemon_list() the sed expression trimming the cluster
name from the host name was trimming too much if the host name
contained hyphens.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-03-14 10:02:14 -07:00
Josh Durgin
8c774aace2 rbd: clean up do_import() a bit
Move declarations above error conditons so we can goto done almost
everywhere. Remove cpp_strerror printing, since it will be done by the
caller.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-03-14 09:22:58 -07:00