]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agorbd qa/workunits: add rbd read data test
Alex Elder [Wed, 10 Apr 2013 20:44:01 +0000 (15:44 -0500)]
rbd qa/workunits: add rbd read data test

This adds a new test script for validating data reads from a mapped
rbd image is what it's expected to be.

See the content of the file for a bit more explanation.

Signed-off-by: Alex Elder <elder@inktank.com>
12 years agorgw_admin: Create keys for a new user by default.
caleb miles [Wed, 10 Apr 2013 19:00:06 +0000 (15:00 -0400)]
rgw_admin: Create keys for a new user by default.

Create a new key pair for new users or when --gen-access-key is specified.

Signed-off-by: caleb miles <caleb.miles@inktank.com>
12 years agotest_stress_watch: remove bogus asserts
Josh Durgin [Wed, 10 Apr 2013 18:35:46 +0000 (11:35 -0700)]
test_stress_watch: remove bogus asserts

There's no reason to check the duration of a watch. The notify will
timeout after 30s on the OSD, but there's no guarantee the client will
see that in any bounded time. This test is really meant as a stress
test of the OSDs anyway, not of the clients, so just remove asserts
about operation duration.

Fixes: #4591
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Sam Just <sam.just@inktank.com>
12 years agotest: update rbd formatted-output for progress changes
Josh Durgin [Wed, 10 Apr 2013 17:43:13 +0000 (10:43 -0700)]
test: update rbd formatted-output for progress changes

Progress output now goes to stderr instead of stdout.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoMerge branch 'wip-journaler-4618' into next
Greg Farnum [Tue, 9 Apr 2013 23:00:41 +0000 (16:00 -0700)]
Merge branch 'wip-journaler-4618' into next

Reviewed-by: Sam Lang <sam.lang@inktank.com>
12 years agoconfig: fix osd_client_message_cap comment
Greg Farnum [Tue, 9 Apr 2013 19:11:27 +0000 (12:11 -0700)]
config: fix osd_client_message_cap comment

Signed-off-by: Greg Farnum <greg@inktank.com>
12 years agoMerge remote-tracking branch 'origin/wip-osd-throttle2' into next
Greg Farnum [Tue, 9 Apr 2013 19:11:15 +0000 (12:11 -0700)]
Merge remote-tracking branch 'origin/wip-osd-throttle2' into next

Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoFileJournal: clarify meaning of start_seq and fix initialization
Samuel Just [Tue, 9 Apr 2013 17:27:50 +0000 (10:27 -0700)]
FileJournal: clarify meaning of start_seq and fix initialization

Second guessing the first sequence number from the FileStore
was silly and broke tests which had the temerity to start at
1 instead of 2...

Fixes: #4687
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoRevert "global: call config observers on global_init (and start logging!)"
Greg Farnum [Tue, 9 Apr 2013 01:20:53 +0000 (18:20 -0700)]
Revert "global: call config observers on global_init (and start logging!)"

This reverts commit a30917746614275baeb718e902133f06ef44fba6. This commit
includes calls that involve Mutexes, Lockers, and lockdep -- which isn't
yet set up, so things break horribly. A more subtle approach is required.

Signed-off-by: Greg Farnum <greg@inktank.com>
12 years agomon: Use _daemon version of argparse functions
Dan Mick [Mon, 8 Apr 2013 20:52:32 +0000 (13:52 -0700)]
mon: Use _daemon version of argparse functions

Allow argparse functions to fail if no argument given by using
special versions that avoid the default CLI behavior of "cerr/exit"

Fixes: #4678
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoceph_argparse: add _daemon versions of argparse calls
Dan Mick [Mon, 8 Apr 2013 20:49:22 +0000 (13:49 -0700)]
ceph_argparse: add _daemon versions of argparse calls

mon needs to call argparse for a couple of -- options, and the
argparse_witharg routines were attempting to cerr/exit on missing
arguments.  This is appropriate for the CLI usage, but not the daemon
usage.  Add a 'cli' flag that can be set false for the daemon usage
(and cause the parsing routine to return false instead of exit).

The daemon's parsing code due for a rewrite soon.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoPipe: call discard_requeued_up_to under pipe_lock
Samuel Just [Mon, 8 Apr 2013 22:43:53 +0000 (15:43 -0700)]
Pipe: call discard_requeued_up_to under pipe_lock

