]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agoMerge branch 'wip-mon-mkfs'
Sage Weil [Thu, 23 Aug 2012 19:59:28 +0000 (12:59 -0700)]
Merge branch 'wip-mon-mkfs'

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agomon: name cluster uuid file 'cluster_uuid'
Sage Weil [Thu, 23 Aug 2012 19:46:40 +0000 (12:46 -0700)]
mon: name cluster uuid file 'cluster_uuid'

Begin the transition.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoDon't package crush header files.
Gary Lowell [Thu, 23 Aug 2012 18:48:50 +0000 (11:48 -0700)]
Don't package crush header files.

12 years agomon: create cluster_fsid on startup if not present
Sage Weil [Mon, 20 Aug 2012 17:56:37 +0000 (10:56 -0700)]
mon: create cluster_fsid on startup if not present

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: create, verify cluster_fsid file in mon_data dir on mkfs
Sage Weil [Mon, 20 Aug 2012 17:56:14 +0000 (10:56 -0700)]
mon: create, verify cluster_fsid file in mon_data dir on mkfs

Having this present is convenient for external tools.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Thu, 23 Aug 2012 03:23:02 +0000 (20:23 -0700)]
Merge remote-tracking branch 'gh/next'

12 years agocephfs: add 'map' command to dump file mapping onto objects, osds
Sage Weil [Tue, 21 Aug 2012 16:18:53 +0000 (09:18 -0700)]
cephfs: add 'map' command to dump file mapping onto objects, osds

Closes: #3010
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoperf-watch: initial version
Sage Weil [Thu, 23 Aug 2012 00:22:05 +0000 (17:22 -0700)]
perf-watch: initial version

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoobjecter: use ordered map<> for tracking tids to preserve order on resend
Sage Weil [Wed, 22 Aug 2012 04:12:33 +0000 (21:12 -0700)]
objecter: use ordered map<> for tracking tids to preserve order on resend

We are using a hash_map<> to map tids to Op*'s.  In handle_osd_map(),
we will recalc_op_target() on each Op in a random (hash) order.  These
will get put in a temp map<tid,Op*> to ensure they are resent in the
correct order, but their order on the session->ops list will be random.

Then later, if we reset an OSD connection, we will resend everything for
that session in ops order, which is be incorrect.

Fix this by explicitly reordering the requests to resend in
kick_requests(), much like we do in handle_osd_map().  This lets us
continue to use a hash_map<>, which is faster for reasonable numbers of
requests.  A simpler but slower fix would be to just use map<> instead.

This is one of many bugs contributing to #2947.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agodoc: Either use a backslash and a newline, or neither.
Tommi Virtanen [Wed, 22 Aug 2012 17:50:22 +0000 (10:50 -0700)]
doc: Either use a backslash and a newline, or neither.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
12 years agoMerge remote-tracking branch 'gh/wip-crypto'
Sage Weil [Tue, 21 Aug 2012 22:47:57 +0000 (15:47 -0700)]
Merge remote-tracking branch 'gh/wip-crypto'

12 years agoconfig: remove dead osd options
Sage Weil [Tue, 21 Aug 2012 20:24:55 +0000 (13:24 -0700)]
config: remove dead osd options

The read balancing/shedding stuff is old.  Same goes for class timeouts and
the raid options.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoFix compilation warnings on squeeze; can't printf() snapid_t directly
Dan Mick [Tue, 21 Aug 2012 18:32:45 +0000 (11:32 -0700)]
Fix compilation warnings on squeeze; can't printf() snapid_t directly

12 years agorgw: use sizeof() for snprintf
Sage Weil [Tue, 21 Aug 2012 18:01:11 +0000 (11:01 -0700)]
rgw: use sizeof() for snprintf

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'next'
Sage Weil [Tue, 21 Aug 2012 17:51:54 +0000 (10:51 -0700)]
Merge branch 'next'

12 years agoosd: fix requeue order for waiting_for_ondisk
Sage Weil [Tue, 21 Aug 2012 17:35:37 +0000 (10:35 -0700)]
osd: fix requeue order for waiting_for_ondisk

We are calling requeue_ops() on each individual op, which means we need
to requeue in reverse order (newest first, oldest last).

