Commit Graph

17516 Commits

Author SHA1 Message Date
Josh Durgin
bd2339102f librbd: don't remove an image that still has snapshots
Return -EBUSY instead. After the header is removed, the snapshots
can't be removed or read, so make sure they're gone before proceeding.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-04 17:46:18 -08:00
Josh Durgin
4728f4f8e0 SimpleMessenger: clarify when ms_bind_ipv6 is used
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-04 17:34:17 -08:00
Greg Farnum
4ea8ad438f qa: add a slightly more stressful anchortable test
This creates more than 8 links.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-01-04 17:11:36 -08:00
Greg Farnum
c8a13f2b7d qa: fix mdstable script for proper injectargs use.
This script is fairly primitive, but somebody might find it useful...

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-01-04 17:11:36 -08:00
Sage Weil
61c3a9188f rados: fix run-length option parsing for rados load-gen
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-01-04 16:25:29 -08:00
Sage Weil
6a918febca Merge pull request #8 from kylemarsh/master
Remove cloudfiles requirement from obsync.
2012-01-04 15:53:51 -08:00
Sage Weil
8658f0d55b qa: load-gen-mix-small-long
30 minutes

Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-04 14:21:46 -08:00
Kyle Marsh
5cebc74011 obsync: make obsync run without cloudfiles installed
Cloudfiles probably shouldn't be a requirement for running obsync, so this
commit makes it optional.
2012-01-04 14:14:17 -08:00
Sage Weil
a5d99add61 osd: fix misdirect check for requests with old epochs
get_map() assumes the epoch passed is valid.  Check here in the caller.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-04 10:46:35 -08:00
Sage Weil
172dd3e0e4 osd: check that we're supposed to be getting a PG before waitlisting requests.
This was broken in fa722de670.

Fix it by checking if the mapping was correct in the sender's epoch, and
either drop it (if valid) or handle_misdirected_request() if not.

Also fix the documentation for op_is_queueable() to not be a gigantic lie.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-04 10:44:12 -08:00
Sage Weil
54f36f0bf5 rados: gracefully report errors from 'ls'
Catch the exception thrown by the iterator when the OSD returns errors.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-04 10:40:06 -08:00
Sage Weil
ed9a4a0996 osd: return EINVAL on bad PGLS[_FILTER] handle
Fixes: #1875
Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-04 10:38:39 -08:00
Josh Durgin
2f1720d080 librados: return int64_t pool ids
468e28ee60 missed the get_id() functions.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-03 17:28:28 -08:00
Josh Durgin
a97aca74db rados.py: use uint64_t for auids
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-03 17:28:28 -08:00
Yehuda Sadeh
8e56e99cbe radosgw-admin: add eol following info 2012-01-03 14:08:37 -08:00
Josh Durgin
0e470c50e5 testrados: replace testreadwrite and testsnaps with testrados
testrados can act as testreadwrite or testsnaps by changing the
command line options for the weight of each operation type.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-03 13:10:37 -08:00
Josh Durgin
9112405130 RadosModel: check for out of order replies within WriteOps
A single WriteOp already does multiple aio_writes. Each aio_write
gets a unique tid that is checked upon completion. There's no reason
to loop over the ranges twice since we can use the done flag instead
of the set of completions in WriteOp::finished().

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-03 13:10:37 -08:00
Josh Durgin
f03e770f9b RadosModel: allow TestOps to pass data to their finish methods
This will allow nested writes to keep track of which write actually
completed.  Also remove finish() and _finish() from TestOp subclasses
that had the same implementation as the superclass.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-03 13:10:37 -08:00
Josh Durgin
ec6530df4a RadosModel: make object write ranges configurable
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-03 13:10:37 -08:00
Greg Farnum
a66d90e3f9 osd: add a monitor timeout via MPGStatsAck messages
Keep track of when we have outstanding updates, and while we do, make
sure the monitor responds within a timeout (default 30 seconds). If
it doesn't, reconnect!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-01-03 11:37:31 -08:00
Alphat-PC
f4b0cda178 Fix invalid docdir_SCRIPTS usage with >=automake-1.11.2 2012-01-03 08:04:42 -08:00
Sage Weil
a125246305 librados: take lock in rollback
We're poking through the osdmap; need to hold the lock here.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-30 17:04:47 -08:00
Sage Weil
4c23e9e439 objecter: assert lock held in op_submit
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-30 17:04:30 -08:00
Sage Weil
68ec8d8ee9 librados: call aio_operate() with lock held
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-30 17:04:22 -08:00
Yehuda Sadeh
949f24d560 rgw: create default constructors for some structs
this will silence valgrind a bit
2011-12-30 14:31:16 -08:00
Josh Durgin
6687ccf5dc workunits: update rbd test for new error format
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-30 10:32:05 -08:00
Sage Weil
85719b0ed8 config: use autoconf $libdir for default rados class dir
Fixes: #1722
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-30 09:50:36 -08:00
Sage Weil
0d9507c2b0 .gitignore: src/ocf/ceph
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-30 09:17:06 -08:00
Florian Haas
9b6422dbc7 Spec: conditionally build ceph-resource-agents package
Put OCF resource agents in a separate subpackage,
to be enabled with a separate build conditional
(--with ocf).

