Commit Graph

24750 Commits

Author SHA1 Message Date
Danny Al-Gaaf
eed147618a ceph.spec.in: merge fdupes support from SUSE packages
Use fdupes to avoid duplicated files as done in the SUSE
packages. Since it doesn't work as expected on Fedora/RHEL
do this only on SUSE based distros.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-01 12:02:44 +01:00
Danny Al-Gaaf
558681d9fd ceph.spec.in: add on non-RHEL sharutils to 'BuildRequires:'
Add sharutils to 'BuildRequires:', needed for configure.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-01 11:56:54 +01:00
Danny Al-Gaaf
db4fee2933 ceph.spec.in: fix 'Requires:' to get sgdisk into the system
Fix package Requirements to get sgdisk. On RHEL/CentOS/Fedora the
package is gdisk. On SUSE/openSUSE < 12.2 it's scsirastools on
openSUSE >= 12.2 it's in gptfdisk.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-01 11:51:26 +01:00
Danny Al-Gaaf
c02e317f53 mds/Locker.cc: use static_cast instead of C-Style cast
Use static_cast<T>() instead of C-Style cast.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-01 11:41:06 +01:00
Danny Al-Gaaf
95cfffb260 mds/CDir.h: use static_cast instead of C-Style cast
Use static_cast<T>() instead of C-Style cast.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-01 11:22:23 +01:00
Gary Lowell
96e9da1f54 ceph.spec.in: gdisk for for rpm based systems instead of gptfdisk.
Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-02-28 22:31:47 -08:00
Sage Weil
862c761554 Merge branch 'next' 2013-02-28 16:58:02 -08:00
Sage Weil
0f42eddef5 msgr: drop messages on cons with CLOSED Pipes
Back in commit 6339c5d439, we tried to make
this deal with a race between a faulting pipe and new messages being
queued.  The sequence is

- fault starts on pipe
- fault drops pipe_lock to unregister the pipe
- user (objecter) queues new message on the con
- submit_message reopens a Pipe (due to this bug)
- the message managed to make it out over the wire
- fault finishes faulting, calls ms_reset
- user (objecter) closes the con
- user (objecter) resends everything

It appears as though the previous patch *meant* to drop *m on the floor in
this case, which is what this patch does.  And that fixes the crash I am
hitting; see #4271.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-02-28 16:57:42 -08:00
Sage Weil
2a84437f86 osd: add 'osd debug op order' to track and assert order of client ops
Keep a big fat slow map in memory to ensure that client ops are applied to
objects in the order the clien sent them.  This will make it easier to
catch ordering bugs due to requeuing as soon as they happen, when the logs
are easier to wade through, and not later when the client notices something
is awry.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-02-28 16:22:46 -08:00
Sage Weil
2ed9f5a96f osd: include osdmap epoch in osd_op message operator<<
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-02-28 16:22:46 -08:00
Sage Weil
0ad717aa4d osd: useful debugging for when we drop requests
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-02-28 16:22:46 -08:00
Samuel Just
d6724525e1 crush-map.rst: fix chooseleaf syntax in ssd example
Fixes: 4304
Backport: bobtail
Reviewed-by: Greg Farnum <greg@inktank.com>
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-02-28 15:50:48 -08:00
Sage Weil
6a9cda7ec4 Merge pull request #84 from dalgaaf/wip-da-sca-style
Some more smaller fixes

Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-28 14:59:19 -08:00
Sage Weil
ffc0ff68e0 init-ceph: kick off ceph-create-keys when starting mons
We don't have a particularly tidy way to kick off ceph-create-keys from
sysvinit.  So, do something simple, ugly, and functional: if we are
starting a mon, and it looks like a 'new' type that is in /var/lib/ceph,
then start ceph-create-keys too.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Gary Lowell <gary.lowell@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-02-28 13:45:04 -08:00
Sage Weil
1e0b2d8952 init-ceph: fix default admin socket path used for status
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-28 13:44:52 -08:00
Sage Weil
0cbe406f93 osd: show retry attempt in MOSDOp operator<<
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-28 13:33:40 -08:00
Sage Weil
c47c02dd87 msg/Pipe: allow tuning of TCP receive buffer size
Performance tests on high-end machines have indicated the Linux autotuning
of the receive buffer sizes can cause throughput collapse.  See bug
#2100, and this email discussion:

   http://marc.info/?l=ceph-devel&m=133009796706284&w=2

Initially default to 0, which leaves us with the default.  We may adjust
the default in the future.

Tested-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-02-28 13:01:27 -08:00
Sage Weil
e10c1d1453 msg/Pipe: move setting of socket options into a common method
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-02-28 13:00:19 -08:00
Samuel Just
5d54ab154c FileJournal::wrap_read_bl: adjust pos before returning
Otherwise, we may feed an offset past the end of the journal to
check_header in read_entry and incorrectly determine that the entry is
corrupt.

