Commit Graph

13143 Commits

Author SHA1 Message Date
Yehuda Sadeh e2c1125410 Makefile.am: update noinst_HEADERS with new rgw headers 2011-03-01 11:25:22 -08:00
Yehuda Sadeh 0bad44a788 rgw: multiple openstack, rgw_admin fixes 2011-03-01 11:25:22 -08:00
Yehuda Sadeh be6f8489cc rgw: openstack put object fixes 2011-03-01 11:25:22 -08:00
Yehuda Sadeh 4e3ad0c6ab rgw: fix get obj 2011-03-01 11:25:22 -08:00
Yehuda Sadeh fecf37e288 rgw: openstack: implement some more functionality 2011-03-01 11:25:22 -08:00
Yehuda Sadeh 93e56b613e rgw: openstack: list containers, list objects 2011-03-01 11:25:22 -08:00
Yehuda Sadeh 543b9864d1 rgw: add missing files 2011-03-01 11:25:22 -08:00
Yehuda Sadeh fc63d97331 rgw: can output data in multiple formats 2011-03-01 11:25:22 -08:00
Yehuda Sadeh 090a7c0b9e rgw: move authorization to the specific rest handlers 2011-03-01 11:25:22 -08:00
Yehuda Sadeh d3285d654f rgw: move things around, separate implementations 2011-03-01 11:25:22 -08:00
Yehuda Sadeh fe871d986b rgw: keep openstack user to rgw user mapping 2011-03-01 11:24:30 -08:00
Yehuda Sadeh 3428fe3fc7 rgw: verify openstack tokens 2011-03-01 11:24:30 -08:00
Yehuda Sadeh c77c753e00 rgw: disable cache 2011-03-01 11:24:29 -08:00
Yehuda Sadeh 57d0c17b5e rgw: fix crash 2011-03-01 11:24:29 -08:00
Yehuda Sadeh 3e62d8a216 rgw: add a cache layer for the backend 2011-03-01 11:24:29 -08:00
Colin Patrick McCabe 1f5fca8525 Rename radios_ioctx_{open,close} to create/destroy
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-01 03:38:44 -08:00
Colin Patrick McCabe d134915fa7 librados: remove IoCtx::close()
We decided we don't want IoCtx::close(), since IoCtx::~IoCtx() exists.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-01 03:33:01 -08:00
Josh Durgin 572480736a testrados: add object stat test
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-03-01 10:36:15 -08:00
Josh Durgin 58d60e040e testlibrbd: recreate test pool each time
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-03-01 10:33:06 -08:00
Tommi Virtanen 7a2bb8dc1f Make git ignore core files. 2011-02-28 16:03:35 -08:00
Tommi Virtanen adb6750979 Make git ignore python generated files. 2011-02-28 16:03:17 -08:00
Tommi Virtanen d372c50f7c librados: Crashed on shutdown if connect was never called.
Add a trivial unit test to trigger this.
2011-02-28 16:00:03 -08:00
Colin Patrick McCabe 8d877abc07 Add comment to ceph_fs.cc
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-28 08:06:59 -08:00
Sage Weil 399032cca5 osd: share osd->osdmap with map cache
Make OSD::osdmap just a shortcut map pointer to the most recent OSDMap, the
same one that's in the map cache.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-02-28 13:11:12 -08:00
Sage Weil 5a18f98839 Merge branch 'next' 2011-02-28 13:04:15 -08:00
Sage Weil c76a4b7565 Revert "move g_default_file_layout into ceph_fs.cc"
This reverts commit 1dc12e3e1d.

The headers and ceph_fs.cc are written such that they can be shared
verbatim between the kernel and userspace code.  Omitting the headers
was deliberate, because they differ depending on the build environment.

The default file layout seems fine in config.cc, since it is declared
in config.h, and is a bunch of tunables we generally try to keep in
config.cc.
2011-02-28 12:57:56 -08:00
Colin Patrick McCabe 70564eb582 libradoshpp: put ceph stuff in namespace librados
Try a little bit harder to avoid polluting the user's global namespace
with our stuff.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-28 06:00:38 -08:00
Colin Patrick McCabe a66fd3bb4f librados: don't create unused SnapContext objs
There were some unused temporary variables hanging around.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-28 05:59:51 -08:00
Colin Patrick McCabe 13f6223fc1 librados: fix copy ctor of ObjectIterator
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-28 05:32:31 -08:00
Sage Weil a2ffef9d40 Merge branch 'next'
Conflicts:
	src/pybind/rados.py
