]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agovstart.sh: fix init-ceph stop on vstart
Sage Weil [Fri, 24 Feb 2017 19:54:10 +0000 (14:54 -0500)]
vstart.sh: fix init-ceph stop on vstart

Do this before the old ceph.conf is deleted!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: fix init-ceph path in cmake environment
Sage Weil [Fri, 24 Feb 2017 19:27:03 +0000 (14:27 -0500)]
vstart.sh: fix init-ceph path in cmake environment

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph_common.sh: add mgr support to init-ceph
Sage Weil [Fri, 24 Feb 2017 19:11:53 +0000 (14:11 -0500)]
ceph_common.sh: add mgr support to init-ceph

This is mainly for the benefit of vstart.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agostop.sh: add 'mgr' arg
Sage Weil [Thu, 26 Jan 2017 17:06:23 +0000 (12:06 -0500)]
stop.sh: add 'mgr' arg

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: drop -r arg for radosgw, and use RGW=n instead
Sage Weil [Thu, 26 Jan 2017 17:06:11 +0000 (12:06 -0500)]
vstart.sh: drop -r arg for radosgw, and use RGW=n instead

Simpler!  The start_* vars are all stupid.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: respect CEPH_NUM_RGW
Sage Weil [Thu, 26 Jan 2017 17:05:35 +0000 (12:05 -0500)]
vstart.sh: respect CEPH_NUM_RGW

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: start 1 ceph-mgr by default
Sage Weil [Thu, 26 Jan 2017 17:02:07 +0000 (12:02 -0500)]
vstart.sh: start 1 ceph-mgr by default

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: default to -n ; add -N | --not-new for restart case
Sage Weil [Thu, 26 Jan 2017 17:01:59 +0000 (12:01 -0500)]
vstart.sh: default to -n ; add -N | --not-new for restart case

I never don't do -n; I'm guessing others are in the same boat.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13665 from xiexingguo/wip-fix-ec-op-out
Sage Weil [Mon, 27 Feb 2017 14:49:53 +0000 (08:49 -0600)]
Merge pull request #13665 from xiexingguo/wip-fix-ec-op-out

osd/ECBackend: drop duplicated pending_commit field from << operator

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13661 from dachary/wip-crush-doc
Sage Weil [Mon, 27 Feb 2017 14:47:14 +0000 (08:47 -0600)]
Merge pull request #13661 from dachary/wip-crush-doc

doc: crush typo in algorithm description

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13509 from yuyuyu101/wip-tx-zerocopy
Haomai Wang [Mon, 27 Feb 2017 09:56:52 +0000 (17:56 +0800)]
Merge pull request #13509 from yuyuyu101/wip-tx-zerocopy

msg/async/rdma: cleanup

Reviewed-by: Adir lev <adirl@mellanox.com>
8 years agoMerge pull request #13531 from LiumxNL/fix-osd-utilization
Kefu Chai [Mon, 27 Feb 2017 09:51:03 +0000 (17:51 +0800)]
Merge pull request #13531 from LiumxNL/fix-osd-utilization

mon/OSDMonitor: fix dividing by zero in OSDUtilizationDumper

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13526 from ganeshmaharaj/tp_library_fixes
Kefu Chai [Mon, 27 Feb 2017 09:50:40 +0000 (17:50 +0800)]
Merge pull request #13526 from ganeshmaharaj/tp_library_fixes

debian: Add missing tp files in deb packaging

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13553 from yonghengdexin735/wip-zzz-dbev
Kefu Chai [Mon, 27 Feb 2017 09:49:15 +0000 (17:49 +0800)]
Merge pull request #13553 from yonghengdexin735/wip-zzz-dbev

os/bluestore/BlueStore.cc:remove unuse code in _open_bdev()

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #13554 from songbaisen/s19
Kefu Chai [Mon, 27 Feb 2017 09:48:26 +0000 (17:48 +0800)]
Merge pull request #13554 from songbaisen/s19

