]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agotest/radosgw-admin: update the expected usage outputs 7723/head
Kefu Chai [Sat, 20 Feb 2016 04:10:53 +0000 (12:10 +0800)]
test/radosgw-admin: update the expected usage outputs

to match with the latest radosgw-admin changes.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7717 from cbodley/wip-cmake-rbd-image-watcher
Orit Wasserman [Fri, 19 Feb 2016 16:33:47 +0000 (17:33 +0100)]
Merge pull request #7717 from cbodley/wip-cmake-rbd-image-watcher

cmake: add missing librbd image_watcher sources

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agocmake: add missing librbd image_watcher sources 7717/head
Casey Bodley [Fri, 19 Feb 2016 16:10:26 +0000 (11:10 -0500)]
cmake: add missing librbd image_watcher sources

Fixes: #14823
Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #7709 from ceph/wip-rgw-new-multisite-merge
Yehuda Sadeh [Fri, 19 Feb 2016 15:22:03 +0000 (07:22 -0800)]
Merge pull request #7709 from ceph/wip-rgw-new-multisite-merge

rgw multisite v2 (Yehuda Sadeh, Orit Wasserman, Casey Bodley)
 - rename region to zonegroup
 - new zone and zonegroup configuration
 - new realm and period structures
 - rgw handles synchronization (no need for sync agent)
 - active-active data

Signed-off-by: Yehuda Sadeh
9 years agoMerge pull request #7371 from theanalyst/mon/quota-msg-cleanup
Kefu Chai [Fri, 19 Feb 2016 09:56:20 +0000 (17:56 +0800)]
Merge pull request #7371 from theanalyst/mon/quota-msg-cleanup

mon: cleanup set-quota error msg

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7708 from jdurgin/wip-cython-cleanup
Josh Durgin [Fri, 19 Feb 2016 08:34:50 +0000 (00:34 -0800)]
Merge pull request #7708 from jdurgin/wip-cython-cleanup

pybind: replace __del__ with __dealloc__ for rbd

Reviewed-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Mehdi Abaakouk <sileht@sileht.net>
9 years agomon: cleanup set-quota error msg 7371/head
Abhishek Lekshmanan [Wed, 27 Jan 2016 09:26:15 +0000 (10:26 +0100)]
mon: cleanup set-quota error msg

When we send in an unrecognized field for set-quota, specify that the
options should be `max_bytes` or `max_objects`. This doesn't affect the
ceph-cli as the choices are caught at an earlier stage, however the
error message is seen while reaching the cluster via rados api for eg.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agoMerge pull request #7668 from dillaman/wip-librbd-replay-locks
Josh Durgin [Fri, 19 Feb 2016 08:15:36 +0000 (00:15 -0800)]
Merge pull request #7668 from dillaman/wip-librbd-replay-locks

librbd: use async librados notifications

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agorgw: avoid empty object names 7709/head
Yehuda Sadeh [Fri, 19 Feb 2016 07:50:06 +0000 (23:50 -0800)]
rgw: avoid empty object names

Don't try to sync an object with empty name (shouldn't happen, but
bugs may happen). Also, don't try to write_meta() of an empty object
name, in case we get there through a different path somehow.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years ago.gitignore: include recently added rgw programs 7708/head
Josh Durgin [Fri, 19 Feb 2016 07:49:04 +0000 (23:49 -0800)]
.gitignore: include recently added rgw programs

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agorgw: fix s3 list bucket (affects format=json)
Yehuda Sadeh [Fri, 19 Feb 2016 07:49:00 +0000 (23:49 -0800)]
rgw: fix s3 list bucket (affects format=json)

another merge casualty. The section wasn't opened properly.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agopybind: replace __del__ with __dealloc__ for rbd
Josh Durgin [Fri, 19 Feb 2016 07:28:25 +0000 (23:28 -0800)]
pybind: replace __del__ with __dealloc__ for rbd