Fixes: #2947
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agorgw: dump content_range using 64 bit formatters
Yehuda Sadeh [Sat, 18 Aug 2012 00:34:23 +0000 (17:34 -0700)]
rgw: dump content_range using 64 bit formatters

Fixes: #2961
Also make sure that size is 64 bit.

backport: argonaut
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoRevert "rgw: dump content_range using 64 bit formatters"
Sage Weil [Tue, 21 Aug 2012 17:48:12 +0000 (10:48 -0700)]
Revert "rgw: dump content_range using 64 bit formatters"

This reverts commit cc435e99802f77b3d4b21abe022665ac9df259cf.

Wrong fix; fcgi doesn't do %lld

12 years agomon: fix monitor cluster contraction race
Sage Weil [Tue, 21 Aug 2012 00:04:58 +0000 (17:04 -0700)]
mon: fix monitor cluster contraction race

If we contract to 1 monitor, we win_standalone_election() without bumping
the election epoch.  Racing paxos updates can then reach us without being
ignored and trigger an assert:

mon/Paxos.cc: In function 'void Paxos::handle_accept(MMonPaxos*)' thread 7f85eae05700 time 2012-08-20 16:01:00.843937
mon/Paxos.cc: 468: FAILED assert(state == STATE_UPDATING)

Fixes: #3003
Reported-by: John Wilkins <john.wilkins@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoAdd manpage sections for flatten, snap {un}protect
Dan Mick [Tue, 21 Aug 2012 01:00:46 +0000 (18:00 -0700)]
Add manpage sections for flatten, snap {un}protect

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: John Wilkins <john.wilkins@inktank.com>
12 years agomkcephfs, init-ceph: Warn if hostname "localhost" is seen in ceph.conf.
Tommi Virtanen [Tue, 21 Aug 2012 00:06:09 +0000 (17:06 -0700)]
mkcephfs, init-ceph: Warn if hostname "localhost" is seen in ceph.conf.

Given a ceph.conf that looks like

  [osd.42]
  host = localhost

mkcephfs used to exit with an obscure error message:

  cat: /tmp/mkcephfs.MCBIHvn4Ru/key.*: No such file or directory

"localhost" was never intended to be a valid hostname to use there.
Warn if we see it, and skip the entry. You should use the proper short
hostname of the box.

As init-ceph and mkcephfs share this library, this change affects the
sysvinit scripts too. The behavior *shouldn't* change there (localhost
entries were ignored earlier, too), but you may see this extra
warning. Which is good.

Closes: #3001
Signed-off-by: Tommi Virtanen <tv@inktank.com>
12 years ago"Removed 274 from xfstests"
tamil [Mon, 20 Aug 2012 23:53:18 +0000 (16:53 -0700)]
"Removed 274 from xfstests"

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agotest_rbd.py: remove clone before image it depends on
Dan Mick [Mon, 20 Aug 2012 22:59:33 +0000 (15:59 -0700)]
test_rbd.py: remove clone before image it depends on

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agorgw: dump content_range using 64 bit formatters
Yehuda Sadeh [Sat, 18 Aug 2012 00:34:23 +0000 (17:34 -0700)]
rgw: dump content_range using 64 bit formatters

Fixes: #2961
Also make sure that size is 64 bit.

backport: argonaut
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'next'
Sage Weil [Mon, 20 Aug 2012 22:04:45 +0000 (15:04 -0700)]
Merge branch 'next'

12 years agoosd: fix requeue order of dup ops
Sage Weil [Mon, 20 Aug 2012 19:33:08 +0000 (12:33 -0700)]
osd: fix requeue order of dup ops

The waiting_for_ondisk (and ack) maps get dups of ops that are in progress.
If we have a peering change in which the role does not change, we will
requeue the in-progress ops but leave these in the waiting_for_ondisk
maps, which will then trigger an assert the next time we examine that map
and find it didn't match up with what we expected.

Fix this by requeuing these on any peering reset in on_change().  This
keeps the two queues in sync.

Fixes: #2956
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: fix warning
Sage Weil [Mon, 20 Aug 2012 20:30:50 +0000 (13:30 -0700)]
osd: fix warning

