]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agorgw: If use 'copy part' without 'x-amz-copy-source-range', 20002/head
Malcolm Lee [Wed, 31 Jan 2018 02:45:19 +0000 (10:45 +0800)]
rgw: If use 'copy part' without 'x-amz-copy-source-range',
it will copy an entire source object

Signed-off-by: Malcolm Lee <fengxueyu35@126.com>
7 years agoMerge PR #19760 into master
Patrick Donnelly [Tue, 30 Jan 2018 23:18:10 +0000 (15:18 -0800)]
Merge PR #19760 into master

* refs/pull/19760/head:
mds: add dump flag for CInode
mds: add command "openfiles ls"

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #19825 into master
Patrick Donnelly [Tue, 30 Jan 2018 23:18:01 +0000 (15:18 -0800)]
Merge PR #19825 into master

* refs/pull/19825/head:
client: properly choose target mds for rmsnap/renamesnap
mds: properly setup need_snapflush for snapped inode
mds: ignore MClientCaps::FLAG_NO_CAPSNAP

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #19833 into master
Patrick Donnelly [Tue, 30 Jan 2018 23:17:54 +0000 (15:17 -0800)]
Merge PR #19833 into master

* refs/pull/19833/head:
common: add C_SaferCond ctor with name argument
Client: use C_SaferCond for "_flush_range"
client: use C_SaferCond for _fallocate and ll_write_block
client: use C_SaferCond for _sync_fs and _fsync
client: use C_SaferCond in Client::_write
client: use C_SaferCond for _read_sync
client: use C_SaferCond in _read_async
client: use C_SaferCond for "Client::_read"

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #19836 into master
Patrick Donnelly [Tue, 30 Jan 2018 23:17:48 +0000 (15:17 -0800)]
Merge PR #19836 into master

* refs/pull/19836/head:
Avoid the assert failure when the inode for the cap_export from other MDS happened not in MDCache

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #19842 into master
Patrick Donnelly [Tue, 30 Jan 2018 23:17:42 +0000 (15:17 -0800)]
Merge PR #19842 into master

* refs/pull/19842/head:
client: unify function name in debug log for Client.cc

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #19991 into master
Patrick Donnelly [Tue, 30 Jan 2018 23:17:35 +0000 (15:17 -0800)]
Merge PR #19991 into master

* refs/pull/19991/head:
cephfs-journal-tool: move shutdown to the deconstructor of MDSUtility

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20001 into master
Patrick Donnelly [Tue, 30 Jan 2018 23:17:29 +0000 (15:17 -0800)]
Merge PR #20001 into master

* refs/pull/20001/head:
mds: use the steady clock on tick

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20012 into master
Patrick Donnelly [Tue, 30 Jan 2018 23:17:22 +0000 (15:17 -0800)]
Merge PR #20012 into master

* refs/pull/20012/head:
mds: fix scrub crash

Reviewed-by: Douglas Fuller <dfuller@redhat.com>
7 years agoMerge PR #20079 into master
Patrick Donnelly [Tue, 30 Jan 2018 23:17:16 +0000 (15:17 -0800)]
Merge PR #20079 into master

* refs/pull/20079/head:
mds: set higher priority for some perf counters

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20113 into master
Patrick Donnelly [Tue, 30 Jan 2018 23:17:10 +0000 (15:17 -0800)]
Merge PR #20113 into master

* refs/pull/20113/head:
osdc/ObjectCacher: don't merge TX buffer heads
osdc/ObjectCacher: fix off-by-one error in bh_write_commit()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #20000 from zhouyuan/rgw_beast_listen
Casey Bodley [Tue, 30 Jan 2018 17:04:47 +0000 (12:04 -0500)]
Merge pull request #20000 from zhouyuan/rgw_beast_listen

rgw: allow beast frontend to listen on specific IP address

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20058 from cbodley/wip-doc-rgw-frontends
Casey Bodley [Tue, 30 Jan 2018 16:38:06 +0000 (11:38 -0500)]
Merge pull request #20058 from cbodley/wip-doc-rgw-frontends

doc/rgw: add page for http frontend configuration

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
7 years agoMerge PR #20165 into master
Patrick Donnelly [Tue, 30 Jan 2018 16:35:58 +0000 (08:35 -0800)]
Merge PR #20165 into master