mon:  crush straw_calc_version value is 0 or 1 not 0 to 2.

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13653 from rzarzynski/wip-bs-bitmap-fast-exhausted-check
Kefu Chai [Mon, 27 Feb 2017 09:44:18 +0000 (17:44 +0800)]
Merge pull request #13653 from rzarzynski/wip-bs-bitmap-fast-exhausted-check

os/bluestore: the exhausted check in BitMapZone can be lock-less.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13656 from tchaikov/wip-19015
Kefu Chai [Mon, 27 Feb 2017 09:42:20 +0000 (17:42 +0800)]
Merge pull request #13656 from tchaikov/wip-19015

mon/MonClient: discard stray messages from non-acitve conns

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoosd/ECBackend: drop duplicated pending_commit field from << operator 13665/head
xie xingguo [Mon, 27 Feb 2017 09:39:22 +0000 (17:39 +0800)]
osd/ECBackend: drop duplicated pending_commit field from << operator

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agomsg/async/rdma: accelerate tx/rx buffer ownership lookup 13509/head
Haomai Wang [Mon, 27 Feb 2017 08:33:39 +0000 (16:33 +0800)]
msg/async/rdma: accelerate tx/rx buffer ownership lookup

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/rdma: cleanup
Haomai Wang [Fri, 17 Feb 2017 17:02:54 +0000 (01:02 +0800)]
msg/async/rdma: cleanup

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agodoc: crush typo in algorithm description 13661/head
Loic Dachary [Mon, 27 Feb 2017 08:18:04 +0000 (09:18 +0100)]
doc: crush typo in algorithm description

Signed-off-by: Loic Dachary <ldachary@redhat.com>
8 years agomsg/async/rdma: cleanup Infiniband, remove unused functions
Haomai Wang [Mon, 20 Feb 2017 14:41:13 +0000 (22:41 +0800)]
msg/async/rdma: cleanup Infiniband, remove unused functions

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13603 from Adirl/fix_compile
Haomai Wang [Mon, 27 Feb 2017 05:55:13 +0000 (13:55 +0800)]
Merge pull request #13603 from Adirl/fix_compile

msg/async/rdma: Fix broken compilation

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13652 from liupan1111/wip-cleanup-rbd-nbd
Sage Weil [Sun, 26 Feb 2017 21:07:19 +0000 (15:07 -0600)]
Merge pull request #13652 from liupan1111/wip-cleanup-rbd-nbd

rbd-nbd: fix a typo "moudle"

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoauth/cephx: print challenges in hex 13656/head
Kefu Chai [Sun, 26 Feb 2017 16:20:06 +0000 (00:20 +0800)]
auth/cephx: print challenges in hex

this matches the CephxServiceHandler::handle_request(), hence would be
easier for debugging.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/MonClient: discard stray messages from non-acitve conns
Kefu Chai [Sun, 26 Feb 2017 16:18:09 +0000 (00:18 +0800)]
mon/MonClient: discard stray messages from non-acitve conns

Fixes: http://tracker.ceph.com/issues/19015
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13227 from ukernel/wip-multimds-misc
John Spray [Sun, 26 Feb 2017 11:16:40 +0000 (11:16 +0000)]
Merge pull request #13227 from ukernel/wip-multimds-misc

mds: misc multimds fixes

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #13648 from tchaikov/wip-doc-osd-agent-options
Kefu Chai [Sun, 26 Feb 2017 09:35:54 +0000 (17:35 +0800)]
Merge pull request #13648 from tchaikov/wip-doc-osd-agent-options

doc: document `osd-agent-{max,low}-ops` options

Reviewed-by: Zhiqiang Wang <zhiqiang@xsky.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agorbd-nbd: fix a typo "moudle" 13652/head
Pan Liu [Sun, 26 Feb 2017 04:14:15 +0000 (12:14 +0800)]
rbd-nbd: fix a typo "moudle"

