Commit Graph

26011 Commits

Author SHA1 Message Date
David Zafman
09163a3bbc Add priority option to AsyncReserver class
Add priority to request_reservation()
Change to map of lists by prioriry
Add priority to queue_pointers mappped type

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-05-09 12:00:29 -07:00
David Zafman
df049c1c1f AsyncReserver: Remove assert in set_max() for max > 0
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-05-09 12:00:22 -07:00
caleb miles
da271f7f78 doc: Document admin api web interface.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
2013-05-09 11:15:01 -07:00
Sage Weil
499edd8bfc 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>
2013-05-09 10:49:00 -07:00
Sage Weil
e30a03210c 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>
2013-05-09 10:49:00 -07:00
Sage Weil
72b5629a7c 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>
2013-05-09 10:49:00 -07:00
Sage Weil
2bc0883072 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>
2013-05-09 10:49:00 -07:00
Sage Weil
4a90af8dfa ceph-filestore-dump: fix uninit fields in ctor
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-09 10:49:00 -07:00
Sage Weil
99958e2032 rgw: fix various uninit class fields
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-09 10:48:59 -07:00
Sage Weil
ad073c2b03 radosgw-admin: fix fd leak in read_input()
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-09 10:48:59 -07:00
Sage Weil
110a823fd4 rados: fix fd leak
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-09 10:48:59 -07:00
Sage Weil
3dc7c3295b rados: fix buffer leak
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-09 10:48:59 -07:00
Sage Weil
4087e425d6 os/Filestore: fix fd leak in error path
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-09 10:48:59 -07:00
Sage Weil
8632707656 mon: fix Formatter leak
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-09 10:48:59 -07:00
Sage Weil
76b9024005 mds: fix fd leak
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-09 10:48:58 -07:00
Sage Weil
5433462d86 doc/release-notes: v0.61.1 release notes
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-09 10:04:05 -07:00
Samuel Just
e5b2ca88ac PG: rename must_delay_request to op_must_wait_for_map, make static
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-08 19:47:32 -07:00
Sage Weil
5177fcb6bf Merge remote-tracking branch 'gh/next'
Conflicts:
	src/mon/MonitorDBStore.h
2013-05-08 17:45:03 -07:00
Samuel Just
6c1e479178 mon: dump MonitorDBStore transactions to file
Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 797089ef08)
2013-05-08 16:55:06 -07:00
Sage Weil
5a631b852d osd: optionally enable leveldb logging
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 0b4c5c1a33)
2013-05-08 16:55:04 -07:00
Sage Weil
bb4f65ae9c mon: allow leveldb logging
'mon leveldb log = filename'

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit c1d5f81554)
2013-05-08 16:55:02 -07:00
Sage Weil
a284c9ece8 common/Preforker: fix warnings
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-08 16:42:24 -07:00
Gary Lowell
3ebddf17cb 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 83bbae415d)
2013-05-08 16:36:42 -07:00
Gary Lowell
83bbae415d 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>
2013-05-08 16:33:05 -07:00
Samuel Just
52666dc5e6 PG: reassert_lock_with_map_lock_held() is dead
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-08 15:47:03 -07:00
Samuel Just
17705d7295 OSD,PG: lock_with_map_lock_held() is the same as lock()
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-08 15:46:41 -07:00
Sage Weil
e2528ae42c ceph-create-keys: gracefully handle no data from admin socket
Old ceph-mon (prior to 393c9372f8) 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>
2013-05-08 14:54:33 -07:00
Sage Weil
f2a54cc9c9 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>
2013-05-08 14:35:54 -07:00
athanatos
0d8f7a092f 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>
2013-05-08 12:15:30 -07:00
Yehuda Sadeh
36ec6f9bce 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>
2013-05-08 12:18:49 -07:00
Sage Weil
a89d889b0d Merge pull request #165 from dachary/wip-4321
unit tests for FileStore::_detect_fs when running on ext4
2013-05-08 11:44:24 -07:00
Yehuda Sadeh
3846451548 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>
2013-05-08 11:35:57 -07:00
Josh Durgin
cdb3d32ef5 Merge pull request #180 from ceph/wip-rados-clone
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-05-08 11:26:04 -07:00
Samuel Just
61354b21d3 Merge branch 'wip_split_upgrade' into next
Fixes: #4927
2013-05-08 11:14:11 -07:00
Samuel Just
8e89db89cb 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>
2013-05-08 11:12:20 -07:00
Samuel Just
252d71a81e PG: clear snap_collections on upgrade
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-08 11:12:07 -07:00
Samuel Just
438d9aa152 OSD: snap collections can be ignored on split
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-08 11:11:51 -07:00
Sage Weil
6789b02026 Merge pull request #265 from ceph/wip-mon-trace 2013-05-08 11:08:48 -07:00
Sage Weil
1870516e1c mon: set MonitorDBStore options on open
So both ctors set the options.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-08 11:08:16 -07:00
Sage Weil
2a8fa9ee4f Merge pull request #254 from ceph/wip-crush-rules
Reviewed-by: Joao Luis <joao.luis@inktank.com>
2013-05-08 11:06:18 -07:00
Sage Weil
393c9372f8 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>
2013-05-08 11:05:29 -07:00
Samuel Just
dbcd738a22 ceph-monstore-tool: added replay 2013-05-08 11:03:43 -07:00
Samuel Just
aa94f5b340 ceph-monstore-tool: add MonitorDBStore trace dumper
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-08 11:03:43 -07:00
Samuel Just
797089ef08 mon: dump MonitorDBStore transactions to file
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-08 11:03:43 -07:00
Sage Weil
9e11065f0c Merge pull request #261 from ceph/wip-leveldb
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-05-08 11:01:51 -07:00
Sage Weil
f0c0997cb8 doc/install/os-recs: reverse order of releases
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-07 18:26:40 -07:00
Sage Weil
9477c17abe Merge pull request #263 from wido/config-get
Add "config get <var>" to the admin 

Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-07 18:17:01 -07:00
John Wilkins
f8ae2bd9b5 doc: Fixed typos.
fixes: #4932

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-07 18:05:28 -07:00
John Wilkins
452fb529fa doc: Fixed typo.
fixes: #4422

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-07 16:11:29 -07:00
John Wilkins
a0cb5e5e33 doc: Removed "and" as suggested.
fixes: #3686

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-07 16:08:11 -07:00