Cython extension types like these don't call __del__, but use
__dealloc__ instead:

http://docs.cython.org/src/userguide/special_methods.html#finalization-method-dealloc

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7706 from sileht/sileht/rados-cython
Josh Durgin [Fri, 19 Feb 2016 07:46:21 +0000 (23:46 -0800)]
Merge pull request #7706 from sileht/sileht/rados-cython

pybind: remove next() on iterators

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agorgw: only validate bucket name if not empty
Yehuda Sadeh [Fri, 19 Feb 2016 07:09:48 +0000 (23:09 -0800)]
rgw: only validate bucket name if not empty

This got broken due to code movement

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: resurrect lost code
Yehuda Sadeh [Fri, 19 Feb 2016 07:07:07 +0000 (23:07 -0800)]
rgw: resurrect lost code

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agopybind: remove next() on iterator 7706/head
Mehdi Abaakouk [Fri, 19 Feb 2016 06:57:42 +0000 (07:57 +0100)]
pybind: remove next() on iterator

Cython recommends to implement only __next__() methods.

http://docs.cython.org/src/userguide/special_methods.html#the-next-method

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
9 years agoMerge pull request #7641 from batrick/vstart-usage
Loic Dachary [Fri, 19 Feb 2016 06:25:46 +0000 (13:25 +0700)]
Merge pull request #7641 from batrick/vstart-usage

Clarify usage on starting single osd/mds/mon.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agotest/Makefile-client.am: adjustment following merge
Yehuda Sadeh [Fri, 19 Feb 2016 03:05:39 +0000 (19:05 -0800)]
test/Makefile-client.am: adjustment following merge

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #7692 from sileht/sileht/rados-cython
Josh Durgin [Fri, 19 Feb 2016 01:42:26 +0000 (17:42 -0800)]
Merge pull request #7692 from sileht/sileht/rados-cython

pybind/rados: use __dealloc__ since __del__ is ignored by cython

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge remote-tracking branch 'origin/master' into wip-rgw-new-multisite
Yehuda Sadeh [Fri, 19 Feb 2016 01:14:07 +0000 (17:14 -0800)]
Merge remote-tracking branch 'origin/master' into wip-rgw-new-multisite

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Conflicts:
src/CMakeLists.txt
src/rgw/Makefile.am
src/rgw/rgw_admin.cc
src/rgw/rgw_common.h
src/rgw/rgw_main.cc
src/rgw/rgw_op.cc
src/rgw/rgw_rados.h
src/rgw/rgw_rest_s3.cc
src/test/Makefile-client.am

9 years agorgw: add drain_all() before exiting a cr
Yehuda Sadeh [Thu, 18 Feb 2016 23:25:52 +0000 (15:25 -0800)]
rgw: add drain_all() before exiting a cr

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: silence compilation #warnings
Yehuda Sadeh [Thu, 18 Feb 2016 23:20:20 +0000 (15:20 -0800)]
rgw: silence compilation #warnings

these are now FIXMEs

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: more error reporting
Yehuda Sadeh [Tue, 16 Feb 2016 22:45:54 +0000 (14:45 -0800)]
rgw: more error reporting

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: data sync error handling (for sync init)
Yehuda Sadeh [Tue, 16 Feb 2016 22:06:49 +0000 (14:06 -0800)]
rgw: data sync error handling (for sync init)

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: a bit better hashing
Yehuda Sadeh [Thu, 18 Feb 2016 23:11:00 +0000 (15:11 -0800)]
rgw: a bit better hashing

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agolibrbd: don't hold owner lock while refreshing image synchronously 7668/head
Jason Dillaman [Thu, 18 Feb 2016 22:58:28 +0000 (17:58 -0500)]
librbd: don't hold owner lock while refreshing image synchronously