signed/unsigned comp

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoinit-ceph: use SSH in "service ceph status -a" to get version
Travis Rhoden [Mon, 20 Aug 2012 20:29:11 +0000 (13:29 -0700)]
init-ceph: use SSH in "service ceph status -a" to get version

When running "service ceph status -a", a version number was never
returned for remote hosts, only for the local.  This was because
the command to query the version number didn't use the do_cmd
function, which is responsible for running the command over SSH
when needed.

Modify the ceph init.d script to use do_cmd for querying the
Ceph version.

Signed-off-by: Travis Rhoden <trhoden@gmail.com>
12 years agodoc: mkcephfs man page, -c ceph.conf is not optional
Travis Rhoden [Fri, 17 Aug 2012 20:45:09 +0000 (16:45 -0400)]
doc: mkcephfs man page, -c ceph.conf is not optional

    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ANSI_X3.4-1968" character set.  ]
    [ Some characters may be displayed incorrectly. ]

The man page for mkcephfs and the output of mkcephfs --help
do not agree with each other.  the man page says -c ceph.conf
is optional, while mkcephfs --help says it is required.

Through empirical evidence, I believe it is required.  Update
the man page to make it so.

Signed-off-by: Travis Rhoden <trhoden@gmail.com>
12 years agoosd: make notify debug output less noisy
Sage Weil [Mon, 20 Aug 2012 20:23:21 +0000 (13:23 -0700)]
osd: make notify debug output less noisy

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomds: do not return null dentry lease on getattr
Sage Weil [Fri, 17 Aug 2012 16:02:10 +0000 (09:02 -0700)]
mds: do not return null dentry lease on getattr

Specifically, /foo may exist and client may try to mount /foo/bar.  That
GETATTR request is on #1/foo/bar, but we cannot return a null dentry on bar
because the client is not prepared to handle it and will crash in
fill_trace().

Fixes: #2959
Reported-by: Yan Zheng <zheng.z.yan@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: add MonitorStore::sync()
Sage Weil [Mon, 20 Aug 2012 17:56:29 +0000 (10:56 -0700)]
mon: add MonitorStore::sync()

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge remote-tracking branch 'gh/wip-rbd-layer'
Sage Weil [Mon, 20 Aug 2012 17:49:31 +0000 (10:49 -0700)]
Merge remote-tracking branch 'gh/wip-rbd-layer'

12 years agocrypto: cache CryptoHandler in CryptoKey
Sage Weil [Mon, 20 Aug 2012 17:19:18 +0000 (10:19 -0700)]
crypto: cache CryptoHandler in CryptoKey

This avoids a call into cct and a switch to get the handler every time.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc: fix key export syntax
Sage Weil [Mon, 20 Aug 2012 16:14:33 +0000 (09:14 -0700)]
doc: fix key export syntax

'ceph auth export mon.' no longer works as a side-effect of switching
around the mon. key handling.  'get' works, though; use that for now.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'wip-rbd-layering'
Dan Mick [Sat, 18 Aug 2012 02:29:13 +0000 (19:29 -0700)]
Merge branch 'wip-rbd-layering'

Conflicts:
src/librbd/internal.cc

12 years agoRoll up loose ends from a marathon merge/rebase session
Dan Mick [Sat, 18 Aug 2012 01:56:37 +0000 (18:56 -0700)]
Roll up loose ends from a marathon merge/rebase session

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoReview:
Dan Mick [Fri, 17 Aug 2012 17:40:05 +0000 (10:40 -0700)]
Review:

standardize on "*_id" form of variable names
log errors in parameter decode in rbd_children methods
whitespace, assert -> comment

12 years agolibrbd: snap_protect: verify layering is supported
Dan Mick [Fri, 17 Aug 2012 23:01:15 +0000 (16:01 -0700)]
librbd: snap_protect: verify layering is supported

12 years agolibrbd: review: don't call to the OSD to get current protection status
Dan Mick [Fri, 17 Aug 2012 22:55:00 +0000 (15:55 -0700)]
librbd: review: don't call to the OSD to get current protection status

12 years agotest_rbd.py: actually make unprotect_with_children work, and clean up
Dan Mick [Fri, 17 Aug 2012 22:44:37 +0000 (15:44 -0700)]
test_rbd.py: actually make unprotect_with_children work, and clean up