Fixes: #4627
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoMerge pull request #202 from ceph/wip-log-boot
Gregory Farnum [Mon, 8 Apr 2013 22:53:30 +0000 (15:53 -0700)]
Merge pull request #202 from ceph/wip-log-boot

Fixes #4676.

Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agojournaler: remove the unused prefetch_from member variable
Greg Farnum [Mon, 8 Apr 2013 21:09:23 +0000 (14:09 -0700)]
journaler: remove the unused prefetch_from member variable

Signed-off-by: Greg Farnum <greg@inktank.com>
12 years agoMerge pull request #206 from ceph/wip-4660
Gregory Farnum [Mon, 8 Apr 2013 18:18:53 +0000 (11:18 -0700)]
Merge pull request #206 from ceph/wip-4660

mds: Keep LogSegment ref for openc backtrace

Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agomds: Keep LogSegment ref for openc backtrace 206/head
Sam Lang [Mon, 8 Apr 2013 14:09:41 +0000 (09:09 -0500)]
mds: Keep LogSegment ref for openc backtrace

The MDRequest is destroyed once the client reply is sent, but
we need the reference to the LogSegment for updating the backtrace, so
store a temporary ref to the LogSegment for later.

Fixes #4660.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agomds: fix journaler to set temp_fetch_len appropriately and read the requested amount
Greg Farnum [Mon, 8 Apr 2013 16:10:35 +0000 (09:10 -0700)]
mds: fix journaler to set temp_fetch_len appropriately and read the requested amount

The _prefetch() function which intereprets temp_fetch_len interprets
it as the amount of data we need from read_pos, which is the beginning
of read_buf. So by setting it to the amount *more* we needed, we were
getting stuck forever if we actually hit this condition. Fix it by
setting temp_fetch_len based on the amount of data we need in aggregate.

Furthermore, we were previously rounding *down* the requested amount in
order to read only full log segments. Round up instead!

Fixes #4618

Signed-off-by: Greg Farnum <greg@inktank.com>
12 years agoglobal: call config observers on global_init (and start logging!) 202/head
Sage Weil [Sun, 7 Apr 2013 16:06:23 +0000 (09:06 -0700)]
global: call config observers on global_init (and start logging!)

Currently we don't start logging on daemon startup unless the log_file
parameter was adjusted by ceph.conf.  Instead, we should call all config
observers so that the logging subsystem is fully configured and we log
even prior to the daemonize and common_init_finish (when we call observers
again).  This fixes logging for the initial period before we daemonize.
For some of the daemons (osd, mon), this includes significant work.  It
also fixes the problem where users don't see the 'ceph version ...' banner
on daemon start.

Backport: bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoglobal: flush log before stopping/starting on daemonize
Sage Weil [Sun, 7 Apr 2013 16:04:37 +0000 (09:04 -0700)]
global: flush log before stopping/starting on daemonize

Ensure that we push log data out before we restart logging.  This may not
be strictly necessary, but it avoids a whole class of possible pitfalls.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: make 'osd crush move ...' idempotent
Sage Weil [Sat, 6 Apr 2013 20:54:10 +0000 (13:54 -0700)]
mon: make 'osd crush move ...' idempotent

If we don't need to move the item, return success.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrbd: fix DiffIterateStress again
Sage Weil [Sat, 6 Apr 2013 16:37:52 +0000 (09:37 -0700)]
librbd: fix DiffIterateStress again

- fix seed
- the array indices are points in time; no need to subtract one from i!
- pick a random seed and print it to stdout

I ran this with several different seeds without failure, so I am confident
we are in good shape.  And if we ever get a future failure, we'll have the
seed to reproduce.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: throttle client messages by count, not just by bytes 201/head
Sage Weil [Thu, 4 Apr 2013 04:59:16 +0000 (21:59 -0700)]
osd: throttle client messages by count, not just by bytes

This lets us put a cap on outstanding client IOs.  This is particularly
important for clients issuing lots of small IOs.

Fixes: #4579
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsgr: add second per-message throttler to message policy
Sage Weil [Thu, 4 Apr 2013 04:30:51 +0000 (21:30 -0700)]
msgr: add second per-message throttler to message policy

We already have a throttler that lets of limit the amount of memory
consumed by messages from a given source.  Currently this is based only
on the size of the message payload.  Add a second throttler that limits
the number of messages so that we can effectively throttle small requests
as well.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrbd: fix DiffIterateStress test
Sage Weil [Sat, 6 Apr 2013 05:28:38 +0000 (22:28 -0700)]
librbd: fix DiffIterateStress test

