]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agoclient/SyntheticClient.cc: check return value of describe_layout()
Danny Al-Gaaf [Fri, 10 May 2013 15:43:03 +0000 (17:43 +0200)]
client/SyntheticClient.cc: check return value of describe_layout()

Fix SyntheticClient::chunk_file(): check return value of
describe_layout() and handle the error.

CID 966615 Unchecked return value (CWE-252)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoclient/Client.cc: fix possible NULL pointer dereference
Danny Al-Gaaf [Fri, 10 May 2013 15:30:41 +0000 (17:30 +0200)]
client/Client.cc: fix possible NULL pointer dereference

CID 751332 Dereference null return value (CWE-476)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorados.cc: fix leaking of Formatter*
Danny Al-Gaaf [Fri, 10 May 2013 14:54:39 +0000 (16:54 +0200)]
rados.cc: fix leaking of Formatter*

Make sure Formatter* is deleted in error case.

717096 Resource leak (CWE-404) (25 of 25 cases)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoclient/SyntheticClient.cc: fix another memory leak
Danny Al-Gaaf [Fri, 10 May 2013 13:54:46 +0000 (15:54 +0200)]
client/SyntheticClient.cc: fix another memory leak

Fix memory leak in read_random: call delete[] on buf before
call new[] again in the for-loop.

CID 717071 Resource leak (CWE-404)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoclient/SyntheticClient.cc: fix memory leak
Danny Al-Gaaf [Fri, 10 May 2013 13:49:56 +0000 (15:49 +0200)]
client/SyntheticClient.cc: fix memory leak

Fix memory leak in read_random: call delete[] on buf before
call new[] again in the for-loop.

CID 717070 Resource leak (CWE-404)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/MDCache.cc: fix dereference NULL pointer
Danny Al-Gaaf [Fri, 10 May 2013 13:28:32 +0000 (15:28 +0200)]
mds/MDCache.cc: fix dereference NULL pointer

Fix possible NULL pointer dereference. Change return value of
CInode::get_dirfrag() to return NULL instead of 0 since it's a
pointer returned.

CID 716991 Dereference null return value (CWE-478)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/MDCache.cc: add NULL pointer check
Danny Al-Gaaf [Fri, 10 May 2013 13:19:55 +0000 (15:19 +0200)]
mds/MDCache.cc: add NULL pointer check

Check for result of get_inode() for NULL before use the pointer.

716990 Dereference null return value (CWE-476)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/Server.cc: remove dead default in switch
Danny Al-Gaaf [Fri, 10 May 2013 13:12:26 +0000 (15:12 +0200)]
mds/Server.cc: remove dead default in switch

The default switch can't get executed since the switch value
can only have the two values already checked.

CID 716894 Dead default in switch (CWE-561)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoosd/OSD.h: add missing unlock of osd_lock
Danny Al-Gaaf [Fri, 10 May 2013 12:11:14 +0000 (14:11 +0200)]
osd/OSD.h: add missing unlock of osd_lock

CID 1019560 Missing unlock (CWE-667)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_rest.cc: remove dead and unneeded code
Danny Al-Gaaf [Fri, 10 May 2013 12:03:13 +0000 (14:03 +0200)]
rgw/rgw_rest.cc: remove dead and unneeded code

Since origin and meth are already checked to be true there is
no need to check again in s->cio->print() after the initial check.

1019551 Logically dead code (CWE-561)
1019552 Logically dead code (CWE-561)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorbd.cc: fix error handling
Danny Al-Gaaf [Fri, 10 May 2013 11:55:43 +0000 (13:55 +0200)]
rbd.cc: fix error handling

Fix undead code. Get error code from write_fd() before check
the result against < 0.

CID 1019550 Logically dead code (CWE-561)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorados_sync.cc: remove dead and not needed code
Danny Al-Gaaf [Fri, 10 May 2013 11:44:50 +0000 (13:44 +0200)]
rados_sync.cc: remove dead and not needed code

The first if handles all chars < 32, the last 2 if's check for
'\n' (10) and '\r' (13). This code will never be reached and
is already covered. Remove unneeded code.

CID 1019549 Logically dead code (CWE-561)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agotest/omap_bench.cc: remove dead code
Danny Al-Gaaf [Fri, 10 May 2013 11:28:32 +0000 (13:28 +0200)]
test/omap_bench.cc: remove dead code