12 years agolibrbd: change EINVAL to EBUSY on "can't unprotect because children exist"
Dan Mick [Fri, 17 Aug 2012 20:03:21 +0000 (13:03 -0700)]
librbd: change EINVAL to EBUSY on "can't unprotect because children exist"
Add pool, number of children in this pool that caused failure to log

12 years agoreview: librbd, test_librbd: make "protect protected snap" fail
Dan Mick [Fri, 17 Aug 2012 20:00:48 +0000 (13:00 -0700)]
review: librbd, test_librbd: make "protect protected snap" fail

12 years agoUpdate protection methods to use parent_spec, parent_types.h, etc.
Dan Mick [Sat, 18 Aug 2012 00:58:31 +0000 (17:58 -0700)]
Update protection methods to use parent_spec, parent_types.h, etc.

12 years agotest_rbd: add test for denying removal of protected parent
Dan Mick [Tue, 14 Aug 2012 22:32:30 +0000 (15:32 -0700)]
test_rbd: add test for denying removal of protected parent

12 years agoget_features requires md_lock and snap_lock to be held
Dan Mick [Tue, 14 Aug 2012 22:30:48 +0000 (15:30 -0700)]
get_features requires md_lock and snap_lock to be held

12 years agolibrbd: clone return codes: ENOSYS for no layering, EINVAL for no prot
Dan Mick [Tue, 14 Aug 2012 18:42:54 +0000 (11:42 -0700)]
librbd: clone return codes: ENOSYS for no layering, EINVAL for no prot

12 years agolibrbd, test_librbd: snap_unprotect: refuse if children still exist
Dan Mick [Tue, 14 Aug 2012 18:51:55 +0000 (11:51 -0700)]
librbd, test_librbd: snap_unprotect: refuse if children still exist

12 years agoMerge branch 'wip-rbd-protect' into more-rebasing
Dan Mick [Sat, 18 Aug 2012 01:42:04 +0000 (18:42 -0700)]
Merge branch 'wip-rbd-protect' into more-rebasing

Conflicts:
src/librbd/ImageCtx.cc
src/librbd/SnapInfo.h
src/librbd/internal.cc
src/test/rbd/test_cls_rbd.cc

12 years agotest_cls_rbd: get_parent with no parent: should fail and return null-pspec
Dan Mick [Fri, 17 Aug 2012 20:07:04 +0000 (13:07 -0700)]
test_cls_rbd: get_parent with no parent: should fail and return null-pspec

12 years agolibrbd: cause add_child/remove_child to treat duplicate ops as errors
Dan Mick [Fri, 17 Aug 2012 19:50:00 +0000 (12:50 -0700)]
librbd: cause add_child/remove_child to treat duplicate ops as errors

12 years agolibrbd: review: add helper for 'scanning snapshots for this parent'
Dan Mick [Fri, 17 Aug 2012 22:44:10 +0000 (15:44 -0700)]
librbd: review: add helper for 'scanning snapshots for this parent'

12 years agolibrbd: review: change get_snapinfo to get_parent_spec
Dan Mick [Fri, 17 Aug 2012 19:59:26 +0000 (12:59 -0700)]
librbd: review: change get_snapinfo to get_parent_spec

12 years agolibrbd, cls_rbd: move parent_info and parent_spec to parent_types.h
Dan Mick [Sat, 18 Aug 2012 00:54:27 +0000 (17:54 -0700)]
librbd, cls_rbd: move parent_info and parent_spec to parent_types.h

parent_type.h is a new librbd-scope header containing info
related to parents and children (clones)

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agolibrbd: memcpy object_prefix must copy terminating NUL
Dan Mick [Wed, 15 Aug 2012 18:10:16 +0000 (11:10 -0700)]
librbd: memcpy object_prefix must copy terminating NUL

12 years agolibrbd: remove: keep ictx open until snapshots are scanned
Dan Mick [Tue, 14 Aug 2012 18:44:03 +0000 (11:44 -0700)]
librbd: remove: keep ictx open until snapshots are scanned

12 years agoReview: change to look for parent across base and all snapshots,
Dan Mick [Sat, 11 Aug 2012 04:46:45 +0000 (21:46 -0700)]
Review: change to look for parent across base and all snapshots,
and remove only if not present in any of them.

