]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agotests/ceph-disk: Using dummy device mappers
Erwan Velu [Tue, 23 Feb 2016 15:14:48 +0000 (16:14 +0100)]
tests/ceph-disk: Using dummy device mappers

When doing a make test, if your local setup was running a "dm-0" or "dm-1",
the make check was failing.

The detection of the local "dm-x" were leading to a wrong comparaison with
the expected simulated values.

The fix is using a dummy name for that "dm" to prevent any collision with the local setup.

Prior that patch, a typical output of that error looked like :

>               assert expect == main.list_devices()
E               assert [{'partitions...: '/dev/Xda'}] == [{'partitions'...: '/dev/Xda'}]
E                 At index 0 diff: {'partitions': [{'dmcrypt': {'holders': ['dm-0'], 'type': 'plain'}, 'ptype': '4fbd7e29-9d25-41b8-afd0-5ec00ceff05d', 'path': '/dev/Xda1', 'is_partition': True, 'mount': None, 'uuid': '56244cf5-83ef-4984-888a-2d8b8e0e04b2', 'type': 'data', 'state': 'unprepared', 'fs_type': None}], 'path': '/dev/Xda'} != {'partitions': [{'ptype': '4fbd7e29-9d25-41b8-afd0-5ec00ceff05d', 'whoami': None, 'path': '/dev/Xda1', 'is_partition': True, 'mount': '/var/cache/ccache', 'uuid': '56244cf5-83ef-4984-888a-2d8b8e0e04b2', 'ceph_fsid': None, 'fs_type': 'btrfs', 'dmcrypt': {'holders': ['dm-0'], 'type': 'plain'}, 'type': 'data', 'state': 'active'}], 'path': '/dev/Xda'}
E                 Full diff:
E                 - [{'partitions': [{'dmcrypt': {'holders': ['dm-0'], 'type': 'plain'},
E                 + [{'partitions': [{'ceph_fsid': None,
E                 +                   'dmcrypt': {'holders': ['dm-0'], 'type': 'plain'},
E                 -                   'fs_type': None,
E                 ?                              ^^^^
E                 +                   'fs_type': 'btrfs',
E                 ?                              ^^^^^^^
E                 'is_partition': True,
E                 -                   'mount': None,
E                 +                   'mount': '/var/cache/ccache',
E                 'path': '/dev/Xda1',
E                 'ptype': '4fbd7e29-9d25-41b8-afd0-5ec00ceff05d',
E                 -                   'state': 'unprepared',
E                 ?                             ^^^^ -----
E                 +                   'state': 'active',
E                 ?                             ^^^^^
E                 'type': 'data',
E                 -                   'uuid': '56244cf5-83ef-4984-888a-2d8b8e0e04b2'}],
E                 ?                                                                 --
E                 +                   'uuid': '56244cf5-83ef-4984-888a-2d8b8e0e04b2',
E                 +                   'whoami': None}],
E                 'path': '/dev/Xda'}]

tests/test_main.py:342: AssertionError

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests/ceph-disk: Creating missing working dir
Erwan Velu [Tue, 23 Feb 2016 10:36:51 +0000 (11:36 +0100)]
tests/ceph-disk: Creating missing working dir

When running run-tox.sh in a very simple env,
the test will fail if '/var/lib/ceph/tmp' doesn't exist.

This patch adds a check to create this directory if required as mkdtemp doesn't do it for you.

Prior this patch, the following behavior was seen :

tests/test_main.py:342:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ceph_disk/main.py:3753: in list_devices
    fstype=fs_type, options='')
ceph_disk/main.py:1217: in mount
    dir=STATEDIR + '/tmp',
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

suffix = '', prefix = 'mnt.', dir = '/var/lib/ceph/tmp'

    def mkdtemp(suffix="", prefix=template, dir=None):
        """User-callable function to create and return a unique temporary
        directory.  The return value is the pathname of the directory.

        Arguments are as for mkstemp, except that the 'text' argument is
        not accepted.

        The directory is readable, writable, and searchable only by the
        creating user.

        Caller is responsible for deleting the directory when done with it.
        """

        if dir is None:
            dir = gettempdir()

        names = _get_candidate_names()

        for seq in xrange(TMP_MAX):
            name = names.next()
            file = _os.path.join(dir, prefix + name + suffix)
            try:
>               _os.mkdir(file, 0700)
E               OSError: [Errno 2] No such file or directory: '/var/lib/ceph/tmp/mnt.KoAV85'

/usr/lib64/python2.7/tempfile.py:333: OSError

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agoMerge pull request #7649 from yuyuyu101/wip-async-watch
Jason Dillaman [Wed, 24 Feb 2016 04:41:03 +0000 (23:41 -0500)]
Merge pull request #7649 from yuyuyu101/wip-async-watch

librados: implement async watch/unwatch

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7761 from dillaman/wip-14847
Josh Durgin [Wed, 24 Feb 2016 02:07:12 +0000 (18:07 -0800)]
Merge pull request #7761 from dillaman/wip-14847

librbd: fix state machine race conditions during shut down

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoRadosClient: call watch_flush before finisher stop 7649/head
Haomai Wang [Tue, 23 Feb 2016 04:17:50 +0000 (12:17 +0800)]
RadosClient: call watch_flush before finisher stop

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #7632 from zaitcev/cleanup-dead-code-3
Yehuda Sadeh [Tue, 23 Feb 2016 19:44:50 +0000 (11:44 -0800)]
Merge pull request #7632 from zaitcev/cleanup-dead-code-3

rgw: Drop unused usage_exit from rgw_admin.cc

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #7285 from magicrobotmonkey/patch-1
Yehuda Sadeh [Tue, 23 Feb 2016 19:25:38 +0000 (11:25 -0800)]
Merge pull request #7285 from magicrobotmonkey/patch-1

Increase verbosity level on RGWObjManifest line

Reviewed-by: Yehuda Saeh <yehuda@redhat.com>
9 years agoMerge pull request #7618 from zaitcev/wip-5073-subuser-bis
Yehuda Sadeh [Tue, 23 Feb 2016 19:23:16 +0000 (11:23 -0800)]
Merge pull request #7618 from zaitcev/wip-5073-subuser-bis

rgw: Fix subuser harder with tenants

Reviewed-y: Yehuda Sadeh <yehuda@redhat.com>

9 years agoMerge pull request #7763 from dachary/wip-releases
Sage Weil [Tue, 23 Feb 2016 18:18:00 +0000 (13:18 -0500)]
Merge pull request #7763 from dachary/wip-releases

doc: fix 0.94.4 and 0.94.5 ordering

9 years agoMerge pull request #7364 from javenwu/master
Jason Dillaman [Tue, 23 Feb 2016 18:17:52 +0000 (13:17 -0500)]
Merge pull request #7364 from javenwu/master

common: default cluster name to config file prefix

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7548 from yuyuyu101/librbd-avoid-memcpy
Jason Dillaman [Tue, 23 Feb 2016 18:15:29 +0000 (13:15 -0500)]
Merge pull request #7548 from yuyuyu101/librbd-avoid-memcpy

librbd: reduce mem copies to user-buffer during read

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7667 from jdurgin/wip-14780
Jason Dillaman [Tue, 23 Feb 2016 18:14:23 +0000 (13:14 -0500)]
Merge pull request #7667 from jdurgin/wip-14780

Revert "librbd: use task finisher per CephContext"

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7625 from branch-predictor/bp-async-more
Haomai Wang [Tue, 23 Feb 2016 17:30:34 +0000 (01:30 +0800)]
Merge pull request #7625 from branch-predictor/bp-async-more

msg/async: smarter MSG_MORE

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agodoc: fix 0.94.4 and 0.94.5 ordering 7763/head
Loic Dachary [Tue, 23 Feb 2016 17:13:53 +0000 (00:13 +0700)]
doc: fix 0.94.4 and 0.94.5 ordering

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #7760 from theanalyst/fix/rgw-fcgi-build
Casey Bodley [Tue, 23 Feb 2016 16:02:03 +0000 (11:02 -0500)]
Merge pull request #7760 from theanalyst/fix/rgw-fcgi-build

rgw: fcgi should include acconfig

9 years agolibrbd: deterministically unblock writes on snap set 7761/head
Jason Dillaman [Tue, 23 Feb 2016 15:59:09 +0000 (10:59 -0500)]
librbd: deterministically unblock writes on snap set

Previously this was handled in the state machine's destructor,
but that can lead to nondeterministic behavior due to interactions
between threads.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: avoid close race-condition within ImageState
Jason Dillaman [Tue, 23 Feb 2016 15:49:24 +0000 (10:49 -0500)]
librbd: avoid close race-condition within ImageState

The lock was previously unlocked/locked to avoid lock cycles. This
creates an issue when closing the image because the another thread
might have already deleted the ImageState before the lock could be
re-locked.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorgw: fcgi should include acconfig 7760/head
Abhishek Lekshmanan [Tue, 23 Feb 2016 15:39:06 +0000 (16:39 +0100)]
rgw: fcgi should include acconfig

As it references FASTCGI_INCLUDE_DIR which is referenced from it

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agodoc/release-notes: v0.94.6 final notes
Sage Weil [Tue, 23 Feb 2016 15:35:34 +0000 (10:35 -0500)]
doc/release-notes: v0.94.6 final notes

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7689 from dachary/wip-release-notes
Sage Weil [Tue, 23 Feb 2016 15:29:53 +0000 (10:29 -0500)]
Merge pull request #7689 from dachary/wip-release-notes

release-notes: draft v0.94.6 release notes

9 years agomsg/async: cut the middle-man 7625/head
Piotr Dałek [Thu, 11 Feb 2016 08:38:46 +0000 (09:38 +0100)]
msg/async: cut the middle-man

Get rid of complete_bl and let messenger write directly to outcoming_bl of
a connection. Also, if message bufferlist is small enough, append its
contents to outcoming_bl directly, so we'll use less iovecs and in best
case, pack entire message (together with header and footer added in
write_message()) in single bufferptr.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoMerge pull request #7725 from ceph/wip-fix-async-valgrind
Haomai Wang [Tue, 23 Feb 2016 14:19:34 +0000 (22:19 +0800)]
Merge pull request #7725 from ceph/wip-fix-async-valgrind

AsyncMessenger: fix valgrind leak

9 years agoMerge pull request #7758 from dachary/wip-ceph-disk-prepare-help
Kefu Chai [Tue, 23 Feb 2016 13:11:18 +0000 (21:11 +0800)]
Merge pull request #7758 from dachary/wip-ceph-disk-prepare-help

ceph-disk: fix prepare --help

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoceph-disk: fix prepare --help 7758/head
Loic Dachary [Tue, 23 Feb 2016 09:39:48 +0000 (16:39 +0700)]
ceph-disk: fix prepare --help

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #7756 from dachary/wip-ceph-disk-args
Kefu Chai [Tue, 23 Feb 2016 11:12:08 +0000 (19:12 +0800)]
Merge pull request #7756 from dachary/wip-ceph-disk-args

ceph-disk: deactivate / destroy PATH arg are optional

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoceph-disk: deactivate / destroy PATH arg are optional 7756/head
Loic Dachary [Tue, 23 Feb 2016 08:52:39 +0000 (15:52 +0700)]
ceph-disk: deactivate / destroy PATH arg are optional

And the mandatory positional arguments need not be == 1, it is enough to
leave the nargs parameter out.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #7687 from yangdongsheng/ceph-disk_nargs
Loic Dachary [Tue, 23 Feb 2016 05:08:46 +0000 (12:08 +0700)]
Merge pull request #7687 from yangdongsheng/ceph-disk_nargs

ceph-disk: make some arguments as required if necessary

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #7640 from batrick/vstart-btrfs-missing
Sage Weil [Tue, 23 Feb 2016 02:59:28 +0000 (21:59 -0500)]
Merge pull request #7640 from batrick/vstart-btrfs-missing

vstart.sh: silence a harmless msg where btrfs is not found

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7737 from trociny/wip-librados_test_stub-debug 7770/head
Jason Dillaman [Mon, 22 Feb 2016 17:37:33 +0000 (12:37 -0500)]
Merge pull request #7737 from trociny/wip-librados_test_stub-debug

test: more debug logging for TestWatchNotify

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7714 from SUSE/wip-qa-typo
Sage Weil [Mon, 22 Feb 2016 17:36:42 +0000 (12:36 -0500)]
Merge pull request #7714 from SUSE/wip-qa-typo

doc: standardize @param (not @parma, @parmam, @params)

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agoMerge pull request #7738 from trociny/test-librbd-poolname
Jason Dillaman [Mon, 22 Feb 2016 17:36:01 +0000 (12:36 -0500)]
Merge pull request #7738 from trociny/test-librbd-poolname

test: create pools for rbd tests with different prefix

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7727 from jmunhoz/ceph-fix-14829
Sage Weil [Mon, 22 Feb 2016 17:29:47 +0000 (12:29 -0500)]
Merge pull request #7727 from jmunhoz/ceph-fix-14829

vstart.sh: avoid race condition starting rgw via vstart.sh

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7614 from trociny/wip-rbd-mirroring-image-reply
Jason Dillaman [Mon, 22 Feb 2016 16:47:49 +0000 (11:47 -0500)]
Merge pull request #7614 from trociny/wip-rbd-mirroring-image-reply

rbd-mirror: implement ImageReplayer

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7744 from dachary/wip-14838-ceph-disk-dmcrypt
Loic Dachary [Mon, 22 Feb 2016 16:07:35 +0000 (23:07 +0700)]
Merge pull request #7744 from dachary/wip-14838-ceph-disk-dmcrypt

ceph-disk: s/dmcrpyt/dmcrypt/

Reviewed-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph-disk: s/dmcrpyt/dmcrypt/ 7744/head
Loic Dachary [Mon, 22 Feb 2016 16:02:46 +0000 (23:02 +0700)]
ceph-disk: s/dmcrpyt/dmcrypt/

http://tracker.ceph.com/issues/14838 Fixes: #14838

Signed-off-by: Frode Sandholtbraaten <fsa@basefarm.no>
Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #7688 from tchaikov/wip-14788
Kefu Chai [Mon, 22 Feb 2016 14:42:41 +0000 (22:42 +0800)]
Merge pull request #7688 from tchaikov/wip-14788

buffer: hide iterator_impl symbols

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agotest: create pools for rbd tests with different prefix 7738/head
Mykola Golub [Mon, 22 Feb 2016 06:47:40 +0000 (08:47 +0200)]
test: create pools for rbd tests with different prefix

This makes easier to find out what test fails to cleanup.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #7723 from tchaikov/wip-rgw-test
Loic Dachary [Mon, 22 Feb 2016 05:44:14 +0000 (12:44 +0700)]
Merge pull request #7723 from tchaikov/wip-rgw-test

test/radosgw-admin: update the expected usage outputs

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agotest_rados_watch_notify: add async_watch_flush tests
Haomai Wang [Fri, 19 Feb 2016 04:13:58 +0000 (12:13 +0800)]
test_rados_watch_notify: add async_watch_flush tests

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #7647 from yuyuyu101/wip-spdk
Kefu Chai [Sun, 21 Feb 2016 11:30:25 +0000 (19:30 +0800)]
Merge pull request #7647 from yuyuyu101/wip-spdk

NVMEDevice: refactor probe/attach codes and support zero command

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agotest: more debug for TestWatchNotify 7737/head
Mykola Golub [Sat, 20 Feb 2016 20:48:48 +0000 (22:48 +0200)]
test: more debug for TestWatchNotify

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoNVMEDevice: accept spdk api name changes 7647/head
Haomai Wang [Sun, 21 Feb 2016 10:43:02 +0000 (18:43 +0800)]
NVMEDevice: accept spdk api name changes

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agospdk: update spdk submodule to accept new interface changes
Haomai Wang [Sun, 21 Feb 2016 10:38:11 +0000 (18:38 +0800)]
spdk: update spdk submodule to accept new interface changes

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoNVMEDevice: add default constructor for Task and clean up
Haomai Wang [Sun, 21 Feb 2016 10:33:24 +0000 (18:33 +0800)]
NVMEDevice: add default constructor for Task and clean up

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoNVMEDevice: only activate zero command when backend supported
Haomai Wang [Mon, 15 Feb 2016 05:54:03 +0000 (13:54 +0800)]
NVMEDevice: only activate zero command when backend supported

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoBlockDevice: detect symbol file basename
Haomai Wang [Fri, 12 Feb 2016 17:19:58 +0000 (01:19 +0800)]
BlockDevice: detect symbol file basename

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoBlueStore: fix spdk link file create failed
Haomai Wang [Fri, 12 Feb 2016 15:34:14 +0000 (23:34 +0800)]
BlueStore: fix spdk link file create failed

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoNVMEDevice: fix atomic and lock changes
Haomai Wang [Fri, 12 Feb 2016 13:37:52 +0000 (21:37 +0800)]
NVMEDevice: fix atomic and lock changes

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoNVMEDevice: use nvme_probe to simply init
Haomai Wang [Sun, 7 Feb 2016 10:51:14 +0000 (18:51 +0800)]
NVMEDevice: use nvme_probe to simply init

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agospdk: update spdk submodule
Haomai Wang [Sun, 7 Feb 2016 07:06:39 +0000 (15:06 +0800)]
spdk: update spdk submodule

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoNVMEDevice: use nvme zero command instead of writing zero
Haomai Wang [Sun, 7 Feb 2016 06:57:13 +0000 (14:57 +0800)]
NVMEDevice: use nvme zero command instead of writing zero

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoNVMEDevice: cleanup task iterator process
Haomai Wang [Sun, 7 Feb 2016 06:46:51 +0000 (14:46 +0800)]
NVMEDevice: cleanup task iterator process

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agovstart.sh: avoid race condition starting rgw via vstart.sh 7727/head
Javier M. Mellid [Sat, 20 Feb 2016 17:33:21 +0000 (17:33 +0000)]
vstart.sh: avoid race condition starting rgw via vstart.sh

In slow environments running vstart.sh hits a race condition setting up
the rgw server. Creating the S3 and Swift users before booting rgw
avoids the issue.

Fixes: #14829
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
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 agotest: rbd-mirror: add tool to test ImageReplayer 7614/head
Mykola Golub [Sat, 13 Feb 2016 07:29:07 +0000 (09:29 +0200)]
test: rbd-mirror: add tool to test ImageReplayer

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agotest: rbd-mirror: add ImageReplayer tests
Mykola Golub [Sat, 13 Feb 2016 07:26:06 +0000 (09:26 +0200)]
test: rbd-mirror: add ImageReplayer tests

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agorbd-mirror: implement ImageReplayer
Mykola Golub [Sat, 13 Feb 2016 07:22:28 +0000 (09:22 +0200)]
rbd-mirror: implement ImageReplayer

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agolibrados: add async_watch_flush api
Haomai Wang [Fri, 19 Feb 2016 03:39:28 +0000 (11:39 +0800)]
librados: add async_watch_flush api

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoRadosClient: add async watch_flush version
Haomai Wang [Fri, 19 Feb 2016 03:26:45 +0000 (11:26 +0800)]
RadosClient: add async watch_flush version

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoObjecter: make linger_callback_flush accept context instead of blocking
Haomai Wang [Fri, 19 Feb 2016 03:11:26 +0000 (11:11 +0800)]
Objecter: make linger_callback_flush accept context instead of blocking

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agolibrados: add C api impl and tracing codes
Haomai Wang [Tue, 16 Feb 2016 02:38:52 +0000 (10:38 +0800)]
librados: add C api impl and tracing codes

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agolibrados: remove unused variables
Haomai Wang [Mon, 15 Feb 2016 10:11:37 +0000 (18:11 +0800)]
librados: remove unused variables

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agotest: add aio_unwatch unittest
Haomai Wang [Mon, 15 Feb 2016 09:33:56 +0000 (17:33 +0800)]
test: add aio_unwatch unittest

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agolibrados: support aio_unwatch api
Haomai Wang [Mon, 15 Feb 2016 09:31:12 +0000 (17:31 +0800)]
librados: support aio_unwatch api

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agolibrados: add unittest for rados aio watch
Haomai Wang [Mon, 15 Feb 2016 09:25:38 +0000 (17:25 +0800)]
librados: add unittest for rados aio watch

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agolibrados: add async watch api
Haomai Wang [Mon, 15 Feb 2016 09:16:59 +0000 (17:16 +0800)]
librados: add async watch api

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agojournal: wrappers to get journal metadata
Mykola Golub [Sat, 13 Feb 2016 07:14:28 +0000 (09:14 +0200)]
journal: wrappers to get journal metadata

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agolibrbd: allow to use journal replay externally
Mykola Golub [Sat, 13 Feb 2016 07:10:46 +0000 (09:10 +0200)]
librbd: allow to use journal replay externally

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agocls::journal: don't print client data
Mykola Golub [Sun, 7 Feb 2016 10:50:24 +0000 (12:50 +0200)]
cls::journal: don't print client data

It makes `rbd journal status` output look ugly.

It is a temporary solution and is going to be improved in
the future (it could be useful to see data but decoded).

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agotest/bufferlist:Add test case for bufferlist::is_provided_buffer. 7548/head
Jianpeng Ma [Fri, 7 Aug 2015 05:12:36 +0000 (13:12 +0800)]
test/bufferlist:Add test case for  bufferlist::is_provided_buffer.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
9 years agoStriper: Add function 'assemble_result(CephContext *cct, char *buffer, size_t len...
Jianpeng Ma [Mon, 19 Jan 2015 03:51:40 +0000 (11:51 +0800)]
Striper: Add function 'assemble_result(CephContext *cct, char *buffer, size_t len)' in StripedReadResult.

For sparse read, it can avoid copying zero around.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
9 years agoStriper: Add total_intended_len in StripedReadResult
Jianpeng Ma [Mon, 19 Jan 2015 02:15:59 +0000 (10:15 +0800)]
Striper: Add total_intended_len in StripedReadResult

Using this field record the total len which we wanted.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
9 years agoosdc/objectCacher: Remove the unsed field.
Jianpeng Ma [Fri, 7 Aug 2015 05:18:11 +0000 (13:18 +0800)]
osdc/objectCacher: Remove the unsed field.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
9 years agobufferlist: Add new func is_provided_buffer(const char *dst)
Jianpeng Ma [Tue, 20 Jan 2015 02:40:11 +0000 (10:40 +0800)]
bufferlist: Add new func is_provided_buffer(const char *dst)

Using this function to judge whether copy data from bufferlist to
dst. It mainly used librados C interface to avoid copy data from librados
to caller.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
9 years agoMerge pull request #7627 from dillaman/wip-librbd-read-replay
Josh Durgin [Sat, 20 Feb 2016 00:51:07 +0000 (16:51 -0800)]
Merge pull request #7627 from dillaman/wip-librbd-read-replay

librbd: block read requests until journal replayed

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7718 from dillaman/wip-librbd-mirror-peer
Josh Durgin [Sat, 20 Feb 2016 00:50:44 +0000 (16:50 -0800)]
Merge pull request #7718 from dillaman/wip-librbd-mirror-peer

librbd: update of mirror pool mode and mirror peer handling

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7698 from dillaman/wip-librbd-replay-flush
Josh Durgin [Sat, 20 Feb 2016 00:50:19 +0000 (16:50 -0800)]
Merge pull request #7698 from dillaman/wip-librbd-replay-flush

librbd: differentiate journal replay flush vs shut down

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7720 from ceph/wip-rgw-aws4
Yehuda Sadeh [Sat, 20 Feb 2016 00:14:06 +0000 (16:14 -0800)]
Merge pull request #7720 from ceph/wip-rgw-aws4

rgw support for aws authentication v4 (Javier M. Mellid)

9 years agoMerge remote-tracking branch 'jmunhoz/wip-aws4' into wip-aws4 7720/head
Yehuda Sadeh [Fri, 19 Feb 2016 22:34:13 +0000 (14:34 -0800)]
Merge remote-tracking branch 'jmunhoz/wip-aws4' into wip-aws4

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Conflicts:
src/rgw/rgw_auth_s3.h
src/rgw/rgw_client_io.cc
src/rgw/rgw_client_io.h
src/rgw/rgw_common.h
src/rgw/rgw_main.cc
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest.cc
src/rgw/rgw_rest_metadata.cc
src/rgw/rgw_rest_s3.cc

9 years agoMerge pull request #7719 from ceph/wip-rgw-keystone-v3
Yehuda Sadeh [Fri, 19 Feb 2016 21:42:30 +0000 (13:42 -0800)]
Merge pull request #7719 from ceph/wip-rgw-keystone-v3

rgw keystone v3 (Mark Barnes, Radoslaw Zarzynski)

support for keystone v3

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agolibrbd: update mirror peer data structure 7718/head
Jason Dillaman [Fri, 19 Feb 2016 20:29:32 +0000 (15:29 -0500)]
librbd: update mirror peer data structure

Replace cluster uuid with mirror peer uuid and support an
optional pool id within a peer (when using internal APIs
for testing).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: support image and pool-level mirroring modes
Jason Dillaman [Thu, 18 Feb 2016 20:43:59 +0000 (15:43 -0500)]
librbd: support image and pool-level mirroring modes

If pool-level mirroring is enabled, all journaled images within
the pool are eligible for mirroring.  If image-level mirroring
is enabled, mirroring needs to be explicitly enabled on each
image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorgw: Keystone token parsing doesn't need to know API version. 7719/head
Radoslaw Zarzynski [Mon, 8 Feb 2016 15:41:36 +0000 (16:41 +0100)]
rgw: Keystone token parsing doesn't need to know API version.

This patch targets an issue with S3Extension in Keystone:
requested tokens always conform to Keystone API v2 - regardless
of the version used to make the request.

Previous implementation of KeystoneToken::parse() as well
as KeystoneToken::decode_json() had to know the API version
explicitly. Thus, they might be affected in the future by
changes in S3-compatibility middleware of Keystone.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: S3 always must use token format of Keystone v2.
Radoslaw Zarzynski [Fri, 5 Feb 2016 15:07:17 +0000 (16:07 +0100)]
rgw: S3 always must use token format of Keystone v2.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: Keystone token parsing should fail on misformed JSONs.
Radoslaw Zarzynski [Fri, 5 Feb 2016 14:59:38 +0000 (15:59 +0100)]
rgw: Keystone token parsing should fail on misformed JSONs.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: improve debugs in RGWPostHTTPData.
Radoslaw Zarzynski [Thu, 4 Feb 2016 12:42:01 +0000 (13:42 +0100)]
rgw: improve debugs in RGWPostHTTPData.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: ONLY formatting improvements for Keystone-related code.
Radoslaw Zarzynski [Wed, 3 Feb 2016 16:09:46 +0000 (17:09 +0100)]
rgw: ONLY formatting improvements for Keystone-related code.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: handle Keystone API version with dedicated enum.
Radoslaw Zarzynski [Wed, 3 Feb 2016 18:38:25 +0000 (19:38 +0100)]
rgw: handle Keystone API version with dedicated enum.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: fix wrong format of admin token request in Keystone v3.
Radoslaw Zarzynski [Fri, 5 Feb 2016 12:33:03 +0000 (13:33 +0100)]
rgw: fix wrong format of admin token request in Keystone v3.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: rework serialization in token retrieval for Keystone's admin.
Radoslaw Zarzynski [Wed, 3 Feb 2016 15:59:50 +0000 (16:59 +0100)]
rgw: rework serialization in token retrieval for Keystone's admin.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: fix Keystone v2 regression in role's JSON parsing
Radoslaw Zarzynski [Wed, 3 Feb 2016 15:57:19 +0000 (16:57 +0100)]
rgw: fix Keystone v2 regression in role's JSON parsing

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: accommodate Keystone v3 in S3-related auth mechanisms.
Radoslaw Zarzynski [Tue, 2 Feb 2016 18:00:04 +0000 (19:00 +0100)]
rgw: accommodate Keystone v3 in S3-related auth mechanisms.

This patch is based on changes proposed by Mark Barnes
<mark.barnes@ocado.com> (lperiquito) in commit
af71f6a518529ea6cccb25bd46da2b6d1458c1da.

Signed-off-by: Mark Barnes <mark.barnes@ocado.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: accommodate Keystone v3 in RGWSwift class.
Radoslaw Zarzynski [Tue, 2 Feb 2016 16:25:26 +0000 (17:25 +0100)]
rgw: accommodate Keystone v3 in RGWSwift class.

This patch is based on changes proposed by Mark Barnes
<mark.barnes@ocado.com> (lperiquito) in commit
af71f6a518529ea6cccb25bd46da2b6d1458c1da.

Signed-off-by: Mark Barnes <mark.barnes@ocado.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: basic data structures for Keystone v3.
Radoslaw Zarzynski [Tue, 2 Feb 2016 16:05:23 +0000 (17:05 +0100)]
rgw: basic data structures for Keystone v3.

The change has been extracted from changeset proposed
in commit af71f6a518529ea6cccb25bd46da2b6d1458c1da by
Mark Barnes <mark.barnes@ocado.com> (lperiquito).

Signed-off-by: Mark Barnes <mark.barnes@ocado.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: unify RGWValidateKeystoneToken with RGWPostHTTPData.
Luis Periquito [Tue, 2 Feb 2016 15:46:37 +0000 (16:46 +0100)]
rgw: unify RGWValidateKeystoneToken with RGWPostHTTPData.

The change has been extracted from changeset proposed
in commit af71f6a518529ea6cccb25bd46da2b6d1458c1da by
Mark Barnes <mark.barnes@ocado.com> (lperiquito).

Signed-off-by: Mark Barnes <mark.barnes@ocado.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: make RGWPostHTTPData able to extract X-Subject-Token.
Radoslaw Zarzynski [Tue, 2 Feb 2016 15:40:45 +0000 (16:40 +0100)]
rgw: make RGWPostHTTPData able to extract X-Subject-Token.

The change has been extracted from changeset proposed
in commit af71f6a518529ea6cccb25bd46da2b6d1458c1da by
Mark Barnes <mark.barnes@ocado.com> (lperiquito).

Signed-off-by: Mark Barnes <mark.barnes@ocado.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoPendingReleaseNotes: document the dropped buffer symbols 7688/head
Kefu Chai [Fri, 19 Feb 2016 17:12:51 +0000 (01:12 +0800)]
PendingReleaseNotes: document the dropped buffer symbols

the symbols of buffer::list::iterator_impl<> were wrongly exposed
in previous infernalis release, and the clients linked against
librados are very likely using them. so we need to document this
change.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agobuffer: hide iterator_impl symbols
Kefu Chai [Thu, 18 Feb 2016 07:47:16 +0000 (23:47 -0800)]
buffer: hide iterator_impl symbols

buffer::list::iterator_impl symbols are referenced by const_iterator
and iterator, and are exposed as weak symbols. if a source file is
compiled using the buffer.h, the produced object file will reference
these symbols as well, so we'd better hiding them and avoid using
them in the header file.
as a side-effect, buffer::list::const_iterator is also hidden, but
currently we don't have any librados client using this class, so
we can just leave it as an internal class at this moment.

Fixes: #14788
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agolibrbd: read ops require journal replay 7627/head
Jason Dillaman [Fri, 12 Feb 2016 18:22:58 +0000 (13:22 -0500)]
librbd: read ops require journal replay

When journaling is enabled, a read op should acquire the exclusive
lock and replay the journal in case uncommitted writes are stored
in the journal.

Signed-off-by: Jason Dillaman <dillaman@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>