Commit Graph

26695 Commits

Author SHA1 Message Date
Dan Mick
b1588bd477 ceph: catch/handle exceptions in admin socket commands
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-06-06 18:41:15 -07:00
Dan Mick
3720b64a48 ceph: collect/use clustername, and set defaults like other utilities
(defaults like log_to_stderr, err_to_stderr)

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-06-06 18:41:15 -07:00
Dan Mick
366de90de1 librados, rados.py: rados_create2: add clustername and future flags
rados.py also gets "conf_defaults" dict for things you might want to
default in your app differently before ceph.conf gets to them; currently
used for ceph CLI to be able to set log_to_stderr/err_to_stderr true,
among others.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-06-06 18:41:15 -07:00
Dan Mick
8108c952aa AuthMonitor: fix signed/unsigned comparison warning
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-06-06 18:41:15 -07:00
Sage Weil
f43c974571 mon: upgrade auth database on leader
If we are the leader, and the auth database has not yet been upgraded,
do so.  The upgrade consists of translating old-style (pre-v0.64) caps
to new-style caps (e.g., 'allow profile bootstrap-osd').  This happens
once and the conversion takes the form of a normal paxos transaction.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-06-06 18:38:47 -07:00
Joao Eduardo Luis
afebad4f5d auth: CephxKeyServer: add secrets_{begin,end}() getters
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-06-06 18:38:46 -07:00
Joao Eduardo Luis
f2177a4d59 mon: AuthMonitor: remove dead code to avoid confusion
AuthMonitor::election_finished() does nothing.

PaxosService::election_finished() is the one being handled.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-06-06 18:38:46 -07:00
Dan Mick
115bb9332b ceph: Remove connect/command timeouts; too risky for now
Keep 10s timeout when connecting for help descriptions, however

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-06-06 18:38:32 -07:00
John Wilkins
5c30844762 doc: Updated with glossary terms.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-06 17:35:02 -07:00
John Wilkins
8e13b38c27 doc: Updated with glossary terms.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-06 17:29:02 -07:00
John Wilkins
7116de3592 doc: Correction and index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-06 17:27:34 -07:00
John Wilkins
ae5aeb1c06 doc: Updates for glossary terms.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-06 17:26:51 -07:00
Sage Weil
ce2b686abf Merge pull request #347 from dalgaaf/wip-da-scripts
Some smaller fixes for init-radosgw files
2013-06-06 15:14:25 -07:00
Sage Weil
b394edc1a8 doc/release-notes: v0.61.3
Signed-off-by: Sage Weil <sage@inktank.com>
2013-06-06 11:58:46 -07:00
John Wilkins
3d6eaf58d9 doc: Added upstart syntax.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-06 10:59:42 -07:00
John Wilkins
2d9a46c2c9 doc: Added link to Upstart syntax.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-06 10:58:47 -07:00
Samuel Just
595962aa89 Merge branch 'wip_5154'
Fixes: #5154
Reviewed-by: Sage Weil <sage@inktank.com>
2013-06-06 09:21:46 -07:00
Danny Al-Gaaf
963a9c46ff init-radosgw*: add all sections to usage output
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-06-06 15:34:54 +02:00
Danny Al-Gaaf
4ea24ae79f init-radosgw*: add status
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-06-06 15:33:23 +02:00
Danny Al-Gaaf
39fff6a15a fix init-radosgw* to use the same indentation
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-06-06 15:21:30 +02:00
David Zafman
8f9b1470dd Merge branch 'wip-3527'
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-06-06 00:40:53 -07:00
David Zafman
a4dbfa313c test: Add blacklisting to test_stress_watch
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-06-06 00:23:19 -07:00
David Zafman
4eb576e383 Add test_blacklist_self() librados function for test cases
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-06-06 00:23:19 -07:00
David Zafman
0cbc0a0837 osd: Add dump_watchers to osd admin socket to examine all watchers
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-06-06 00:23:19 -07:00
David Zafman
4b80c5b94c rados: Output client address in rados listwatchers request
Add client entity_addr_t string to list of watchers rados interface

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-06-06 00:23:19 -07:00
David Zafman
3b0a44d9bd osd: Add dump_blacklist to admin socket
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-06-06 00:23:18 -07:00
David Zafman
ab0da28307 osd: Drop watchers from blacklisted clients
On blackist addition or populate ObjectContext
   check watcher address against blacklist
Add dout() of the watcher's ip address