12 years agoEnhance add/remove child tests
Dan Mick [Sat, 11 Aug 2012 03:15:19 +0000 (20:15 -0700)]
Enhance add/remove child tests

12 years agoget_parent on non-layered image no longer fails; remove test case
Dan Mick [Sat, 11 Aug 2012 02:32:11 +0000 (19:32 -0700)]
get_parent on non-layered image no longer fails; remove test case

12 years agoAdd struct parent_spec
Dan Mick [Sat, 11 Aug 2012 02:31:38 +0000 (19:31 -0700)]
Add struct parent_spec
Holds poolid,imageid,snapid triple identifying parent
Allows for equality comparison of parents

12 years agopoolid should be signed
Dan Mick [Thu, 9 Aug 2012 22:43:33 +0000 (15:43 -0700)]
poolid should be signed

12 years agorun-rbd-tests: prefer local binaries over $PATH
Dan Mick [Thu, 9 Aug 2012 04:55:36 +0000 (21:55 -0700)]
run-rbd-tests: prefer local binaries over $PATH

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agolibrbd: snap_set and open_image need to refresh parent info
Dan Mick [Thu, 9 Aug 2012 02:31:37 +0000 (19:31 -0700)]
librbd: snap_set and open_image need to refresh parent info

12 years agolibrbd: Manipulate rbd_children in flatten, clone, remove, snap remove
Dan Mick [Tue, 7 Aug 2012 03:32:13 +0000 (20:32 -0700)]
librbd: Manipulate rbd_children in flatten, clone, remove, snap remove

12 years agolibrbd: make get_parent_info look at snapshot-specific info when needed
Dan Mick [Mon, 13 Aug 2012 22:03:07 +0000 (15:03 -0700)]
librbd: make get_parent_info look at snapshot-specific info when needed

12 years agoFix some trailing spaces on lines
Dan Mick [Tue, 7 Aug 2012 00:56:24 +0000 (17:56 -0700)]
Fix some trailing spaces on lines

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agorados: allow listomapvals to dump keys with nonprintable characters
Dan Mick [Mon, 6 Aug 2012 17:50:40 +0000 (10:50 -0700)]
rados: allow listomapvals to dump keys with nonprintable characters

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agocls_rbd, cls_rbd_client: add/remove/get children
Dan Mick [Fri, 3 Aug 2012 00:50:06 +0000 (17:50 -0700)]
cls_rbd, cls_rbd_client: add/remove/get children

Manipulate the new rbd_children object, which holds mappings between
parent snapshots and their children clone images

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoMerge remote-tracking branch 'gh/master' into wip-auth
Sage Weil [Fri, 17 Aug 2012 23:51:46 +0000 (16:51 -0700)]
Merge remote-tracking branch 'gh/master' into wip-auth

Reviewed-by: Josh Durgin <josh.durgin@inktank.com> (rbd bits)
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agorbd: warn on 0-length secret
Sage Weil [Fri, 17 Aug 2012 00:25:38 +0000 (17:25 -0700)]
rbd: warn on 0-length secret

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc: properly document 'rbd map' without touching sysfs
Sage Weil [Fri, 17 Aug 2012 00:10:46 +0000 (17:10 -0700)]
doc: properly document 'rbd map' without touching sysfs

Fixes: #2670
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorbd: update man page to avoid deprecated --secret, --user
Sage Weil [Fri, 17 Aug 2012 00:09:42 +0000 (17:09 -0700)]
rbd: update man page to avoid deprecated --secret, --user

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorbd: use generic options, keyring for 'rbd map'
Sage Weil [Thu, 16 Aug 2012 18:01:24 +0000 (11:01 -0700)]
rbd: use generic options, keyring for 'rbd map'

Switch usage over to the normal options, and use the normal EntityName
and keyring inputs for 'rbd map'.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agokeyring: make --key, --keyfile override loaded keyring
Sage Weil [Thu, 16 Aug 2012 02:06:04 +0000 (19:06 -0700)]
keyring: make --key, --keyfile override loaded keyring

This way --key, --keyfile still work when a keyring is in the default
search path.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoconfig: make --user a synonym for --id
Sage Weil [Sat, 9 Jun 2012 00:21:03 +0000 (17:21 -0700)]
config: make --user a synonym for --id