Signed-off-by: Pan Liu <liupan1111@gmail.com>
8 years agodoc: document `osd-agent-{max,low}-ops` options 13648/head
Kefu Chai [Sat, 25 Feb 2017 03:16:32 +0000 (11:16 +0800)]
doc: document `osd-agent-{max,low}-ops` options

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agobluestore: the exhausted check in BitMapZone can be lock-less. 13653/head
Radoslaw Zarzynski [Sat, 25 Feb 2017 12:29:54 +0000 (13:29 +0100)]
bluestore: the exhausted check in BitMapZone can be lock-less.

Before the patch BitMapZone::is_exhausted() required from its
callers to acquire appropriate lock. However, fulfilling this
condition is not really necessary to use the method correctly
while it can significantly hurt performance.

The change allows BitMapAreaLeaf::child_check_n_lock() to not
acquire the lock while examining zones for being exhausted.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #13649 from liewegas/wip-ceph-scrub-debug
Sage Weil [Sat, 25 Feb 2017 19:15:06 +0000 (13:15 -0600)]
Merge pull request #13649 from liewegas/wip-ceph-scrub-debug

qa/tasks/ceph.py: debug which pgs aren't scrubbing

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoqa/tasks/ceph.py: debug which pgs aren't scrubbing 13649/head
Sage Weil [Fri, 24 Feb 2017 16:31:03 +0000 (11:31 -0500)]
qa/tasks/ceph.py: debug which pgs aren't scrubbing

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13478 from xiaoxichen/fix_osdc_perfcounter
Kefu Chai [Sat, 25 Feb 2017 03:00:12 +0000 (11:00 +0800)]
Merge pull request #13478 from xiaoxichen/fix_osdc_perfcounter

osdc: fix osdc_osd_seesion perf counter.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13626 from wjwithagen/wip-wjw-freebsd-enodata-fixed
Kefu Chai [Sat, 25 Feb 2017 02:28:08 +0000 (10:28 +0800)]
Merge pull request #13626 from wjwithagen/wip-wjw-freebsd-enodata-fixed

do_freebsd.sh: Remove ENODATA requirement

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13640 from zmc/wip-fs-openstack
Zack Cerza [Sat, 25 Feb 2017 00:22:04 +0000 (17:22 -0700)]
Merge pull request #13640 from zmc/wip-fs-openstack

qa/suites/fs: Add openstack volume configuration

8 years agoMerge pull request #13619 from kylinstorage/cleanup_bitallocator
Brad Hubbard [Fri, 24 Feb 2017 23:30:28 +0000 (09:30 +1000)]
Merge pull request #13619 from kylinstorage/cleanup_bitallocator

BitAllocator: delete useless codes

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoqa/suites/fs: Add openstack volume configuration 13640/head
Zack Cerza [Fri, 24 Feb 2017 22:25:19 +0000 (15:25 -0700)]
qa/suites/fs: Add openstack volume configuration

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #13594 from athanatos/wip-snap-trim-sleep
Samuel Just [Fri, 24 Feb 2017 22:09:17 +0000 (14:09 -0800)]
Merge pull request #13594 from athanatos/wip-snap-trim-sleep

osd: add snap trim reservation and re-implement osd_snap_trim_sleep

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13570 from athanatos/wip-18937
Samuel Just [Fri, 24 Feb 2017 22:08:40 +0000 (14:08 -0800)]
Merge pull request #13570 from athanatos/wip-18937

osd: don't use ORDERSNAP for flush; always request/send ondisk ack

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13637 from zmc/wip-openstack-volumes
Zack Cerza [Fri, 24 Feb 2017 21:43:56 +0000 (14:43 -0700)]
Merge pull request #13637 from zmc/wip-openstack-volumes

qa/suites/{knfs,hadoop,samba}: OpenStack volume configuration