CID 716900 Logically dead code (CWE-561)
CID 716901 Logically dead code (CWE-561)
CID 727968 Logically dead code (CWE-561)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agolibcephfs/test.cc: add assert for result of ceph_getxattr()
Danny Al-Gaaf [Fri, 10 May 2013 11:07:24 +0000 (13:07 +0200)]
libcephfs/test.cc: add assert for result of ceph_getxattr()

Check result of ceph_getxattr() before pass it as parameter to
strncmp(). Make sure it's not negative.

CID 739411 Argument cannot be negative (CWE-687)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_user.cc: add missing break in switch
Danny Al-Gaaf [Fri, 10 May 2013 10:41:04 +0000 (12:41 +0200)]
rgw/rgw_user.cc: add missing break in switch

Fix switch handling for case KEY_TYPE_SWIFT, add break after the
case to prevent fall through into KEY_TYPE_S3 case.

CID 1019563 Missing break in switch (CWE-484)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoclient/SyntheticClient.cc: add missing break in switch
Danny Al-Gaaf [Fri, 10 May 2013 10:31:31 +0000 (12:31 +0200)]
client/SyntheticClient.cc: add missing break in switch

Fix switch handling for case SYNCLIENT_MODE_OVERLOAD_OSD_0, add break
after the case to prevent fall through into next case.

CID 716958 Missing break in switch (CWE-484)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoObjectStore.cc: add missing break in switch
Danny Al-Gaaf [Fri, 10 May 2013 10:22:42 +0000 (12:22 +0200)]
ObjectStore.cc: add missing break in switch

Fix switch handling for case OP_SPLIT_COLLECTION2, add break after
the case to prevent fall through into default case.

CID 1019562 Missing break in switch (CWE-484)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agodoc: Fixed typos. Somehow got a merge error.
John Wilkins [Fri, 10 May 2013 21:39:23 +0000 (14:39 -0700)]
doc: Fixed typos. Somehow got a merge error.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agomds: be more explicit about path_traverse completion
Sage Weil [Fri, 10 May 2013 21:14:52 +0000 (14:14 -0700)]
mds: be more explicit about path_traverse completion

Coverity turned up

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

from _find_ino_dir(), but for all r > 0 cases fin is consumed.  Make this
a bit more explicit by using the helper in the mdr-only case, and by
asserting it is zero in the return 2 path.  Hopefully coverity will notice.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc: fix broken link to ceph-deploy in release notes
Ross Turk [Fri, 10 May 2013 20:53:21 +0000 (13:53 -0700)]
doc: fix broken link to ceph-deploy in release notes

Signed-off-by: Ross Turk <ross@inktank.com>
12 years agodoc: Added entry for the RGW Admin Ops API.
John Wilkins [Fri, 10 May 2013 18:30:48 +0000 (11:30 -0700)]
doc: Added entry for the RGW Admin Ops API.

fixes: #5002

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge pull request #271 from dalgaaf/wip-da-sca-cppcheck-v2.1
Sage Weil [Fri, 10 May 2013 17:26:05 +0000 (10:26 -0700)]
Merge pull request #271 from dalgaaf/wip-da-sca-cppcheck-v2.1

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agolibcephfs_jni.cc: reduce scope of ret variable 271/head
Danny Al-Gaaf [Tue, 7 May 2013 15:42:34 +0000 (17:42 +0200)]
libcephfs_jni.cc: reduce scope of ret variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoinclude/ceph_hash.cc: reduce scope of a var in ceph_str_hash_rjenkins()
Danny Al-Gaaf [Tue, 7 May 2013 15:40:51 +0000 (17:40 +0200)]
include/ceph_hash.cc: reduce scope of a var in ceph_str_hash_rjenkins()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoinclude/addr_parsing.c: reduce scope of port_str in safe_cat()
Danny Al-Gaaf [Tue, 7 May 2013 15:35:21 +0000 (17:35 +0200)]
include/addr_parsing.c: reduce scope of port_str in safe_cat()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoglobal/global_init.cc: reduce scope of ret in global_init_daemonize()
Danny Al-Gaaf [Tue, 7 May 2013 15:32:52 +0000 (17:32 +0200)]
global/global_init.cc: reduce scope of ret in global_init_daemonize()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agocrush/builder.c: reduce scope of oldsize in crush_add_bucket()
Danny Al-Gaaf [Tue, 7 May 2013 15:26:33 +0000 (17:26 +0200)]
crush/builder.c: reduce scope of oldsize in crush_add_bucket()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agocommon/safe_io.c: reduce scope of some ssize_t variables
Danny Al-Gaaf [Tue, 7 May 2013 15:25:26 +0000 (17:25 +0200)]
common/safe_io.c: reduce scope of some ssize_t variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agocommon/obj_bencher.cc: reduce scope of avg_bandwidth
Danny Al-Gaaf [Tue, 7 May 2013 15:19:36 +0000 (17:19 +0200)]
common/obj_bencher.cc: reduce scope of avg_bandwidth

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agocommon/ceph_argparse.cc: remove scope of some variables
Danny Al-Gaaf [Tue, 7 May 2013 15:17:49 +0000 (17:17 +0200)]
common/ceph_argparse.cc: remove scope of some variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agocommon/admin_socket.cc: remove scope of ret variable in do_accept()
Danny Al-Gaaf [Tue, 7 May 2013 15:11:32 +0000 (17:11 +0200)]
common/admin_socket.cc: remove scope of ret variable in do_accept()

