Commit Graph

26132 Commits

Author SHA1 Message Date
Sage Weil 150e1706cc Merge pull request #304 from javacruft/wip-invoke-rc.d
Use invoke-rc.d in maintainer scripts
2013-05-21 08:25:21 -07:00
James Page 19c5ac37ef Use invoke-rc.d in maintainer scripts
Upstart configurations and sysv init scripts should be started and stopped
using invoke-rc.d in maintainer scripts.

This ensures the correct behaviour across both Debian (sysv) and Ubuntu (upstart)
and in restricted environments such as schroot where start/stop of services from
maintainer scripts is normally disabled.

Signed-off-by: James Page <james.page@ubuntu.com>
2013-05-21 09:22:39 +01:00
Samuel Just 183280c864 PG: kill some dead IndexedLog methods
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-05-20 15:48:25 -07:00
Samuel Just 4cf00b9d5b OSD: kill old split code, it's been dead for a while
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
2013-05-20 15:32:53 -07:00
Sage Weil d9c92e772c Merge pull request #260 from ceph/wip-suppress
Reviewed-by: Gary Lowell <gary.lowell@inktank.com>
2013-05-20 14:40:22 -07:00
Sage Weil d2a42538b1 mds: better error check on sessionmap load
Would have helped with #5104.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-20 13:34:05 -07:00
Sage Weil 87767fb1fb mon: be a bit more verbose about osd mark down events
Put these in the cluster log; they are interesting.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-20 12:41:30 -07:00
Sage Weil 03b93260f5 Makefile: add -Wformat-security
Clean up the formatting a bit here too.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-20 12:35:13 -07:00
Sage Weil d37a7bcce4 Merge remote-tracking branch 'gh/next' 2013-05-20 12:22:29 -07:00
Sage Weil 80973a0002 Merge pull request #301 from javacruft/wip-upstart-tasks
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-20 09:10:04 -07:00
Sage Weil ea6a262b5d Merge pull request #300 from javacruft/wip-format-security
Fix -Werror=format-security errors
2013-05-20 09:07:10 -07:00
Mike Kelly d05a4e5574 ceph df: fix si units for 'global' stats
si_t expects bytes, but it was being given kilobytes.

Signed-off-by: Mike Kelly <pioto@pioto.org>
(cherry picked from commit 0c2b738d8d)
2013-05-20 09:06:09 -07:00
Sage Weil 90740d882a Merge pull request #302 from pioto/ceph-df-unit-fix
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-20 09:05:25 -07:00
Mike Kelly 0c2b738d8d ceph df: fix si units for 'global' stats
si_t expects bytes, but it was being given kilobytes.

Signed-off-by: Mike Kelly <pioto@pioto.org>
2013-05-20 08:48:35 -04:00
James Page 17f6fccabc Remove stop on from upstart tasks
Upstart tasks don't have to concept of 'stop on' as they
are not long running.
2013-05-20 10:26:06 +01:00
James Page 6340ba8ac4 Fix -Werror=format-security errors
Fixup a couple of errors when compilng with -Werror=format-security.
2013-05-20 10:21:16 +01:00
Sage Weil 8bba266b95 libcephfs: add ceph_get_pool_name()
Convert an int pool id to a pool name.  Useful for making sense of the
output from ceph_get_*_layout()'s poolid output argument.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-17 17:06:36 -07:00
Sage Weil 863d6d78e4 Merge pull request #253 from Elbandi/wip-getlayout
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-17 16:59:18 -07:00
John Wilkins feec1b4630 doc: Added more glossary-compliant terms and indexing.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-17 15:59:02 -07:00
John Wilkins 5c4b4f0f65 doc: Added another instance term to the glossary.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-17 15:58:25 -07:00
John Wilkins decf342c26 doc: Minor improvements to Ceph FS landing page.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-17 15:56:59 -07:00
Andras Elso 3255f1158e libcephfs: get the pool name of a file path
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:50:47 +02:00
Andras Elso 3562c8c5b2 libcephfs: get replication factor of a file handle/path
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:45:47 +02:00
Andras Elso 877fcf0be0 libcephfs: get file handle/path layout info
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:43:48 +02:00
Andras Elso 42c74fde5a libcephfs: get stripe_unit/stripe_count/object_size/pool_id by file handle/path
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:39:37 +02:00
Andras Elso 10496a842f libcephfs: fix typos
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:10:54 +02:00
Andras Elso ee3d50e61e Client: get describe_layout by file handle/path
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:10:54 +02:00
Sage Weil d0a5d3a7f4 Merge pull request #295 from ceph/wip-5077
Reviewed-by: Joao Luis <joao.luis@inktank.com>
2013-05-17 09:26:25 -07:00
Sage Weil 69e2cbef6a mon: add 'compact' command
As in, 'ceph mon tell \* compact'

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Luis <joao.luis@inktank.com>
2013-05-17 09:17:18 -07:00
Josh Durgin b238f3562c Merge pull request #296 from dalgaaf/wip-da-CID-1021213
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-05-17 08:35:10 -07:00
Danny Al-Gaaf 4ba70f8fb4 librbd/internal.cc: fix resource leak
Call release() on librados::AioCompletion to free storage before
leave the loop or call new again.

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

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-17 13:54:09 +02:00
John Wilkins 7494e4eb6b doc: Omitted literal syntax from toc.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 23:10:54 -07:00
John Wilkins 381ad24d09 doc: Added fuse syntax to the fstab doc.
fixes: #3672

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 23:10:32 -07:00
Sage Weil 231a2aa875 Merge branch 'next' 2013-05-16 20:39:56 -07:00
Sage Weil c80c6a032c sysvinit: fix enumeration of local daemons when specifying type only
- prepend $local to the $allconf list at the top
- remove $local special case for all case
- fix the type prefix checks to explicitly check for prefixes