8 years agoMerge pull request #13634 from zmc/wip-kcephfs-openstack
Zack Cerza [Fri, 24 Feb 2017 21:43:26 +0000 (14:43 -0700)]
Merge pull request #13634 from zmc/wip-kcephfs-openstack

qa/suites/kcephfs: Openstack volume configuration

8 years agoqa/suites/samba: Openstack volume configuration 13637/head
Zack Cerza [Fri, 24 Feb 2017 20:46:54 +0000 (13:46 -0700)]
qa/suites/samba: Openstack volume configuration

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoqa/suites/hadoop: Openstack volume configuration
Zack Cerza [Fri, 24 Feb 2017 20:45:18 +0000 (13:45 -0700)]
qa/suites/hadoop: Openstack volume configuration

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoqa/suites/knfs: Add openstack volume configuration
Zack Cerza [Fri, 24 Feb 2017 20:44:33 +0000 (13:44 -0700)]
qa/suites/knfs: Add openstack volume configuration

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoqa/suites/kcephfs: Openstack volume configuration 13634/head
Zack Cerza [Fri, 24 Feb 2017 20:37:23 +0000 (13:37 -0700)]
qa/suites/kcephfs: Openstack volume configuration

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoosd,osdc: eliminate FLAG_ONDISK and helpers 13570/head
Samuel Just [Thu, 16 Feb 2017 21:22:07 +0000 (13:22 -0800)]
osd,osdc: eliminate FLAG_ONDISK and helpers

The objecter actually always needs to get a response in order to
be able to not continually resend ops (even if the caller didn't
provide a callback).  Thus, it makes no sense for an MOSDOp to
ever not have FLAG_ONDISK set.  Therefore, we'll just remove the
helper and assume it's always there (it's safe to send a response
the client didn't ask for, the error paths already do that).  On
the Objecter side, we'll just unconditionally fill in ONDISK for
the benefit of pre-luminous OSDs.

Fixes: http://tracker.ceph.com/issues/18961
Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoPrimaryLogPG::start_flush: don't use ORDERSNAP, eliminate the second delete
Samuel Just [Wed, 15 Feb 2017 00:50:11 +0000 (16:50 -0800)]
PrimaryLogPG::start_flush: don't use ORDERSNAP, eliminate the second delete

I think that whole thing was a misguided attempt to avoid deleting head
if it exists in the base tier (in reality it doesn't matter since head
would have to be logically dirty and anything we actually care about
would be preserved by sending a new enough seq to cause a clone).

Introduced in 4843fd510b33a71999cdf9c2cfa2b4c318fa80fd, but the real
logical error happened in f3df50188b54e60e28a276762c370477538bbb07.

I suggest never backporting this patch.  If you want to try, keep in
mind that the last version didn't turn up as busted for 2 years.

Fixes: f3df50188b54e60e28a276762c370477538bbb07
Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #13631 from ceph/wip-krbd-openstack
Zack Cerza [Fri, 24 Feb 2017 19:23:23 +0000 (12:23 -0700)]
Merge pull request #13631 from ceph/wip-krbd-openstack

qa/suites/krbd: Add openstack volume configuration

8 years agoMerge pull request #13534 from liewegas/wip-objecter-fixes
Sage Weil [Fri, 24 Feb 2017 18:55:16 +0000 (12:55 -0600)]
Merge pull request #13534 from liewegas/wip-objecter-fixes

osdc/Objecter: fix bugs in explicit naming of op spg_t

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoqa/suites/krbd: Add openstack volume configuration 13631/head
Zack Cerza [Fri, 24 Feb 2017 18:17:45 +0000 (11:17 -0700)]
qa/suites/krbd: Add openstack volume configuration

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #13545 from liewegas/wip-18933
Sage Weil [Fri, 24 Feb 2017 18:01:54 +0000 (12:01 -0600)]
Merge pull request #13545 from liewegas/wip-18933