The write lock will be taken when the new state is applied.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: need owner write lock when disabling exclusive lock
Jason Dillaman [Thu, 18 Feb 2016 22:56:20 +0000 (17:56 -0500)]
librbd: need owner write lock when disabling exclusive lock

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: correct memory leaks discovered via valgrind
Jason Dillaman [Wed, 17 Feb 2016 15:35:47 +0000 (10:35 -0500)]
librbd: correct memory leaks discovered via valgrind

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: notifications should be flushed between exclusive lock states
Jason Dillaman [Wed, 17 Feb 2016 02:43:03 +0000 (21:43 -0500)]
librbd: notifications should be flushed between exclusive lock states

Avoid leaving in-flight notification messages when transitioning lock
states.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorgw: RGWMetaSyncCR loops through period history
Casey Bodley [Thu, 18 Feb 2016 16:31:45 +0000 (11:31 -0500)]
rgw: RGWMetaSyncCR loops through period history

RGWMetaSyncCR uses a period history Cursor to track its position. it
uses this to get the max sync markers for each shard from the following
period, so that RGWMetaSyncShardCR knows when to stop syncing and return
control to RGWMetaSyncCR

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: get period history cursor when starting sync
Casey Bodley [Thu, 18 Feb 2016 16:20:34 +0000 (11:20 -0500)]
rgw: get period history cursor when starting sync

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove RGWMetadataManager::store_md_log_entries
Casey Bodley [Thu, 18 Feb 2016 16:11:13 +0000 (11:11 -0500)]
rgw: remove RGWMetadataManager::store_md_log_entries

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: rados coroutines take bucket by const ref
Casey Bodley [Mon, 15 Feb 2016 21:42:17 +0000 (16:42 -0500)]
rgw: rados coroutines take bucket by const ref

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add first log period to mdlog info response
Casey Bodley [Thu, 11 Feb 2016 21:59:50 +0000 (16:59 -0500)]
rgw: add first log period to mdlog info response

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: factor get_log_shard_id() out of RGWMetadataLog
Casey Bodley [Thu, 11 Feb 2016 16:03:34 +0000 (11:03 -0500)]
rgw: factor get_log_shard_id() out of RGWMetadataLog

by using RGWRados::key_to_shard_id(), we can avoid the dependency on
RGWMetadataLog's prefix (and period)

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add period id to rgw_rest_log operations
Casey Bodley [Wed, 3 Feb 2016 15:46:19 +0000 (10:46 -0500)]
rgw: add period id to rgw_rest_log operations

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw-admin: update callers of get_log
Casey Bodley [Wed, 3 Feb 2016 15:00:30 +0000 (10:00 -0500)]
rgw-admin: update callers of get_log

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add map of period_id -> RGWMetadataLog
Casey Bodley [Tue, 2 Feb 2016 17:44:06 +0000 (12:44 -0500)]
rgw: add map of period_id -> RGWMetadataLog

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add period id to metadata log oids
Casey Bodley [Fri, 29 Jan 2016 15:46:04 +0000 (10:46 -0500)]
rgw: add period id to metadata log oids

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: RGWRemoteMetaLog passes period id with requests to master
Casey Bodley [Mon, 30 Nov 2015 21:33:18 +0000 (16:33 -0500)]
rgw: RGWRemoteMetaLog passes period id with requests to master

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: move sync_status into RGWRemoteMetaLog
Casey Bodley [Mon, 30 Nov 2015 21:18:29 +0000 (16:18 -0500)]
rgw: move sync_status into RGWRemoteMetaLog

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: include period id in rgw_meta_sync_info
Casey Bodley [Mon, 30 Nov 2015 21:33:34 +0000 (16:33 -0500)]
rgw: include period id in rgw_meta_sync_info

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: use std::move for strings in RGWFetchAllMetaCR
Casey Bodley [Mon, 16 Nov 2015 21:42:51 +0000 (16:42 -0500)]
rgw: use std::move for strings in RGWFetchAllMetaCR

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agocmake: remove duplicate rgw source files
Casey Bodley [Thu, 18 Feb 2016 04:10:05 +0000 (23:10 -0500)]
cmake: remove duplicate rgw source files

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove RemoteMetaLog::fetch() and admin command
Casey Bodley [Thu, 11 Feb 2016 15:29:03 +0000 (10:29 -0500)]
rgw: remove RemoteMetaLog::fetch() and admin command

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove unused RGWRemoteMetaLog::list_shards
Casey Bodley [Mon, 8 Feb 2016 20:03:05 +0000 (15:03 -0500)]
rgw: remove unused RGWRemoteMetaLog::list_shards

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove unused class RGWReadMDLogShardInfo
Casey Bodley [Tue, 2 Feb 2016 21:03:28 +0000 (16:03 -0500)]
rgw: remove unused class RGWReadMDLogShardInfo

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove unused clone_shards() in metadata sync
Casey Bodley [Fri, 29 Jan 2016 19:59:35 +0000 (14:59 -0500)]
rgw: remove unused clone_shards() in metadata sync

