]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoRadosStriperImpl.cc: fix double free 13208/head
Danny Al-Gaaf [Tue, 31 Jan 2017 21:23:28 +0000 (22:23 +0100)]
RadosStriperImpl.cc: fix double free

Some variables have been already free'd by calling
release(), no need to call delete() again on them.

CID 1396200 (#1 of 1): Double free (USE_AFTER_FREE)
 double_free: Calling operator delete frees pointer
 getxattr_completion which has already been freed.
CID 1396206 (#1 of 1): Double free (USE_AFTER_FREE)
 double_free: Calling operator delete frees pointer
 getxattr_completion which has already been freed.
CID 1396214 (#1 of 1): Double free (USE_AFTER_FREE)
 double_free: Calling operator delete frees pointer
 stat_completion which has already been freed.
CID 1396218 (#1 of 1): Double free (USE_AFTER_FREE)
 double_free: Calling operator delete frees pointer
 stat_completion which has already been freed.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoosdc/ObjectCacher.cc: fix wrong self assignment
Danny Al-Gaaf [Tue, 31 Jan 2017 21:05:10 +0000 (22:05 +0100)]
osdc/ObjectCacher.cc: fix wrong self assignment

Fix for:

CID 1395468 (#1 of 1): Self assignment (NO_EFFECT)
self_assign: Assigning bh->last_write to itself has no effect.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agocommon/Checksummer.h: close resource leak
Danny Al-Gaaf [Tue, 31 Jan 2017 19:41:32 +0000 (20:41 +0100)]
common/Checksummer.h: close resource leak

CID 1395784 (#2-1 of 2): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable state going out of scope
 leaks the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_main.cc: close leak in error case
Danny Al-Gaaf [Tue, 31 Jan 2017 18:13:48 +0000 (19:13 +0100)]
rgw/rgw_main.cc: close leak in error case

ID 1398895 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable config going out of scope leaks
 the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_rados.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Tue, 31 Jan 2017 17:01:32 +0000 (18:01 +0100)]
rgw/rgw_rados.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_main.cc: reorder framework detection
Danny Al-Gaaf [Tue, 31 Jan 2017 16:58:44 +0000 (17:58 +0100)]
rgw/rgw_main.cc: reorder framework detection

Fix for:

CID 1398896: Resource leak (RESOURCE_LEAK)
 overwrite_var: Overwriting fe in fe = new
 RGWLoadGenFrontend(env, config) leaks the storage that fe
 points to.

Do not check again and again for framework if there is
already a match, make use of if/else. This should also
fix the RESOURCE_LEAK warning.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_compression.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Tue, 31 Jan 2017 16:25:40 +0000 (17:25 +0100)]
rgw/rgw_compression.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_common.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Tue, 31 Jan 2017 16:19:10 +0000 (17:19 +0100)]
rgw/rgw_common.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_torrent.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Tue, 31 Jan 2017 16:18:41 +0000 (17:18 +0100)]
rgw/rgw_torrent.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoRDMAConnectedSocketImpl.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Tue, 31 Jan 2017 16:18:21 +0000 (17:18 +0100)]
RDMAConnectedSocketImpl.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agomon/OSDMonitor.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Tue, 31 Jan 2017 16:17:51 +0000 (17:17 +0100)]
mon/OSDMonitor.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agomds/Mantle.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Tue, 31 Jan 2017 13:40:10 +0000 (14:40 +0100)]
mds/Mantle.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_lc.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Tue, 31 Jan 2017 13:39:08 +0000 (14:39 +0100)]
rgw/rgw_lc.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_token.h: remove redundant and slow call to c_str()
Danny Al-Gaaf [Tue, 31 Jan 2017 13:36:58 +0000 (14:36 +0100)]
rgw/rgw_token.h: remove redundant and slow call to c_str()

Do not call c_str() if the parameter is already of type string.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agokv/MemDB.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Tue, 31 Jan 2017 13:36:00 +0000 (14:36 +0100)]
kv/MemDB.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agocls/rgw/cls_rgw.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Tue, 31 Jan 2017 13:35:12 +0000 (14:35 +0100)]
cls/rgw/cls_rgw.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoMerge pull request #13278 from liewegas/wip-luminous
Josh Durgin [Thu, 9 Feb 2017 00:18:36 +0000 (16:18 -0800)]
Merge pull request #13278 from liewegas/wip-luminous