Reduce scope of ret variable and remove usage in one case.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agocls/rbd/cls_rbd.cc: reduce scope of variable rc
Danny Al-Gaaf [Tue, 7 May 2013 15:06:29 +0000 (17:06 +0200)]
cls/rbd/cls_rbd.cc: reduce scope of variable rc

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_op.cc: use empty() instead of size()
Danny Al-Gaaf [Tue, 7 May 2013 14:59:18 +0000 (16:59 +0200)]
rgw/rgw_op.cc: use empty() instead of size()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph-filestore-dump.cc: use empty() instead of size()
Danny Al-Gaaf [Tue, 7 May 2013 14:58:33 +0000 (16:58 +0200)]
ceph-filestore-dump.cc: use empty() instead of size()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agodoc: Updated usage syntax. Added links to hardware and manual OSD remove.
John Wilkins [Fri, 10 May 2013 16:37:03 +0000 (09:37 -0700)]
doc: Updated usage syntax. Added links to hardware and manual OSD remove.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge branch 'wip_pg_res'
Samuel Just [Fri, 10 May 2013 05:24:25 +0000 (22:24 -0700)]
Merge branch 'wip_pg_res'

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoOSD: rename clear_temp to recursive_remove_collection()
Samuel Just [Fri, 10 May 2013 00:25:57 +0000 (17:25 -0700)]
OSD: rename clear_temp to recursive_remove_collection()

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoosd: remove_dir use collection_list_partial
Samuel Just [Fri, 10 May 2013 00:17:35 +0000 (17:17 -0700)]
osd: remove_dir use collection_list_partial

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoPG: no need to wait on DeletingStateRef for flush
Samuel Just [Thu, 9 May 2013 23:49:46 +0000 (16:49 -0700)]
PG: no need to wait on DeletingStateRef for flush

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoosd_internals/pg_removal.rst: update for pg resurrection
Samuel Just [Thu, 9 May 2013 19:13:46 +0000 (12:13 -0700)]
osd_internals/pg_removal.rst: update for pg resurrection

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoOSD: add pg deletion cancelation
Samuel Just [Tue, 7 May 2013 18:12:43 +0000 (11:12 -0700)]
OSD: add pg deletion cancelation

DeletingState now allows _create_lock_pg() to attempt to cancel
pg deletion.

PG::init() must mark the PG as backfill iff we stopped a deletion.

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agocommon/sharedptr_registry.hpp: add remove
Samuel Just [Thu, 9 May 2013 23:29:28 +0000 (16:29 -0700)]
common/sharedptr_registry.hpp: add remove

remove() can be used to clear an entry before all of its
references are removed.

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoMerge branch 'master' of https://github.com/ceph/ceph
John Wilkins [Thu, 9 May 2013 19:49:59 +0000 (12:49 -0700)]
Merge branch 'master' of https://github.com/ceph/ceph

12 years agodoc: Updated doc for connectivity. Updated text with glossary terms.
John Wilkins [Thu, 9 May 2013 19:48:59 +0000 (12:48 -0700)]
doc: Updated doc for connectivity. Updated text with glossary terms.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated disk syntax. Updated text with glossary terms.
John Wilkins [Thu, 9 May 2013 19:48:14 +0000 (12:48 -0700)]
doc: Updated disk syntax. Updated text with glossary terms.

