Commit Graph

19049 Commits

Author SHA1 Message Date
Sage Weil
9cb796a03a obsync: section 8 -> 1
Fixes: #2263
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-19 12:47:50 -07:00
Sage Weil
9c2251f605 osd: fix vector array out of bounds
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-19 09:19:43 -07:00
Sage Weil
e82c33099a ceph-fuse: only call common_init_finish in child; fix admin socket
If we do it in the parent and child, we break the admin socket (among
other things).

Fixes: #2293
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-18 21:58:14 -07:00
Sage Weil
f1de0d6cb3 qa: drop rgw.py from test_python.sh workunit
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-18 21:27:49 -07:00
Sage Weil
d3a57a211a ceph.spec.in: drop rgw.py
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-18 21:27:39 -07:00
Sage Weil
0995d08477 Makefile: drop rgw.py
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-18 21:26:53 -07:00
Sage Weil
4390c08acd mon: fix full/nearfull ratio initialization
create_pending() is called before create_initial(), so just put these in
the first incremental.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-18 17:14:09 -07:00
Yehuda Sadeh
aab516da7f rgw: allow subuser creation on radosgw-admin user create
This fixes issue #2312: allow the creation of both user
and a subuser in a single radosgw-admin command.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-18 15:45:09 -07:00
Sage Weil
dbe779a568 osd: dump old ops singly rather than all at once.
Fixes #2269. Convert the OpTracker::check_ops_in_flight interface
to take a vector<string> and create a separate warning for each old
Op, and dump those singly to the clog in the OSD.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Reviewed-by: Sage Weil <sage@newdream.net>
2012-04-18 15:23:58 -07:00
Sage Weil
b0532aa6ed osdmap: restructure flow in OSDMap::decode
Signed-off-by: Sage Weil <sage@newdream.net>
Reviewed-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 15:23:57 -07:00
Sage Weil
bc458bfdf3 ceph-object-corpus: prune archive
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-18 15:13:38 -07:00
Sage Weil
ebb19e70b6 test/encoding/import.sh: fix
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-18 15:09:18 -07:00
Sage Weil
2de37e01d7 Merge remote-tracking branch 'gh/wip_journal'
Reviewed-by: Sage Weil <sage@newdream.net>
2012-04-18 14:36:15 -07:00
Sage Weil
c3bfe45692 osdmap: remove bad cct reference
Not in OSDMap

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-18 14:10:22 -07:00
Sage Weil
9ef953b5e2 Merge branch 'wip-2286-ratio-a'
Reviewed-by: Sage Weil <sage@newdream.net>
2012-04-18 13:28:54 -07:00
Sage Weil
eea982e567 osdmap: workaround old bug that zeroed pool_max
Signed-off-by: Sage Weil <sage@newdream.net>
Reviewed-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 12:50:47 -07:00
Yehuda Sadeh
ee22c97b0f python-ceph: remove rgw bindings
We shouldn't expose these internal apis.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-18 11:32:19 -07:00
Greg Farnum
eb8a8fdfee pgmap: allow Incrementals to specify [near]full_ratios of 0
This commit isn't entirely safe: old monitors used 0 to mean "no change".
We can revert this (and the PGMonitor.cc portion of
841f288531) if we don't want to allow
0 as a valid ratio setting, and to maintain perfect backwards
compatibility.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 11:10:36 -07:00
Greg Farnum
88525eaa0a pgmon: add "set_full_ratio x" and "set_nearfull_ratio x" commands
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 11:05:31 -07:00
Greg Farnum
882bd5b879 pgmon: convert PGMonitor::prepare_command to our standard infrastructure.
So that I can add another command.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 11:05:19 -07:00
Greg Farnum
1242b7545a pgmon: remove the PGMonitor update_full_ratios stuff
Making it a config watcher is just a huge mess in terms of consistently
updating it appropriately.
The next commit will add a monitor command for changing it.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 11:05:13 -07:00
Sage Weil
f1152e6765 mon: only fill in full/nearfull sets if the ratio > 0
This avoids putting all OSDs in both sets when the ratios are 0, as they
are with a fresh cluster and pgmap.  This also makes setting the ratio to
0 effectively disable the full/nearfull feature.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-18 11:05:13 -07:00
Greg Farnum
841f288531 mon: unconditionally encode PGMap full ratios in the Incremental
This properly spreads the real value to peon monitors -- they weren't
seeing the right values at all before.
Initialize all related values to zero so that it's obvious if they
somehow avoided becoming set properly.
This doesn't require any kind of protocol revision, luckily -- mixing
monitors from before and after this change might result in extra work
recalculating full sets, but it won't spread bad values or anything.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-18 11:05:05 -07:00
Yehuda Sadeh
5a6bbd0c47 rgw-admin: user create is idempotent
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Reviewed-by: Sage Weil <sage@newdream.net>
2012-04-17 21:38:12 -07:00
Sage Weil
413d8be974 osdmap: dump pool_max
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-17 21:38:00 -07:00
Yehuda Sadeh
3053e4773b Merge branch 'wip-2289-2' 2012-04-17 13:22:31 -07:00
Samuel Just
dcd34fc8d0 FileJournal: let peek_write return a reference
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-04-17 13:20:05 -07:00
Sage Weil
6561484758 common: add blkdev.{h,cc}
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-17 13:17:50 -07:00
Sage Weil
82d7a68109 rbd: fix probe of source when block device
Fixes: #2304
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-17 13:12:50 -07:00
Sage Weil
41cb40ad90 filestore: factor block device size probe out into helper
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-17 13:11:09 -07:00
Samuel Just
dea853681a FileJournal: clarify locking in header
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-04-17 12:56:58 -07:00
Samuel Just
377f75f9c0 OpRequest: mark_event output is now at debug 5
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-04-17 12:53:34 -07:00
Sage Weil
98e2369efd librados: add methods to check and wait for safe/complete -and- callback
Allow user to check for (safe|complete) -and- callback return, and wait
for that condition.