If we write to an interval that didn't previously exist and then discard
it so that it again doesn't exist, all during the same interval, then we
should not include it in the 'written' set (or exists set, obviously).

Similarly, when we got to look at a merged diff, we can ignore extents
that were written (and possibly zeroed) if they neither existed before nor
after.

Bump up the iteration count to get more confidence that this is actually
correct.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorgw: translate object marker to raw format
Yehuda Sadeh [Sun, 31 Mar 2013 07:02:15 +0000 (00:02 -0700)]
rgw: translate object marker to raw format

Fixes: #4600
Object marker should be treated as an object, so that name is formatted
correctly when getting the raw oid.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoAllow creation of buckets starting with underscore in RGW
caleb miles [Fri, 5 Apr 2013 16:31:56 +0000 (09:31 -0700)]
Allow creation of buckets starting with underscore in RGW

Signed-off-by caleb miles <caleb.miles@inktank.com>

12 years agoMerge pull request #198 from dalgaaf/wip-da-spec
Gary Lowell [Fri, 5 Apr 2013 16:46:27 +0000 (09:46 -0700)]
Merge pull request #198 from dalgaaf/wip-da-spec

Fix some install and rpm SPEC issues

Reviewed-by: Gary Lowell <gary.lowell@inktank.com>
12 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Fri, 5 Apr 2013 05:22:43 +0000 (22:22 -0700)]
Merge remote-tracking branch 'gh/next'

12 years agoFileJournal: introduce start_seq header entry
Samuel Just [Wed, 3 Apr 2013 22:44:39 +0000 (15:44 -0700)]
FileJournal: introduce start_seq header entry

FileStore::header_t::start_seq now encodes the op seq which may be
written at FileStore::header_t::start.  This way, FileStore::open()
can pass a valid sequence number to read_entry for validation.
Otherwise, read_entry has no way of knowing whether a failure of a
read at header.start indicates that the journal was empty, or that
the entry is corrupt.  With start_seq, read_entry can assume
corruption if start_seq <= committed_up_to.

Fixes: #4527
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoFileJournal: fill in committed_up_to for old headers
Samuel Just [Wed, 3 Apr 2013 22:19:35 +0000 (15:19 -0700)]
FileJournal: fill in committed_up_to for old headers

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agodebian/ceph-test.install: add installed but not packaged files 198/head
Danny Al-Gaaf [Thu, 4 Apr 2013 16:38:11 +0000 (18:38 +0200)]
debian/ceph-test.install: add installed but not packaged files

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec.in: add installed but not packaged files to ceph-test
Danny Al-Gaaf [Thu, 4 Apr 2013 16:30:40 +0000 (18:30 +0200)]
ceph.spec.in: add installed but not packaged files to ceph-test

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec.in: remove some twice created directories
Danny Al-Gaaf [Thu, 4 Apr 2013 16:27:13 +0000 (18:27 +0200)]
ceph.spec.in: remove some twice created directories

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec.in: fix udev rules.d files handling
Danny Al-Gaaf [Thu, 4 Apr 2013 16:23:40 +0000 (18:23 +0200)]
ceph.spec.in: fix udev rules.d files handling

Move 50-rbd.rules into the ceph base package since the related
ceph-rbdnamer binary is part of this package. Use correct install
pattern.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec.in: use macros for standard directories
Danny Al-Gaaf [Thu, 4 Apr 2013 16:21:31 +0000 (18:21 +0200)]
ceph.spec.in: use macros for standard directories

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec.in: reorder and fix ceph file list
Danny Al-Gaaf [Thu, 4 Apr 2013 16:18:30 +0000 (18:18 +0200)]
ceph.spec.in: reorder and fix ceph file list

Reorder file list of ceph package. Fix handling of placeholder
directories, make use of directories marcros like %{_localstatedir}
for /var.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoMerge pull request #176 from dachary/wip-4597
Sage Weil [Thu, 4 Apr 2013 15:52:56 +0000 (08:52 -0700)]
Merge pull request #176 from dachary/wip-4597