mon,osd: luminous feature bits, require flags, upgrade gates

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #12829 from ovh/wip-perf-counters-histogram
Yuri Weinstein [Thu, 9 Feb 2017 00:18:08 +0000 (16:18 -0800)]
Merge pull request #12829 from ovh/wip-perf-counters-histogram

common, osd, tools: Add histograms to performance counters

Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: whu_liuchang <nfcj000@qq.com>
Reviewed-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
8 years agoMerge pull request #13296 from liewegas/wip-kill-sortbitwise
Yuri Weinstein [Thu, 9 Feb 2017 00:12:10 +0000 (16:12 -0800)]
Merge pull request #13296 from liewegas/wip-kill-sortbitwise

osd: remove sortbitwise thrashing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13097 from ceph/wip-osd-after-mon
Nathan Cutler [Wed, 8 Feb 2017 23:31:23 +0000 (00:31 +0100)]
Merge pull request #13097 from ceph/wip-osd-after-mon

systemd: Start OSDs after MONs

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13319 from smithfarm/wip-buildpackages-py
Nathan Cutler [Wed, 8 Feb 2017 23:28:35 +0000 (00:28 +0100)]
Merge pull request #13319 from smithfarm/wip-buildpackages-py

tests: drop buildpackages.py

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agotests: drop buildpackages.py 13319/head
Nathan Cutler [Wed, 8 Feb 2017 20:23:54 +0000 (21:23 +0100)]
tests: drop buildpackages.py

The buildpackages suite has been moved to teuthology. This cleans up a file
that was left behind by https://github.com/ceph/ceph/pull/13297

Fixes: http://tracker.ceph.com/issues/18846
Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoqa/suites/rados/upgrade/jewel-x-singleton: upgrade mons first; box thrasher 13278/head
Sage Weil [Wed, 8 Feb 2017 20:05:15 +0000 (15:05 -0500)]
qa/suites/rados/upgrade/jewel-x-singleton: upgrade mons first; box thrasher

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge remote-tracking branch 'gh/luminous'
Sage Weil [Wed, 8 Feb 2017 19:02:43 +0000 (14:02 -0500)]
Merge remote-tracking branch 'gh/luminous'

8 years agoMerge pull request #13218 from guits/ceph_detect_init
Loic Dachary [Wed, 8 Feb 2017 14:29:11 +0000 (15:29 +0100)]
Merge pull request #13218 from guits/ceph_detect_init

ceph-detect-init: Add docker detection

Reviewed-by: Sébastien Han <seb@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
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 agoceph-detect-init: Add docker detection 13218/head
Guillaume Abrioux [Wed, 1 Feb 2017 15:05:14 +0000 (16:05 +0100)]
ceph-detect-init: Add docker detection

if running `ceph-detect-init` from a container, the given output is the
reference from the hosting system. This patch add the capability of
detecting if the tool is being run inside a container.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoMerge pull request #12586 from ktdreyer/wip-18313-rgw-upstart
Kefu Chai [Wed, 8 Feb 2017 05:15:43 +0000 (13:15 +0800)]
Merge pull request #12586 from ktdreyer/wip-18313-rgw-upstart

upstart: start radosgw-all according to runlevel

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kefu@redhat.com>
8 years agoMerge pull request #12086 from wjwithagen/wip-wjw-freebsd-ceph-disk
Kefu Chai [Wed, 8 Feb 2017 03:37:22 +0000 (11:37 +0800)]
Merge pull request #12086 from wjwithagen/wip-wjw-freebsd-ceph-disk

ceph-disk: FreeBSD changes to get it working and passing tests

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13015 from chuanhong-wang/dev_change_osd_df_tree_output
Kefu Chai [Wed, 8 Feb 2017 03:34:07 +0000 (11:34 +0800)]
Merge pull request #13015 from chuanhong-wang/dev_change_osd_df_tree_output

mon: in output of "ceph osd df tree", display "-", not "0",  for pg amount of a bucket

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13159 from bassam/pr-fix-embedded-zstd
Kefu Chai [Wed, 8 Feb 2017 03:33:53 +0000 (11:33 +0800)]
Merge pull request #13159 from bassam/pr-fix-embedded-zstd

compressor/zstd: add zstd to embedded ceph

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13236 from adamemerson/wip-alarum
Kefu Chai [Wed, 8 Feb 2017 03:33:33 +0000 (11:33 +0800)]
Merge pull request #13236 from adamemerson/wip-alarum