Fixes: 4296
Backport: bobtail
Backport: argonaut
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-02-28 11:08:27 -08:00
Danny Al-Gaaf
6cba92450f librbd/internal.cc: remove unused variable total_write
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 19:45:29 +01:00
Danny Al-Gaaf
c12d91e9e2 librbd/internal.cc: reduce scope of 'int r'
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 19:41:37 +01:00
Danny Al-Gaaf
bed61fcacb librados/librados.cc: don't check unsigned 'len' against less than zero
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 19:34:47 +01:00
Danny Al-Gaaf
a2b14cf64e librados/librados.cc: reduce scope of 'ret' in rados_objects_list_next()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 19:33:03 +01:00
Danny Al-Gaaf
f441d38c99 librados/librados.cc: use static_cast instead of C-Style cast
Use static_cast<T>() instead of C-Style cast.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 19:30:19 +01:00
Danny Al-Gaaf
56902d72e7 librados/RadosClient.cc: use static_cast instead of C-Style cast
Use static_cast<T>() instead of C-Style cast. Add some missing
includes to make the static_cast work.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 19:24:27 +01:00
Sage Weil
43e9edd0ce Merge pull request #82 from dalgaaf/wip-da-spec
ceph.spec.in: add new Requires from ceph-disk-prepare

Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-28 09:29:04 -08:00
Sage Weil
30a0852e43 Merge pull request #83 from dalgaaf/wip-da-realloc
crush/builder.c: fix realloc handling

Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-28 09:28:39 -08:00
Danny Al-Gaaf
2f66b493b2 crush/builder.c: fix realloc handling
Fix handling of realloc. If realloc() fails it returns NULL, assigning
the return value of realloc() directly to the pointer without checking
for the result will lead to a memory leak in error case.

Use a temporary pointer to hold the result of realloc(). In error case
return -ENOMEM, otherwise assign it to the pointer we want to realloc.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 18:07:28 +01:00
Danny Al-Gaaf
9b87690ffd crush/builder.c: fix sizeof handling of bucket->h.items
Fix sizeof handling for realloc/malloc of bucket->h.items. items are
of type __s32 and not __u32 (sizeof gives the same size, but fix it
to represent the correct type).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 17:13:24 +01:00
Danny Al-Gaaf
56777b0863 cls_rbd.cc: remove another unused variable
Remove 'new_snaps' since it only used for a sizeof() call,
get the size directly from the data type of new_snaps instead.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 16:12:20 +01:00
Danny Al-Gaaf
9f98b80f2e cls_rbd.cc: remove unused variable
Remove unused variable 'len', left over from commit
0b0009cfe8.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 15:56:22 +01:00
Danny Al-Gaaf
d75cf4661d CInode.h: use static_cast instead of C-Style cast
Use static_cast<const T>() instead of C-Style cast. Change CInode* to
const, since it never changed.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 14:58:38 +01:00
Danny Al-Gaaf
4f1cd469fc CDentry.h: use static_cast instead of C-Style cast
Use static_cast<T>() instead of C-Style cast.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 14:45:03 +01:00
Danny Al-Gaaf
5c3f5c5b69 ceph.spec.in: add new Requires from ceph-disk-prepare
Added new Requires from ceph-disk-prepare: cryptsetup, gptfdisk,
parted and util-linux.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-28 14:16:26 +01:00
Gary Lowell
caa0af2519 Merge branch 'wip-4222'
Fix for Bug 4222.  Add libcephfs-test.jar to the ceph-test package.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-02-27 21:54:51 -08:00
Sage Weil
5ce080946a fix ceph-object-corpus submodule commit
Broken by 58f4cd53b9

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-27 21:04:49 -08:00
Dan Mick
58f4cd53b9 doc: rbd-cloudstack: fix bullet list, missing words, change ! to . 2013-02-27 18:43:46 -08:00
Gary Lowell
b65ca564b6 ceph-test.install: Add libcephfs-test.jar to package.
Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-02-27 18:25:09 -08:00
Sage Weil
f5cfd9af3c Merge branch 'wip-4281'
Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-27 16:10:35 -08:00
John Wilkins
be3581ecff doc: Consolidated Ubuntu and Ubuntu 12.10 requirements.
fixes: #4288

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 16:03:31 -08:00
Joao Eduardo Luis
fac4959d1a mon: PaxosServices: don't ignore get_version(ver,bl) return value
get_version(version_t,bufferlist) can only return one of two values:
  -ENOENT iff the version doesn't exist
  zero iff it was successful

Any other value is incorrect.

Fixes: #4281

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-02-27 23:54:21 +00:00
John Wilkins
ded84b1b4d doc: Added dependencies for ubuntu 12.10.
fixes: #4288

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 15:53:51 -08:00
Sage Weil
cfcaceac44 debian: require cryptsetup-bin
This is needed for ceph-disk-prepare's dmcrypt support.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-27 15:43:57 -08:00
Sage Weil
5e278b852d vstart.sh: give mon. key mon = 'allow *' caps
This is needed for ceph-create-keys to do its thing.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-27 14:41:22 -08:00
John Wilkins
202ae8e7fd doc: fixed link and form edit.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 13:27:51 -08:00
John Wilkins
783555f7a3 doc: Added auth entry to index.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 13:27:21 -08:00
John Wilkins
7f7b2e7481 doc: Removed auth entries from general. Part of an auth-specific section now.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 13:26:59 -08:00
John Wilkins
712fca64e9 doc: Added comment to enable message. Added link to Auth Config Reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 13:26:19 -08:00
John Wilkins
c0ed9011dd doc: Added Auth Config Reference as standalone config reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-27 13:25:16 -08:00
Sage Weil
f62c5ab8e8 osd: allow log trimming during recovery
We rely on min_last_complete_ondisk being accurate; as long as we have logs
from that point, the current replicas will be able to safely recovery via
their logs.  Bump the target size, just as we do with degraded.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-02-27 11:21:11 -08:00