fix nspace assignment in LFNIndex::lfn_parse_object_name

Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agodebian/ceph.install: no need to move files to usr/sbin/
Danny Al-Gaaf [Thu, 4 Apr 2013 14:00:18 +0000 (16:00 +0200)]
debian/ceph.install: no need to move files to usr/sbin/

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec.in: don't move ceph-disk* and ceph-create-keys around
Danny Al-Gaaf [Thu, 4 Apr 2013 13:58:12 +0000 (15:58 +0200)]
ceph.spec.in: don't move ceph-disk* and ceph-create-keys around

Don't move these files around, they get installed now directly to
%{_sbindir}.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoMakefile.am: install ceph-* python scripts to /usr/bin directly
Danny Al-Gaaf [Thu, 4 Apr 2013 13:54:31 +0000 (15:54 +0200)]
Makefile.am: install ceph-* python scripts to /usr/bin directly

Install ceph-* scripts directly to $(prefix)$(sbindir) (which
normaly would be /usr/sbin) instead of moving it around after
installation in SPEC file or debian files.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec.in: use %{_sbindir} instead of /usr/sbin
Danny Al-Gaaf [Thu, 4 Apr 2013 10:52:55 +0000 (12:52 +0200)]
ceph.spec.in: use %{_sbindir} instead of /usr/sbin

Use %{_sbindir} macro which points to /usr/sbin instead of
hard coded path.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoMerge pull request #196 from ceph/wip-mon-crush2
Sage Weil [Wed, 3 Apr 2013 22:46:11 +0000 (15:46 -0700)]
Merge pull request #196 from ceph/wip-mon-crush2

Wip mon crush2

Reviewed-by: Dan Mick <dan.mick@inktank.com>
12 years agomon: fix crush unit tests for idempotency 196/head
Sage Weil [Wed, 3 Apr 2013 22:45:34 +0000 (15:45 -0700)]
mon: fix crush unit tests for idempotency

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #197 from ceph/wip-3266
Gregory Farnum [Wed, 3 Apr 2013 22:42:22 +0000 (15:42 -0700)]
Merge pull request #197 from ceph/wip-3266

mds: verify mds tell 'dumpcache <filename>' target does not exist

Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agomds: verify mds tell 'dumpcache <filename>' target does not exist 197/head
Sage Weil [Wed, 3 Apr 2013 22:32:51 +0000 (15:32 -0700)]
mds: verify mds tell 'dumpcache <filename>' target does not exist

Open target with O_CREAT|O_EXCL to ensure we don't overwrite some other
important file (like, say, /etc/passwd).  This is irritating because there
is not c++ ofstream equivalent for O_EXCL; kludge around it using
ostringstream instead.

Fixes: #3266
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: make 'osd crush unlink ..' idempotent
Sage Weil [Wed, 3 Apr 2013 22:04:00 +0000 (15:04 -0700)]
mon: make 'osd crush unlink ..' idempotent

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #191 from ceph/wip-4582b
Gregory Farnum [Wed, 3 Apr 2013 21:32:48 +0000 (14:32 -0700)]
Merge pull request #191 from ceph/wip-4582b

Fixes #4582.

Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agomds: do not go through handle_mds_failure for oneself
Greg Farnum [Wed, 3 Apr 2013 19:43:49 +0000 (12:43 -0700)]
mds: do not go through handle_mds_failure for oneself

A standby MDS can attempt the handle_mds_failure paths for itself, if
it sees the transition from up to down. This leads it to insert itself
into the resolve_gather set, which is bad. So check if the failed MDS
is the same as whoami, and abort if so. This fixes #4637.

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Yan, Zheng <zheng.z.yan@intel.com>
12 years agoMerge pull request #194 from ceph/wip-rbd-diff
Josh Durgin [Wed, 3 Apr 2013 19:16:50 +0000 (12:16 -0700)]
Merge pull request #194 from ceph/wip-rbd-diff

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoMerge pull request #195 from dalgaaf/wip-da-fix-make
Sage Weil [Wed, 3 Apr 2013 18:34:05 +0000 (11:34 -0700)]
Merge pull request #195 from dalgaaf/wip-da-fix-make

Makefile.am: fix build of ceph_test_cors

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoMakefile.am: fix build of ceph_test_cors 195/head
Danny Al-Gaaf [Wed, 3 Apr 2013 18:04:02 +0000 (20:04 +0200)]
Makefile.am: fix build of ceph_test_cors