fixes: #4933

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge pull request #267 from ceph/wip-coverity
Sage Weil [Thu, 9 May 2013 19:47:47 +0000 (12:47 -0700)]
Merge pull request #267 from ceph/wip-coverity

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agodoc: Added connectivity section. Updated doc with glossary terms.
John Wilkins [Thu, 9 May 2013 19:46:03 +0000 (12:46 -0700)]
doc: Added connectivity section. Updated doc with glossary terms.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added the non-implemented bit for the gateway to the dev/radosgw TOC.
John Wilkins [Thu, 9 May 2013 19:22:21 +0000 (12:22 -0700)]
doc: Added the non-implemented bit for the gateway to the dev/radosgw TOC.

fixes: #4978

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoOSD: don't rename pg collections, handle PGs in RemoveWQ
Samuel Just [Thu, 9 May 2013 19:20:24 +0000 (12:20 -0700)]
OSD: don't rename pg collections, handle PGs in RemoveWQ

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoMerge branch 'master' of https://github.com/ceph/ceph
John Wilkins [Thu, 9 May 2013 19:09:00 +0000 (12:09 -0700)]
Merge branch 'master' of https://github.com/ceph/ceph

12 years agodoc: Republishing the admin operations API for the gateway.
John Wilkins [Thu, 9 May 2013 19:08:28 +0000 (12:08 -0700)]
doc: Republishing the admin operations API for the gateway.

fixes: #4978

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Republishing the admin operations API for the gateway.
John Wilkins [Thu, 9 May 2013 19:07:05 +0000 (12:07 -0700)]
doc: Republishing the admin operations API for the gateway.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Document admin api web interface.
caleb miles [Fri, 5 Apr 2013 18:38:00 +0000 (14:38 -0400)]
doc: Document admin api web interface.

Signed-off-by: caleb miles <caleb.miles@inktank.com>
12 years agoosd: initialize OSDService::next_notif_id 267/head
Sage Weil [Thu, 9 May 2013 16:45:51 +0000 (09:45 -0700)]
osd: initialize OSDService::next_notif_id

CID 1019627 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member "next_notif_id" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: init test_ops_hook
Sage Weil [Thu, 9 May 2013 16:44:20 +0000 (09:44 -0700)]
osd: init test_ops_hook

CID 1019628 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member "test_ops_hook" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorbd: fix buffer leak in do_import
Sage Weil [Thu, 9 May 2013 16:42:27 +0000 (09:42 -0700)]
rbd: fix buffer leak in do_import

CID 1019580 (#2 of 2): Resource leak (RESOURCE_LEAK)
10. leaked_storage: Variable "p" going out of scope leaks the storage it points to.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrbd: fix possible use-after-free
Sage Weil [Thu, 9 May 2013 16:40:00 +0000 (09:40 -0700)]
librbd: fix possible use-after-free

(of the pointer)

CID 966634 (#1 of 1): Use after free (USE_AFTER_FREE)
2. use_after_free: Using freed pointer "ictx".

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-filestore-dump: fix uninit fields in ctor
Sage Weil [Thu, 9 May 2013 15:50:33 +0000 (08:50 -0700)]
ceph-filestore-dump: fix uninit fields in ctor

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorgw: fix various uninit class fields
Sage Weil [Thu, 9 May 2013 15:50:18 +0000 (08:50 -0700)]
rgw: fix various uninit class fields

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoradosgw-admin: fix fd leak in read_input()
Sage Weil [Thu, 9 May 2013 15:50:05 +0000 (08:50 -0700)]
radosgw-admin: fix fd leak in read_input()

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorados: fix fd leak
Sage Weil [Thu, 9 May 2013 15:49:51 +0000 (08:49 -0700)]
rados: fix fd leak

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorados: fix buffer leak
Sage Weil [Thu, 9 May 2013 15:49:40 +0000 (08:49 -0700)]
rados: fix buffer leak

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/Filestore: fix fd leak in error path
Sage Weil [Thu, 9 May 2013 15:49:25 +0000 (08:49 -0700)]
os/Filestore: fix fd leak in error path

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: fix Formatter leak
Sage Weil [Thu, 9 May 2013 15:49:14 +0000 (08:49 -0700)]
mon: fix Formatter leak

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomds: fix fd leak
Sage Weil [Thu, 9 May 2013 15:49:07 +0000 (08:49 -0700)]
mds: fix fd leak

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc/release-notes: v0.61.1 release notes
Sage Weil [Thu, 9 May 2013 17:04:05 +0000 (10:04 -0700)]
doc/release-notes: v0.61.1 release notes

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Thu, 9 May 2013 00:45:03 +0000 (17:45 -0700)]
Merge remote-tracking branch 'gh/next'

Conflicts:
src/mon/MonitorDBStore.h

12 years agomon: dump MonitorDBStore transactions to file
Samuel Just [Thu, 2 May 2013 21:13:07 +0000 (14:13 -0700)]
mon: dump MonitorDBStore transactions to file

Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 797089ef082b99910eebfd9454c03d1f027c93bb)