cleanup: resolve compiler warnings

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13265 from tchaikov/wip-librados-hide-private-symbols
Kefu Chai [Wed, 8 Feb 2017 03:32:40 +0000 (11:32 +0800)]
Merge pull request #13265 from tchaikov/wip-librados-hide-private-symbols

librados: do not expose non-public symbols

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13268 from tchaikov/wip-better-error-ping-mon
Kefu Chai [Wed, 8 Feb 2017 03:32:25 +0000 (11:32 +0800)]
Merge pull request #13268 from tchaikov/wip-better-error-ping-mon

ceph: do not throw TypeError on connection failure

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13286 from Liuchang0812/remove-useless-close
Kefu Chai [Wed, 8 Feb 2017 03:31:50 +0000 (11:31 +0800)]
Merge pull request #13286 from Liuchang0812/remove-useless-close

msg/async: remove useless close function

Reviewed-by: Kefu Chai <kefu@redhat.com>
8 years agoMerge pull request #13288 from dmick/master
Kefu Chai [Wed, 8 Feb 2017 03:31:02 +0000 (11:31 +0800)]
Merge pull request #13288 from dmick/master

ceph.in: add help for locally-handled commands

Reviewed-by: Kefu Chai <kefu@redhat.com>
8 years agoMerge pull request #9976 from songbaisen/a13
Sage Weil [Tue, 7 Feb 2017 23:14:14 +0000 (17:14 -0600)]
Merge pull request #9976 from songbaisen/a13

mon: PGMonitor add check only concern our self cluster command

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #10150 from songbaisen/b
Sage Weil [Tue, 7 Feb 2017 23:13:47 +0000 (17:13 -0600)]
Merge pull request #10150 from songbaisen/b

mon: avoid start election twice when quorum enter

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #10309 from songbaisen/b8
Sage Weil [Tue, 7 Feb 2017 23:13:13 +0000 (17:13 -0600)]
Merge pull request #10309 from songbaisen/b8

mon: OSDMonitor add check only concern our self cluster command

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12273 from songbaisen/s4
Yuri Weinstein [Tue, 7 Feb 2017 21:05:27 +0000 (13:05 -0800)]
Merge pull request #12273 from songbaisen/s4

mon: add warn info for osds were removed from osdmap but still kept in crushmap

Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13121 from LiumxNL/wip-170125
Yuri Weinstein [Tue, 7 Feb 2017 21:00:21 +0000 (13:00 -0800)]
Merge pull request #13121 from LiumxNL/wip-170125

osd: we know the definite epoch of marking down

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13297 from dachary/wip-buildpackages
Loic Dachary [Tue, 7 Feb 2017 20:40:58 +0000 (21:40 +0100)]
Merge pull request #13297 from dachary/wip-buildpackages

buildpackages: remove because it does not belong

Reviewed-by: Nathan Cutler <ncutler@suse.cz>
8 years agoMerge pull request #13162 from liewegas/wip-bluestore-reshard
Sage Weil [Tue, 7 Feb 2017 19:01:48 +0000 (13:01 -0600)]
Merge pull request #13162 from liewegas/wip-bluestore-reshard

os/bluestore: partial reshard support

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agomon: prevent sortbitwise flag from being unset 13296/head
Sage Weil [Tue, 7 Feb 2017 19:00:32 +0000 (14:00 -0500)]
mon: prevent sortbitwise flag from being unset

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuildpackages: remove because it does not belong 13297/head
Loic Dachary [Tue, 7 Feb 2017 17:33:29 +0000 (18:33 +0100)]
buildpackages: remove because it does not belong

It should live in teuthology, not in Ceph. And it is currently broken:
there is no need to keep it around.

Fixes: http://tracker.ceph.com/issues/18846
Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agoosd/PG: drop sortbitwise feature check assert
Sage Weil [Tue, 7 Feb 2017 17:17:07 +0000 (12:17 -0500)]
osd/PG: drop sortbitwise feature check assert

This feature bit will get deprecated shortly anyway.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/PG: drop osd_debug_randomize_hobj_sort_order
Sage Weil [Tue, 7 Feb 2017 17:15:41 +0000 (12:15 -0500)]
osd/PG: drop osd_debug_randomize_hobj_sort_order

This is required post-jewel; no need to thrash it.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/suites/rados: stop thrashing sortbitwise
Sage Weil [Tue, 7 Feb 2017 17:14:13 +0000 (12:14 -0500)]
qa/suites/rados: stop thrashing sortbitwise