Fix build of ceph_test_cors: use $(CRYPTO_LIBS) instead of -lcryptopp.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoMerge pull request #192 from ceph/wip-mon-disk-warn
João Eduardo Luís [Wed, 3 Apr 2013 17:59:00 +0000 (10:59 -0700)]
Merge pull request #192 from ceph/wip-mon-disk-warn

mon: limit warnings about low mon disk space

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoMerge pull request #193 from ceph/wip-mon-crush
Dan Mick [Wed, 3 Apr 2013 17:56:43 +0000 (10:56 -0700)]
Merge pull request #193 from ceph/wip-mon-crush

mon: make 'osd crush rm|unlink ...' idempotent

Reviewed-by: Dan Mick dan.mick@inktank.com
12 years agoMerge remote-tracking branch 'gh/wip-4623'
Sage Weil [Wed, 3 Apr 2013 17:26:30 +0000 (10:26 -0700)]
Merge remote-tracking branch 'gh/wip-4623'

12 years agoclient: Kick waiters for max size 191/head
Sam Lang [Mon, 1 Apr 2013 14:06:59 +0000 (09:06 -0500)]
client: Kick waiters for max size

If the mds restarts without successfully logging a max size
cap update, the client waits indefinitely in Client::get_caps
on the waitfor_caps list.  So when the client gets an mds map
indicating a new active mds has replaced a down mds, we need to
kick the caps update request.  This patch mimics the behavior
in the kernel by setting the wanted_max_size
and requested_max_size to 0 and wakes up the waiters.

Fixes #4582.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agoclient: log inode when waiting on max size
Sam Lang [Thu, 28 Mar 2013 16:02:49 +0000 (11:02 -0500)]
client: log inode when waiting on max size

Logging the specific inode that the get_caps()
is waiting for helps during debugging of stuck waiters.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agomon: limit warnings about low mon disk space 192/head
Sage Weil [Wed, 3 Apr 2013 15:37:50 +0000 (08:37 -0700)]
mon: limit warnings about low mon disk space

Only warn once per percentage point per epoch.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrados: Fixes to list_snaps test changes
David Zafman [Wed, 3 Apr 2013 06:12:12 +0000 (23:12 -0700)]
librados: Fixes to list_snaps test changes

Add back assert for overlap
Fix snap size and remove unnecessary comments
Fix failing test cases

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoceph-disk: CalledProcessError has no output keyword on 2.6
Gary Lowell [Tue, 2 Apr 2013 19:11:10 +0000 (12:11 -0700)]
ceph-disk:  CalledProcessError has no output keyword on 2.6

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agolibrados: test for EINVAL on bad list_snaps() ioctx snapid
Sage Weil [Wed, 3 Apr 2013 03:55:57 +0000 (20:55 -0700)]
librados: test for EINVAL on bad list_snaps() ioctx snapid

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrados: set SNAP_DIR on listsnaps command
David Zafman [Wed, 3 Apr 2013 03:59:17 +0000 (20:59 -0700)]
librados: set SNAP_DIR on listsnaps command

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoosd: fail with EINVAL if bad snapid set on list_snaps
David Zafman [Wed, 3 Apr 2013 03:58:51 +0000 (20:58 -0700)]
osd: fail with EINVAL if bad snapid set on list_snaps

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agolibrados: fix list_snaps() tests
David Zafman [Wed, 3 Apr 2013 01:13:21 +0000 (18:13 -0700)]
librados: fix list_snaps() tests

The ioctx must be set to SNAP_DIR, and the head does not include any
clones.

Bug #4623

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agomon: make 'osd crush rm|unlink ...' idempotent 193/head
Sage Weil [Wed, 3 Apr 2013 01:39:37 +0000 (18:39 -0700)]
mon: make 'osd crush rm|unlink ...' idempotent

Return 0 if the item is not there, not -ENOENT.

Fixes: #4624
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrbd: simplify diff_iterate calls to list_snaps 194/head
Sage Weil [Wed, 3 Apr 2013 01:13:01 +0000 (18:13 -0700)]
librbd: simplify diff_iterate calls to list_snaps

We don't need the size.  Use the simpler API call.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoFix comment typos
David Zafman [Wed, 3 Apr 2013 00:51:40 +0000 (17:51 -0700)]
Fix comment typos

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoMerge pull request #185 from dalgaaf/wip-da-fix-misc-2
Sage Weil [Wed, 3 Apr 2013 00:41:50 +0000 (17:41 -0700)]
Merge pull request #185 from dalgaaf/wip-da-fix-misc-2