* refs/pull/20165/head:
doc/client: uniform naming

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #20164 from luomuyao/typo
Casey Bodley [Tue, 30 Jan 2018 16:29:45 +0000 (11:29 -0500)]
Merge pull request #20164 from luomuyao/typo

rgw: fix a typo in comment

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #20159 from shun-s/fix-rbd-log
Jason Dillaman [Tue, 30 Jan 2018 13:10:41 +0000 (08:10 -0500)]
Merge pull request #20159 from shun-s/fix-rbd-log

librbd: clean up ManagedLock log prefix

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoclient: properly choose target mds for rmsnap/renamesnap 19825/head
Yan, Zheng [Sun, 7 Jan 2018 12:18:52 +0000 (20:18 +0800)]
client: properly choose target mds for rmsnap/renamesnap

Old code does not set inode or dentry for rmsnap/renamesnap requests.
So rmsnap/renamesnap requests are sent to random mds.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: properly setup need_snapflush for snapped inode
Yan, Zheng [Fri, 5 Jan 2018 01:51:19 +0000 (09:51 +0800)]
mds: properly setup need_snapflush for snapped inode

MDCache::cow_inode() checks "cap->issued() & CEPH_CAP_ANY_WR" to decide
if it needs to setup need_snapflush for the new snapped inode.
Locker::handle_client_caps() should call Locker::_do_cap_update() first,
then update issued caps. Otherwise MDCache::cow_inode() will fail to
setup need_snapflush if cap messages flushes dirty caps and releases the
same caps.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agoMerge pull request #19770 from shinobu-x/mempool_lock
Kefu Chai [Tue, 30 Jan 2018 02:08:48 +0000 (10:08 +0800)]
Merge pull request #19770 from shinobu-x/mempool_lock

common: s/unique_lock/lock_guard/, if manual lock/unlock are not necessary

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agorbd: clean up ManagedLock log prefix 20159/head
shun-s [Mon, 29 Jan 2018 07:48:31 +0000 (15:48 +0800)]
rbd: clean up ManagedLock log prefix

  clean up ManagedLock log prefix

Signed-off-by: shun-s <song.shun3@zte.com.cn>
7 years agoMerge pull request #20052 from ceph/revert-19253-wip-rgw-22124
Casey Bodley [Mon, 29 Jan 2018 21:47:08 +0000 (16:47 -0500)]
Merge pull request #20052 from ceph/revert-19253-wip-rgw-22124

Revert "rgw: reshard should not update stats when linking new bucket instance"

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20171 from linuxbox2/rgw_rvrt_disable_exact
Matt Benjamin [Mon, 29 Jan 2018 18:06:59 +0000 (13:06 -0500)]
Merge pull request #20171 from linuxbox2/rgw_rvrt_disable_exact

Revert "rgw_file: disable FLAG_EXACT_MATCH enforcement"

7 years agoRevert "rgw_file: disable FLAG_EXACT_MATCH enforcement" 20171/head
Matt Benjamin [Mon, 29 Jan 2018 16:12:11 +0000 (11:12 -0500)]
Revert "rgw_file: disable FLAG_EXACT_MATCH enforcement"

This reverts commit 5e0bea71b52f652a5cb6323cf56391ada215c80b.
Fixes: http://tracker.ceph.com/issues/22827
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
7 years agoMerge pull request #20167 from cernceph/dvanders_withhold
Sage Weil [Mon, 29 Jan 2018 14:42:45 +0000 (08:42 -0600)]
Merge pull request #20167 from cernceph/dvanders_withhold

osd: change log level when withholding pg creation

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoosd: change log level when withholding pg creation 20167/head
Dan van der Ster [Mon, 29 Jan 2018 14:34:55 +0000 (15:34 +0100)]
osd: change log level when withholding pg creation

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
7 years agorgw: fix a typo in comment 20164/head
luomuyao [Mon, 29 Jan 2018 11:01:33 +0000 (19:01 +0800)]
rgw: fix a typo in comment

Signed-off-by: luomuyao <luo.muyao@zte.com.cn>
7 years agoMerge pull request #19758 from nrdmn/fix-dashboard-wip
John Spray [Mon, 29 Jan 2018 10:56:00 +0000 (10:56 +0000)]
Merge pull request #19758 from nrdmn/fix-dashboard-wip