This is required to upgrade past jewel; no need to keep testing it
on master.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/OSDMap: fix kraken feature requirement
Sage Weil [Tue, 7 Feb 2017 15:37:43 +0000 (10:37 -0500)]
osd/OSDMap: fix kraken feature requirement

Use the FEATUREMASK since this is a reused bit.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/OSDMonitor: use HAVE_FEATURE for kraken, jewel feature tests
Sage Weil [Tue, 7 Feb 2017 15:36:11 +0000 (10:36 -0500)]
mon/OSDMonitor: use HAVE_FEATURE for kraken, jewel feature tests

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: apply monmap features to quorum requirements
Sage Weil [Mon, 6 Feb 2017 17:30:34 +0000 (12:30 -0500)]
mon: apply monmap features to quorum requirements

Previously this was indirect..

 monmap requirements -> compatset -> quorum requirements

However, how that we are consistently using the monmap features, we no
longer need to use the compatset features when the monmap already
communicates the same thing.  Rename the helper to reflect that
quorum requirements come from both the compatset and the monmap.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: fix kraken requirement to use FEATUREMASK, HAVE_FEATURE macro
Sage Weil [Mon, 6 Feb 2017 16:58:35 +0000 (11:58 -0500)]
mon: fix kraken requirement to use FEATUREMASK, HAVE_FEATURE macro

The KRAKEN_SERVER bit was reused.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: require luminous mons before starting
Sage Weil [Mon, 6 Feb 2017 16:45:00 +0000 (11:45 -0500)]
osd: require luminous mons before starting

Require that mons are upgraded to luminous first.  This will ensure that
the last_force_op_resend flag is set for pre-luminous clients so that
luminous OSDs can safely discard them.  (This will come in a future patch.)

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: drop redundant check for hammer OSDs
Sage Weil [Mon, 6 Feb 2017 15:43:19 +0000 (10:43 -0500)]
osd: drop redundant check for hammer OSDs

The OSDMAP_REQUIRE_JEWEL flag requirement implies that there are no
pre-0.94.4 (early hammer) OSDs running.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/mon_types: add sticky FEATURE_LUMINOUS feature bit
Sage Weil [Mon, 6 Feb 2017 15:40:53 +0000 (10:40 -0500)]
mon/mon_types: add sticky FEATURE_LUMINOUS feature bit

Once mons upgrade to luminous, you can't go back.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/OSDMonitor: all upgrades pass through luminous
Sage Weil [Thu, 2 Feb 2017 01:32:31 +0000 (20:32 -0500)]
mon/OSDMonitor: all upgrades pass through luminous

Prevent post-luminous OSDs from starting before require_luminous_osds is
set.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/OSDMap: add REQUIRE_LUMINOUS flag
Sage Weil [Thu, 2 Feb 2017 01:31:01 +0000 (20:31 -0500)]
osd/OSDMap: add REQUIRE_LUMINOUS flag

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13035 from yehudasa/wip-18621
Matt Benjamin [Tue, 7 Feb 2017 13:50:49 +0000 (08:50 -0500)]
Merge pull request #13035 from yehudasa/wip-18621

rgw: change default chunk size to 4MB

8 years agoMerge pull request #13259 from jcsp/wip-jcsp-relnotes
John Spray [Tue, 7 Feb 2017 12:06:51 +0000 (12:06 +0000)]
Merge pull request #13259 from jcsp/wip-jcsp-relnotes

PendingReleaseNotes: note the fuse fstab format change

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoceph.in: add help for locally-handled commands 13288/head
Dan Mick [Sat, 7 Jan 2017 04:36:38 +0000 (20:36 -0800)]
ceph.in: add help for locally-handled commands

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agomsg/async: remove useless close function 13286/head
liuchang0812 [Tue, 7 Feb 2017 03:10:32 +0000 (11:10 +0800)]
msg/async: remove useless close function

fix coverity cid 1395314: it's invalid to pass a negative value to close function, and we have closed socket in net.connect/nonblock_connect in error cases indeed

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agoMerge pull request #13279 from smithfarm/wip-fix-regression
Zack Cerza [Tue, 7 Feb 2017 00:08:18 +0000 (17:08 -0700)]
Merge pull request #13279 from smithfarm/wip-fix-regression

tests: fix regression in qa/tasks/ceph_master.py