Bunch of fixes for issues from SCA

12 years agoMerge pull request #186 from dalgaaf/wip-da-pylint
Sage Weil [Wed, 3 Apr 2013 00:41:16 +0000 (17:41 -0700)]
Merge pull request #186 from dalgaaf/wip-da-pylint

Fix smaller python issues

12 years agoMerge pull request #187 from imjustmatthew/imjustmatthew_docs2
Sage Weil [Wed, 3 Apr 2013 00:40:50 +0000 (17:40 -0700)]
Merge pull request #187 from imjustmatthew/imjustmatthew_docs2

Adds "mds fail 0" command to operations commmand reference.

12 years agoMerge pull request #188 from dmick/wip-test-config-key
Dan Mick [Tue, 2 Apr 2013 23:38:12 +0000 (16:38 -0700)]
Merge pull request #188 from dmick/wip-test-config-key

test_mon_config_key.py: fix 'del' to clean up correctly internally

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agotest_mon_config_key.py: fix 'del' to clean up correctly internally 188/head
Dan Mick [Tue, 2 Apr 2013 22:03:17 +0000 (15:03 -0700)]
test_mon_config_key.py: fix 'del' to clean up correctly internally

12 years agoMerge remote-tracking branch 'origin/wip-4619'
Greg Farnum [Tue, 2 Apr 2013 21:38:44 +0000 (14:38 -0700)]
Merge remote-tracking branch 'origin/wip-4619'

Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agomds: initialize tableservers/clients on mds creation
Sage Weil [Tue, 2 Apr 2013 20:04:48 +0000 (13:04 -0700)]
mds: initialize tableservers/clients on mds creation

The handle_mds_recovery(who) path initializes the anchorclients by having
the server send a 'ready' message on recovery when the server is active
and a peer becomes active.  Similarly, recovery_done() does the same when
the server becomes active.  However, this misses the creation path.  Handle
that explicitly in boot_create.

Fixes: #4619
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoRevert "mds: trigger tableserver active/recovery hook even for self"
Sage Weil [Tue, 2 Apr 2013 20:05:46 +0000 (13:05 -0700)]
Revert "mds: trigger tableserver active/recovery hook even for self"

This reverts commit 968c6c0c9408b33904041e5ddbd9ea738e831713.

This will trigger the 'ready' message twice when we restart, because we
will trigger in both recovery_done() and handle_mds_recovery().

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoREADME: fix dependency lists
Dan Mick [Tue, 2 Apr 2013 20:01:04 +0000 (13:01 -0700)]
README: fix dependency lists

1) automake appeared twice
2) make apt-get command match the list

12 years agoAdds "mds fail 0" command to operations commmand reference. 187/head
Matthew Roy [Tue, 2 Apr 2013 17:57:53 +0000 (13:57 -0400)]
Adds "mds fail 0" command to operations commmand reference.
Partially fixes #2206, though better documentation will eventually be needed.

12 years agoMerge pull request #184 from dachary/wip-4617
Sage Weil [Tue, 2 Apr 2013 16:35:05 +0000 (09:35 -0700)]
Merge pull request #184 from dachary/wip-4617

explain what an inline xattr is and how it relates to omap

12 years agomds: trigger tableserver active/recovery hook even for self
Sage Weil [Tue, 2 Apr 2013 15:58:35 +0000 (08:58 -0700)]
mds: trigger tableserver active/recovery hook even for self

The tableserver now sends a READY message to clients when they go active;
we need to do this even for our own local tableclients, or else they do
not initialize and hang on first use after bringing up a fresh cluster.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoceph-disk: fix some (local) variable names 186/head
Danny Al-Gaaf [Tue, 2 Apr 2013 15:54:53 +0000 (17:54 +0200)]
ceph-disk: fix some (local) variable names

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph-disk: fix naming of local variable in is_mounted()
Danny Al-Gaaf [Tue, 2 Apr 2013 15:36:37 +0000 (17:36 +0200)]
ceph-disk: fix naming of local variable in is_mounted()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph-disk: merge twice defined function is_mounted(dev)
Danny Al-Gaaf [Tue, 2 Apr 2013 15:33:08 +0000 (17:33 +0200)]
ceph-disk: merge twice defined function is_mounted(dev)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph-disk: define exception type
Danny Al-Gaaf [Tue, 2 Apr 2013 15:26:12 +0000 (17:26 +0200)]
ceph-disk: define exception type

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph-disk: fix Redefining name 'uuid' from outer scope
Danny Al-Gaaf [Tue, 2 Apr 2013 15:17:38 +0000 (17:17 +0200)]
ceph-disk: fix Redefining name 'uuid' from outer scope

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph-disk: add missing space after comma
Danny Al-Gaaf [Tue, 2 Apr 2013 15:14:23 +0000 (17:14 +0200)]
ceph-disk: add missing space after comma

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_user.cc: reduce scope of variable 185/head
Danny Al-Gaaf [Tue, 2 Apr 2013 15:01:07 +0000 (17:01 +0200)]
rgw/rgw_user.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_user.h: remove twice initialized purge_keys
Danny Al-Gaaf [Tue, 2 Apr 2013 14:50:41 +0000 (16:50 +0200)]
rgw/rgw_user.h: remove twice initialized purge_keys