clone_shards() was an exact duplicate for fetch()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove unneeded RGWRados arg for RGWMetadataLog
Casey Bodley [Thu, 28 Jan 2016 19:53:58 +0000 (14:53 -0500)]
rgw: remove unneeded RGWRados arg for RGWMetadataLog

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: we need to clear the id in create_default in case of a race
Orit Wasserman [Tue, 16 Feb 2016 15:36:41 +0000 (16:36 +0100)]
rgw: we need to clear the id in create_default in case of a race

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw-admin: command to list sync error logs
Yehuda Sadeh [Tue, 16 Feb 2016 01:04:05 +0000 (17:04 -0800)]
rgw-admin: command to list sync error logs

$ radosgw-admin sync error list

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: set quota when converting regionmap
Yehuda Sadeh [Mon, 15 Feb 2016 23:40:37 +0000 (15:40 -0800)]
rgw: set quota when converting regionmap

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agolibrbd: update image name upon rename operations
Jason Dillaman [Tue, 16 Feb 2016 17:59:42 +0000 (12:59 -0500)]
librbd: update image name upon rename operations

Previously the image could not have been renamed twice without
re-opening the image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: missing owner lock on snap rollback cache invalidation
Jason Dillaman [Tue, 16 Feb 2016 17:51:34 +0000 (12:51 -0500)]
librbd: missing owner lock on snap rollback cache invalidation

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: journal replay should execute ops in clean context
Jason Dillaman [Tue, 16 Feb 2016 14:07:57 +0000 (09:07 -0500)]
librbd: journal replay should execute ops in clean context

lockdep will complain about loop cycles that won't cause an
issue in reality as replay and record are two different
journal states.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: use AIO notifications to prevent blocking ops
Jason Dillaman [Tue, 16 Feb 2016 15:10:16 +0000 (10:10 -0500)]
librbd: use AIO notifications to prevent blocking ops

If two or more images share the same CephContext, notifications
from one image can block the work queue which will potentially
block acknowledging the notification until after it times out.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: cleanup header update notifications
Jason Dillaman [Tue, 16 Feb 2016 04:25:28 +0000 (23:25 -0500)]
librbd: cleanup header update notifications

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoRevert "librbd: lock notifications should be executed outside librados thread"
Jason Dillaman [Tue, 16 Feb 2016 01:52:16 +0000 (20:52 -0500)]
Revert "librbd: lock notifications should be executed outside librados thread"

This reverts commit d898995b0e3ea301b1325f68a0532d57afa3c816.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: support for AIO notifications
Jason Dillaman [Tue, 16 Feb 2016 01:49:22 +0000 (20:49 -0500)]
librbd: support for AIO notifications