pybind/mgr/dashboard: fix reverse proxy support

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20142 from shangzhong/wip-java-native
Kefu Chai [Mon, 29 Jan 2018 10:41:54 +0000 (18:41 +0800)]
Merge pull request #20142 from shangzhong/wip-java-native

java/native: s/jni: lstat/jni: stat in native_ceph_stat

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20130 from k0ste/newfeature
Kefu Chai [Mon, 29 Jan 2018 10:38:05 +0000 (18:38 +0800)]
Merge pull request #20130 from k0ste/newfeature

mgr: balancer: fixed mistype "AttributeError: 'Logger' object has no attribute 'err'"

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20127 from majianpeng/issue_op_cleanup
Kefu Chai [Mon, 29 Jan 2018 10:37:38 +0000 (18:37 +0800)]
Merge pull request #20127 from majianpeng/issue_op_cleanup

osd/ReplicatedBackend: clean up code.

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20119 from Liuchang0812/remove-health-service
Kefu Chai [Mon, 29 Jan 2018 10:37:12 +0000 (18:37 +0800)]
Merge pull request #20119 from Liuchang0812/remove-health-service

mon: remove health service

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20092 from tangwenjun3/wip-fix-write-label
Kefu Chai [Mon, 29 Jan 2018 10:36:43 +0000 (18:36 +0800)]
Merge pull request #20092 from tangwenjun3/wip-fix-write-label

os/bluestore: no need to fsync when failed to write label

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20078 from renhwztetecs/renhw-wip-mon-paxos-cleanup
Kefu Chai [Mon, 29 Jan 2018 10:36:08 +0000 (18:36 +0800)]
Merge pull request #20078 from renhwztetecs/renhw-wip-mon-paxos-cleanup

mon: paxos cleanup

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
7 years agodoc/client: uniform naming 20165/head
huanwen ren [Mon, 29 Jan 2018 10:24:05 +0000 (18:24 +0800)]
doc/client: uniform naming

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
7 years agoMerge pull request #20126 from tchaikov/wip-doc-mgr-auth
John Spray [Mon, 29 Jan 2018 10:03:36 +0000 (10:03 +0000)]
Merge pull request #20126 from tchaikov/wip-doc-mgr-auth

doc: update mgr related auth settings

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #19990 from dillaman/wip-group-cleanup
Mykola Golub [Sun, 28 Jan 2018 14:38:09 +0000 (16:38 +0200)]
Merge pull request #19990 from dillaman/wip-group-cleanup

librbd: group and snapshot cleanup

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agorbd: normalize group command aliases 19990/head
Jason Dillaman [Tue, 16 Jan 2018 21:08:30 +0000 (16:08 -0500)]
rbd: normalize group command aliases

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd: dump op features in image info
Jason Dillaman [Tue, 16 Jan 2018 20:50:08 +0000 (15:50 -0500)]
rbd: dump op features in image info

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agopybind/rbd: normalize image group API
Jason Dillaman [Tue, 16 Jan 2018 20:44:20 +0000 (15:44 -0500)]
pybind/rbd: normalize image group API

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agojava/native: s/jni: lstat/jni: stat in native_ceph_stat 20142/head
Shangzhong Zhu [Sat, 27 Jan 2018 07:31:13 +0000 (15:31 +0800)]
java/native: s/jni: lstat/jni: stat in native_ceph_stat

Signed-off-by: Shangzhong Zhu <zhu.shangzhong@zte.com.cn>
7 years agoMerge pull request #19828 from xxhdx1985126/wip_xxh_trackedop_tracking_start
Yuri Weinstein [Fri, 26 Jan 2018 22:40:31 +0000 (14:40 -0800)]
Merge pull request #19828 from xxhdx1985126/wip_xxh_trackedop_tracking_start

common: mark events of TrackedOp outside its constructor

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #20022 from badone/wip-OSDMonitor-error-message-outputs
Yuri Weinstein [Fri, 26 Jan 2018 22:37:47 +0000 (14:37 -0800)]
Merge pull request #20022 from badone/wip-OSDMonitor-error-message-outputs

mon/OSDMonitor: Fix OSDMonitor error message outputs

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20115 from liewegas/wip-features
Yuri Weinstein [Fri, 26 Jan 2018 22:37:09 +0000 (14:37 -0800)]
Merge pull request #20115 from liewegas/wip-features