2011-02-28 11:19:37 -08:00
Colin Patrick McCabe e7f2972d12 cconf: fix clitest
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-28 04:03:02 -08:00
Colin Patrick McCabe 3011349a99 unittests: remember to use AM_LDFLAGS
remember to use AM_LDFLAGS when setting _LDFLAGS. Otherwise, the global
flags will be lost.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-28 03:50:54 -08:00
Colin Patrick McCabe f7e5e868b3 Merge branch 'librados_api' into next 2011-02-28 01:57:58 -08:00
Colin Patrick McCabe 141509c059 Rename PoolHandle to IoContext: part 2
The previous change changed all PoolHandle uses to IoContext. This
change also renames the variable names.

Also fix a few API functions whose names weren't quite right after the
previous change. rados_pool_list really does just list pools-- it has
nothing to do with ioctxes.

rados_ioctx_change_auid should be rados_ioctx_pool_set_auid. Although it
takes an ioctx as an argument, it operates on the pool.

rados_ioctx_close should just return void. APIs where the close
operation can fail are broken. What is the user supposed to do if
closing doesn't work?

Also, fix a few test programs that got overlooked earlier.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-25 17:02:20 -08:00
Josh Durgin 78ba46ad17 testlibrbd: call rados_connect
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-02-25 18:05:50 -08:00
Tommi Virtanen 040e546082 pybind/rados: Fix invalid variable references in error paths.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-02-25 15:29:16 -08:00
Tommi Virtanen 8c2d572986 pybind/rados: Remove unused variable.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-02-25 15:28:06 -08:00
Tommi Virtanen 9591729af1 pybind/rados: version call return type is void.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-02-25 15:26:49 -08:00
Samuel Just 32cf5ac4c0 FileStore.h: reorder queue operations in _journaled_ahead
In writeahead mode, an op could dissappear from jq without immediately
reappearing in q.  Thus, q can be empty before seq is requeued and
finished.  _journaled_ahead will now enqueue the op in q before removing
from jq.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-02-25 14:43:05 -08:00
Samuel Just afe2d81bca Revert "FileStore: fix OpSequencer::flush error"
This reverts commit c78b29a47d.

This commit introduced an error in parallel journaling mode.
OpSequencer::flush is only meant to ensure that the ops have become
readable, not necessarily journalled.
2011-02-25 14:43:03 -08:00
Sage Weil 96c2cb5b98 osd: simplify handle_osd_map flushing and map caching
Extend the map_cache somewhat.  Avoid one flush in handle_osd_map by
putting new maps in the cache.

There is still a flush and a sync_and_flush remaining, so we're not done
yet.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-02-25 13:41:54 -08:00
Colin Patrick McCabe 74aa684148 librados: Rename rados_pool_t to rados_ioctx_t
rados_pool_t -> rados_ioctx_t

class PoolCtx -> class IoCtxImpl

class PoolHandle -> class IoCtx

PoolHandle::name() -> IoCtx::get_pool_name()

Replace rados_pool_destroy, PoolHandle::destroy with rados_pool_delete
and Rados::pool_delete.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-25 10:52:31 -08:00
Josh Durgin 8903ea3441 testradospp: update for new librados API
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-02-25 16:27:07 -08:00
Josh Durgin 454854ed32 testlibrbdpp: convert to new APIs
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-02-25 16:27:07 -08:00
Colin Patrick McCabe bde6dac24c test_common.sh: should rm objects before adding
rados_write doesn't replace the whole object, but that's what we want in
these old tests. So just rm it first.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-25 09:08:00 -08:00
Colin Patrick McCabe 4937854b07 rbd: de-globalize rbd, rados, Image
Use RAII for rbd, rados, and Image. Their destructors will be called
when main exits, thus doing the cleanup for us. Use auto_ptr for Image.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-25 08:42:43 -08:00
Josh Durgin b65478755c librbd, librados: fix my last commits to use the new librados API
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-02-25 15:45:49 -08:00
Josh Durgin 2641a693bf librados: add snap_get_stamp to C API
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-02-25 15:33:32 -08:00
Josh Durgin 152604732f testlibrbdpp: initialize pointers
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-02-25 15:32:56 -08:00
Josh Durgin 2cb86f713d librados, librbd: remove selfmanaged_snap_rollback_object
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-02-25 15:32:56 -08:00