Remove twice initialized purge_keys from RGWUserAdminOpState();

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agotest_cors.cc: prefer prefix ++operator for iterator
Danny Al-Gaaf [Tue, 2 Apr 2013 14:36:17 +0000 (16:36 +0200)]
test_cors.cc:  prefer prefix ++operator for iterator

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agotest_cors.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Tue, 2 Apr 2013 14:30:57 +0000 (16:30 +0200)]
test_cors.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agotest_cors.cc: use %u to format unsigned in sprintf()
Danny Al-Gaaf [Tue, 2 Apr 2013 14:25:22 +0000 (16:25 +0200)]
test_cors.cc: use %u to format unsigned in sprintf()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_user.cc: use 'true' directly instead of variable
Danny Al-Gaaf [Tue, 2 Apr 2013 14:17:52 +0000 (16:17 +0200)]
rgw/rgw_user.cc: use 'true' directly instead of variable

Instead of passing 'true' via bool defer_user_update variable
in RGWUser::execute_modify() to keys.add() use it directly.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_user.cc: reduce scope of same_email in execute_modify()
Danny Al-Gaaf [Tue, 2 Apr 2013 14:15:27 +0000 (16:15 +0200)]
rgw/rgw_user.cc: reduce scope of same_email in execute_modify()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_user.cc: remove some unused std::string variables
Danny Al-Gaaf [Tue, 2 Apr 2013 14:10:22 +0000 (16:10 +0200)]
rgw/rgw_user.cc: remove some unused std::string variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_cors_swift.h: prefer prefix ++operator for iterator
Danny Al-Gaaf [Tue, 2 Apr 2013 14:05:58 +0000 (16:05 +0200)]
rgw/rgw_cors_swift.h: prefer prefix ++operator for iterator

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_op.cc: prefer prefix ++operator for iterator
Danny Al-Gaaf [Tue, 2 Apr 2013 14:03:50 +0000 (16:03 +0200)]
rgw/rgw_op.cc: prefer prefix ++operator for iterator

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_op.cc: remove unsused variable
Danny Al-Gaaf [Tue, 2 Apr 2013 14:03:10 +0000 (16:03 +0200)]
rgw/rgw_op.cc: remove unsused variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_op.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Tue, 2 Apr 2013 14:02:30 +0000 (16:02 +0200)]
rgw/rgw_op.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_cors_s3.cc: prefer prefix ++operator for iterator
Danny Al-Gaaf [Tue, 2 Apr 2013 14:00:12 +0000 (16:00 +0200)]
rgw/rgw_cors_s3.cc: prefer prefix ++operator for iterator

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_cors_s3.cc: remove unused variable
Danny Al-Gaaf [Tue, 2 Apr 2013 13:57:37 +0000 (15:57 +0200)]
rgw/rgw_cors_s3.cc: remove unused variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw/rgw_cors_s3.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Tue, 2 Apr 2013 13:55:51 +0000 (15:55 +0200)]
rgw/rgw_cors_s3.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoexplain what an inline xattr is and how it relates to omap 184/head
Loic Dachary [Tue, 2 Apr 2013 13:54:57 +0000 (15:54 +0200)]
explain what an inline xattr is and how it relates to omap

The logic of the configuration flags related to xattr is clarified to define what an inline xattr is and when storing in the object map is preferred.

http://tracker.ceph.com/issues/4617 refs #4617

Signed-off-by: Loic Dachary <loic@dachary.org>