osd: constify OpRequest::get_req(); fix a few cases of operator<< vs mutated message races

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13625 from tchaikov/wip-suite-repo-for-workunit
Kefu Chai [Fri, 24 Feb 2017 15:44:27 +0000 (23:44 +0800)]
Merge pull request #13625 from tchaikov/wip-suite-repo-for-workunit

qa/tasks/workunit: use the suite repo for cloning workunit

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13614 from linuxbox2/wip-valid-dirname
Matt Benjamin [Fri, 24 Feb 2017 14:09:25 +0000 (09:09 -0500)]
Merge pull request #13614 from linuxbox2/wip-valid-dirname

rgw_file: ensure valid_s3_object_name for directories, too

8 years agoMerge pull request #12102 from yangdongsheng/async_remove
Jason Dillaman [Fri, 24 Feb 2017 13:50:41 +0000 (08:50 -0500)]
Merge pull request #12102 from yangdongsheng/async_remove

librbd: asynchronous image removal state machine

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agodo_freebsd.sh: the EMBEDDED target is not (yet) working for FreeBSD 13626/head
Willem Jan Withagen [Fri, 24 Feb 2017 10:51:25 +0000 (11:51 +0100)]
do_freebsd.sh: the EMBEDDED target is not (yet) working for FreeBSD

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agodo_freebsd.sh: Remove ENODATA requirement
Willem Jan Withagen [Fri, 24 Feb 2017 10:20:16 +0000 (11:20 +0100)]
do_freebsd.sh: Remove ENODATA requirement

 - This was there because cython did not know about ENOATTR
   But since cython 0.25.2 tus is fixed.
   And we don't need to edit /usr/include/errno.h

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #13620 from tchaikov/wip-sepia-bt
Kefu Chai [Fri, 24 Feb 2017 09:14:23 +0000 (17:14 +0800)]
Merge pull request #13620 from tchaikov/wip-sepia-bt

script/sepia_bt.sh: get sha1,release from t.log if it's not in core

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoqa/tasks/workunit: use the suite repo for cloning workunit 13625/head
Kefu Chai [Fri, 24 Feb 2017 08:43:07 +0000 (16:43 +0800)]
qa/tasks/workunit: use the suite repo for cloning workunit

as "workunits" reside in ceph/qa/workunits, it's more intuitive to
respect suite-repo option when cloning workunits.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoscript/sepia_bt.sh: get sha1,release from t.log if it's not in core 13620/head
Kefu Chai [Wed, 22 Feb 2017 05:16:05 +0000 (13:16 +0800)]
script/sepia_bt.sh: get sha1,release from t.log if it's not in core

* sometimes, the coredump comes from python, so we should get the sha1 and
  release in a different and more fragile way.
* also, the distro of Centos7 comes from python is "Centos Linux", so we
  should normalize its distro name and distro version.
* add "-v" option to be more chatty.
* normalize the $prog if $prog is */python*
* fix the pkg_path if the distro is centos7

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoBitAllocator: delete useless codes 13619/head
Jie Wang [Fri, 24 Feb 2017 01:31:46 +0000 (01:31 +0000)]
BitAllocator: delete useless codes

Signed-off-by: Jie Wang <jie.wang@kylin-cloud.com>
8 years agoMerge pull request #13312 from trociny/wip-18783
Jason Dillaman [Fri, 24 Feb 2017 01:20:03 +0000 (20:20 -0500)]
Merge pull request #13312 from trociny/wip-18783

rbd-mirror: InstanceWatcher watch/notify stub for leader/follower RPC

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13616 from liewegas/wip-primary-temp
Gregory Farnum [Thu, 23 Feb 2017 23:08:19 +0000 (15:08 -0800)]
Merge pull request #13616 from liewegas/wip-primary-temp

mon/OSDMonitor: remove trivial PGMap dependency for 'osd primary-temp' command

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #13611 from zmc/wip-rgw-openstack
Yuri Weinstein [Thu, 23 Feb 2017 22:56:50 +0000 (14:56 -0800)]
Merge pull request #13611 from zmc/wip-rgw-openstack

