]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
13 years agorgw: initalize s->enable_usage_log
Yehuda Sadeh [Mon, 18 Jun 2012 21:27:51 +0000 (14:27 -0700)]
rgw: initalize s->enable_usage_log

Missing initialization, we ended up not logging every operation.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoosd: use derr (instead of cerr) for convertfs
Sage Weil [Tue, 19 Jun 2012 17:12:40 +0000 (10:12 -0700)]
osd: use derr (instead of cerr) for convertfs

This will appear in the log *and* stderr (if we're running in the
foreground).

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoosd: close stderr on daemonize
Sage Weil [Tue, 19 Jun 2012 17:11:01 +0000 (10:11 -0700)]
osd: close stderr on daemonize

This spams stderr in an ugly way.  Users should look at the logs.

In particular, filestore upgrades spam the console, which is unpleasant.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoPG: improve find_best_info
Samuel Just [Tue, 19 Jun 2012 16:11:57 +0000 (09:11 -0700)]
PG: improve find_best_info

07f853db3982e68b952a337cf91cbf7ec0709de9 is actually too conservative,
it suffices to find any info with a last_update of at least the least
last_update from the last period to go active.  An info from a previous
interval is acceptable if the last interval never reported a commited
operation and thus still has the same last_update.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
13 years agoPG: reg_last_pg_scrub on pg resurrection
Samuel Just [Mon, 18 Jun 2012 16:26:12 +0000 (09:26 -0700)]
PG: reg_last_pg_scrub on pg resurrection

This may solve the unreg_last_pg_scrub assert.

see #2453.

Signed-off-by: Samuel Just <sam.just@inktank.com>
13 years agoceph_osd: move auto-upgrade to after fork
Samuel Just [Mon, 18 Jun 2012 21:02:28 +0000 (14:02 -0700)]
ceph_osd: move auto-upgrade to after fork

Signed-off-by: Samuel Just <sam.just@inktank.com>
13 years agofilestore: make disk format upgrade warning less scary, more informative
Sage Weil [Mon, 18 Jun 2012 21:07:20 +0000 (14:07 -0700)]
filestore: make disk format upgrade warning less scary, more informative

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Sam Just <sam.just@inktank.com>
13 years agomon: include quorum in ceph status
Sage Weil [Mon, 18 Jun 2012 21:02:29 +0000 (14:02 -0700)]
mon: include quorum in ceph status

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agomon: gracefully handle slow 'ceph -w' clients
Sage Weil [Mon, 18 Jun 2012 21:00:06 +0000 (14:00 -0700)]
mon: gracefully handle slow 'ceph -w' clients

If we are sending log updates to a client (ceph -w), and they are far
enough behind to drop behind first_committed, include a friendly message
in their stream but continue.

Drop useless return value from _create_sub_incremental().  Assert that we
can read the state file.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoPG: best_info must have a last_epoch_started as high as any other info
Samuel Just [Sat, 16 Jun 2012 00:09:42 +0000 (17:09 -0700)]
PG: best_info must have a last_epoch_started as high as any other info

We disregard incomplete infos during find_best_info, but we can't an
info with a last_epoch_started less that of the incomplete info.

This should avoid cases like #2462.  In that case, it appears that
a peer with empty info/log was chosen as authoritative even though
there was a non-empty incomplete peer.

Signed-off-by: Samuel Just <sam.just@inktank.com>
13 years agodebian: fix python-ceph depends
Laszlo Boszormenyi (GCS) [Sat, 16 Jun 2012 20:49:41 +0000 (13:49 -0700)]
debian: fix python-ceph depends

Signed-off-by: Laszlo Boszormenyi (GCS) <gcs@debian.hu>
13 years agodebian: update homepage url
Laszlo Boszormenyi (GCS) [Sat, 16 Jun 2012 20:39:20 +0000 (13:39 -0700)]
debian: update homepage url

Signed-off-by: Laszlo Boszormenyi (GCS) <gcs@debian.hu>
13 years agofilestore: fix 'omap' collection skipping
Sage Weil [Sun, 17 Jun 2012 20:20:59 +0000 (13:20 -0700)]
filestore: fix 'omap' collection skipping

The if/else if/... structure was skipping this test if the file system
didn't support d_type.

Fixes: #2598
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agorun-cli-test: use new pip incantation
Sage Weil [Fri, 15 Jun 2012 21:48:22 +0000 (14:48 -0700)]
run-cli-test: use new pip incantation