8 years agoFreeBSD: changes to ceph-disk to get it working and passing tests 12086/head
Willem Jan Withagen [Sun, 20 Nov 2016 20:30:12 +0000 (21:30 +0100)]
FreeBSD: changes to ceph-disk to get it working and passing tests

 - It currently only supports running with filestore
 - Testing is executed while running on a ZFS partition
 - All disktypes and naming is different on FreeBSD
 - Partitioning and tools are not workable on FreeBSD
 - add diagnostic timeout

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agorgw: don't update bucket index multiple times in overwrite 13035/head
Yehuda Sadeh [Sat, 21 Jan 2017 01:05:24 +0000 (17:05 -0800)]
rgw: don't update bucket index multiple times in overwrite

Instead of this for overwrites:
 prepare (index),
   write (head) [-EEXIST]
 cancel (index)
 read (head)
 prepare (index)
   write (head)
 complete (index)

We now do:
 prepare (index),
   write (head) [-EEXIST]
   read (head)
   write (head)
 complete (index)

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: assume obj write is a first write
Yehuda Sadeh [Sat, 21 Jan 2017 00:17:49 +0000 (16:17 -0800)]
rgw: assume obj write is a first write

if fails and object already exists then retry. This improves first obj
write performance on the expense of overwrites.

Fixes: http://tracker.ceph.com/issues/18622
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: configurable write obj window size
Yehuda Sadeh [Fri, 20 Jan 2017 22:40:58 +0000 (14:40 -0800)]
rgw: configurable write obj window size

Fixes: http://tracker.ceph.com/issues/18623
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoinclude/ceph_features: retire OSD_MIN_SIZE_RECOVERY, OSD_PROXY_FEATURES 13238/head
Sage Weil [Fri, 3 Feb 2017 14:30:21 +0000 (09:30 -0500)]
include/ceph_features: retire OSD_MIN_SIZE_RECOVERY, OSD_PROXY_FEATURES

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: retire OSD_REPOP, OSD_OBJECT_DIGEST, OSD_TRANSACTION_MAY_LAYOUT
Sage Weil [Fri, 3 Feb 2017 14:29:16 +0000 (09:29 -0500)]
include/ceph_features: retire OSD_REPOP, OSD_OBJECT_DIGEST, OSD_TRANSACTION_MAY_LAYOUT

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: retire OSD_SET_ALLOC_HINT
Sage Weil [Fri, 3 Feb 2017 14:26:35 +0000 (09:26 -0500)]
include/ceph_features: retire OSD_SET_ALLOC_HINT

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: retire OSD_PACKED_RECOVERY
Sage Weil [Fri, 3 Feb 2017 14:26:20 +0000 (09:26 -0500)]
include/ceph_features: retire OSD_PACKED_RECOVERY

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: retire MON_SCRUB
Sage Weil [Fri, 3 Feb 2017 14:25:50 +0000 (09:25 -0500)]
include/ceph_features: retire MON_SCRUB

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: remove ceph_sanitize_features workaround
Sage Weil [Fri, 3 Feb 2017 14:23:44 +0000 (09:23 -0500)]
include/ceph_features: remove ceph_sanitize_features workaround

Way back in 9ea02b84104045c2ffd7e7f4e7af512953855ecd we defined the
SNAPMAPPER feature such that it set bits 32-63 by sign-extending a negative
int32_t to int64_t.  In 4255b5c2fb54ae40c53284b3ab700fdfc7e61748 it was
fixed.  This affected v0.58-657-g9ea02b8 to v0.65-263-g4255b5c.

The workaround santized features whenever the top bit 63 was set to be the
intended set of features (bits 0-32).  Only buggy peers in that range
ever set bit 63.

Since these versions are truly ancient (pre-dumpling) and no clients
should be that old, we are dropping the workaround.  Note that the Linux
kernel client never had this bug: 2b3e0c905af43cfe402a2ef3f800be5dc1684005
went from 30 bits used to 38 bits defiend with the workaround in place.