The header update and lock notifications might be invoked
from the librados AIO thread.  Update the close state
machine to flush any potential AIO notifications.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorstats: enable by default on client; move test workunit to its own dir
Greg Farnum [Wed, 3 Feb 2016 09:38:14 +0000 (01:38 -0800)]
rstats: enable by default on client; move test workunit to its own dir

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #7323 from ukernel/wip-client-dirsize
Gregory Farnum [Thu, 18 Feb 2016 20:47:05 +0000 (12:47 -0800)]
Merge pull request #7323 from ukernel/wip-client-dirsize

client: add option to control how directory size is calculated

This lets you disable rstats if your workload is unhappy about directories
changing size (eg, tar of recently-moved/created/untarred files).

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #7457 from weiqiaomiao/w1
Yehuda Sadeh [Thu, 18 Feb 2016 16:16:23 +0000 (08:16 -0800)]
Merge pull request #7457 from weiqiaomiao/w1

Rgw: check the return value when call fe->run()

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #7666 from rzarzynski/wip-rgw-sysreq-over-swift
Yehuda Sadeh [Thu, 18 Feb 2016 16:08:13 +0000 (08:08 -0800)]
Merge pull request #7666 from rzarzynski/wip-rgw-sysreq-over-swift

rgw: add support for system requests over Swift API

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #7678 from linuxbox2/rgw-sigusr1
Yehuda Sadeh [Thu, 18 Feb 2016 16:04:19 +0000 (08:04 -0800)]
Merge pull request #7678 from linuxbox2/rgw-sigusr1

rgw: move signal.h dependency from rgw_front.h

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge branch 'greg-pr-7034'
Greg Farnum [Thu, 18 Feb 2016 14:41:23 +0000 (06:41 -0800)]
Merge branch 'greg-pr-7034'

9 years agoMerge pull request #7679 from linuxbox2/rgw-ssconst
Kefu Chai [Thu, 18 Feb 2016 13:58:19 +0000 (21:58 +0800)]
Merge pull request #7679 from linuxbox2/rgw-ssconst

sstring.hh: return type from str_len(...) need not be const

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agopybind: rados cleanup 7692/head
Mehdi Abaakouk [Thu, 18 Feb 2016 09:14:01 +0000 (10:14 +0100)]
pybind: rados cleanup

This change uses:
* a pystring to store ioctx state like other state attributes and like
  previous binding
* use __dealloc__ instead of __del__ to ensure Object are freed correctly

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
9 years agoMerge pull request #7684 from ceph/wip-pybind-install
Gregory Farnum [Thu, 18 Feb 2016 00:45:10 +0000 (16:45 -0800)]
Merge pull request #7684 from ceph/wip-pybind-install

pybind: use correct subdir for rados install-exec rule

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge branch 'wip-sharded-scan' of git://github.com/jcsp/ceph into greg-pr-7034
Greg Farnum [Wed, 17 Feb 2016 23:49:51 +0000 (15:49 -0800)]
Merge branch 'wip-sharded-scan' of git://github.com/jcsp/ceph into greg-pr-7034

Conflicts:
src/osdc/Objecter.cc

9 years agopybind: use correct subdir for rados install-exec rule 7684/head
Josh Durgin [Wed, 17 Feb 2016 23:44:45 +0000 (15:44 -0800)]
pybind: use correct subdir for rados install-exec rule

This fixes package builds and 'make install'

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7621 from sileht/sileht/rados-cython
Josh Durgin [Wed, 17 Feb 2016 18:05:20 +0000 (10:05 -0800)]
Merge pull request #7621 from sileht/sileht/rados-cython

python binding of librados with cython

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agorgw: remove unnecessary overloads in RGWHTTPArgs. 7666/head
Radoslaw Zarzynski [Wed, 17 Feb 2016 17:30:06 +0000 (18:30 +0100)]
rgw: remove unnecessary overloads in RGWHTTPArgs.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agosstring.hh: return type from str_len(...) need not be const 7679/head
Matt Benjamin [Wed, 17 Feb 2016 16:16:19 +0000 (11:16 -0500)]
sstring.hh: return type from str_len(...) need not be const