Make the subpackage depend on the resource-agents
package, which provides the ocf-shellfuncs library
that the Ceph RAs use.

Signed-off-by: Florian Haas <florian@hastexo.com>
2011-12-30 09:00:31 -08:00
Florian Haas
92cfad4203 Add OCF-compliant resource agent for Ceph daemons
Add a wrapper around the ceph init script that makes
MDS, OSD and MON configurable as Open Cluster Framework
(OCF) compliant cluster resources. Allows Ceph
daemons to tie in with cluster resource managers that
support OCF, such as Pacemaker (http://www.clusterlabs.org).

Disabled by default, configure --with-ocf to enable.

Signed-off-by: Florian Haas <florian@hastexo.com>
2011-12-30 09:00:30 -08:00
Sage Weil
66170633ff mon: fix full ratio updates
- update them independently
- only if we are leader
- fix type for nearfull_ratio

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-30 08:06:55 -08:00
Sage Weil
f2e4109796 mon: don't ignore first full ratio update callback
We get a callack on startup.  Don't ignore it.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-30 08:06:06 -08:00
Sage Weil
a693438e13 mon: only update full_ratio if we're the leader
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-30 07:45:21 -08:00
Sage Weil
47d0227187 Merge remote branch 'gh/wip-cleanup' 2011-12-30 07:42:20 -08:00
Sage Weil
df84594f20 mon: make full ratio config change callback safe
We can't propose_pending() from any context; do this in the tick() thread,
with the proper locking.  Among other things, this fixes the crash on
startup that is now triggered due to eba235f2.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-29 17:15:07 -08:00
Josh Durgin
585fb5cef9 clitests: update for new error format
This was changed in 1f434da8a3

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-29 15:43:55 -08:00
Josh Durgin
cec2692ea3 clitests: update monmaptool test
e93961c111 changed output format.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-29 15:28:16 -08:00
Florian Haas
48df71c854 init script: be LSB compliant for exit code on status
An exit code of 1 on status is defined in LSB as
"program is dead, but pid file exists". Check for existence
of this pid file, and only set the exit status 1 if it's still there.
Set it to 3 ("program is not running") otherwise.

Reference: http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

Signed-off-by: Florian Haas <florian@hastexo.com>
2011-12-29 12:00:02 -08:00
Sage Weil
3b2ca7cf9b keyring: print more useful errors to log/err
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-29 11:58:28 -08:00
Sage Weil
eba235f26c common: trigger all observers on startup
Among other things, this makes err-to-stderr and friends initialize
properly in the DoutStreamBuf.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-29 11:57:55 -08:00
Sage Weil
1f434da8a3 common: make cpp_strerror output prettier
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-29 11:24:50 -08:00
Sage Weil
04c8db001a librados: check for monclient::init() error
I think this fixes #1835.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-29 11:24:12 -08:00
Sage Weil
37013b6fe5 qa: load-gen-mix-small.sh 2011-12-29 09:59:26 -08:00
Yehuda Sadeh
1a59405c2f rgw: turn on cache by default 2011-12-29 09:59:26 -08:00
Sage Weil
d24ea23585 mds: assert if we get an EINVAL on our truncate
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-29 09:09:01 -08:00
Sage Weil
47013c289e osd: get fsid from monmap, not osdmap
We may not have a valid OSDMap in all of these cases (notably, during
boot).  Always take the fsid from the monmap, which will be valid after
we've authenticated.

This fixes messages like

2011-12-29 08:53:44.530830 7ff3595e2700 mon.a@0(leader).pg v5 handle_statfs on fsid 00000000-0000-0000-0000-000000000000 != f8a6383d-5fbe-4f65-907e-f8d09e1d540d

on the monitor from MPGStats messages with a bad fsid right after osd boot.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-29 09:00:46 -08:00
Sage Weil
05cc4eb93c monc: get latest monmap during authentication
Tell the monitor which monmap version we have in our initial auth message.
Make the monitor send the latest monmap if it has something newer.  This
ensures that once authentication completes the monclient has the latest
monmap and a valid fsid.

Fixes: #1848
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-29 08:59:00 -08:00
Sage Weil
300c758421 osd: catch authenticate error on startup
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-29 08:44:03 -08:00
Greg Farnum
5d5c9b6fc3 osdmap: add const markers to some unfixed functions
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-12-29 08:44:03 -08:00
Yehuda Sadeh
e18b1c9734 rgw: removing swift user index when removing user 2011-12-28 17:00:19 -08:00