http://www.pip-installer.org/en/latest/news.html#id1

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agocls_rbd: do not pass snapid_t to vargs
Sage Weil [Sun, 17 Jun 2012 16:07:41 +0000 (09:07 -0700)]
cls_rbd: do not pass snapid_t to vargs

On squeeze,

warning: cls_rbd.cc:534: cannot pass objects of non-POD type ‘struct snapid_t’ through ‘...’; call will abort at runtime

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agomsg: fix buffer overflow in ipv6 addr parsing
Sage Weil [Sun, 17 Jun 2012 03:09:04 +0000 (20:09 -0700)]
msg: fix buffer overflow in ipv6 addr parsing

Noticed because of failing i386 unit tests for long addrs; x86_64 passed
fine.  Sigh.  FTR, the failing address was

2001:0db8:85a3:0000:0000:8a2e:0370:7334

Sadly the full length addrs don't turn it up on x86_64, still, nor does
valgrind notice.  But, this fixes it on i386.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agocls_rbd: drop useless snapshot metadata helpers
Sage Weil [Sat, 16 Jun 2012 14:33:19 +0000 (07:33 -0700)]
cls_rbd: drop useless snapshot metadata helpers

Now that cls_rbd_snap is encodable, we don't need these helpers; get_key()
will suffice.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agocls_rbd: use encode macros for on-disk snap metadata
Sage Weil [Thu, 14 Jun 2012 23:12:49 +0000 (16:12 -0700)]
cls_rbd: use encode macros for on-disk snap metadata

This will let us version this encoding later when we add new information
and features, like a per-snap parent.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agofilejournal: make less noise about open failures
Sage Weil [Fri, 15 Jun 2012 21:48:22 +0000 (14:48 -0700)]
filejournal: make less noise about open failures

The callers report errors and pass up errors, so do not spam stderr with
this.  Fixes the confusion that sparked #2595.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agorgw: obj copy respects -metadata-directive
Yehuda Sadeh [Tue, 12 Jun 2012 21:42:03 +0000 (14:42 -0700)]
rgw: obj copy respects -metadata-directive

Fixes #2542. The old behavior just merged src object attrs
and provided attributes. The new (and correct) behavior looks
at the x-[amz|rgw|...]-metadata-directive and either copies
the source attrs, or replaces them with the provided attrs.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoosd: optional verify that sparse_read holes are zero-filled
Sage Weil [Thu, 14 Jun 2012 19:51:07 +0000 (12:51 -0700)]
osd: optional verify that sparse_read holes are zero-filled

This should help us track down/verify #2535.  It seems to happen on several
different systems, but we haven't figured out which ones yet.

This detects the bug, but does not attempt to correct it.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agobuffer: add list and ptr is_zero() method
Sage Weil [Thu, 14 Jun 2012 19:34:46 +0000 (12:34 -0700)]
buffer: add list and ptr is_zero() method

Simple helper to check if a buffer is all zeros.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agofilestore: disable 'filestore fiemap' by default
Sage Weil [Fri, 15 Jun 2012 17:00:54 +0000 (10:00 -0700)]
filestore: disable 'filestore fiemap' by default

We've seen this failing on both btrfs (Guido) and XFS (Oliver).  This works
around #2535.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoMerge branch 'wip-radosgw-upstart'
Sage Weil [Thu, 14 Jun 2012 22:17:03 +0000 (15:17 -0700)]
Merge branch 'wip-radosgw-upstart'

13 years agoradosgw: stop startup timer on failed start
Sage Weil [Thu, 14 Jun 2012 22:09:16 +0000 (15:09 -0700)]
radosgw: stop startup timer on failed start

This fixes crashes like

    -1> 2012-06-14 15:04:31.733009 7f544e18c780 -1 Couldn't init storage provider (RADOS)
     0> 2012-06-14 15:04:31.734110 7f544e18c780 -1 common/Timer.cc: In function 'SafeTimer::~SafeTimer()' thread 7f544e18c780 time 2012-06-14 15:04:31.733020
