]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years ago12.0.0 v12.0.0
Jenkins Build Slave User [Wed, 8 Feb 2017 13:57:33 +0000 (13:57 +0000)]
12.0.0

8 years agoMerge pull request #12979 from theanalyst/scripts/release-notes-tracker
Loic Dachary [Mon, 6 Feb 2017 17:03:55 +0000 (18:03 +0100)]
Merge pull request #12979 from theanalyst/scripts/release-notes-tracker

script: ceph-release-notes check orig. issue only for backports

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #13277 from jan--f/janf-teuth-cloud-doc
Nathan Cutler [Mon, 6 Feb 2017 17:00:26 +0000 (18:00 +0100)]
Merge pull request #13277 from jan--f/janf-teuth-cloud-doc

doc: minor change to a cloud testing paragraph

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13275 from idryomov/wip-require-osd-features-fix
Sage Weil [Mon, 6 Feb 2017 16:44:39 +0000 (10:44 -0600)]
Merge pull request #13275 from idryomov/wip-require-osd-features-fix

osd/OSDMap: require OSD features only of OSDs

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agodoc: minor change to a cloud testing paragraph 13277/head
Jan Fajerski [Mon, 23 Jan 2017 14:52:52 +0000 (15:52 +0100)]
doc: minor change to a cloud testing paragraph

Use terminate for the instances to match the terminology used by the
horizon interface.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
8 years agoMerge pull request #13256 from dongbula/correct-cached_crc-comment 13064/head
Sage Weil [Mon, 6 Feb 2017 15:15:43 +0000 (09:15 -0600)]
Merge pull request #13256 from dongbula/correct-cached_crc-comment

osd: correct comment of perfcounter cached_crc in code

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13220 from rzarzynski/wip-rgw-18364-2
Casey Bodley [Mon, 6 Feb 2017 14:56:03 +0000 (09:56 -0500)]
Merge pull request #13220 from rzarzynski/wip-rgw-18364-2

rgw: be aware abount tenants on cls_user_bucket -> rgw_bucket conversion

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #12993 from jcsp/wip-cephfs-doc-authcaps
John Spray [Mon, 6 Feb 2017 12:59:22 +0000 (12:59 +0000)]
Merge pull request #12993 from jcsp/wip-cephfs-doc-authcaps

doc: clarify the path restriction mds cap example

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #13242 from Jing-Scott/dev/fix-swift-anon-getobj-error-code
Radoslaw Zarzynski [Mon, 6 Feb 2017 12:42:00 +0000 (13:42 +0100)]
Merge pull request #13242 from Jing-Scott/dev/fix-swift-anon-getobj-error-code

rgw: swift: fix anonymous user's error code of getting object

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoosd/OSDMap: require OSD features only of OSDs 13275/head
Ilya Dryomov [Mon, 6 Feb 2017 11:51:05 +0000 (12:51 +0100)]
osd/OSDMap: require OSD features only of OSDs