12 years agoosd: optionally enable leveldb logging
Sage Weil [Mon, 6 May 2013 21:21:28 +0000 (14:21 -0700)]
osd: optionally enable leveldb logging

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 0b4c5c1a3349670d11cc3c4fb3c4b3c1a80b2502)

12 years agomon: allow leveldb logging
Sage Weil [Mon, 6 May 2013 21:13:50 +0000 (14:13 -0700)]
mon: allow leveldb logging

'mon leveldb log = filename'

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit c1d5f815546b731e10bfcb81cbcd48b7d432e9c4)

12 years agocommon/Preforker: fix warnings
Sage Weil [Wed, 8 May 2013 23:42:24 +0000 (16:42 -0700)]
common/Preforker: fix warnings

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodebian/control: squeeze requres cryptsetup package
Gary Lowell [Wed, 8 May 2013 23:33:05 +0000 (16:33 -0700)]
debian/control:  squeeze requres cryptsetup package

Squeeze requires the cryptsetup package which has been renamed
cryptsetup-bin in later versions.  Allow either package to
satisfy the dependency.

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
(cherry picked from commit 83bbae415de16f708ca1cb24861ddbb0bd514a7f)

12 years agodebian/control: squeeze requres cryptsetup package
Gary Lowell [Wed, 8 May 2013 23:33:05 +0000 (16:33 -0700)]
debian/control:  squeeze requres cryptsetup package

Squeeze requires the cryptsetup package which has been renamed
cryptsetup-bin in later versions.  Allow either package to
satisfy the dependency.

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agoceph-create-keys: gracefully handle no data from admin socket
Sage Weil [Wed, 8 May 2013 21:54:33 +0000 (14:54 -0700)]
ceph-create-keys: gracefully handle no data from admin socket

Old ceph-mon (prior to 393c9372f82ef37fc6497dd46fc453507a463d42) would
return an empty string and success if the command was not registered yet.
Gracefully handle that case by retrying.

If we still fail to parse, exit entirely with EINVAL.

Fixes: #4952
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@intank.com>
12 years agoinit-ceph: fix osd_data location when checking df utilization
Sage Weil [Wed, 8 May 2013 21:35:54 +0000 (14:35 -0700)]
init-ceph: fix osd_data location when checking df utilization

Do not assume default osd data location.

Fixes: #4951
Backport: cuttlefish, bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Gary Lowelll <gary.lowell@inktank.com>
12 years agoMerge pull request #266 from ceph/wip-4949
athanatos [Wed, 8 May 2013 19:15:30 +0000 (12:15 -0700)]
Merge pull request #266 from ceph/wip-4949

osd: don't assert if get_omap_iterator() returns NULL

Reviewed-by: Sam Just <sam.just@inktank.com>
12 years agoosd: don't assert if get_omap_iterator() returns NULL 266/head
Yehuda Sadeh [Wed, 8 May 2013 19:18:49 +0000 (12:18 -0700)]
osd: don't assert if get_omap_iterator() returns NULL

Fixes: #4949
This can happen if the object does not exist and it's
a write operation. Just return -ENOENT.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoMerge pull request #165 from dachary/wip-4321
Sage Weil [Wed, 8 May 2013 18:44:24 +0000 (11:44 -0700)]
Merge pull request #165 from dachary/wip-4321

unit tests for FileStore::_detect_fs when running on ext4

12 years agorgw: user operation mask
Yehuda Sadeh [Fri, 3 May 2013 04:05:21 +0000 (21:05 -0700)]
rgw: user operation mask