mon: fix structure of 'features' command

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20096 from myoungwon/wip-manifest-two-pool-test
Sage Weil [Fri, 26 Jan 2018 20:41:14 +0000 (14:41 -0600)]
Merge pull request #20096 from myoungwon/wip-manifest-two-pool-test

src/test/osd: add two pool test for manifest objects

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20018 from smithfarm/wip-python3-only
Nathan Cutler [Fri, 26 Jan 2018 18:29:14 +0000 (19:29 +0100)]
Merge pull request #20018 from smithfarm/wip-python3-only

build/ops: rpm: conditionalize Python 2 availability to enable Ceph build on Python 3-only system

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
7 years agoMerge pull request #20134 from tchaikov/wip-spdk-aarch64
Kefu Chai [Fri, 26 Jan 2018 16:29:23 +0000 (00:29 +0800)]
Merge pull request #20134 from tchaikov/wip-spdk-aarch64

spdk: update SPDK to fix the build failure on aarch64

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoosd/ReplicatedBackend: clean up code. 20127/head
Jianpeng Ma [Fri, 26 Jan 2018 15:58:18 +0000 (23:58 +0800)]
osd/ReplicatedBackend: clean up code.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agolibrbd: normalize image group C/C++ API
Jason Dillaman [Tue, 16 Jan 2018 20:08:34 +0000 (15:08 -0500)]
librbd: normalize image group C/C++ API

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: shorten the generated group image snapshot name
Jason Dillaman [Wed, 17 Jan 2018 19:03:17 +0000 (14:03 -0500)]
librbd: shorten the generated group image snapshot name

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: properly handle group snap add failure case
Jason Dillaman [Wed, 17 Jan 2018 18:43:58 +0000 (13:43 -0500)]
librbd: properly handle group snap add failure case

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: simplified retrieving snapshots from image header
Jason Dillaman [Wed, 17 Jan 2018 18:40:13 +0000 (13:40 -0500)]
librbd: simplified retrieving snapshots from image header

Added a new cls 'snapshot_get' method that retrieves all snapshot
specific details to avoid the need to add a new cls method to
retrieve each individual snapshot data field.

The cls 'get_snapshot_namespace' method has been dropped since Luminous
clients will treat that as a user-generated snapshot (and that's all
that is supported by Luminous clients). The cls 'get_snapshot_timestamp'
method has been deprecated and can be removed once <=Luminous clients
are no longer supported.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agocls/rbd: automatically manage group op feature on images
Jason Dillaman [Tue, 16 Jan 2018 18:30:53 +0000 (13:30 -0500)]
cls/rbd: automatically manage group op feature on images

When an image is added to a group, set the group op feature
bit and when removed, clear the bit.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agocls/rbd: renamed image group add/remove/get operations
Jason Dillaman [Tue, 16 Jan 2018 18:20:31 +0000 (13:20 -0500)]
cls/rbd: renamed image group add/remove/get operations

The methods are used by the luminous release of librbd but are essentially
no-ops since group support was removed from the API. However, we need to
prevent odd interactions once a new client creates a group and uses an
older client to manipulate the image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agocls/rbd: add new op feature bits for groups and snap trash
Jason Dillaman [Tue, 16 Jan 2018 17:45:48 +0000 (12:45 -0500)]
cls/rbd: add new op feature bits for groups and snap trash

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agocls/rbd: removed unused snapshot feature bitmask
Jason Dillaman [Tue, 16 Jan 2018 19:57:34 +0000 (14:57 -0500)]
cls/rbd: removed unused snapshot feature bitmask

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agocls/rbd: cleanup helper method visibility
Jason Dillaman [Tue, 16 Jan 2018 16:58:23 +0000 (11:58 -0500)]
cls/rbd: cleanup helper method visibility

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: group image add/remove ops should notify update
Jason Dillaman [Tue, 16 Jan 2018 20:37:32 +0000 (15:37 -0500)]
librbd: group image add/remove ops should notify update

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: remove 'consistency' verbiage from group feature
Jason Dillaman [Tue, 16 Jan 2018 17:49:49 +0000 (12:49 -0500)]
librbd: remove 'consistency' verbiage from group feature

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/librbd: treat empty features environment variable as old format
Jason Dillaman [Wed, 17 Jan 2018 18:44:24 +0000 (13:44 -0500)]
test/librbd: treat empty features environment variable as old format

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agosrc/test/osd/TestRados: add a comment 20096/head
myoungwon oh [Fri, 26 Jan 2018 14:59:16 +0000 (23:59 +0900)]
src/test/osd/TestRados: add a comment

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agopybind/mgr: fix typo 19758/head
Nick Erdmann [Fri, 26 Jan 2018 13:40:27 +0000 (13:40 +0000)]
pybind/mgr: fix typo