This grandfathers in rbd usage.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge remote-tracking branch 'gh/bug-2958'
Sage Weil [Fri, 17 Aug 2012 23:21:37 +0000 (16:21 -0700)]
Merge remote-tracking branch 'gh/bug-2958'

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agolibrbd: add test for discard of nonexistent objects
Sage Weil [Fri, 17 Aug 2012 23:04:20 +0000 (16:04 -0700)]
librbd: add test for discard of nonexistent objects

This verifies librbd properly handles ENOENT during discard.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrbd: hide ENOENT on discard
Sage Weil [Fri, 17 Aug 2012 19:10:05 +0000 (12:10 -0700)]
librbd: hide ENOENT on discard

AioZero, Truncate, and Remove are only used by discard and resize
operations where ENOENT can be safely ignored.  If that changes in the
future, we'll need to move the enoent flag setting into discard explicitly.

Fixes: #2958
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsg/Pipe: log port number
Sage Weil [Fri, 17 Aug 2012 18:46:37 +0000 (11:46 -0700)]
msg/Pipe: log port number

This helps correlate log output with specific tcp sessions as reported by
e.g. netstat or tcpdump or whatever.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agocpu_profiler: drop start, stop commands
Sage Weil [Fri, 17 Aug 2012 17:58:24 +0000 (10:58 -0700)]
cpu_profiler: drop start, stop commands

These don't appear to work.  Setting CPUPROFILE=path on startup does.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agocrypto: remove old crypto globals
Sage Weil [Fri, 17 Aug 2012 17:49:33 +0000 (10:49 -0700)]
crypto: remove old crypto globals

We now use the CephContext instances.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc: small RST syntax fixes for eu.ceph.com mirror
Ross Turk [Fri, 17 Aug 2012 17:41:06 +0000 (10:41 -0700)]
doc: small RST syntax fixes for eu.ceph.com mirror

Signed-off-by: Ross Turk <ross@inktank.com>
12 years agodocs: Add EU mirror for getting Ceph source and packages
Wido den Hollander [Wed, 15 Aug 2012 10:13:07 +0000 (12:13 +0200)]
docs: Add EU mirror for getting Ceph source and packages

Signed-off-by: Wido den Hollander <wido@widodh.nl>
12 years agoceph-fuse: debug off by default
Sage Weil [Fri, 17 Aug 2012 03:28:50 +0000 (20:28 -0700)]
ceph-fuse: debug off by default

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoauth: move Crypto users to use CephContext
Sage Weil [Thu, 16 Aug 2012 23:33:52 +0000 (16:33 -0700)]
auth: move Crypto users to use CephContext

Globals are bad news.  Switch all users to get the CryptoHandler from
their cct.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoauth: move Crypto{None,AES} definitions to header
Sage Weil [Thu, 16 Aug 2012 23:28:24 +0000 (16:28 -0700)]
auth: move Crypto{None,AES} definitions to header

CephContext will need this.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: avoid dereferencing pg info without lock
Sage Weil [Thu, 16 Aug 2012 23:55:32 +0000 (16:55 -0700)]
osd: avoid dereferencing pg info without lock

The gen_prefix() is used for debug prefixes, but traverses data structures
that can be modified when the lock is held.  Only include them in the
prefix if the lock is held; otherwise print an abbreviated prefix that is
similarly greppable to the normal output.

Fixes: #2957
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agomutex: add is_locked_by_me()
Sage Weil [Thu, 16 Aug 2012 23:55:04 +0000 (16:55 -0700)]
mutex: add is_locked_by_me()

Arguably this is what current is_locked() callers all want; they should
eventually be moved and is_locked() removed.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorun-cli-tests: Check that virtualenv is found.
Tommi Virtanen [Thu, 16 Aug 2012 23:35:30 +0000 (16:35 -0700)]
run-cli-tests: Check that virtualenv is found.