common/Timer.cc: 57: FAILED assert(thread == __null)

 ceph version 0.47.2-481-g6f30f1f (commit:6f30f1fcdecd6c9390d4678c754dadd305165e3e)
 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x80) [0x5399a0]
 2: (SafeTimer::~SafeTimer()+0x39) [0x533e77]
 3: (main()+0x6f5) [0x51bc9d]
 4: (__libc_start_main()+0xfd) [0x7f544b38eead]
 5: /home/sage/src/ceph/src/.libs/lt-radosgw() [0x4f9e09]
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoupstart: make id charset include - _ and .
Sage Weil [Thu, 14 Jun 2012 22:04:07 +0000 (15:04 -0700)]
upstart: make id charset include - _ and .

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoradosgw: takes --id, but not -i
Sage Weil [Thu, 14 Jun 2012 22:03:46 +0000 (15:03 -0700)]
radosgw: takes --id, but not -i

The -i short versio doesn't work on 'client' code that tend to use it for
input files.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agodoc: added qemu-img documentation for rbd.
John Wilkins [Thu, 14 Jun 2012 21:18:53 +0000 (14:18 -0700)]
doc: added qemu-img documentation for rbd.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agorgw: limit number of buckets per user
Yehuda Sadeh [Tue, 12 Jun 2012 06:31:09 +0000 (23:31 -0700)]
rgw: limit number of buckets per user

Adding a configurable max_buckets per user. Bucket creation
verifies that max_buckets has not reached.

Backport: dho
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
13 years agodoc: Added steps for OpenStack install with DevStack
John Wilkins [Thu, 14 Jun 2012 16:46:32 +0000 (09:46 -0700)]
doc: Added steps for OpenStack install with DevStack

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agodoc: fixed bash syntax error.
John Wilkins [Thu, 14 Jun 2012 16:35:17 +0000 (09:35 -0700)]
doc: fixed bash syntax error.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agoqa: disable xfstest 68 for now
Sage Weil [Thu, 14 Jun 2012 16:07:26 +0000 (09:07 -0700)]
qa: disable xfstest 68 for now

Stop the qa noise we fix #2410.  Looks like a freeze/thaw thing.

Maybe Jan's new freeze/thaw code will address this?  That's probably
wishful thinking.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoqa: disable xfstest 219 for now
Sage Weil [Thu, 14 Jun 2012 16:01:42 +0000 (09:01 -0700)]
qa: disable xfstest 219 for now