Fix up commit 1a5cc32f0a3b ("osd/OSDMap: reflect REQUIRE_*_OSDS flag in
required features") -- require_*_osds shouldn't affect older clients.

Fixes: http://tracker.ceph.com/issues/18831
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
8 years agoMerge pull request #13271 from Liuchang0812/fix-file-description-leak
Haomai Wang [Mon, 6 Feb 2017 12:16:19 +0000 (20:16 +0800)]
Merge pull request #13271 from Liuchang0812/fix-file-description-leak

msg/async: fix file description leak in NetHandler

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async: fix file description leak in NetHandler 13271/head
liuchang0812 [Mon, 6 Feb 2017 11:09:23 +0000 (19:09 +0800)]
msg/async: fix file description leak in NetHandler

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agorgw: swift: fix anonymous user's error code of getting object 13242/head
Jing Wenjun [Fri, 3 Feb 2017 11:06:31 +0000 (19:06 +0800)]
rgw: swift: fix anonymous user's error code of getting object

The openstack swift will return 401 rather than 403 when
the anon user has no permission to get objects.

Fixes: http://tracker.ceph.com/issues/18806
Signed-off-by: Jing Wenjun <jingwenjun@cmss.chinamobile.com>
8 years agoMerge pull request #13237 from smithfarm/wip-18799
Sage Weil [Sun, 5 Feb 2017 18:49:30 +0000 (12:49 -0600)]
Merge pull request #13237 from smithfarm/wip-18799

tests: Thrasher: eliminate a race between kill_osd and __init__

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13263 from Adirl/fix_log_spaces
Haomai Wang [Sun, 5 Feb 2017 12:40:58 +0000 (20:40 +0800)]
Merge pull request #13263 from Adirl/fix_log_spaces

msg/async/rdma: fix log line spacing

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13257 from tchaikov/wip-less-verbose-ceph-helper
Kefu Chai [Sat, 4 Feb 2017 12:15:34 +0000 (20:15 +0800)]
Merge pull request #13257 from tchaikov/wip-less-verbose-ceph-helper

tests: ceph-helpers.sh reduce get_timeout_delays() verbosity

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agotests: ceph-helpers.sh reduce get_timeout_delays() verbosity 13257/head
Kefu Chai [Sat, 4 Feb 2017 06:28:59 +0000 (14:28 +0800)]
tests: ceph-helpers.sh reduce get_timeout_delays() verbosity

`set +o` prints out the full command line which is echoed if "xtrace" is
enabled. this increases the verbosity of get_timeout_delays().
in this change, we follow the way of kill_daemons() to kill the extra
output. see aefcf6d.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoosd: correct comment of perfcounter cached_crc in code 13256/head
lvshuhua [Sat, 4 Feb 2017 09:09:20 +0000 (17:09 +0800)]
osd: correct comment of perfcounter cached_crc in code

Signed-off-by: lvshuhua <lvshuhua@cmss.chinamobile.com>
8 years agoMerge pull request #13080 from yuyuyu101/wip-async-fd
Haomai Wang [Sat, 4 Feb 2017 03:37:27 +0000 (11:37 +0800)]
Merge pull request #13080 from yuyuyu101/wip-async-fd

msg/async/AsyncConnection: socket's fd can be zero, avoid false assert

Reviewed-by: Kefu Chai <kefu@redhat.com>
8 years agoMerge pull request #13251 from scuttlemonkey/master
Sage Weil [Fri, 3 Feb 2017 22:42:36 +0000 (16:42 -0600)]
Merge pull request #13251 from scuttlemonkey/master

script: adding contributor credits script

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #9396 from songbaisen/doc2
Sage Weil [Fri, 3 Feb 2017 22:24:59 +0000 (16:24 -0600)]
Merge pull request #9396 from songbaisen/doc2

doc: fix the librados c api can not compile problem

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13252 from linuxbox2/wip-rgw-setattr
Matt Benjamin [Fri, 3 Feb 2017 19:47:20 +0000 (14:47 -0500)]
Merge pull request #13252 from linuxbox2/wip-rgw-setattr

rgw_file:  fix RGWLibFS::setattr for directory objects

8 years agorgw_file: fix RGWLibFS::setattr for directory objects 13252/head
Matt Benjamin [Fri, 3 Feb 2017 18:44:45 +0000 (13:44 -0500)]
rgw_file:  fix RGWLibFS::setattr for directory objects

Fixes: http://tracker.ceph.com/issues/18808
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #13147 from yehudasa/wip-18331
Matt Benjamin [Fri, 3 Feb 2017 16:57:23 +0000 (11:57 -0500)]
Merge pull request #13147 from yehudasa/wip-18331

rgw: fix use of marker in List::list_objects()

8 years agoMerge pull request #12023 from yuyuyu101/wip-msgr-type
Yuri Weinstein [Fri, 3 Feb 2017 16:50:14 +0000 (08:50 -0800)]
Merge pull request #12023 from yuyuyu101/wip-msgr-type

msg: allow different ms type for cluster network and public network

Reviewed-by: Adir Lev <adirl@mellanox.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13114 from liewegas/wip-osdmap-required-features
Yuri Weinstein [Fri, 3 Feb 2017 16:44:46 +0000 (08:44 -0800)]
Merge pull request #13114 from liewegas/wip-osdmap-required-features

osd: condition object_info_t encoding on required (not up) features

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13206 from liewegas/wip-osd-enxio
Yuri Weinstein [Fri, 3 Feb 2017 16:43:08 +0000 (08:43 -0800)]
Merge pull request #13206 from liewegas/wip-osd-enxio

osd: do not send ENXIO on misdirected op by default

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13213 from ovh/bp-osd-updateable-throttles
Yuri Weinstein [Fri, 3 Feb 2017 16:41:00 +0000 (08:41 -0800)]
Merge pull request #13213 from ovh/bp-osd-updateable-throttles

osd: allow client throttler to be adjusted on-fly, without restart

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13063 from ovh/wip-mailmap-ovh-contributors
Loic Dachary [Fri, 3 Feb 2017 16:21:19 +0000 (17:21 +0100)]
Merge pull request #13063 from ovh/wip-mailmap-ovh-contributors

mailmap: Update OVH contributors

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoadding contributor credits script 13251/head
scuttlemonkey [Fri, 3 Feb 2017 16:16:59 +0000 (17:16 +0100)]
adding contributor credits script

Signed-off-by: Patrick McGarry <pmcgarry@redhat.com>
8 years agoMerge pull request #13223 from wjwithagen/wip-wjw-freebsd-sphynx
Kefu Chai [Fri, 3 Feb 2017 14:01:41 +0000 (22:01 +0800)]
Merge pull request #13223 from wjwithagen/wip-wjw-freebsd-sphynx

build/install-deps.sh: Add sphinx package for building docs on FreeBSD

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11448 from ledgr/change/mount_fuse_ceph_options_in_fs_mntops_and_...
John Spray [Fri, 3 Feb 2017 11:30:46 +0000 (12:30 +0100)]
Merge pull request #11448 from ledgr/change/mount_fuse_ceph_options_in_fs_mntops_and_python

Rewrite mount.fuse.ceph (to python) and move ceph-fuse options to fs_mntops

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #13194 from smithfarm/wip-16263
Josh Durgin [Thu, 2 Feb 2017 23:31:29 +0000 (15:31 -0800)]
Merge pull request #13194 from smithfarm/wip-16263

tests: ignore bogus ceph-objectstore-tool error in ceph_manager

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
8 years agotests: Thrasher: eliminate a race between kill_osd and __init__ 13237/head
Nathan Cutler [Thu, 2 Feb 2017 22:23:54 +0000 (23:23 +0100)]
tests: Thrasher: eliminate a race between kill_osd and __init__

If Thrasher.__init__() spawns the do_thrash thread before initializing the
ceph_objectstore_tool property, do_thrash races with the rest
of Thrasher.__init__() and in some cases do_thrash can call kill_osd() before
Trasher.__init__() progresses much further. This can lead to an exception
("AttributeError: Thrasher instance has no attribute 'ceph_objectstore_tool'")
being thrown in kill_osd().

This commit eliminates the race by making sure the ceph_objectstore_tool
attribute is initialized before the do_thrash thread is spawned.

Fixes: http://tracker.ceph.com/issues/18799
Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13234 from ifed01/wip-bluestore-performance-sandbox2017
Sage Weil [Thu, 2 Feb 2017 22:09:57 +0000 (16:09 -0600)]
Merge pull request #13234 from ifed01/wip-bluestore-performance-sandbox2017

os/bluestore: fix potential assert in cache _trim method.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12965 from linuxbox2/wip-librgw-expand-argv
Matt Benjamin [Thu, 2 Feb 2017 20:25:08 +0000 (15:25 -0500)]
Merge pull request #12965 from linuxbox2/wip-librgw-expand-argv

rgw_file:  split last argv on ws, if provided

8 years agorgw_file: split last argv on ws, if provided 12965/head
Matt Benjamin [Tue, 17 Jan 2017 16:23:45 +0000 (11:23 -0500)]
rgw_file:  split last argv on ws, if provided

This is intended to allow an "extra" unparsed argument string
containing various cmdline options to be passed as the last argument
in the argv array of librgw_create(), which nfs-ganesha is
expecting to happen.

While at it, hook env_args() too.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: be aware abount tenants on cls_user_bucket -> rgw_bucket conversion. 13220/head
Radoslaw Zarzynski [Wed, 1 Feb 2017 18:05:50 +0000 (19:05 +0100)]
rgw: be aware abount tenants on cls_user_bucket -> rgw_bucket conversion.

Fixes: http://tracker.ceph.com/issues/18364
Fixes: http://tracker.ceph.com/issues/16355
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agomailmap: Update OVH contributors 13063/head
Bartłomiej Święcki [Mon, 23 Jan 2017 11:41:27 +0000 (12:41 +0100)]
mailmap: Update OVH contributors

Signed-off-by: Bartłomiej Święcki <bartlomiej.swiecki@corp.ovh.com>
8 years agoMerge pull request #12335 from theanalyst/mailmap/v11.1.0
Loic Dachary [Thu, 2 Feb 2017 15:46:05 +0000 (16:46 +0100)]
Merge pull request #12335 from theanalyst/mailmap/v11.1.0

mailmap updates for v11.1.0

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoceph_test_objectstore: match clone_range src and dst offset
Sage Weil [Thu, 2 Feb 2017 15:11:11 +0000 (10:11 -0500)]
ceph_test_objectstore: match clone_range src and dst offset

This is what the OSD does, and BlueStore doesn't necessarily handle
all combinations of different offsets.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13211 from liewegas/wip-clone-offsets
Sage Weil [Thu, 2 Feb 2017 15:08:05 +0000 (09:08 -0600)]
Merge pull request #13211 from liewegas/wip-clone-offsets

ceph_test_objectstore: match clone_range src and dst offset

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #12904 from ifed01/wip-bluestore-onode-refmap3
Sage Weil [Thu, 2 Feb 2017 14:56:31 +0000 (08:56 -0600)]
Merge pull request #12904 from ifed01/wip-bluestore-onode-refmap3

os/bluestore: replace Blob ref_map with reference counting

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13192 from liewegas/wip-bluestore-min-alloc-size
Sage Weil [Thu, 2 Feb 2017 14:56:09 +0000 (08:56 -0600)]
Merge pull request #13192 from liewegas/wip-bluestore-min-alloc-size

os/bluestore: fix min_alloc_size at mkfs time

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: fix potential assert in cache _trim method. 13234/head
Igor Fedotov [Thu, 2 Feb 2017 13:10:01 +0000 (13:10 +0000)]
os/bluestore: fix potential assert in cache _trim method.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agomsg/async/rdma: fix log line spacing 13263/head
Adir Lev [Thu, 2 Feb 2017 08:53:08 +0000 (10:53 +0200)]
msg/async/rdma: fix log line spacing

issue: none

Change-Id: Ieef3284ee673f012331d21fffcb499e22473f62a
Signed-off-by: Adir Lev <adirl@mellanox.com>
8 years agoOSD: allow client throttler to be adjusted on-fly, without restart 13213/head
Piotr Dałek [Tue, 31 Jan 2017 15:07:18 +0000 (16:07 +0100)]
OSD: allow client throttler to be adjusted on-fly, without restart

This patch allows the osd_client_message_cap and
osd_client_message_size_cap to be adjusted on-fly, using admin socket
functionality.

Fixes: http://tracker.ceph.com/issues/18791
Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
8 years agoceph_mds: adopt ms public type 12023/head
Haomai Wang [Thu, 2 Feb 2017 08:22:04 +0000 (16:22 +0800)]
ceph_mds: adopt ms public type

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13158 from dillaman/wip-18594
Mykola Golub [Thu, 2 Feb 2017 06:27:49 +0000 (08:27 +0200)]
Merge pull request #13158 from dillaman/wip-18594

qa: integrate OpenStack 'gate-tempest-dsvm-full-devstack-plugin-ceph'

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #13225 from tmuthamizhan/wip-ansible-m
Yuri Weinstein [Thu, 2 Feb 2017 03:50:30 +0000 (19:50 -0800)]
Merge pull request #13225 from tmuthamizhan/wip-ansible-m

qa: do not mention ceph branch explicitly

8 years agodo not mention ceph branch explicitly 13225/head
Tamil Muthamizhan [Thu, 2 Feb 2017 00:47:01 +0000 (16:47 -0800)]
do not mention ceph branch explicitly

no need to mention ceph_dev_branch explicitly. it will be taken from the
ceph branch value mentioned in the teuthology-suite command

Signed-off-by: Tamil Muthamizhan <tmuthami@redhat.com>
8 years agobuild/install-deps.sh: Add sphinx package for DOCS 13223/head
Willem Jan Withagen [Wed, 1 Feb 2017 22:04:48 +0000 (23:04 +0100)]
build/install-deps.sh: Add sphinx package for DOCS

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #13009 from liewegas/wip-mempool-bloom-filter
Sage Weil [Wed, 1 Feb 2017 21:23:55 +0000 (15:23 -0600)]
Merge pull request #13009 from liewegas/wip-mempool-bloom-filter

mempool: put bloom_filter in mempool

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13136 from liewegas/wip-scrub-waitlist
Sage Weil [Wed, 1 Feb 2017 20:49:46 +0000 (14:49 -0600)]
Merge pull request #13136 from liewegas/wip-scrub-waitlist

osd: use separate waitlist for scrub

Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #12104 from pritha-srivastava/wip_sts_role_rest
Adam C. Emerson [Wed, 1 Feb 2017 19:01:49 +0000 (14:01 -0500)]
Merge pull request #12104 from pritha-srivastava/wip_sts_role_rest

rgw: Added code for REST APIs for AWS Roles.

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13189 from gaurav36/bug-18326-image-rename-non-rbd-pool
Jason Dillaman [Wed, 1 Feb 2017 17:47:01 +0000 (12:47 -0500)]
Merge pull request #13189 from gaurav36/bug-18326-image-rename-non-rbd-pool

rbd: destination pool should be source pool if it is not specified

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12948 from trociny/wip-17020
Jason Dillaman [Wed, 1 Feb 2017 16:17:23 +0000 (11:17 -0500)]
Merge pull request #12948 from trociny/wip-17020

rbd-mirror: add support for active/passive daemon instances

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13013 from wangzhengyong/master
Sage Weil [Wed, 1 Feb 2017 14:55:22 +0000 (08:55 -0600)]
Merge pull request #13013 from wangzhengyong/master

os/bluestore: remove no use parameter in bluestore_blob_t::map_bl

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12782 from atheism/rgw-orphan-fix-error-messages
Sage Weil [Wed, 1 Feb 2017 14:49:09 +0000 (08:49 -0600)]
Merge pull request #12782 from atheism/rgw-orphan-fix-error-messages

rgw: orphan: fix error messages

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13199 from chipitsine/master
Sage Weil [Wed, 1 Feb 2017 14:46:59 +0000 (08:46 -0600)]
Merge pull request #13199 from chipitsine/master

mds,mon: Clean issues detected by cppcheck

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13203 from ifed01/wip-bluestore-more-dump
Sage Weil [Wed, 1 Feb 2017 14:44:50 +0000 (08:44 -0600)]
Merge pull request #13203 from ifed01/wip-bluestore-more-dump

os: extend ObjectStore interface to dump store's performance counters

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12974 from ukernel/wip-multimds-misc
John Spray [Wed, 1 Feb 2017 13:20:48 +0000 (14:20 +0100)]
Merge pull request #12974 from ukernel/wip-multimds-misc

mds: miscellaneous fixes

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoqa/suites/rbd: add rbd-mirror-ha test 12948/head
Mykola Golub [Wed, 1 Feb 2017 07:43:49 +0000 (08:43 +0100)]
qa/suites/rbd: add rbd-mirror-ha test

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoqa/workunits/rbd: tweaks to use RBD_MIRROR_USE_EXISTING_CLUSTER locally
Mykola Golub [Mon, 12 Dec 2016 12:20:04 +0000 (14:20 +0200)]
qa/workunits/rbd: tweaks to use RBD_MIRROR_USE_EXISTING_CLUSTER locally

This var is mostly used when running rbd_mirror test scripts on
teuthology.  It can be used locally though to speedup re-running the
tests:

Set a test temp directory:

  export RBD_MIRROR_TEMDIR=/tmp/tmp.rbd_mirror

Run the tests the first time with NOCLEANUP flag (the cluster and
daemons are not stopped on finish):

  RBD_MIRROR_NOCLEANUP=1 ../qa/workunits/rbd/rbd_mirror.sh

Now, to re-run the test without restarting the cluster, run cleanup
with USE_EXISTING_CLUSTER flag:

  RBD_MIRROR_USE_EXISTING_CLUSTER=1 \
    ../qa/workunits/rbd/rbd_mirror_ha.sh cleanup

and then run the tests:

  RBD_MIRROR_USE_EXISTING_CLUSTER=1
    ../qa/workunits/rbd/rbd_mirror_ha.sh

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoqa/workunits/rbd: tests for rbd mirror HA
Mykola Golub [Mon, 10 Oct 2016 11:22:48 +0000 (14:22 +0300)]
qa/workunits/rbd: tests for rbd mirror HA

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoqa/workunits/rbd: allow to start several daemons for the same cluster
Mykola Golub [Mon, 10 Oct 2016 07:29:32 +0000 (10:29 +0300)]
qa/workunits/rbd: allow to start several daemons for the same cluster

by optionally specifyning daemon instance after cluster name and
colon, like:

  start_mirror ${cluster}:${instance}

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-mirror HA: pool replayer should be started/stopped when lock acquired/released
Mykola Golub [Sun, 15 Jan 2017 18:15:14 +0000 (19:15 +0100)]
rbd-mirror HA: pool replayer should be started/stopped when lock acquired/released

Fixes: http://tracker.ceph.com/issues/17020
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-mirror HA: create pool locker / leader class
Mykola Golub [Mon, 23 Jan 2017 14:22:51 +0000 (15:22 +0100)]
rbd-mirror HA: create pool locker / leader class

Fixes: http://tracker.ceph.com/issues/17019
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-mirror HA: add new lock released/acquired and heartbeat messages
Mykola Golub [Mon, 23 Jan 2017 14:17:54 +0000 (15:17 +0100)]
rbd-mirror HA: add new lock released/acquired and heartbeat messages

Fixes: http://tracker.ceph.com/issues/17018
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-mirror: add class for mirror status watcher
Mykola Golub [Tue, 3 Jan 2017 10:10:01 +0000 (12:10 +0200)]
rbd-mirror: add class for mirror status watcher

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: equality operator for managed_lock::Locker
Mykola Golub [Mon, 30 Jan 2017 14:52:31 +0000 (15:52 +0100)]
librbd: equality operator for managed_lock::Locker

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: add create_async_context_callback helper
Mykola Golub [Sun, 29 Jan 2017 21:07:53 +0000 (22:07 +0100)]
librbd: add create_async_context_callback helper

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: missing const qualifiers
Mykola Golub [Wed, 25 Jan 2017 21:29:41 +0000 (22:29 +0100)]
librbd: missing const qualifiers

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: track in-fly break_lock and get_locker requests in managed lock
Mykola Golub [Tue, 24 Jan 2017 11:53:51 +0000 (12:53 +0100)]
librbd: track in-fly break_lock and get_locker requests in managed lock

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: pass notifier_id to Watcher handle_notify
Mykola Golub [Thu, 24 Nov 2016 08:11:19 +0000 (10:11 +0200)]
librbd: pass notifier_id to Watcher handle_notify

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: allow watcher derived classes access ioctx, oid and work queue
Mykola Golub [Thu, 24 Nov 2016 08:05:34 +0000 (10:05 +0200)]
librbd: allow watcher derived classes access ioctx, oid and work queue

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd: destination pool should be source pool if it is not specified 13189/head
Gaurav Kumar Garg [Mon, 30 Jan 2017 12:03:20 +0000 (13:03 +0100)]
rbd: destination pool should be source pool if it is not specified

Currently if user perform image rename operation and user give pool
name as a optional parameter (--pool=<pool_name>) then currently
its taking this optional pool name for source pool and making
destination pool name default pool name.
With this fix if user provide pool name as a optional pool name
parameter then it  will consider both soruce and destination pool
name as optional parameter pool name.

Fixes: http://tracker.ceph.com/issues/18326
Reported-by: МАРК КОРЕНБЕРГ <socketpair@gmail.com>
Signed-off-by: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
8 years agoceph_test_objectstore: match clone_range src and dst offset 13211/head
Sage Weil [Wed, 1 Feb 2017 01:51:57 +0000 (20:51 -0500)]
ceph_test_objectstore: match clone_range src and dst offset

This is what the OSD does, and BlueStore doesn't necessarily handle
all combinations of different offsets.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: do not send ENXIO on misdirected op by default 13206/head
Sage Weil [Tue, 31 Jan 2017 20:14:59 +0000 (15:14 -0500)]
osd: do not send ENXIO on misdirected op by default

In practice this tends to get bubbled up the stack as an error on
the caller, and they usually do not handle it properly.  For example,
with librbd, this turns into EIO and break the VM.

Instead, this will manifest as a hung op on the client.  That is
also not ideal, but given that the root cause here is generally a
bug, it's not clear what else would be better.

We already log an error in the cluster log, so teuthology runs will
continue to fail.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13077 from guzhongyan/fix_wrongly_init
Jason Dillaman [Tue, 31 Jan 2017 19:35:37 +0000 (14:35 -0500)]
Merge pull request #13077 from guzhongyan/fix_wrongly_init

librbd: initialize diff parent overlap to zero

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12537 from liewegas/wip-optracker
Sage Weil [Tue, 31 Jan 2017 18:54:12 +0000 (12:54 -0600)]
Merge pull request #12537 from liewegas/wip-optracker

common/TrackedOp: various cleanups and optimizations

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #13205 from dachary/wip-crush-documentation
Sage Weil [Tue, 31 Jan 2017 18:52:11 +0000 (12:52 -0600)]
Merge pull request #13205 from dachary/wip-crush-documentation

crush: API documentation

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: decode min_alloc_size into temp var 13192/head
Sage Weil [Tue, 31 Jan 2017 17:53:48 +0000 (12:53 -0500)]
os/bluestore: decode min_alloc_size into temp var

Defend against future changes to min_alloc_size.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocrush: API documentation 13205/head
Loic Dachary [Tue, 31 Jan 2017 17:33:37 +0000 (18:33 +0100)]
crush: API documentation

Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agoos/bluestore: fix min_alloc_size at mkfs time
Sage Weil [Tue, 31 Jan 2017 17:01:39 +0000 (12:01 -0500)]
os/bluestore: fix min_alloc_size at mkfs time

It is an ongoing challenge to allow min_alloc_size to be varied on
an existing bluestore instance, and the code paths are not well
tested.  Avoid the complexity entirely by fixing min_alloc_size at
mkfs time.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: add ondisk format version info to super section
Sage Weil [Tue, 31 Jan 2017 16:59:59 +0000 (11:59 -0500)]
os/bluestore: add ondisk format version info to super section

Note the version of the ondisk format and the oldest version that is
allowed to read us.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: EIO if we can't read some existing super keys
Sage Weil [Tue, 31 Jan 2017 16:59:57 +0000 (11:59 -0500)]
os/bluestore: EIO if we can't read some existing super keys

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13164 from dzafman/wip-18718
David Zafman [Tue, 31 Jan 2017 16:19:10 +0000 (08:19 -0800)]
Merge pull request #13164 from dzafman/wip-18718

osd: Fix useless MAX(0, unsigned) to prevent out of wack misplaced

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: add submit latency perf counter. 13203/head
Igor Fedotov [Tue, 31 Jan 2017 14:22:23 +0000 (14:22 +0000)]
os/bluestore: add submit latency perf counter.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agotest/fio: add performance counters dump on FIO job completion.
Igor Fedotov [Tue, 31 Jan 2017 14:19:33 +0000 (14:19 +0000)]
test/fio: add performance counters dump on FIO job completion.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos: add dump_perf_counters method to ObjectStore implementations.
Igor Fedotov [Tue, 31 Jan 2017 14:18:12 +0000 (14:18 +0000)]
os: add dump_perf_counters method to ObjectStore implementations.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: fix typos in perf counter public names.
Igor Fedotov [Tue, 31 Jan 2017 13:32:31 +0000 (13:32 +0000)]
os/bluestore: fix typos in perf counter public names.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agotest/fio: fix misordered parameter for queue_transaction.
Igor Fedotov [Tue, 31 Jan 2017 13:26:07 +0000 (13:26 +0000)]
test/fio: fix misordered parameter for queue_transaction.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #13193 from dillaman/wip-18738
Mykola Golub [Tue, 31 Jan 2017 13:53:29 +0000 (15:53 +0200)]
Merge pull request #13193 from dillaman/wip-18738

journal: stop processing removal after error

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #13069 from SUSE/wip-hammer-retirement
Jason Dillaman [Tue, 31 Jan 2017 12:56:17 +0000 (07:56 -0500)]
Merge pull request #13069 from SUSE/wip-hammer-retirement

doc: add 0.94.10 and hammer EOL to releases.rst

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoClean issues detected by cppcheck 13199/head
Ilya Shipitsin [Tue, 31 Jan 2017 12:07:39 +0000 (17:07 +0500)]
Clean issues detected by cppcheck

[src/mds/MDLog.cc:1172] -> [src/mds/MDLog.cc:1173]: (warning) Either the condition 'sle!=NULL' is redundant or there is possible null pointer dereference: sle.
[src/mon/MDSMonitor.cc:2622] -> [src/mon/MDSMonitor.cc:2625]: (warning) Either the condition 'mds_map!=nullptr' is redundant or there is possible null pointer dereference: mds_map.

Signed-off-by: Ilya Shipitsin <chipitsine@gmail.com>
8 years agoMerge pull request #13151 from smithfarm/wip-ceph-release-notes
Abhishek L [Tue, 31 Jan 2017 09:58:01 +0000 (10:58 +0100)]
Merge pull request #13151 from smithfarm/wip-ceph-release-notes

tools: ceph-release-notes: ignore low-numbered PRs

8 years agoMerge pull request #13190 from Adirl/reduce_num_buffers
Haomai Wang [Tue, 31 Jan 2017 09:50:03 +0000 (17:50 +0800)]
Merge pull request #13190 from Adirl/reduce_num_buffers

msg/async/rdma: reduce number of rdma rx/tx buffers

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13066 from liewegas/wip-aio-read
Sage Weil [Tue, 31 Jan 2017 03:43:36 +0000 (21:43 -0600)]
Merge pull request #13066 from liewegas/wip-aio-read

os/bluestore: use aio for reads

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #13071 from liewegas/wip-omap-getkeys-rados-test
Sage Weil [Tue, 31 Jan 2017 03:43:17 +0000 (21:43 -0600)]
Merge pull request #13071 from liewegas/wip-omap-getkeys-rados-test

qa/suites/rados/basic: set low omap limit for rgw workload

Reviewed-by: Josh Durgin <jdurgin@redhat.com>