Removes a compile warning.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
9 years agorgw: move signal.h dependency from rgw_front.h 7678/head
Matt Benjamin [Wed, 17 Feb 2016 15:46:21 +0000 (10:46 -0500)]
rgw: move signal.h dependency from rgw_front.h

Missed in refactoring of rgw_main.cc.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
9 years agoUpdate the documentation 7621/head
Mehdi Abaakouk [Wed, 17 Feb 2016 09:13:31 +0000 (10:13 +0100)]
Update the documentation

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
9 years agolibrbdpy: Use new rados lib
Mehdi Abaakouk [Tue, 16 Feb 2016 11:05:07 +0000 (12:05 +0100)]
librbdpy: Use new rados lib

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
9 years agoceph.in: Use new python rados module
Mehdi Abaakouk [Mon, 15 Feb 2016 21:06:54 +0000 (22:06 +0100)]
ceph.in: Use new python rados module

This implements run_in_thread inside the ceph command itself.

And fixes the ceph command bootstrap when it run inside the
source tree to correctly load the new rados python module.

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
9 years agoFix rpm/deb packaging
Mehdi Abaakouk [Tue, 16 Feb 2016 09:42:31 +0000 (08:42 -0100)]
Fix rpm/deb packaging

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
9 years agoRemove old rados pybinding
Mehdi Abaakouk [Mon, 15 Feb 2016 08:53:08 +0000 (09:53 +0100)]
Remove old rados pybinding

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
9 years agoCython Rados module
Mehdi Abaakouk [Fri, 12 Feb 2016 08:13:36 +0000 (09:13 +0100)]
Cython Rados module

Notable changes:

* run_in_thread have disapeared
* timeout argument of some methods are ignored
* rados_create_write_op/rados_create_read_op returns WriteOp/ReadOp
  instead of the pointer address
* rados_monitor_log callback 'arg' arguments was broken in previous python
  binding (callback was called with the pointer address instead pointed object)
* object attributes that was pointer addresses are now private and not accessible in python

Some tests have been added to cover all methods

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
9 years agoMerge pull request #7603 from roidayan/xio_fixes
Kefu Chai [Wed, 17 Feb 2016 09:21:29 +0000 (17:21 +0800)]
Merge pull request #7603 from roidayan/xio_fixes

Xio fixes

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: support system requests over Swift API.
Radoslaw Zarzynski [Tue, 16 Feb 2016 11:16:02 +0000 (12:16 +0100)]
rgw: support system requests over Swift API.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: enable access to system arguments of RGWHTTPArgs.
Radoslaw Zarzynski [Tue, 16 Feb 2016 10:35:34 +0000 (11:35 +0100)]
rgw: enable access to system arguments of RGWHTTPArgs.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoMove pybind rbd module into it own directory
Mehdi Abaakouk [Thu, 11 Feb 2016 08:30:52 +0000 (09:30 +0100)]
Move pybind rbd module into it own directory

To allow to create a autonomous rados module with cython.
We move the current librbdpy to the rbd sub directory.

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
9 years agoMerge pull request #7520 from renhwsky/renhw-wip-mon-monitor
Kefu Chai [Tue, 16 Feb 2016 14:04:24 +0000 (22:04 +0800)]
Merge pull request #7520 from renhwsky/renhw-wip-mon-monitor

mon/monitor: some clean up

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7629 from ceph/wip-14750-op-timeouts
Gregory Farnum [Tue, 16 Feb 2016 04:39:55 +0000 (20:39 -0800)]
Merge pull request #7629 from ceph/wip-14750-op-timeouts

Objecter: detect laggy ops with objecter_timeout, not osd_timeout

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
9 years agoMerge pull request #7655 from gregsfortytwo/wip-metarequest-lock
Gregory Farnum [Tue, 16 Feb 2016 04:36:47 +0000 (20:36 -0800)]
Merge pull request #7655 from gregsfortytwo/wip-metarequest-lock