The cause of 219 failing is non-obvious.  Disable it for now.  :(

Avoids #2522.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoMakefile: fix leveldb dep for system library case
Sage Weil [Wed, 13 Jun 2012 04:17:11 +0000 (21:17 -0700)]
Makefile: fix leveldb dep for system library case

We conditionally add this below only if using the bundled version.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoMakefile: fix leveldb includes for system library case
Sage Weil [Wed, 13 Jun 2012 04:16:45 +0000 (21:16 -0700)]
Makefile: fix leveldb includes for system library case

Use the installed headers, not ours.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agodoc: Multi-monitor support means ceph::single_mon was renamed.
Tommi Virtanen [Wed, 13 Jun 2012 23:23:14 +0000 (16:23 -0700)]
doc: Multi-monitor support means ceph::single_mon was renamed.

This changed in ceph-cookbooks.git commit
8e56551b11fe28cc4f29f4fcdcf6c38516bdc833.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
13 years agorbd: fix usage test
Sage Weil [Wed, 13 Jun 2012 18:24:19 +0000 (11:24 -0700)]
rbd: fix usage test

Fixes: #2347
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoMakefile: link gtest statically
Sage Weil [Wed, 13 Jun 2012 18:05:43 +0000 (11:05 -0700)]
Makefile: link gtest statically

The problem:

 - the unittests link against gtest, and gtest is not installed.  that's
   normally fine, but...
 - rbd and rados api unit tests link against gtest, and are installed
   by 'make install'.  they are needed for teuthology runs, etc.
 - if we build gtest as an .la library, we can only control whether *all*
   or *no* .la libraries are linked statically.
 - we want librados to be linked dynamically.

The solution:

 - build gtest as .a instead of a libtool library
 - link it statically, always.

Unit test binaries are bigger now.  Oh well...

Fixes: #2331
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agodebian: install radosgw upstart configs, daemon dir
Sage Weil [Tue, 12 Jun 2012 20:40:43 +0000 (13:40 -0700)]
debian: install radosgw upstart configs, daemon dir

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoradosgw: upstart support
Sage Weil [Tue, 12 Jun 2012 20:39:57 +0000 (13:39 -0700)]
radosgw: upstart support

Like the other upstart configs, these assume the default value for
'rgw data'.  Same pattern as ceph-mon and ceph-mds.

Fixes: #2415
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoCrushTester.cc: eliminated old compiler warning of uninitialized pointer.
caleb miles [Wed, 13 Jun 2012 14:46:02 +0000 (07:46 -0700)]
CrushTester.cc: eliminated old compiler warning of uninitialized pointer.

Signed-off-by: caleb miles <caselim@gmail.com>
13 years agoinit-ceph: make 'status' report running version
Sage Weil [Tue, 12 Jun 2012 20:58:22 +0000 (13:58 -0700)]
init-ceph: make 'status' report running version

Try to report the running version with 'status'.

Backport: dho
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoPG: track purged pgs during active
Samuel Just [Tue, 12 Jun 2012 19:53:02 +0000 (12:53 -0700)]
PG: track purged pgs during active

See bug #2462.

The following sequence could cause a log assuming a non-empty pg
to an empty replica:

1. primary sends query to stray
2. stray sends notify to primary
3. primary sends purge to stray removing stray from peer_info
4. stray recieves query and sends a notify
5. stray recieves purge and purges its pg
6. primary recieves notify from stray and adds it to peer_info
note: peer_info[stray] is now wrong
7. acting set changes, primary is still primary, stray is replica
8. primary sends log to replica based on incorrect info from 6.

This patch adds a purged_peer set which is populated during purge_strays
and cleared during start_peering_interval.  The primary will ignore
notifies from the peer once the peer is in this set.

Signed-off-by: Samuel Just <sam.just@inktank.com>
13 years agoMerge branch 'wip-keyrings'
Sage Weil [Tue, 12 Jun 2012 19:48:37 +0000 (12:48 -0700)]
Merge branch 'wip-keyrings'

Reviewed-by: Greg Farnum <greg@inktank.com>
13 years agoceph_argparse: make entityname parsing error more helpful
Sage Weil [Fri, 8 Jun 2012 19:45:42 +0000 (12:45 -0700)]
ceph_argparse: make entityname parsing error more helpful

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agorgw: default keyring to $rgw_data/keyring
Sage Weil [Thu, 7 Jun 2012 02:42:51 +0000 (19:42 -0700)]
rgw: default keyring to $rgw_data/keyring

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agovstart.sh: set data dirs instead of keyring locations
Sage Weil [Thu, 7 Jun 2012 02:50:50 +0000 (19:50 -0700)]
vstart.sh: set data dirs instead of keyring locations

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agonew default keyring location for daemons
Sage Weil [Fri, 1 Jun 2012 18:02:09 +0000 (11:02 -0700)]
new default keyring location for daemons

$osd_data/keyring
$mds_data/keyring

Fixes: #2498
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agomds: add mds_data config
Sage Weil [Fri, 1 Jun 2012 17:58:23 +0000 (10:58 -0700)]
mds: add mds_data config

This is where the keyring will live.  Eventually more may move in too.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoconfig: improve variable substitution
Sage Weil [Sun, 10 Jun 2012 02:40:52 +0000 (19:40 -0700)]
config: improve variable substitution

- allow ${foo_bar}
- prevent $foogarbage from substitution variable 'foo'
- use std::string throughout
- improve tests

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoconfig: expand any config variable in config
Sage Weil [Fri, 8 Jun 2012 19:45:30 +0000 (12:45 -0700)]
config: expand any config variable in config

This is currently broken wrt 'foo' vs 'foo_bar', but otherwise works.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoconfig: make meta expansion in set_val optional
Sage Weil [Fri, 1 Jun 2012 19:44:42 +0000 (12:44 -0700)]
config: make meta expansion in set_val optional

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoosdcaps: drop dead peer_type code
Sage Weil [Sat, 26 May 2012 05:30:12 +0000 (22:30 -0700)]
osdcaps: drop dead peer_type code

Not sure what this wasn intended for.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoosd: simplify session peer type check
Sage Weil [Thu, 7 Jun 2012 02:30:19 +0000 (19:30 -0700)]
osd: simplify session peer type check

Check the authenticated peer name directly; don't store a copy in the
OSDCaps struct.  Also set the entity_name member of the session!

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoentity_name: is_*() methods
Sage Weil [Sat, 26 May 2012 05:36:49 +0000 (22:36 -0700)]
entity_name: is_*() methods

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agocrush: fix retry histogram array overflow due to indexing error
caleb miles [Tue, 12 Jun 2012 18:15:57 +0000 (11:15 -0700)]
crush: fix retry histogram array overflow due to indexing error

Signed-off-by: caleb miles <caleb.miles@inktank.com>
13 years agocls_rgw: use updated internal omap api
Sage Weil [Tue, 12 Jun 2012 18:28:04 +0000 (11:28 -0700)]
cls_rgw: use updated internal omap api

These were changed by 23ebc093a64a9c9812124ba6b87e301f95a53a5c.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agocls_rgw: fix CLS_LOG macro usage
Sage Weil [Tue, 12 Jun 2012 18:27:36 +0000 (11:27 -0700)]
cls_rgw: fix CLS_LOG macro usage

Now takes a level.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoremove ceph-kdump-copy
Sage Weil [Mon, 11 Jun 2012 23:25:42 +0000 (16:25 -0700)]
remove ceph-kdump-copy

Moved to its own repo.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agodebian: limit build archs
Sage Weil [Mon, 11 Jun 2012 22:53:36 +0000 (15:53 -0700)]
debian: limit build archs

We depend on leveldb, which only builds on

 amd64 armel armhf i386 ia64 mipsel

Reported-by: Laszlo Boszormenyi (GCS) <gcs@debian.hu>
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoMerge remote-tracking branch 'gh/wip-2516-2'
Sage Weil [Tue, 12 Jun 2012 01:36:59 +0000 (18:36 -0700)]
Merge remote-tracking branch 'gh/wip-2516-2'

Reviewed-by: Sage Weil <sage@inktank.com>
13 years agorgw: usage statistics also count num of ops/successful_ops
Yehuda Sadeh [Mon, 11 Jun 2012 23:39:15 +0000 (16:39 -0700)]
rgw: usage statistics also count num of ops/successful_ops

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agodebian: move ./configure to correct rules section
Laszlo Boszormenyi (GCS) [Mon, 11 Jun 2012 22:48:50 +0000 (15:48 -0700)]
debian: move ./configure to correct rules section

Signed-off-by: Laszlo Boszormenyi (GCS) <gcs@debian.hu>
13 years agodebian: remove dup python build-dep
Sage Weil [Mon, 11 Jun 2012 22:48:38 +0000 (15:48 -0700)]
debian: remove dup python build-dep

Reported-by: Laszlo Boszormenyi (GCS) <gcs@debian.hu>
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoupstart: Read crush location and weight from ceph.conf.
Tommi Virtanen [Mon, 11 Jun 2012 22:27:02 +0000 (15:27 -0700)]
upstart: Read crush location and weight from ceph.conf.

This introduces two new config variables, osd_crush_location
and osd_crush_weight. Not currently included in config_opts.h,
as these are not used in the C++ code.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
13 years agomon: allow keys to be cleared in ceph osd crush set ... loc key/values
Sage Weil [Mon, 11 Jun 2012 22:21:11 +0000 (15:21 -0700)]
mon: allow keys to be cleared in ceph osd crush set ... loc key/values

If we encounter a 'key=' with no value, clear any previous value for that
key, so that

 'a=foo b=bar a='

is equivalent to

 'b=bar'

Fixes: #2540
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agorgw: fix cli test
Yehuda Sadeh [Mon, 11 Jun 2012 22:13:18 +0000 (15:13 -0700)]
rgw: fix cli test

Get it up to date with latest cli changes.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw: usage log cleanups
Yehuda Sadeh [Mon, 11 Jun 2012 22:09:00 +0000 (15:09 -0700)]
rgw: usage log cleanups

Also, recalc_round_timestamp should be done under lock.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoMerge pull request #13 from fghaas/rgw-manpage
Yehuda Sadeh [Mon, 11 Jun 2012 21:59:38 +0000 (14:59 -0700)]
Merge pull request #13 from fghaas/rgw-manpage

doc: update examples in radosgw-admin man page

13 years agodoc: update examples in radosgw-admin man page 13/head
Florian Haas [Mon, 11 Jun 2012 21:49:11 +0000 (23:49 +0200)]
doc: update examples in radosgw-admin man page

* "user gen" is gone and is now "user create"
* --uid option is mandatory for "user create"

Mailing list thread: http://www.spinics.net/lists/ceph-devel/msg06744.html

Signed-off-by: Florian Haas <florian@hastexo.com>
13 years agorgw: rgw_rados related fixes for usage logging
Yehuda Sadeh [Mon, 11 Jun 2012 21:25:01 +0000 (14:25 -0700)]
rgw: rgw_rados related fixes for usage logging

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw/rgw_cls_api.h cleanup
Yehuda Sadeh [Mon, 11 Jun 2012 21:00:20 +0000 (14:00 -0700)]
rgw/rgw_cls_api.h cleanup

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw_admin: usage admin commands
Yehuda Sadeh [Mon, 11 Jun 2012 18:03:57 +0000 (11:03 -0700)]
rgw_admin: usage admin commands

 - radosgw-admin usage show
 - radosgw-admin usage trim

Both commands can get --start-date, --end-date, --uid

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw: usage logger
Yehuda Sadeh [Mon, 11 Jun 2012 18:01:56 +0000 (11:01 -0700)]
rgw: usage logger

Accumulate usage info and flush it periodically.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw: access methods for new usage ops
Yehuda Sadeh [Mon, 11 Jun 2012 17:23:49 +0000 (10:23 -0700)]
rgw: access methods for new usage ops

Wrappers for new rados class methods, and new RGWRados
methods to handle usage functionality.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw: new config options
Yehuda Sadeh [Mon, 11 Jun 2012 17:14:43 +0000 (10:14 -0700)]
rgw: new config options

New config options for usage logging:
 - rgw_enable_usage_log: enable usage logging
 - rgw_usage_log_flush_threshold - limit on number of pending updates
                                   before synchronously flushing update
 - rgw_usage_log_tick_interval - asynchronous flush interval
 - rgw_usage_max_shards - split info across that many objects
 - rgw_usage_max_user_shards - split single user info across that many
                               objects

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw: new class methods for handling usage information
Yehuda Sadeh [Mon, 11 Jun 2012 17:11:17 +0000 (10:11 -0700)]
rgw: new class methods for handling usage information

The new methods are:
 - user_usage_log_add: add new usage information
 - user_usage_log_read: get usage information
 - user_usage_log_trim: remove usage information

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw: don't fail initialization if socket path returns ENXIO
Yehuda Sadeh [Wed, 6 Jun 2012 21:42:12 +0000 (14:42 -0700)]
rgw: don't fail initialization if socket path returns ENXIO

ENXIO is expected when trying to read the unix domain socket

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoMerge remote-tracking branch 'gh/wip-crush-tunables'
Sage Weil [Mon, 11 Jun 2012 17:36:01 +0000 (10:36 -0700)]
Merge remote-tracking branch 'gh/wip-crush-tunables'

13 years agocls_rbd: add get_all_features method
Josh Durgin [Mon, 11 Jun 2012 06:21:58 +0000 (23:21 -0700)]
cls_rbd: add get_all_features method

This is useful for reporting which features an osd supports, and for
testing rados_exec. Update the rados api tests to use this method
instead of test_exec, which was removed.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
13 years agomon: fix pg state logging
Yan, Zheng [Mon, 11 Jun 2012 02:33:00 +0000 (10:33 +0800)]
mon: fix pg state logging

PGMap->num_pg_by_state is a PG state to number of PG in the state
mapping. PGMonitor::update_logger wrongly interprets the mapping.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoworkunits/rbd: add workunit for running cls_rbd tests
Josh Durgin [Mon, 11 Jun 2012 05:01:19 +0000 (22:01 -0700)]
workunits/rbd: add workunit for running cls_rbd tests

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agoworkunits/rbd: disable remove_with_watcher test
Josh Durgin [Mon, 11 Jun 2012 04:59:07 +0000 (21:59 -0700)]
workunits/rbd: disable remove_with_watcher test

This will fail until #2533 is fixed.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agoMerge remote-tracking branch 'gh/wip-rbd-format'
Sage Weil [Sun, 10 Jun 2012 21:12:16 +0000 (14:12 -0700)]
Merge remote-tracking branch 'gh/wip-rbd-format'

13 years agolibrbd: remove unnecessary notify from add_snap()
Josh Durgin [Sun, 10 Jun 2012 00:27:31 +0000 (17:27 -0700)]
librbd: remove unnecessary notify from add_snap()

The only caller, snapshot_add(), already does a notify when add_snap()
succeeds.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agolibrbd: ignore RBD_MAX_BLOCK_NAME_SIZE when generating object ids
Josh Durgin [Sun, 10 Jun 2012 00:16:45 +0000 (17:16 -0700)]
librbd: ignore RBD_MAX_BLOCK_NAME_SIZE when generating object ids

The actual data object ids don't need to be artificially restricted in
length.  RBD_MAX_BLOCK_NAME_SIZE just limits the size of the object
prefix, since it's used in rbd_info_t.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agoworkunits/rbd: allow creating images in different formats
Josh Durgin [Fri, 8 Jun 2012 15:43:43 +0000 (08:43 -0700)]
workunits/rbd: allow creating images in different formats

This will allow adding more arguments for testing combinations
of features in the future.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agorados: add commands to interact with object maps
Josh Durgin [Fri, 8 Jun 2012 15:40:27 +0000 (08:40 -0700)]
rados: add commands to interact with object maps

The input values are stored as-is, and any values read are dumped in
hex. Rename listomap to listomapkeys to distinguish from
listomapvalues. Also add it to the man page.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agotest_librbd, test_rbd.py: optionally use the new format
Josh Durgin [Fri, 8 Jun 2012 15:31:14 +0000 (08:31 -0700)]
test_librbd, test_rbd.py: optionally use the new format

Read the desired features from an environment variable, RBD_FEATURES.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agorbd.py: add support for creating images in the new format
Josh Durgin [Fri, 8 Jun 2012 15:09:35 +0000 (08:09 -0700)]
rbd.py: add support for creating images in the new format

The new arguments are optional, so they are backwards compatible.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agorbd: update for the new format
Josh Durgin [Fri, 8 Jun 2012 15:07:40 +0000 (08:07 -0700)]
rbd: update for the new format

No features exist right now, so there are no extra options for them.
The old format is still used by default, and since the default will
change with layering, --new-format will be removed at that point and is
intentionally left undocumented.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agolibrbd: add create2 to create an image with the new format
Josh Durgin [Fri, 8 Jun 2012 14:43:32 +0000 (07:43 -0700)]
librbd: add create2 to create an image with the new format

This will fail if features are requested that the client or server
does not support. Currently there are no features defined, so
zero is the only valid value.

copy() preserves the format and features of the source image.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agodoc: Segregated set up git from clone.
John Wilkins [Sat, 9 Jun 2012 21:45:05 +0000 (14:45 -0700)]
doc: Segregated set up git from clone.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agodebian: ceph depends on python
Sage Weil [Sat, 9 Jun 2012 05:10:43 +0000 (22:10 -0700)]
debian: ceph depends on python

Due to the new ceph-disk-* scripts.  Newer dists are smart enough to figure
this out, but maverick is not.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoCrushTester: drop range marking
Sage Weil [Sat, 9 Jun 2012 04:37:02 +0000 (21:37 -0700)]
CrushTester: drop range marking

This is subsumed by mark-down-ratio 1 with mark-down-bucket-ratio N.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agocrushtool: drop useless clitest
Sage Weil [Sat, 9 Jun 2012 05:29:02 +0000 (22:29 -0700)]
crushtool: drop useless clitest

This is an ancient test for an old 'bug' in functionality we're removing.
Also, it is sensitive to tester output, which will be changing a lot in
the coming weeks/months.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoCrushTester: simplify, clean up mark down
Sage Weil [Sat, 9 Jun 2012 03:39:41 +0000 (20:39 -0700)]
CrushTester: simplify, clean up mark down

- put it in a separate function
- operate on temporary weight vector, not user-modified input
- guard the whole thing with an #ifdef
- permute candidates and use first N, to ensure we end up picking the right
  number of buckets/items.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoCrushTester: some whitespace
Sage Weil [Sat, 9 Jun 2012 03:25:47 +0000 (20:25 -0700)]
CrushTester: some whitespace

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoCrushTester: randomize mark_down behavior
caleb miles [Sat, 9 Jun 2012 03:20:05 +0000 (20:20 -0700)]
CrushTester: randomize mark_down behavior

When marking a batch of devices down, select which buckets to visit sort
of randomly.

Signed-off-by: caleb miles <caleb.miles@inktank.com>
13 years agoCrushTester: remove dead code
caleb miles [Sat, 9 Jun 2012 03:19:36 +0000 (20:19 -0700)]
CrushTester: remove dead code

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