We deprecate the bit now (i.e., stop paying attention to this bit).  After
another extended period of time we'll eventually be able to retire
and reuse it.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: retire OSD_SNAPMAPPER
Sage Weil [Fri, 3 Feb 2017 14:12:33 +0000 (09:12 -0500)]
include/ceph_features: retire OSD_SNAPMAPPER

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: retire {BACKFILL,RECOVERY}_RESERVATION
Sage Weil [Fri, 3 Feb 2017 14:10:52 +0000 (09:10 -0500)]
include/ceph_features: retire {BACKFILL,RECOVERY}_RESERVATION

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_feaetures: retire MON_NULLROUTE
Sage Weil [Fri, 3 Feb 2017 14:35:26 +0000 (09:35 -0500)]
include/ceph_feaetures: retire MON_NULLROUTE

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: retire CHUNKY_SCRUB
Sage Weil [Fri, 3 Feb 2017 14:35:23 +0000 (09:35 -0500)]
include/ceph_features: retire CHUNKY_SCRUB

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MonClient: use FEATUREMASK for testing for SERVER_KRAKEN on the server
Sage Weil [Fri, 3 Feb 2017 12:56:08 +0000 (07:56 -0500)]
mon/MonClient: use FEATUREMASK for testing for SERVER_KRAKEN on the server

The mon we are talking to may be an old ceph-mon with the prior meanging of
the SERVER_KRAKEN bit; use the mask to disambiguate instead of testing for
two featurse explicitly.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: return INDEP_PG_MAP
Sage Weil [Fri, 3 Feb 2017 03:20:25 +0000 (22:20 -0500)]
include/ceph_features: return INDEP_PG_MAP

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: retire QUERY_T
Sage Weil [Fri, 3 Feb 2017 03:19:55 +0000 (22:19 -0500)]
include/ceph_features: retire QUERY_T

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: retire MONCLOCKCHECK
Sage Weil [Fri, 3 Feb 2017 03:19:12 +0000 (22:19 -0500)]
include/ceph_features: retire MONCLOCKCHECK

Deprecated in Jewel.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/Connection: has_features()
Sage Weil [Fri, 3 Feb 2017 14:49:12 +0000 (09:49 -0500)]
msg/Connection: has_features()

Test for multiple features all being set together.  Note that this can be
used with the CEPH_FEATUREMASK_ defines to safely test for reused feature
bits.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: define HAVE_FEATURE helper
Sage Weil [Fri, 3 Feb 2017 12:55:10 +0000 (07:55 -0500)]
include/ceph_features: define HAVE_FEATURE helper

This lets you test a feature succintly by name, *AND* makes use of the
FEATUREMASK so that it can be used on bitmasks that may come from old
versions with prior usages of the bit.  This makes it usable for data
type encoding or with client-provided bits.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: new macros, and document deprecation process
Sage Weil [Fri, 3 Feb 2017 03:17:29 +0000 (22:17 -0500)]
include/ceph_features: new macros, and document deprecation process

This was super confusing before.  Hopefully it is better now!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: add SERVER_M feature placeholder
Sage Weil [Thu, 2 Feb 2017 01:31:25 +0000 (20:31 -0500)]
include/ceph_features: add SERVER_M feature placeholder

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: CEPH_FEATURE_RESEND_ON_SPLIT
Sage Weil [Thu, 2 Feb 2017 15:20:52 +0000 (10:20 -0500)]
include/ceph_features: CEPH_FEATURE_RESEND_ON_SPLIT

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agotests: fix regression in qa/tasks/ceph_master.py 13279/head
Nathan Cutler [Mon, 6 Feb 2017 17:43:49 +0000 (18:43 +0100)]
tests: fix regression in qa/tasks/ceph_master.py

https://github.com/ceph/ceph/pull/13194 introduced a regression:

2017-02-06T16:14:23.162 INFO:tasks.thrashosds.thrasher:Traceback (most recent call last):
  File "/home/teuthworker/src/github.com_ceph_ceph_master/qa/tasks/ceph_manager.py", line 722, in wrapper
    return func(self)
  File "/home/teuthworker/src/github.com_ceph_ceph_master/qa/tasks/ceph_manager.py", line 839, in do_thrash
    self.choose_action()()
  File "/home/teuthworker/src/github.com_ceph_ceph_master/qa/tasks/ceph_manager.py", line 305, in kill_osd
    output = proc.stderr.getvalue()
AttributeError: 'NoneType' object has no attribute 'getvalue'

This is because the original patch failed to pass "stderr=StringIO()" to run().

Fixes: http://tracker.ceph.com/issues/16263
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
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 agoceph: do not throw TypeError on connection failure 13268/head
Kefu Chai [Mon, 6 Feb 2017 08:22:42 +0000 (16:22 +0800)]
ceph: do not throw TypeError on connection failure

otherwise we could concat None with a string on connection problem.
which will result in TypeError. and the caller will print misleading
error like

Error connecting to cluster: TypeError

see also #12934

Signed-off-by: Kefu Chai <kchai@redhat.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>