Fugly bash, but works!

Backport: cuttlefish, bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-05-16 20:39:32 -07:00
Sage Weil d8d7113c35 udev: install disk/by-partuuid rules
Wheezy's udev (175-7.2) has broken rules for the /dev/disk/by-partuuid/
symlinks that ceph-disk relies on.  Install parallel rules that work.  On
new udev, this is harmless; old older udev, this will make life better.

Fixes: #4865
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-16 18:40:29 -07:00
Sage Weil 65072f2e43 mon: clear pg delta after some period
If we have not pg_map updates, the delta doesn't update, and can get stuck
with the velocity right before activity stopped.  This is confusing, and
can cause incorrect health warnings about in-progress recovery.

To fix this, zero the delta if there is no activity for
'mon delta reset interval' seconds.

Fixes: #5077
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-16 17:58:48 -07:00
Sage Weil acf6b8f96f os/FileStore: fix replay guard error msgs (again)
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-16 16:12:11 -07:00
Samuel Just 9b9d322c20 test_filestore_idempotent_sequence: unmount prior to deleting store
FileStoreDiff umounts the stores in its destructor.

Also, DeterministicOpSequence handles deletes its passed
object store.

Fixes: #5076
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
2013-05-16 15:46:11 -07:00
Samuel Just 5a27e85cf1 Revert "test_filejournal.cc: cleanup memory in destructor"
The finish() method for Contexts calls delete this.

This reverts commit 36028916c4.

Fixes: #5075
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
2013-05-16 15:45:42 -07:00
Sage Weil c49ba750a7 os/FileStore: print error code to log on replay guard failure
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-16 15:28:24 -07:00
John Wilkins 8fa3039e46 doc: Added index reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 13:59:49 -07:00
John Wilkins 74a73f2f9a doc: Added glossary references and index references.
fixes: #3321

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 13:59:29 -07:00
John Wilkins 5737d032bf doc: Added cluster map and CRUSH definitions.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 13:57:53 -07:00
John Wilkins 58a880bd14 doc: Fixing index references.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 13:57:23 -07:00
John Wilkins 46f5f585de doc: Added latency comment.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 13:56:06 -07:00
Sage Weil 604c83ff18 debian: make radosgw require matching version of librados2
...indirectly via ceph-common.  We get bad behavior when they diverge, I
think because of libcommon.la being linked both statically and dynamically.

Fixes: #4997
Backport: cuttlefish, bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Gary Lowell <gary.lowell@inktank.com>
2013-05-16 13:17:45 -07:00
Sage Weil 2df6e37641 Merge pull request #291 from dalgaaf/wip-da-CID-1019548
client/Client.cc: fix/silence "logically dead code" CID-Error

Even money that this satisfies the coverity gods...

Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-16 13:10:50 -07:00
Samuel Just eaf3abf3f9 FileJournal: adjust write_pos prior to unlocking write_lock
In committed_thru, we use write_pos to reset the header.start value in cases
where seq is past the end of our journalq.  It is therefore important that the
journalq be updated atomically with write_pos (that is, under the write_lock).

The call to align_bl() is moved into do_write in order to ensure that write_pos
is adjusted correctly prior to write_bl().

Also, we adjust pos at the end of write_bl() such that pos \in [get_top(),
header.max_size) after write_bl().

Fixes: #5020
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-16 11:14:37 -07:00
Danny Al-Gaaf 541396faae client/Client.cc: fix/silence "logically dead code" CID-Error
Fix handling of 'safe' and the conditions after calling file_flush().

CID 1019548 (#1 of 1): Logically dead code (DEADCODE)
  dead_error_begin: Execution cannot reach this statement "flock.Unlock();"

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 19:49:06 +02:00