client: removed unused Mutex from MetaRequest

Reviewed-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #7616 from gregsfortytwo/wip-timer-14697
Gregory Farnum [Tue, 16 Feb 2016 04:35:32 +0000 (20:35 -0800)]
Merge pull request #7616 from gregsfortytwo/wip-timer-14697

mds: don't double-shutdown the timer when suiciding

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #7490 from x11562/mds_mdstype_ref
Gregory Farnum [Tue, 16 Feb 2016 04:34:43 +0000 (20:34 -0800)]
Merge pull request #7490 from x11562/mds_mdstype_ref

mds: function parameter 'df' should be passed by reference

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #7610 from dillaman/wip-bit-vector
Dan Mick [Tue, 16 Feb 2016 01:07:39 +0000 (17:07 -0800)]
Merge pull request #7610 from dillaman/wip-bit-vector

common/bit_vector: use hard-coded value for block size

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoMerge pull request #7653 from dillaman/wip-librbd-race-conditions
Josh Durgin [Mon, 15 Feb 2016 23:25:28 +0000 (15:25 -0800)]
Merge pull request #7653 from dillaman/wip-librbd-race-conditions

librbd: several race conditions discovered under single CPU environment

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agorgw: cleanup
Yehuda Sadeh [Mon, 15 Feb 2016 23:16:28 +0000 (15:16 -0800)]
rgw: cleanup

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: don't try to parse some forwarded requests
Yehuda Sadeh [Mon, 15 Feb 2016 22:51:32 +0000 (14:51 -0800)]
rgw: don't try to parse some forwarded requests

Not every forwarded requests are expected to get a json response,
don't pass the parser when not needed.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: adjust data sync async notification locking
Yehuda Sadeh [Mon, 15 Feb 2016 22:50:48 +0000 (14:50 -0800)]
rgw: adjust data sync async notification locking

This is a workaround to avoid issues related to the way lockdep works

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #7408 from ceph/wip-14549
Orit Wasserman [Mon, 15 Feb 2016 21:12:54 +0000 (22:12 +0100)]
Merge pull request #7408 from ceph/wip-14549

rgw: don't use s->bucket for metadata api path entry

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #7633 from zaitcev/cleanup-various-1
Orit Wasserman [Mon, 15 Feb 2016 20:57:01 +0000 (21:57 +0100)]
Merge pull request #7633 from zaitcev/cleanup-various-1

rgw: cleanups to comments and messages

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agovstart.sh: clarify usage on single osd/mds/mon. 7641/head
Patrick Donnelly [Sun, 14 Feb 2016 00:31:13 +0000 (19:31 -0500)]
vstart.sh: clarify usage on single osd/mds/mon.

vstart.sh expects the literal string "osd"/"mds"/"mon". To me, it was confusing
as I interpreted the usage hint as an optional count for each daemon.

Signed-off-by: Patrick Donnelly <batrick@batbytes.com>
9 years agolibrados_test_stub: watch_flush should block until notifies complete 7653/head
Jason Dillaman [Mon, 15 Feb 2016 17:30:41 +0000 (12:30 -0500)]
librados_test_stub: watch_flush should block until notifies complete

It shouldn't block until all the acks are received as that is not
how librados handles the method.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: lock notifications should be executed outside librados thread
Jason Dillaman [Fri, 12 Feb 2016 18:24:10 +0000 (13:24 -0500)]
librbd: lock notifications should be executed outside librados thread

Otherwise it's possible that the notification will be blocked if
the librados AIO thread isn't available to invoke the notification
handler.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: potential race on image close
Jason Dillaman [Mon, 15 Feb 2016 17:10:17 +0000 (12:10 -0500)]
librbd: potential race on image close

If multiple states are pending, it's possible for an image to
be closed while the state lock is unlocked during the callback.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>