Commit Graph

14725 Commits

Author SHA1 Message Date
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
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
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
Colin Patrick McCabe
6d4b93dd17 CephContext: remove silly debug code
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 16:09:38 -07:00
Colin Patrick McCabe
e6349ec2e0 Dispatcher should take a CephContext argument
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 16:08:14 -07:00
Greg Farnum
4ef41c5ab3 mds: fix tcmalloc check.
We can run commands to do things like start the profiler even if
it's not already running!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 15:33:21 -07:00
Greg Farnum
63073ab8b6 mds: xlock_finish should only do_issue in certain cases.
We accidentally (we think) initialized this variable to true when
we want it to be false: we should only do_issue if there aren't
any remaining locks, not in all cases.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 15:33:21 -07:00
Greg Farnum
379dc6fa0b MDiscoverReply: encode/decode wanted_ino.
This wasn't encoded previously so it was always zero on the
receiver's end, which led to nasty hangs. :(

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 15:33:21 -07:00
Greg Farnum
58250fdde4 mdcache: correct error message.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 15:33:21 -07:00
Greg Farnum
c1ea3a263b mds: replay: save the right dir!
We were using the wrong one and breaking replay.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 15:33:21 -07:00
Sage Weil
f69bc30106 debian: move gceph into a separate package
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 14:34:36 -07:00
Colin Patrick McCabe
0b40f48073 tools/common: fix C_ObserverRefresh constructor
Fixes #1159

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 14:03:31 -07:00
Colin Patrick McCabe
1376a5ab0c gtest: add -lpthread to AM_LDFLAGS
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 11:22:20 -07:00
Colin Patrick McCabe
d224b3e2b3 Makefile.am: Add -lpthread to UNITTEST_LDADD
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 10:36:11 -07:00
Colin Patrick McCabe
9202a4b0f5 ceph tools: de-globalize CephToolContext
De-globalize CephToolContext. It's important to do this now because the
constructor for CephToolContext references the configuration (via
CephContext.)

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-08 16:23:33 -07:00
Sage Weil
92ee0de836 mds: drop workaround for embedded null decoding
We removed the embedded null check recently, 9b37f4f, so this workaround
isn't needed.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-08 15:57:57 -07:00
Yehuda Sadeh
80c039cd04 rgw_admin: user info dumps auid 2011-06-08 14:54:14 -07:00
Yehuda Sadeh
402624717c rgw_admin: can reset auid 2011-06-08 14:13:37 -07:00
Sage Weil
8cd949f675 Merge remote branch 'origin/mds_rename' 2011-06-08 14:00:10 -07:00
Greg Farnum
4e58308d06 mds: rename: remove illicit assert.
We actually do want witnesses who aren't auth for anything
to do journaling in some cases, so kill the assert.
That also negates the need for the not_journaling check.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-08 14:50:27 -07:00
Sage Weil
5b43419c72 mds: try_trim_non_auth_subtree if we rename a dir away from a non-auth subtree
It's possible we have non-auth metadata only because we have a subtree
nested beneath. If we rename a directory out of a non-auth subtree, we
should try to trim any non-auth content from that subtree that may now
be possible due to the child subtrees being linked elsewhere.

Fixes: #1146
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-08 13:29:21 -07:00
Sage Weil
072e80ed1c mds: use CDIR_AUTH_UNDEF where possible
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-08 13:27:41 -07:00
Sage Weil
811dcae71a mds: remove unlinked metadata from cache on replay
If we replay a metablob that unlinks something, throw it out immediately.
Recursively.  This comes up when:
 - we rename a file from one mds to another, and we replay the event on
   the source mds.  the inode gets thrown out.
 - we rename a directory from one mds to another, and when journaled, the
   source mds had no nested metadata.  same thing: we throw it out.  we
   may have something in our cache nested beneath that, though, that was
   since committed and such, but the fact that we didn't journal it being
   reattached elsewhere implies that it was clean and gone when our event
   was journaled, and we can throw it all out.  recursively.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-08 13:18:07 -07:00
Colin Patrick McCabe
f3688b712b Fix build errors in unit tests
libcommon uses symbols from the crypto libraries, so they must appear on
the link line whenever libcommon appears.  Later, we may want to revisit
this dependency; however, right now, having unit tests that build
consistently is pretty important.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-08 12:30:21 -07:00
Colin Patrick McCabe
2470130899 monitorstore: return error codes for consistency
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-08 12:05:15 -07:00
Sage Weil
a1a71471c2 qa: test witness subtree adjustment
This exercises the mds at least; we don't have a way to verify mds
behavior currently.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-08 11:22:26 -07:00
Sage Weil
e2c808aea9 qa: test_sync_io
Currently only tests the read path for O_DIRECT and sync (if the ioctl is
in place).  Also currently crashes the kclient with

 read_direct buf_align 0 offset 4190720 len 4096

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-07 22:09:24 -07:00