Fixes: #2301
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-17 11:39:19 -07:00
Sage Weil
0be9718afc librbd: 'rbd cache enabled' -> 'rbd cache'
'enabled' is useless verbiage.  We should fix the rgw option too,
protably...

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-17 10:45:35 -07:00
Alex Elder
6cbda4c3fc qa: comment out xfstest 232
Test 232 in the xfstests suite produces an XFS error in the log
when run over an RBD device.  This is most likely an XFS problem
that will be tracked separately (in tracker 2302).

My original plan with getting this checked in was to have it run a
baseline set of the tests--all known to pass on rbd devices--with
the intention of doing ongoing work to add back missing tests (at
least from the "auto" group) as we understand and fix whatever
makes them produce failures.

So just comment out test 232 so the xfstests script is able to
run to completion without error.

Signed-off-by: Alex Elder <elder@dreamhost.com>
2012-04-17 08:33:42 -05:00
Yehuda Sadeh
e0ec286501 objecter: recalc pgid in case it wasn't a precalculated pgid
We had an issue where we didn't call it since we relied on the
existance of the object name and we were passed an empty one.
However, we still need to handle the case of list_objects, where
we don't want to recalc pgid.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-17 00:14:19 -07:00
Yehuda Sadeh
f22da6c0d9 cls_rgw: rgw_dir_suggest_changes move cur_disk_bl inside loop
Otherwise we'd fail in case the cls_cxx_read_key failed, since
we rely on its size.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-17 00:12:45 -07:00
Sage Weil
998498f2ea Merge branch 'wip-oc-perf' 2012-04-16 21:36:06 -07:00
Sage Weil
31d0d1d7de librados: test get_pool_name
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-16 21:32:45 -07:00
Sage Weil
2dbea12895 librados: C bindings for get_pool_name()
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-16 21:32:33 -07:00
Samuel Just
9f5b9adaf8 Merge remote branch 'upstream/wip-guard' 2012-04-16 14:21:52 -07:00
Samuel Just
2f5af83f5d Filestore: fix guard errors in COLL_REMOVE and COLL_MOVE
Use object rather than collection check in COLL_REMOVE.  Adjust
COLL_MOVE check for -1/1 distinction.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-04-16 14:19:29 -07:00
Yehuda Sadeh
6868ec6abf rgw: skip empty entries when listing a bucket
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-16 12:32:59 -07:00
Yehuda Sadeh
f87a6a0f27 cls_rgw: rgw_dir_suggest_changes() don't try to decode cur_disk
don't try to decode cur_disk if bufferlist is zero sized.

Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
2012-04-16 12:32:59 -07:00
Yehuda Sadeh
73badda694 cls_rgw: don't zero out error code before reading value
We were zeroing the return code before reading it.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-16 12:32:51 -07:00
Sage Weil
1bc0128999 Merge branch 'stable' 2012-04-14 15:38:40 -07:00
Sage Weil
20ab74ea47 test_librbd: fix write sizes
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-14 13:53:11 -07:00
Sage Weil
81c8a7b95f test_idempotent_sequence: no config file
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-14 10:26:15 -07:00
Alex Elder
a40fe5bdad run_xfstests.sh: ensure cleanup on errors
Because we exit on any error (due to 'set -e'), the cleanup call was
never getting made in the event of an error.  The net effect of that
was that a filesystem could be left mounted, and rbd cleanup then
couldn't complete because the module was in use.

Fix the trap call so it calls cleanup on exit as well as error.
Switch to using the capitalized signal names in the call.

Signed-off-by: Alex Elder <elder@dreamhost.com>
2012-04-14 11:43:15 -05:00
Alex Elder
3d187db501 run_xfstests.sh: pass test result via exit status
It turns out that xfstests *does* exit with non-zero status
when a test fails.  Its exit status is the number of tests
that failed (which, now that we have over 255 tests could be
an issue...)

Save the exit status and make it be the result of the run.

Signed-off-by: Alex Elder <elder@dreamhost.com
2012-04-14 11:26:21 -05:00