qa/suites/rgw: Add openstack volume configuration

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
8 years agomon/OSDMonitor: remove trivial PGMap dependency for 'osd primary-temp' command 13616/head
Sage Weil [Thu, 23 Feb 2017 21:50:21 +0000 (16:50 -0500)]
mon/OSDMonitor: remove trivial PGMap dependency for 'osd primary-temp' command

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agorgw_file: ensure valid_s3_object_name for directories, too 13614/head
Matt Benjamin [Thu, 23 Feb 2017 21:02:07 +0000 (16:02 -0500)]
rgw_file: ensure valid_s3_object_name for directories, too

The logic in RGWLibFS::mkdir() validated bucket names, but not
object names (though RGWLibFS::create() did so).

The negative side effect of this was not creating illegal objects
(we won't), but in a) failing with -EIO and b) more importantly,
not removing up the proposed object from FHCache, which produced a
boost assert when recycled.

Fixes: http://tracker.ceph.com/issues/19066
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #13607 from linuxbox2/wip-parentref
Matt Benjamin [Thu, 23 Feb 2017 18:00:42 +0000 (13:00 -0500)]
Merge pull request #13607 from linuxbox2/wip-parentref

rgw: wip parentref

8 years agoqa/suites/rgw: Add openstack volume configuration 13611/head
Zack Cerza [Thu, 23 Feb 2017 17:14:05 +0000 (10:14 -0700)]
qa/suites/rgw: Add openstack volume configuration

Without this, OSDs will fail to create on instances whose root fs isn't
xfs.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #13480 from wido/srpm
Kefu Chai [Thu, 23 Feb 2017 16:56:04 +0000 (00:56 +0800)]
Merge pull request #13480 from wido/srpm

make-srpm: Pass first parameter to make-dist for building SRPM

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorgw_file: return of RGWFileHandle::FLAG_EXACT_MATCH 13607/head
Matt Benjamin [Thu, 23 Feb 2017 15:21:38 +0000 (10:21 -0500)]
rgw_file:  return of RGWFileHandle::FLAG_EXACT_MATCH

Allow callers of rgw_lookup() on objects attested in an
rgw_readdir() callback the ability to bypass exact match in
RGWLibFS::stat_leaf() case 2, but restore exact match enforcement
for general lookups.

This preserves required common_prefix namespace behavior, but
prevents clients from eerily permitting things like "cd sara0" via
partial name match on "sara01."

Fixes: http://tracker.ceph.com/issues/19059
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #13595 from tchaikov/wip-enable-bluestore-ceph-dencoder
Sage Weil [Thu, 23 Feb 2017 15:31:58 +0000 (09:31 -0600)]
Merge pull request #13595 from tchaikov/wip-enable-bluestore-ceph-dencoder

ceph-dencoder: enable bluestore types

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoosdc/Objecter: _calc_target on all ops so that we notice splits 13534/head
Sage Weil [Mon, 20 Feb 2017 19:26:42 +0000 (14:26 -0500)]
osdc/Objecter: _calc_target on all ops so that we notice splits

We need to make sure we update the mapping and get an accurate actual_pgid
value by recalcuating the mapping on every map change.  Otherwise, we may
not notice a split (and subsequent actual_pgid change) and resend the same
op with a stale spg_t.  To fix this,

- _calc_target on need_resend
- update target regardless of current con

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosdc/Objecter: refactor pool dne check to make op->session optional
Sage Weil [Mon, 20 Feb 2017 18:55:10 +0000 (13:55 -0500)]
osdc/Objecter: refactor pool dne check to make op->session optional

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosdc/Objecter: track latest epoch in op_target_t
Sage Weil [Mon, 20 Feb 2017 18:19:39 +0000 (13:19 -0500)]
osdc/Objecter: track latest epoch in op_target_t

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: warn on ops directed to the wrong pg_t
Sage Weil [Mon, 20 Feb 2017 12:45:32 +0000 (07:45 -0500)]
osd: warn on ops directed to the wrong pg_t

Check whether the request hobj maps to the current pg_t.  If we have the
osd_debug_misdirected_ops setting enabled (as teuthology does), assert out
as well so that the error is easy to spot.  This catches bugs in the
Objecter (especially the new code that explicitly names the spg_t for the
request).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: osd debug misdirected ops = true
Sage Weil [Sat, 18 Feb 2017 20:31:39 +0000 (15:31 -0500)]
vstart.sh: osd debug misdirected ops = true

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agorgw_file: rgw_lookup: don't ref for "/" or ".."
Matt Benjamin [Wed, 22 Feb 2017 19:57:59 +0000 (14:57 -0500)]
rgw_file: rgw_lookup: don't ref for "/" or ".."

These refs won't be returned by nfs-ganesha, and are sufficiently
magical that other consumers should be persuaded to understand
their specialness.

Fixes: http://tracker.ceph.com/issues/19060
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #13569 from athanatos/wip-17831-18583-18809-18927
Sage Weil [Thu, 23 Feb 2017 15:22:02 +0000 (09:22 -0600)]
Merge pull request #13569 from athanatos/wip-17831-18583-18809-18927

ReplicatedBackend: don't queue Context outside of ObjectStore with obc

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13470 from wangzhengyong/master
Sage Weil [Thu, 23 Feb 2017 15:04:01 +0000 (09:04 -0600)]
Merge pull request #13470 from wangzhengyong/master

os/bluestore/BitAllocator: fix bug of checking required blocks

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13516 from wjwithagen/wip-wjw-test-onjectstore
Sage Weil [Thu, 23 Feb 2017 15:02:54 +0000 (09:02 -0600)]
Merge pull request #13516 from wjwithagen/wip-wjw-test-onjectstore

test/ceph-test-objectstore: Don't always include BlueStore code

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13521 from dachary/wip-crush-uniform
Sage Weil [Thu, 23 Feb 2017 15:01:30 +0000 (09:01 -0600)]
Merge pull request #13521 from dachary/wip-crush-uniform

crush: allow uniform buckets with no items

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13540 from liewegas/wip-debug-osd
Sage Weil [Thu, 23 Feb 2017 15:01:01 +0000 (09:01 -0600)]
Merge pull request #13540 from liewegas/wip-debug-osd

osd: debug con in ms_handle_connect

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13565 from liewegas/wip-fix-pool-race-test
Sage Weil [Thu, 23 Feb 2017 15:00:35 +0000 (09:00 -0600)]
Merge pull request #13565 from liewegas/wip-fix-pool-race-test

ceph_test_rados_api_misc: avoid livelock from PoolCreationRace

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agorbd-mirror A/A: InstanceWatcher watch/notify stub for leader/follower RPC 13312/head
Mykola Golub [Wed, 8 Feb 2017 13:40:24 +0000 (14:40 +0100)]
rbd-mirror A/A: InstanceWatcher watch/notify stub for leader/follower RPC

Fixes: http://tracker.ceph.com/issues/18783
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: add ManagedLock destroy method (useful for mock tests)
Mykola Golub [Sat, 18 Feb 2017 09:29:13 +0000 (10:29 +0100)]
librbd: add ManagedLock destroy method (useful for mock tests)

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agocls/rbd: methods to track rbd-mirror instances
Mykola Golub [Wed, 15 Feb 2017 11:37:31 +0000 (12:37 +0100)]
cls/rbd: methods to track rbd-mirror instances

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agomsg/async/rdma: Fix broken compilation 13603/head
Sarit Zubakov [Wed, 22 Feb 2017 18:53:43 +0000 (18:53 +0000)]
msg/async/rdma: Fix broken compilation

Resposible commit is: eb0f624

issue:985021

Change-Id: I5b4afc537a9351dd18f5ea08bf4d72a1b03a8635
Signed-off-by: Sarit Zubakov <saritz@mellanox.com>
8 years agoMerge pull request #13568 from dillaman/wip-18990
Mykola Golub [Thu, 23 Feb 2017 09:28:27 +0000 (11:28 +0200)]
Merge pull request #13568 from dillaman/wip-18990

rbd-mirror: deleting a snapshot during sync can result in read errors

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoceph-dencoder: s/WITH_LIBAIO/HAVE_LIBAIO/ 13595/head
Kefu Chai [Wed, 22 Feb 2017 18:36:22 +0000 (02:36 +0800)]
ceph-dencoder: s/WITH_LIBAIO/HAVE_LIBAIO/

* s/WITH_LIBAIO/HAVE_LIBAIO/: as HAVE_LIBAIO is used to detect if libaio
  is installed and is exposed in the acconfig.h.
* do not test bluestore_blob_t with ceph-dencoder, as it repurposes the
  "feature" parameter for struct_v.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: fix bluestore_blob_t::generate_test_instances()
Kefu Chai [Wed, 22 Feb 2017 18:33:50 +0000 (02:33 +0800)]
os/bluestore: fix bluestore_blob_t::generate_test_instances()

add extends before marking unused ranges, otherwise add_unused()
asserts if (offset + len < blob_len)
this method is supposed to be used by ceph-dencoder, but
bluestore_blob_t's codec is quite different. we are not testing its
encoding in ceph-dencoder at this moment.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agounittest: add unittest for RemoveRequest 12102/head
Dongsheng Yang [Wed, 18 Jan 2017 12:29:28 +0000 (20:29 +0800)]
unittest: add unittest for RemoveRequest

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
8 years agounittest: fixup the mock method of open
Dongsheng Yang [Wed, 18 Jan 2017 12:28:44 +0000 (20:28 +0800)]
unittest: fixup the mock method of open

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
8 years agounittest: add mock method of try_acquire_lock
Dongsheng Yang [Wed, 18 Jan 2017 12:28:15 +0000 (20:28 +0800)]
unittest: add mock method of try_acquire_lock

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
8 years agolibrbd: cleanup: remove the unused function ObjectMap::remove()
Dongsheng Yang [Tue, 14 Feb 2017 11:43:42 +0000 (19:43 +0800)]
librbd: cleanup: remove the unused function ObjectMap::remove()

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
8 years agorbd: add a aio_remove() in objectMap
Dongsheng Yang [Mon, 6 Feb 2017 11:23:42 +0000 (19:23 +0800)]
rbd: add a aio_remove() in objectMap

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
8 years agolibrbd: use create/destroy methods in RemoveRequest
Dongsheng Yang [Tue, 14 Feb 2017 11:39:49 +0000 (19:39 +0800)]
librbd: use create/destroy methods in RemoveRequest

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
8 years agounittest: add a unittest for removing non-exist image.
Dongsheng Yang [Mon, 26 Dec 2016 11:18:38 +0000 (06:18 -0500)]
unittest: add a unittest for removing non-exist image.

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
8 years agoqa: rbd: rename the copy.sh to generic.sh
Dongsheng Yang [Sun, 25 Dec 2016 04:48:09 +0000 (23:48 -0500)]
qa: rbd: rename the copy.sh to generic.sh

The copy.sh is not only testing the rbd copy, but also
others such as rbd ls, rbd remove. Then rename it to generic.sh

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
8 years agoqa: add a test for rbd rm NOT_EXIST
Dongsheng Yang [Sun, 25 Dec 2016 02:57:34 +0000 (21:57 -0500)]
qa: add a test for rbd rm NOT_EXIST

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
8 years agolibrbd: use async image removal state machine
Venky Shankar [Wed, 24 Aug 2016 15:08:03 +0000 (20:38 +0530)]
librbd: use async image removal state machine

Signed-off-by: Venky Shankar <vshankar@redhat.com>