Commit Graph

14776 Commits

Author SHA1 Message Date
Sage Weil
f2aef3e1da qa: organize workunits a bit
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-13 13:22:06 -07:00
Sage Weil
953bb605e6 qa: move compiled items into qa/src/ 2011-06-13 13:22:06 -07:00
Sage Weil
f3617e5105 osd: fix head_exists fix
Needs to default to false, or else deletions don't work.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 13:02:58 -07:00
Sage Weil
056a0c5a00 osd: don't update snapset head_exists unless full transaction succeeds
Make the update at the end of make_writeable, along with the other snapset
updates.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 12:05:24 -07:00
Sage Weil
11ad765879 osd: fix make_writeable
Look at the ObjectState to determine if the head exists, not the snapset
(which doesn't reflect the prior object state).

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 12:04:55 -07:00
Sage Weil
35663dee2f monc: protect msg source check with monc_lock
Push the locking up into ms_dispatch, so that we protect the source check
and don't race with session reopens.  Also simplifies things a bit.

Fixes: #1151
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 10:04:07 -07:00
Sage Weil
0f8fbd562c Merge branch 'mds_issue_caps' 2011-06-13 09:43:49 -07:00
Sage Weil
83a55f4dc7 Merge remote branch 'origin/stable'
Conflicts:
	src/dumpjournal.cc
2011-06-10 17:37:29 -07:00
Sage Weil
78012fde6f Merge remote branch 'origin/deb-pybind' 2011-06-10 17:35:05 -07:00
Tommi Virtanen
aa5c224408 debian: Move python-ceph into section python.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-10 17:10:32 -07:00
Tommi Virtanen
efb8282873 debian: Strip and do -dbg magic for librgw too.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-10 17:10:12 -07:00
Tommi Virtanen
061460b799 debian: Fix copy-pasto in librgw1 control paragraph.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-10 17:09:51 -07:00
Tommi Virtanen
6fc8819b1b debian: Depend on python-ceph in obsync.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-10 16:58:36 -07:00
Tommi Virtanen
822e777055 debian: Depend on librgw1 in python-ceph.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-10 16:58:15 -07:00
Tommi Virtanen
762c87e07e debian: Package librgw.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-10 16:43:55 -07:00
Tommi Virtanen
ab9dda87cf pybind: Open shared libs by their major version.
The *.so files are only in the -dev packages, and normal
operation should not require those. The major version
numbers represent incompatible API/ABI changes anyway.
The debian dependencies were already correctly including
the major version.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-10 16:15:49 -07:00
Tommi Virtanen
d444d5b886 debian: Make git ignore obsync, gceph* package dirs.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-10 16:15:46 -07:00
Tommi Virtanen
ddf0263a91 debian: Prevent git ignore from recursing on *.substvars etc.
Should never have triggered but this is faster simpler
and correcter.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-10 16:15:44 -07:00
Tommi Virtanen
0a0493deb8 debian: Make git ignore all of the *.debhelper files.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-10 16:15:41 -07:00
Tommi Virtanen
5cf62c1cda debian: Dev packages no longer have soname in their names.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-10 16:15:38 -07:00
Tommi Virtanen
0da30c358b debian: Properly package the python bindings.
Build-depend on python-support. Add binary package
python-ceph, making it contain all the ceph python
packages, regardless of their name; the modules are
too small to deserve their own debs.

Make python-ceph depend only on librados2 for now.
librgw is not packaged yet.

Dropping unnecessary build-dep on python-dev, that's
only needed for compiling C extensions, and we're using
ctypes.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-10 16:15:34 -07:00
Yehuda Sadeh
edc6659bb3 rgw: list bucket display the correct objects owners 2011-06-10 15:02:13 -07:00
Colin Patrick McCabe
3e284a729d boto_tool: add put_bucket_acl
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-10 14:55:35 -07:00
Yehuda Sadeh
7fa8b97328 rgw: don't allow handing out object ownership 2011-06-10 13:24:29 -07:00
Yehuda Sadeh
b282603598 librados: remove useless reference holding 2011-06-10 11:55:03 -07:00
Yehuda Sadeh
98a3b54641 librados: get reference to the io context for the pending async ops 2011-06-10 11:55:03 -07:00
Greg Farnum
52e9e5ec33 heap_profiler: if log_dir is empty, don't try and log to root dir!
If log_dir was empty then the prefix would be of the form /mon.a
That isn't good, so fill it in so it writes to the current dir.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-10 12:26:16 -07:00
Josh Durgin
f41773bedc coverage.sh: use .lcov instead of .info to avoid confusion
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-06-10 11:31:08 -07:00
Josh Durgin
08d0d0ae21 Merge remote branch 'origin/wip_coverage'
Conflicts:
	src/mon/Monitor.cc

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-06-10 11:28:09 -07:00
Yehuda Sadeh
a6afb0519b rgw: remove required indexes when modifying user info
Conflicts:

	src/rgw/rgw_admin.cc
2011-06-10 10:23:39 -07:00
Greg Farnum
9a705c749b mon: Follow the Message rules when forwarding tells
My initial commit was naughty, fix that up here by
creating a new message for each mon and just copying
the command.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-10 10:12:36 -07:00
Sage Weil
c2de9e6a48 mds: clear correct state bit in do_file_recover
The RECOVERING bit is set, not NEEDSRECOVER.  This way we match
_recovered().

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-10 09:25:49 -07:00
Colin Patrick McCabe
dadf2a3fa2 Thread: remove globals. Thread create must succeed
Remove the references to global variables from Thread.h. They are really
unecessary. In every case, the printout is followed by an assert which
will deliver the exact same information.

Assert that thread creation succeeds. Nobody was checking the return
value of Thread::create() previously. Added a new function,
Thread::try_create(), which programmers can use if they do want to check
the value of Thread::create() and handle it appropriately.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 18:32:32 -07:00
Colin Patrick McCabe
4e0ddae48f LogClient: pass in CephContext explicitly
Again, the Messenger passed to LogClient may be NULL, so pass in the
CephContext explicitly.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 18:04:39 -07:00
Colin Patrick McCabe
03aef0b67f Monitor: pass in CephContext explicitly
Sometimes we create a Monitor without a Messenger. So we can't pull the
CephContext out of the Messenger, because it may be NULL. Just specify
it explicitly in the Monitor constructor.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 17:56:41 -07:00
Josh Durgin
2b5e01117e mds, mon, osd: with coverage enabled, exit(0) when SIGTERM is received
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-06-09 17:43:41 -07:00
Josh Durgin
befe42267a Revert "mon: add all_exit and exit commands"
This reverts commit 69092735c4.
2011-06-09 17:43:33 -07:00
Josh Durgin
cf129ff71b Revert "mds: allow mds to 'exit immediately'"
This reverts commit c01961ff4b.
2011-06-09 17:42:29 -07:00
Josh Durgin
dd9ea9c6ca Revert "osd: add command to exit cleanly"
This reverts commit 1cc78b6a86.
2011-06-09 17:42:22 -07:00
Greg Farnum
b6e5c080a2 mds: fix up MDCache::path_is_mine to remove a totally bogus assert.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 17:22:37 -07:00
Greg Farnum
3a582f9949 mon: add new "tell" infrastructure.
This lets you issue commands
like "ceph mon tell 0 heap start_profiler". Hurray!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 17:22:37 -07:00
Colin Patrick McCabe
2c4367f95d CephContext: initialize module_type in ctor
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 16:21:23 -07:00
Sage Weil
20d11b0b14 mds: be slightly more careful about checking if lock has caps
issued_caps_need_gather==true implies it, but we can skip the work if the
lock has no caps.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:03 -07:00
Sage Weil
96f01b03c0 mds: fix xlock_finish do_issue checks
Should default to false, and only get set to true if there are caps for
this lock.  Among other things this means we don't set it for dentry
locks (which have no caps).

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:03 -07:00
Sage Weil
7c0ae24713 mds: fix eval_gather callers passing pissue_gather as wrong arg
Whoops!

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:03 -07:00
Sage Weil
87ba043533 mds: fix xlock_finish issue flag check
We were sometimes setting do_issue but not *pneed_issue.  Simplify by
setting do_issue internally to the function and then either issuing or
setting *pneed_issue at the end.

Also fix bug with second argument to eval_gather().

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:03 -07:00
Sage Weil
5b304bdd87 mds: make pneed_issue required for eval(SimpleLock*)
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:03 -07:00
Sage Weil
bdd94ef1a7 mds: explicitly issue_caps after file_recover
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00
Sage Weil
b06fa1ceed mds: make pneed_issue required for *lock_finish()
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00
Sage Weil
bc69d4e024 mds: efficiently issue_caps for OOO or extra locks in acquire_locks
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00