Signed-off-by: Nick Erdmann <n@nirf.de>
7 years agopybind/mgr/dashboard: fix reverse proxy support
Nick Erdmann [Mon, 22 Jan 2018 12:33:32 +0000 (12:33 +0000)]
pybind/mgr/dashboard: fix reverse proxy support

This fixes http redirection for reverse http proxies

Fixes: http://tracker.ceph.com/issues/22557
Signed-off-by: Nick Erdmann <n@nirf.de>
7 years agoMerge pull request #20064 from tchaikov/wip-cmake-py3
Nathan Cutler [Fri, 26 Jan 2018 13:45:35 +0000 (14:45 +0100)]
Merge pull request #20064 from tchaikov/wip-cmake-py3

cmake: enabled py3 only build

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agospdk: enable SPDK on AArch64 by default 20134/head
Tone Zhang [Fri, 26 Jan 2018 06:52:06 +0000 (06:52 +0000)]
spdk: enable SPDK on AArch64 by default

Enable SPDK in Ceph on AArch64 by default.

Change-Id: I81ad8e0b860968d62fd2740ae04923f477dab75a
Signed-off-by: Tone Zhang <tone.zhang@arm.com>
7 years agospdk: update SPDK to fix the build failure on aarch64
Kefu Chai [Fri, 26 Jan 2018 12:43:03 +0000 (20:43 +0800)]
spdk: update SPDK to fix the build failure on aarch64

to include 29be88fab6bb026df27c93ee89c61965b3c43133 which addresses a
build failure on aarch64.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomgr: be compatible with py3 20064/head
Kefu Chai [Tue, 23 Jan 2018 17:13:50 +0000 (01:13 +0800)]
mgr: be compatible with py3

so ceph-mgr can be compiled using py3

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: build ceph-mgr with specified version of python
Kefu Chai [Tue, 23 Jan 2018 04:58:10 +0000 (12:58 +0800)]
cmake: build ceph-mgr with specified version of python

* add an option named "MGR_PYTHON_VERSION", so we can build ceph-mgr
  which use py3 for running plugins
* also drop the line to specify the "Python_ADDITIONAL_VERSIONS", because
  2.7 is listed by all the the FindPythonInterp and FindPythonLibs in
  cmake 2.8.12 and up.
* use ${MGR_PYTHON_EXECUTABLE} for holding the path to the python
  interpreter used by mgr. because this variable might be overwritten by
  "find_package(PythonInterp 2 REQUIRED)" when checking for building env
  of pybinding for python2.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: add WITH_PYTHON2 option
Kefu Chai [Tue, 23 Jan 2018 05:01:31 +0000 (13:01 +0800)]
cmake: add WITH_PYTHON2 option

* add WITH_PYTHON2 option, so we can build python3 bindings only.
* change the default value of WITH_PYTHON3 option to "OFF", as the
option() command in cmake only allow the initial value to be "ON" or
"OFF". we could use a cached string for this option, but i think it
would be more explicit to continue using the option() command.
* fix the installation dir of "ceph_rest_api.py". please note, we still
have a *default* python version, which is specified by the last element
of ${py_vers}. for instance, ${PYTHON_VERSION} will be 3 if ${py_vers}
is 2;3. in this change, 2 is still the default python version, if both
WITH_PYTHON2 and WITH_PYTHON3 are enabled.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomgr: balancer: fixed mistype "AttributeError: 'Logger' object has no attribute 'err'" 20130/head
Konstantin Shalygin [Fri, 26 Jan 2018 11:31:20 +0000 (18:31 +0700)]
mgr: balancer: fixed mistype "AttributeError: 'Logger' object has no attribute 'err'"

Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
7 years agoMerge pull request #19922 from Rubab-Syed/performance_counter_browser
John Spray [Fri, 26 Jan 2018 11:05:28 +0000 (11:05 +0000)]
Merge pull request #19922 from Rubab-Syed/performance_counter_browser

mgr/dashboard: performance counter browsers

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20009 from Liuchang0812/fix-22727
Kefu Chai [Fri, 26 Jan 2018 07:30:11 +0000 (15:30 +0800)]
Merge pull request #20009 from Liuchang0812/fix-22727

