]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Samuel Just [Tue, 1 Nov 2011 18:16:53 +0000 (11:16 -0700)]
PG: set_last_peering_reset in Reset constructor
If an osd in the prior set comes up, we can restart peering without a
new peering interval starting. However, we still want to ignore
anything we previously requested from replicas.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Sage Weil [Mon, 31 Oct 2011 22:03:29 +0000 (15:03 -0700)]
osd: kill unused on_osd_failure() hook
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Samuel Just [Mon, 31 Oct 2011 22:00:43 +0000 (15:00 -0700)]
RadosModel.h: use default conf location
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Samuel Just [Mon, 31 Oct 2011 20:56:32 +0000 (13:56 -0700)]
Revert "PG: call set_last_peering_reset in Started contructor"
Unfortunately, the Started constructor doesn't occur until map
activation. We need to reset last_peering_reset exactly when the acting
set changes.
This reverts commit
6d123067ce1ba99522281d5c72623bd5ba3e0fc8 .
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Noah Watkins [Mon, 31 Oct 2011 18:15:26 +0000 (11:15 -0700)]
hadoop: Return NULL when the path does not exist.
Although unspecified in the declaration header, other file
systems return a single result when the path is a file.
This fixes tracker issue #1661
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Sage Weil [Sun, 30 Oct 2011 00:42:17 +0000 (17:42 -0700)]
osdmap: fix g_ceph_context reference
Use cct.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Samuel Just [Fri, 28 Oct 2011 22:34:27 +0000 (15:34 -0700)]
ReplicatedPG: check for peering restart before share_pg_info
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Sage Weil [Fri, 28 Oct 2011 21:33:38 +0000 (14:33 -0700)]
mkcephfs: build initial osdmap from information in ceph.conf
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 28 Oct 2011 21:32:30 +0000 (14:32 -0700)]
osdmaptool: build initial map from ceph.conf
This builds the intial osd and crush maps from what is in the ceph.conf,
taking advantage of host or rack tags that are present there.
If there are >1 hosts, separate replica across hosts. If there are >2
racks, separate across racks. Semi arbitrary, but should capture most
use cases.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 28 Oct 2011 20:59:25 +0000 (13:59 -0700)]
crush: make insert_item take float for weight
Signed-off-by: Sage Weil <sage@newdream.net>
Samuel Just [Fri, 28 Oct 2011 21:18:57 +0000 (14:18 -0700)]
ReplicatedPG: Clean up old snap links when recovering a clone
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Samuel Just [Fri, 28 Oct 2011 21:18:12 +0000 (14:18 -0700)]
PG: Create new snap directories independently on replica
Previously, we shipped over the collection creation as part
of the transaction. However, the snap directory on the
replica might or might not exist already due to recovery
progress.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Yehuda Sadeh [Fri, 28 Oct 2011 21:03:38 +0000 (14:03 -0700)]
rgw: canonical resource should use unencoded url
Sage Weil [Fri, 28 Oct 2011 20:00:42 +0000 (13:00 -0700)]
Merge pull request #4 from vzctl/master
fix error: 'snprintf' was not declared in this scope
Yehuda Sadeh [Fri, 28 Oct 2011 18:48:38 +0000 (11:48 -0700)]
rgw: cleanup, remove unused user_id
Some access methods required user_id param, but that was never really used. At
this point we should just remove them.
Sage Weil [Fri, 28 Oct 2011 18:42:04 +0000 (11:42 -0700)]
mkcephfs: skip non-btrfs osds even with --mkbtrfs
This lets you do a mixed btrfs and non-btrfs file systems.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 28 Oct 2011 17:39:15 +0000 (10:39 -0700)]
Merge branch 'stable'
Sage Weil [Fri, 28 Oct 2011 17:38:51 +0000 (10:38 -0700)]
debian: break redundant dependencies
They confuse APT it seems.
ceph-common -> librbd1 -> librados2
radosgw -> ceph-common -> librados2
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 28 Oct 2011 17:05:20 +0000 (10:05 -0700)]
MOSDMap: do not leave {oldest,newest}_map uninitialized when decoding old messages
This leads to badness like
osd_map(295..296 src has
74308224 ..0) v1
Signed-off-by: Sage Weil <sage@newdream.net>
Alexey Lapitsky [Fri, 28 Oct 2011 13:37:09 +0000 (15:37 +0200)]
include stdio in order to fix snprintf compilation error
Signed-off-by: Alexey Lapitsky <lex@realisticgroup.com>
Sage Weil [Fri, 28 Oct 2011 03:28:57 +0000 (20:28 -0700)]
ceph: fix snprintf warning
warning: tools/ceph.cc:146: format not a string literal and no format arguments
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Josh Durgin [Fri, 28 Oct 2011 01:11:28 +0000 (18:11 -0700)]
auth: return unknown if no supported auth is found
If NONE is supported, it will already be in the list of supported
protocols, so there's no need to default to it here. This prevents
clients that request the NONE protocol from authenticating when the
server only accepts CEPHX. Instead, they get -ENOTSUP from the
AuthMonitor.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Yehuda Sadeh [Thu, 27 Oct 2011 21:31:16 +0000 (14:31 -0700)]
rgw: swift related adjustments
Sage Weil [Thu, 27 Oct 2011 21:26:53 +0000 (14:26 -0700)]
Merge branch 'master' of github.com:NewDreamNetwork/ceph
Sondra.Menthers [Thu, 27 Oct 2011 21:04:56 +0000 (14:04 -0700)]
fixed graphic reference and headings
Sondra.Menthers [Thu, 27 Oct 2011 21:00:57 +0000 (14:00 -0700)]
fixed image reference
Sondra.Menthers [Thu, 27 Oct 2011 20:54:31 +0000 (13:54 -0700)]
fixed architecture document
Sondra.Menthers [Thu, 27 Oct 2011 20:43:05 +0000 (13:43 -0700)]
add images for documentation
Sondra.Menthers [Thu, 27 Oct 2011 19:51:57 +0000 (12:51 -0700)]
rgw: handle swift PUT with incorrect etag
Sondra.Menthers [Thu, 27 Oct 2011 19:44:37 +0000 (12:44 -0700)]
rgw: handle swift PUT with incorrect etag
Sondra.Menthers [Thu, 27 Oct 2011 18:20:41 +0000 (11:20 -0700)]
rgw: handle swift PUT with incorrect etag
Sondra.Menthers [Thu, 27 Oct 2011 18:20:41 +0000 (11:20 -0700)]
rgw: handle swift PUT with incorrect etag
Sondra.Menthers [Thu, 27 Oct 2011 18:16:51 +0000 (11:16 -0700)]
rgw: handle swift PUT with incorrect etag
Sondra.Menthers [Thu, 27 Oct 2011 18:02:23 +0000 (11:02 -0700)]
rgw: handle swift PUT with incorrect etag
Sage Weil [Thu, 27 Oct 2011 17:02:42 +0000 (10:02 -0700)]
ceph: refactor for generic --admin-daemon <sock> <cmd> too
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Thu, 27 Oct 2011 16:48:08 +0000 (09:48 -0700)]
ceph: --dump-perf-counters[-schema] sockpath
Quick and dirty way to dump perfcounters stats. Not documenting this until
we decide this is where it should live.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Thu, 27 Oct 2011 16:47:20 +0000 (09:47 -0700)]
filejournal: journal_replay_from
Force journal replay from a point other than the op_seq recorded by the
fs. This is useful if you want to skip bad entries in the journal (e.g.,
because they were non-idempotent and you know they were applied and the fs
operations were fully ordered).
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Thu, 27 Oct 2011 16:26:08 +0000 (09:26 -0700)]
Merge branch 'stable'
Sage Weil [Wed, 26 Oct 2011 21:56:25 +0000 (14:56 -0700)]
rados: improve error message
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Thu, 27 Oct 2011 04:20:18 +0000 (21:20 -0700)]
radosgw-admin: fix key create check
Also fixes warning
warning: rgw/rgw_admin.cc:812: suggest parentheses around ‘&&’ within ‘||’
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Josh Durgin [Thu, 27 Oct 2011 00:05:34 +0000 (17:05 -0700)]
osd: guard checks for writes
fa722de6708d3e92037df6289cc29ece12c8ea66 moved these checks, and
accidentally removed the may_write() guard. This caused reading from
snapshots to fail.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Yehuda Sadeh [Thu, 27 Oct 2011 00:20:51 +0000 (17:20 -0700)]
rgw: handle swift PUT with incorrect etag
Yehuda Sadeh [Wed, 26 Oct 2011 23:07:04 +0000 (16:07 -0700)]
rgw: rgw-admin --skip-zero-entries
Sage Weil [Wed, 26 Oct 2011 23:00:45 +0000 (16:00 -0700)]
perfcounters: fix accessor name
FreakingCamelCaps
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Wed, 26 Oct 2011 22:54:15 +0000 (15:54 -0700)]
objecter: instrument with perfcounter
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Yehuda Sadeh [Wed, 26 Oct 2011 22:34:52 +0000 (15:34 -0700)]
rgw: rgw-admin generate-key/access-key=false fix
Yehuda Sadeh [Wed, 26 Oct 2011 22:34:18 +0000 (15:34 -0700)]
rgw: rgw-admin can show log summation
Sage Weil [Wed, 26 Oct 2011 21:56:08 +0000 (14:56 -0700)]
osd: read_log: only list the collection once
After upgrading we may need to list the collection to recover the hash
value when upgrading an old collection.
Signed-off-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh [Wed, 26 Oct 2011 21:30:26 +0000 (14:30 -0700)]
rgw: fix bucket suspension
Sage Weil [Wed, 26 Oct 2011 04:34:07 +0000 (21:34 -0700)]
rgw: fix uninitialized variable warnings
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Yehuda Sadeh [Tue, 25 Oct 2011 23:29:40 +0000 (16:29 -0700)]
Merge branch 'master' of ssh://github.com/NewDreamNetwork/ceph
Conflicts:
src/rgw/rgw_rados.cc
Greg Farnum [Mon, 10 Oct 2011 15:19:47 +0000 (08:19 -0700)]
hadoop: bring back Java changes.
These convert the Hadoop stuff to work on the branch-0.20 API.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Yehuda Sadeh [Tue, 25 Oct 2011 23:23:08 +0000 (16:23 -0700)]
rgw: fix attr cache
Sage Weil [Tue, 25 Oct 2011 21:15:13 +0000 (14:15 -0700)]
fix osdmaptool clitests
Sage Weil [Tue, 25 Oct 2011 21:02:42 +0000 (14:02 -0700)]
Merge branch 'wip-pools'
Sage Weil [Tue, 25 Oct 2011 17:52:06 +0000 (10:52 -0700)]
mon: reencode routed messages
The message encoding may depend on the target features. Clear the
payload so that the Message gets reencoded appropriately.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 25 Oct 2011 17:51:21 +0000 (10:51 -0700)]
MOSDMap: reencode full map embedded in Incremental, as needed
The Incremental may have a bufferlist containing a full map; reencode
that too if we are reencoding for old clients.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 25 Oct 2011 17:13:44 +0000 (10:13 -0700)]
Merge remote-tracking branch 'gh/wip-rbd-tool'
Sage Weil [Mon, 24 Oct 2011 18:41:29 +0000 (11:41 -0700)]
mon: fix rare races with pool updates
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Mon, 24 Oct 2011 18:41:13 +0000 (11:41 -0700)]
mon: parse 0 values properly
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 25 Oct 2011 05:51:15 +0000 (22:51 -0700)]
Merge remote branch 'gh/wip-osd-queue'
Sage Weil [Mon, 24 Oct 2011 20:55:29 +0000 (13:55 -0700)]
osd: fix last_complete adjustment after recovering an object
After we recover each object, we try to raise the last_complete value
(and matching complete_to iterator). If our log was purely a backlog, this
won't necessarily end up bringing last_complete all the way up to the
last_update value, and we'll fail an assert later.
If complete_to does reach the end of the log, then we fast-forward
last_complete to last_update.
The crash we were hitting was in finish_recovery(), and looked something
like
osd/PG.cc: In function 'void PG::finish_recovery(ObjectStore::Transaction&, std::list<Context*, std::allocator<Context*> >&)', in thread '0x7f4573df7700'
osd/PG.cc: 1800: FAILED assert(info.last_complete == info.last_update)
ceph version
0.36-251-g6e29c28 (commit:
6e29c2826066a7723ed05b60b8ac0433a04c3c13 )
1: (PG::finish_recovery(ObjectStore::Transaction&, std::list<Context*, std::allocator<Context*> >&)+0x8d) [0x6ff0ed]
2: (PG::RecoveryState::Active::react(PG::RecoveryState::ActMap const&)+0x316) [0x729196]
3: (boost::statechart::simple_state<PG::RecoveryState::Active, PG::RecoveryState::Primary, boost::mpl::list<mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, (boost::statechart::history_mode)0>::react_impl(boost::statechart::event_base const&, void const*)+0x21b) [0x759c0b]
4: (boost::statechart::state_machine<PG::RecoveryState::RecoveryMachine, PG::RecoveryState::Initial, std::allocator<void>, boost::statechart::null_exception_translator>::process_event(boost::statechart::event_base const&)+0x8d) [0x7423dd]
5: (PG::RecoveryState::handle_activate_map(PG::RecoveryCtx*)+0x183) [0x711f43]
6: (OSD::activate_map(ObjectStore::Transaction&, std::list<Context*, std::allocator<Context*> >&)+0x674) [0x579884]
7: (OSD::handle_osd_map(MOSDMap*)+0x2270) [0x57bd50]
8: (OSD::_dispatch(Message*)+0x4d0) [0x596bb0]
9: (OSD::ms_dispatch(Message*)+0x17b) [0x59803b]
10: (SimpleMessenger::dispatch_entry()+0x9c2) [0x617562]
11: (SimpleMessenger::DispatchThread::entry()+0x2c) [0x4a3dec]
12: (Thread::_entry_func(void*)+0x12) [0x611a92]
13: (()+0x7971) [0x7f457f87b971]
14: (clone()+0x6d) [0x7f457e10b92d]
Fixes: #1609
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Sun, 23 Oct 2011 06:07:10 +0000 (23:07 -0700)]
osd: fix generate_past_intervals maybe_went_rw on oldest interval
We stop working backwards when we hit last_epoch_clean, which means for the
oldest interval first_epoch may not be the _real_ first_epoch. (We can't
continue working backward because we may have thrown out those maps
entirely.)
However, if the last_epoch_clean epoch is contained within that interval,
we know that the OSD did in fact go rw because it had to have completed
recovery (and thus peering) to set last_clean_epoch in the first place.
This fixes cases where two different nodes have slightly different
past intervals, generate different prior probe sets as a result, and
flip/flop on the acting set choice. (It may have eventually resolved when
the wrongly excluded node's notify races and arrives in time to be
considered, but that's still clearly no good.)
This does leave the start epoch for that oldest interval incorrect. That
doesn't currently matter except that it's confusing, but I'm not sure how
to mark it properly, or if it's worth the effort.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Sun, 23 Oct 2011 05:43:33 +0000 (22:43 -0700)]
osd: MOSDPGNotify: print prettier
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Sun, 23 Oct 2011 05:43:21 +0000 (22:43 -0700)]
osd: print useful debug info from choose_acting
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 21 Oct 2011 16:57:52 +0000 (09:57 -0700)]
osd: make proc_replica_log missing dump include useful information
I needed to see have/need to debug a weird unfound issue turned up by
thrashing.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 25 Oct 2011 05:21:43 +0000 (22:21 -0700)]
osd: fix/simplify op discard checks
Use a helper to determine when we should discard an op due to the client
being disconnected. Use this when the op is first received, (re)queued,
and dequeued.
Fix the check to keep ops that are replayed ACKs, as we should make every
effort to reapply those even when the client goes away.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Tue, 25 Oct 2011 05:13:59 +0000 (22:13 -0700)]
osd: move queue checks into enqueue_op, kill _handle_ helpers
This simplifies things, and renames the checks to make it clear that we are
doing validation checks only, with no side-effects allowed.
Also move some checks into the parent handle_op() to further simplify the
(re)queue checks.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Tue, 25 Oct 2011 04:59:49 +0000 (21:59 -0700)]
osd: move op cap check into helper
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Tue, 25 Oct 2011 04:48:50 +0000 (21:48 -0700)]
osd: drop useless PG hooks
These no longer need to be exposed to the generic OSD code.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Tue, 25 Oct 2011 04:46:56 +0000 (21:46 -0700)]
osd: drop ability to disable op queue entirely
This is pretty useless, and broken wrt requeueing anyway.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Tue, 25 Oct 2011 04:44:36 +0000 (21:44 -0700)]
osd: handle missing/degraded in op thread
The _handle_op() method (and friends) are called when an op is initially
queued and when it is requeued. In the requeue case we have to be more
careful because the caller may be in the middle of doing all sorts of
random stuff. That means we need to limit ourselves to queueing or
discarding the op, and refrain from doing anything else with dangerous
side effects.
This fixes a crash like
osd/ReplicatedPG.cc: In function 'void ReplicatedPG::recover_primary_got(hobject_t, eversion_t)', in thread '
7f21d0189700 '
osd/ReplicatedPG.cc: 4109: FAILED assert(missing.num_missing() == 0)
ceph version
0.37-105-gc2069eb (commit:
c2069eb1e562ba7d753c9b5ce5c904f4f5ef6abe )
1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x76) [0x8ab95a]
2: (ReplicatedPG::recover_primary_got(hobject_t, eversion_t)+0x62e) [0x767eea]
3: (ReplicatedPG::sub_op_push(MOSDSubOp*)+0x2b79) [0x76abeb]
4: (ReplicatedPG::do_sub_op(MOSDSubOp*)+0x1ab) [0x74761b]
5: (OSD::dequeue_op(PG*)+0x47d) [0x820ac3]
6: (OSD::OpWQ::_process(PG*)+0x27) [0x82cc8b]
due to an object being pushed to a replica before it is activated.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Tue, 25 Oct 2011 03:54:26 +0000 (20:54 -0700)]
osd: set reqid on push/pull ops
Not strictly necessary, but makes logs easier to follow.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Mon, 24 Oct 2011 04:21:33 +0000 (21:21 -0700)]
mon: remove compatset cruft
The CompatSet is built on demand; it's no longer static.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Samuel Just [Mon, 24 Oct 2011 23:49:45 +0000 (16:49 -0700)]
FileStore: ignore EEXIST on clones and collection creation !btrfs_snap
We need to ignore EEXIST on btrfs also when m_filestore_btrfs_snap is
disabled.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Samuel Just [Mon, 24 Oct 2011 17:40:38 +0000 (10:40 -0700)]
ReplicatedPG: fix snapshot directory handling in snap_trimmer
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Yehuda Sadeh [Mon, 24 Oct 2011 23:43:14 +0000 (16:43 -0700)]
rgw: fix rgw_obj compare function
Greg Farnum [Mon, 24 Oct 2011 22:22:35 +0000 (15:22 -0700)]
rgw: use a uint64_t instead of a size_t for storing the size
librados uses uint64_t so that 32-bit architectures aren't hobbled.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Josh Durgin [Mon, 24 Oct 2011 20:55:49 +0000 (13:55 -0700)]
workunits: test rbd python bindings
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Mon, 24 Oct 2011 19:57:53 +0000 (12:57 -0700)]
rbd.py: update python bindings for new copy interface
It was changed to return 0 on success in
d7f7a213546b599d2eec4c6617593d232b43a7d6
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Mon, 24 Oct 2011 19:38:01 +0000 (12:38 -0700)]
librados: use stored snap context for all operations
Using an empty snap context led to the failure of
test_rbd.TestImage.test_rollback_with_resize, since clones weren't
created when deleting objects. This test now passes.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Mon, 24 Oct 2011 19:36:03 +0000 (12:36 -0700)]
librbd: resize if necessary before rolling back
This is a partial fix for test_rbd.TestImage.test_rollback_with_resize
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Mon, 24 Oct 2011 19:33:59 +0000 (12:33 -0700)]
test_rbd: add a test for rolling back after resizing
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Fri, 21 Oct 2011 21:33:30 +0000 (14:33 -0700)]
librbd: propagate error from snap_set
Previously rbd_snap_set always returned 0, even when the snapshot did
not exist.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Fri, 21 Oct 2011 21:16:30 +0000 (14:16 -0700)]
workunits: add rbd rollback and snapshot removal tests
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Fri, 21 Oct 2011 21:13:25 +0000 (14:13 -0700)]
rbd: remove unnecessary condition
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Fri, 21 Oct 2011 20:28:30 +0000 (13:28 -0700)]
clitests: add rbd usage and invalid snap usage tests
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Fri, 21 Oct 2011 20:25:48 +0000 (13:25 -0700)]
workunit: check that rbd info returns the right size for snapshots
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Fri, 21 Oct 2011 20:11:46 +0000 (13:11 -0700)]
librbd: show correct size for snapshots
header.size is the current size of the image.
ImageCtx::get_image_size() already does the right thing for
snapshots.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Fri, 21 Oct 2011 20:07:33 +0000 (13:07 -0700)]
rbd: let all commands use the pool/image@snapshot format
This way you aren't forced to use '-p' or '--snap' to specify a pool
or snapshot for some commands.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Tue, 18 Oct 2011 23:51:36 +0000 (16:51 -0700)]
rbd: specify which commands take --snap in usage
Maybe this will be less confusing.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Tue, 18 Oct 2011 23:50:08 +0000 (16:50 -0700)]
rbd: check command before opening the image
Now map/unmap won't use librbd, and commands that don't take --snap
will give an error when it's used.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Samuel Just [Mon, 24 Oct 2011 18:42:30 +0000 (11:42 -0700)]
test/osd: Add TestReadWrite
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Sage Weil [Mon, 24 Oct 2011 18:27:20 +0000 (11:27 -0700)]
mon: allow adjustment of per-pool crash_replay_interval
Signed-off-by: Sage Weil <sage@newdream.net>
Greg Farnum [Mon, 24 Oct 2011 17:12:50 +0000 (10:12 -0700)]
Merge branch 'rgw-dir-cleanup'
Greg Farnum [Thu, 20 Oct 2011 23:26:15 +0000 (16:26 -0700)]
rgw: fix check_disk_state; add a strip_namespace function.
Use copies of the IoCtx rather than references so that
we can set locators without breaking stuff, and make use of the
on-disk locators which we just added.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Fri, 21 Oct 2011 00:00:12 +0000 (17:00 -0700)]
rgw: add locators to the directory objects, and functions handling them
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Thu, 20 Oct 2011 20:49:45 +0000 (13:49 -0700)]
rgw: rename translate_raw_obj to translate_raw_obj_to_obj_in_ns
And document it. Because the naming is so bad that neither I nor
the author noticed it wasn't doing what we wanted it to until I ran
a test and it failed.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Sage Weil [Mon, 24 Oct 2011 04:07:39 +0000 (21:07 -0700)]
librados: behave if shutdown is called twice
On failure, we shut ourselves down. If the caller calls shutdown again,
don't crash.
Fixes: #1650
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Mon, 24 Oct 2011 04:05:56 +0000 (21:05 -0700)]
mon: need to print pool id for output to be useful
Signed-off-by: Sage Weil <sage@newdream.net>