Fixes: #4716
add user operation mask for controlling user permissions.
Also add admin controls for it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoMerge pull request #180 from ceph/wip-rados-clone
Josh Durgin [Wed, 8 May 2013 18:26:04 +0000 (11:26 -0700)]
Merge pull request #180 from ceph/wip-rados-clone

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoMerge branch 'wip_split_upgrade' into next
Samuel Just [Wed, 8 May 2013 18:14:11 +0000 (11:14 -0700)]
Merge branch 'wip_split_upgrade' into next

Fixes: #4927
12 years agoOSD: handle stray snap collections from upgrade bug
Samuel Just [Tue, 7 May 2013 23:41:22 +0000 (16:41 -0700)]
OSD: handle stray snap collections from upgrade bug

Previously, we failed to clear snap_collections, which causes split to
spawn a bunch of snap collections.  In load_pgs, we now clear any such
snap collections and then snap_collections field on the PG itself.

Related: #4927
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoPG: clear snap_collections on upgrade
Samuel Just [Tue, 7 May 2013 23:35:57 +0000 (16:35 -0700)]
PG: clear snap_collections on upgrade

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoOSD: snap collections can be ignored on split
Samuel Just [Tue, 7 May 2013 23:34:57 +0000 (16:34 -0700)]
OSD: snap collections can be ignored on split

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #265 from ceph/wip-mon-trace
Sage Weil [Wed, 8 May 2013 18:08:48 +0000 (11:08 -0700)]
Merge pull request #265 from ceph/wip-mon-trace

12 years agomon: set MonitorDBStore options on open 265/head
Sage Weil [Wed, 8 May 2013 18:08:16 +0000 (11:08 -0700)]
mon: set MonitorDBStore options on open

So both ctors set the options.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #254 from ceph/wip-crush-rules
Sage Weil [Wed, 8 May 2013 18:06:18 +0000 (11:06 -0700)]
Merge pull request #254 from ceph/wip-crush-rules

Reviewed-by: Joao Luis <joao.luis@inktank.com>
12 years agoceph: return error code when failing to get result from admin socket
Sage Weil [Wed, 8 May 2013 18:05:29 +0000 (11:05 -0700)]
ceph: return error code when failing to get result from admin socket

Make sure we return a non-zero result code when we fail to read something
from the admin socket.

Backport: cuttlefish, bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-monstore-tool: added replay
Samuel Just [Thu, 2 May 2013 22:23:48 +0000 (15:23 -0700)]
ceph-monstore-tool: added replay

12 years agoceph-monstore-tool: add MonitorDBStore trace dumper
Samuel Just [Thu, 2 May 2013 22:19:06 +0000 (15:19 -0700)]
ceph-monstore-tool: add MonitorDBStore trace dumper

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agomon: dump MonitorDBStore transactions to file
Samuel Just [Thu, 2 May 2013 21:13:07 +0000 (14:13 -0700)]
mon: dump MonitorDBStore transactions to file

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoMerge pull request #261 from ceph/wip-leveldb
Sage Weil [Wed, 8 May 2013 18:01:51 +0000 (11:01 -0700)]
Merge pull request #261 from ceph/wip-leveldb

Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agodoc/install/os-recs: reverse order of releases
Sage Weil [Wed, 8 May 2013 01:26:40 +0000 (18:26 -0700)]
doc/install/os-recs: reverse order of releases

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #263 from wido/config-get
Sage Weil [Wed, 8 May 2013 01:17:01 +0000 (18:17 -0700)]
Merge pull request #263 from wido/config-get

Add "config get <var>" to the admin

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agodoc: Fixed typos.
John Wilkins [Wed, 8 May 2013 01:05:28 +0000 (18:05 -0700)]
doc: Fixed typos.

fixes: #4932

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Fixed typo.
John Wilkins [Tue, 7 May 2013 23:11:29 +0000 (16:11 -0700)]
doc: Fixed typo.

fixes: #4422

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Removed "and" as suggested.
John Wilkins [Tue, 7 May 2013 23:08:11 +0000 (16:08 -0700)]
doc: Removed "and" as suggested.

fixes: #3686

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Fixed hyperlink.
John Wilkins [Tue, 7 May 2013 20:48:55 +0000 (13:48 -0700)]
doc: Fixed hyperlink.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Fixed path typo.
John Wilkins [Tue, 7 May 2013 20:43:32 +0000 (13:43 -0700)]
doc: Fixed path typo.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated OS support for Cuttlefish.
John Wilkins [Tue, 7 May 2013 18:49:30 +0000 (11:49 -0700)]
doc: Updated OS support for Cuttlefish.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>