mon: do not use per_pool_sum_delta to show recovery summary

Reviewed-by: Varada Kari <varada.kari@gmail.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20048 from jcsp/wip-22096
Kefu Chai [Fri, 26 Jan 2018 07:28:02 +0000 (15:28 +0800)]
Merge pull request #20048 from jcsp/wip-22096

mon: fix mgr using auth_client_required policy

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agodoc: update mgr related auth settings 20126/head
Kefu Chai [Fri, 26 Jan 2018 07:24:47 +0000 (15:24 +0800)]
doc: update mgr related auth settings

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoqa/suites/rados/thrash/workloads: add paramters to support two pools
myoungwon oh [Wed, 24 Jan 2018 10:52:43 +0000 (19:52 +0900)]
qa/suites/rados/thrash/workloads: add paramters to support two pools

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agobuild/ops: rpm: correct Group for python libraries 20018/head
Nathan Cutler [Thu, 25 Jan 2018 12:22:14 +0000 (13:22 +0100)]
build/ops: rpm: correct Group for python libraries

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agomake-dist: add OBS-specific release suffix on SUSE
Nathan Cutler [Wed, 24 Jan 2018 12:28:10 +0000 (13:28 +0100)]
make-dist: add OBS-specific release suffix on SUSE

This is needed to prevent OBS from overriding the nice release number generated
by make-dist.

For more information, see
https://en.opensuse.org/openSUSE:Build_Service_Tips_and_Tricks#How_to_control_a_Release_number_of_resulted_packages

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agocmake: empty INSTALL_RPATH for libceph_zstd.so.2.0.0
Nathan Cutler [Wed, 24 Jan 2018 08:24:31 +0000 (09:24 +0100)]
cmake: empty INSTALL_RPATH for libceph_zstd.so.2.0.0

See 235448879e5 for explanation.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agobuild/ops: rpm: introduce _python_buildid macro
Nathan Cutler [Wed, 24 Jan 2018 08:17:29 +0000 (09:17 +0100)]
build/ops: rpm: introduce _python_buildid macro

This eliminates several ugly conditional blocks. This commit also does some
cleanup like dropping the ceph-base runtime dependency on "python", which is
implicit in "python-requests".

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agobuild/ops: rpm: move distro-conditional make check deps
Nathan Cutler [Wed, 24 Jan 2018 05:44:37 +0000 (06:44 +0100)]
build/ops: rpm: move distro-conditional make check deps

These were in the wrong section.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agodoc: PendingReleaseNotes: python-ceph-compat deprecate/drop
Nathan Cutler [Wed, 24 Jan 2018 05:26:15 +0000 (06:26 +0100)]
doc: PendingReleaseNotes: python-ceph-compat deprecate/drop

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agobuild/ops: rpm: python3-ceph-argparse only if Python 2 available
Nathan Cutler [Wed, 24 Jan 2018 04:51:05 +0000 (05:51 +0100)]
build/ops: rpm: python3-ceph-argparse only if Python 2 available

The python3-ceph-argparse package is only necessary in environments where
Python 3 might not be available. For distros where Python 3 has become
standard with Python 2 an optional extension (instead of vice versa as
in the current status quo), the files in this package can (and should)
be included in ceph-common directly.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agobuild/ops: rpm: package byte-compiled ceph-rest-api
Nathan Cutler [Tue, 23 Jan 2018 22:19:02 +0000 (23:19 +0100)]
build/ops: rpm: package byte-compiled ceph-rest-api

This is only necessary on Python 3-only systems.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agobuild/ops: rpm: conditionalize Python 2 availability
Nathan Cutler [Thu, 18 Jan 2018 22:19:03 +0000 (23:19 +0100)]
build/ops: rpm: conditionalize Python 2 availability

Not all build targets have Python 2 available. Allow the build
to succeed on pure Python 3 systems.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #19994 from runsisi/wip-objecter-cleanup
Kefu Chai [Fri, 26 Jan 2018 06:36:28 +0000 (14:36 +0800)]
Merge pull request #19994 from runsisi/wip-objecter-cleanup

objecter: minor cleanups

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19651 from yanghonggang/master
Kefu Chai [Fri, 26 Jan 2018 06:34:11 +0000 (14:34 +0800)]
Merge pull request #19651 from yanghonggang/master