fixes: #3527

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-06-06 00:23:18 -07:00
David Zafman
0bd60f8e31 osd: Add entity_addr_t to watch_info_t and Watch
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-06-06 00:23:18 -07:00
Sage Weil
92d085f7fd mon: fix preforker exit behavior behavior
In 3c5706163b we made exit() not actually
exit so that the leak checking would behave for a non-forking case.
That is only needed for the normal exit case; every other case expects
exit() to actually terminate and not continue execution.

Instead, make a signal_exit() method that signals the parent (if any)
and then lets you return.  exit() goes back to it's usual behavior,
fixing the many other calls in main().

Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-06-05 17:44:20 -07:00
Sage Weil
91d54a8f36 Merge remote-tracking branch 'gh/next-leaks' into next
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-06-05 16:09:31 -07:00
Samuel Just
5deece1d03 PG: don't dirty log unconditionally in activate()
merge_log and friends all take care of dirtying the log
as necessary.

Fixes: #5238
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-06-05 15:09:37 -07:00
Samuel Just
951fc2fae4 OSD: resurrect a parent if it splits into the pg we want to create
When attempting to create a new pg object in response to a
peering message, there are 3 cases:
1) That pg is currently being deleted.  In this case, we
cancel the deletion and resurrect the pg at the epoch at
which it had been deleted.
2) A pg is being deleted which would have split into the
pg we want to create had it not been deleted.  In that case,
we resurrect that pg at the map at which it had been deleted
and let the request wait on the impending split.
3) Neither that pg nor a parent can be resurrected.  In this
case, we create a new pg at the map epoch of the peering
request.

Fixes: #5154
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-06-05 13:07:42 -07:00
Josh Durgin
02946e5e4f qa: stop running xfstests 192 in qemu
This test is unreliable in a vm since it relies on command timing for
checking access time.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-06-05 12:58:44 -07:00
Josh Durgin
30733af9db Makefile.am: add -ldl to unittest_pglog
b70868e007 broke non-package builds on
ubuntu and debian. This fixes the problem, and is required for anything
compiling class_api.cc.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-06-05 12:58:44 -07:00
Josh Durgin
5a53da3c16 ceph-test: add ceph_test_rados_api_lock to packaging and qa
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-06-05 12:58:44 -07:00
Filippos Giannakos
68ccf8ebfc Add RADOS API lock tests
Add tests for the advisory locking API calls.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Filippos Giannakos <philipgian@grnet.gr>
2013-06-05 12:58:35 -07:00
Filippos Giannakos
d8415663b6 Add RADOS lock mechanism to the librados C/C++ API.
Add functions to the librados C/C++ API, to take advantage and utilize the
advisory locking system offered by RADOS.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Filippos Giannakos <philipgian@grnet.gr>
2013-06-05 12:48:59 -07:00
John Wilkins
6f78b6e039 Merge branch 'master' of https://github.com/ceph/ceph 2013-06-05 11:45:43 -07:00
John Wilkins
d97031175f doc: Added key and ceph repository to ceph-deploy install.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-05 11:44:58 -07:00
David Zafman
7acf3de604 cls,msg: Fix use of set_in4_quad() to set a entity_addr_t
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-06-05 10:33:57 -07:00
David Zafman
89524eb54a osd: Fix usage of commands supported by TestOpsSocketHook::test_ops()
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-06-05 10:33:57 -07:00
David Zafman
c76838f668 osd: Style corrections
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-06-05 10:33:57 -07:00
Sage Weil
a99435d06d mon: fix leak of loopback Connection
The accessor returns a reference.  Instead of taking+dropping it each
time, take one ref in Monitor ctor and release it in the dtor.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-06-05 08:53:38 -07:00
Sage Weil
08bb8d510b messages/MMonHealth: remove unused flag field
This was initialized in (one of) the ctor(s), but not encoded/decoded,
and not used.  Remove it.  This makes valgrind a happy.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-06-05 08:42:25 -07:00
Sage Weil
4974b29e25 messages/MMonProbe: fix uninitialized variables
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
2013-06-05 08:34:20 -07:00
Dan Mick
8c23d8cb46 dev/rbd-diff: make formats into bullet lists (solves linebreak probs)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-06-04 17:24:16 -07:00
Sage Weil
051f477a66 Merge pull request #346 from ceph/wip-5233
rados.py: correct some C types
2013-06-04 16:39:41 -07:00
John Wilkins
09a796d724 doc: Removed ceph-deploy git, and added ceph-deploy packages.
fixes: #5253

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-04 15:35:56 -07:00
John Wilkins
d1e2e7b6b4 doc: Modified pre-flight checklist for ceph-deploy packages.
fixes: #5253
2013-06-04 15:35:14 -07:00
John Wilkins
72a6767eb3 doc: Added title. Suppresses no title warning messages.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-04 15:33:42 -07:00