Commit 343cc792e847ca8901f6c08e41799a2fbbd2ca92 switched us from pip
-E to virtualenv, to keep up with the Python ecosystem, but left in
this old check for existence of "pip" as a command. We don't strictly
need that; what we need is a "virtualenv" command. PIP will be
available inside the virtualenv, by the time we get around to running
it. Check for virtualenv instead.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
12 years agoMerge remote-tracking branch 'gh/wip-osd'
Sage Weil [Thu, 16 Aug 2012 22:28:35 +0000 (15:28 -0700)]
Merge remote-tracking branch 'gh/wip-osd'

Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agomsg/SimpleMessenger: fix leak of local_connection
Sage Weil [Wed, 15 Aug 2012 22:20:14 +0000 (15:20 -0700)]
msg/SimpleMessenger: fix leak of local_connection

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agotest_librbd_fsx: fix leak
Sage Weil [Thu, 16 Aug 2012 21:42:58 +0000 (14:42 -0700)]
test_librbd_fsx: fix leak

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoSyntheticClient: fix warnings
Sage Weil [Thu, 16 Aug 2012 21:34:01 +0000 (14:34 -0700)]
SyntheticClient: fix warnings

client/SyntheticClient.cc: In member function 'int SyntheticClient::play_trace(Trace&, std::string&, bool)':
client/SyntheticClient.cc:1494:22: warning: ordered comparison of pointer with integer zero [-Wextra]
  CXX    rados_sync.o
client/SyntheticClient.cc:1500:22: warning: ordered comparison of pointer with integer zero [-Wextra]

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrbd: make aio_discard declaration match definition
Sage Weil [Thu, 16 Aug 2012 01:18:33 +0000 (18:18 -0700)]
librbd: make aio_discard declaration match definition

Fixes i386 build:

./.libs/librbd.so: undefined reference to `librbd::aio_discard(librbd::ImageCtx*, unsigned long long, unsigned int, librbd::AioCompletion*)'

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrbd: fix uninit var new_snap in ictrx_refresh()
Sage Weil [Thu, 16 Aug 2012 00:48:06 +0000 (17:48 -0700)]
librbd: fix uninit var new_snap in ictrx_refresh()

Valgrind picked this up:
==22755== Conditional jump or move depends on uninitialised value(s)
==22755==    at 0x4EC2A11: librbd::ictx_refresh(librbd::ImageCtx*) (internal.cc:1384)
==22755==    by 0x4EC10F7: librbd::ictx_check(librbd::ImageCtx*) (internal.cc:1212)
==22755==    by 0x4EBD246: librbd::info(librbd::ImageCtx*, rbd_image_info_t&, unsigned long) (internal.cc:841)
==22755==    by 0x4E9D71A: rbd_stat (librbd.cc:584)
==22755==    by 0x4039A5: check_trunc_hack (fsx.c:477)
==22755==    by 0x4060FA: main (fsx.c:1508)

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrbd: fix warning
Sage Weil [Thu, 16 Aug 2012 21:27:35 +0000 (14:27 -0700)]
librbd: fix warning

librbd/internal.cc: In function 'int librbd::ictx_refresh(librbd::ImageCtx*)':
librbd/internal.cc:1334:59: warning: enumeral and non-enumeral type in conditional expression [enabled by default]

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoheap_profiler: return result via ostream
Sage Weil [Thu, 16 Aug 2012 20:08:14 +0000 (13:08 -0700)]
heap_profiler: return result via ostream

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agocpu_profiler: outout to ostream instead of clog
Sage Weil [Thu, 16 Aug 2012 20:05:01 +0000 (13:05 -0700)]
cpu_profiler: outout to ostream instead of clog

This let's the 'ceph tell osd.N cpu_profiler ...' command return the result
to the caller.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: avoid generate huge osdmap deletion transactions
Sage Weil [Thu, 16 Aug 2012 20:38:54 +0000 (13:38 -0700)]
osd: avoid generate huge osdmap deletion transactions

Cap the number of maps we delete on each pass through handle_osd_map.  As
long as the target transaction size is larger than the number of maps we
get in each message, we'll be fine.  Ensure we at least keep pace with
incoming maps in case those values' relative sizes nave flipped.

Fixes: #2856
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: break potentially large transaction into pieces
Sage Weil [Wed, 25 Jul 2012 23:35:09 +0000 (16:35 -0700)]
osd: break potentially large transaction into pieces

We do a similar trick elsewhere.  Control this via a tunable.  Eventually
we'll control the others (in a non-stable branch).

Signed-off-by: Sage Weil <sage@inktank.com>