mon/OSDMonitor.cc: fix expected_num_objects interpret error

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20124 from dillaman/wip-devstack
Mykola Golub [Fri, 26 Jan 2018 05:41:00 +0000 (07:41 +0200)]
Merge pull request #20124 from dillaman/wip-devstack

qa/workunits/rbd: switch devstack to pike release

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20105 from dillaman/wip-22791
Mykola Golub [Fri, 26 Jan 2018 05:32:41 +0000 (07:32 +0200)]
Merge pull request #20105 from dillaman/wip-22791

librbd: force removal of a snapshot cannot ignore dependent children

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #19320 from vshankar/rbd-mirror-image-map-policy-test
Jason Dillaman [Fri, 26 Jan 2018 03:00:13 +0000 (22:00 -0500)]
Merge pull request #19320 from vshankar/rbd-mirror-image-map-policy-test

test/rbd-mirror: image map policy test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19974 from shun-s/wip-accelerate-rbd-snap-create-rm-speed
Jason Dillaman [Fri, 26 Jan 2018 02:59:48 +0000 (21:59 -0500)]
Merge pull request #19974 from shun-s/wip-accelerate-rbd-snap-create-rm-speed

librbd: cache last index position to accelerate snap create/rm

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19996 from Songweibin/wip-rbd-deep-cp
Jason Dillaman [Fri, 26 Jan 2018 02:59:31 +0000 (21:59 -0500)]
Merge pull request #19996 from Songweibin/wip-rbd-deep-cp

rbd: add deep cp CLI method

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agomgr/dashboard: performance counter browsers 19922/head
Rubab-Syed [Tue, 9 Jan 2018 23:32:42 +0000 (04:32 +0500)]
mgr/dashboard: performance counter browsers

Signed-off-by: Rubab-Syed <rubab.syed21@gmail.com>
7 years agoqa/workunits/rbd: switch devstack to pike release 20124/head
Jason Dillaman [Wed, 24 Jan 2018 16:28:19 +0000 (11:28 -0500)]
qa/workunits/rbd: switch devstack to pike release

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge PR #20060 into master
Patrick Donnelly [Thu, 25 Jan 2018 22:52:17 +0000 (14:52 -0800)]
Merge PR #20060 into master

* refs/pull/20060/head:
ceph-debug-docker.sh: allow specifying branch sha1

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
7 years agolibrbd: force removal of a snapshot cannot ignore dependent children 20105/head
Jason Dillaman [Wed, 24 Jan 2018 19:40:56 +0000 (14:40 -0500)]
librbd: force removal of a snapshot cannot ignore dependent children

Fixes: http://tracker.ceph.com/issues/22791
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoRevert "rgw: reshard should not update stats when linking new bucket instance" 20052/head
Orit Wasserman [Mon, 22 Jan 2018 15:21:24 +0000 (17:21 +0200)]
Revert "rgw: reshard should not update stats when linking new bucket instance"

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #20047 from jcsp/wip-prometheus-qa
Kefu Chai [Thu, 25 Jan 2018 15:43:07 +0000 (23:43 +0800)]
Merge pull request #20047 from jcsp/wip-prometheus-qa

qa: add new prometheus test to rados/mgr suite

Reviewed-By: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19596 from qrGitHub/wip-rgw-lc-scheduleNextStartTime
Casey Bodley [Thu, 25 Jan 2018 15:19:21 +0000 (10:19 -0500)]
Merge pull request #19596 from qrGitHub/wip-rgw-lc-scheduleNextStartTime

rgw: optimize next start time for lifecycle

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
7 years agoMerge pull request #20077 from smithfarm/wip-spdk-fast-forward
Kefu Chai [Thu, 25 Jan 2018 15:02:21 +0000 (23:02 +0800)]
Merge pull request #20077 from smithfarm/wip-spdk-fast-forward

spdk: update submodule to more recent upstream

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomon: remove health service 20119/head
Chang Liu [Thu, 25 Jan 2018 14:46:58 +0000 (22:46 +0800)]
mon: remove health service

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
7 years agocmake: build Boost.python with specified version of python
Kefu Chai [Tue, 23 Jan 2018 04:56:05 +0000 (12:56 +0800)]
cmake: build Boost.python with specified version of python

Signed-off-by: Kefu Chai <kchai@redhat.com>