Commit Graph

82569 Commits

Author SHA1 Message Date
Kefu Chai
d61b129e4e
Merge pull request #20119 from Liuchang0812/remove-health-service
mon: remove health service

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-01-29 18:37:12 +08:00
Kefu Chai
9c45641540
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>
2018-01-29 18:36:43 +08:00
Kefu Chai
2a5b62a394
Merge pull request #20078 from renhwztetecs/renhw-wip-mon-paxos-cleanup
mon: paxos cleanup

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2018-01-29 18:36:08 +08:00
John Spray
b2d406e07f
Merge pull request #20126 from tchaikov/wip-doc-mgr-auth
doc: update mgr related auth settings

Reviewed-by: John Spray <john.spray@redhat.com>
2018-01-29 10:03:36 +00:00
Mykola Golub
0d4a71ed23
Merge pull request #19990 from dillaman/wip-group-cleanup
librbd: group and snapshot cleanup

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-01-28 16:38:09 +02:00
Jason Dillaman
9a938088f3 rbd: normalize group command aliases
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-27 08:02:45 -05:00
Jason Dillaman
471a5a93bb rbd: dump op features in image info
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-27 08:02:45 -05:00
Jason Dillaman
36d3b17dc8 pybind/rbd: normalize image group API
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-27 08:02:43 -05:00
Yuri Weinstein
eb55a14e08
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>
2018-01-26 14:40:31 -08:00
Yuri Weinstein
e59258943b
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>
2018-01-26 14:37:47 -08:00
Yuri Weinstein
dae4d67e2c
Merge pull request #20115 from liewegas/wip-features
mon: fix structure of 'features' command

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-01-26 14:37:09 -08:00
Sage Weil
f67bd47d0a
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>
2018-01-26 14:41:14 -06:00
Nathan Cutler
31c605846a
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>
2018-01-26 19:29:14 +01:00
Kefu Chai
7fe6917ba6
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>
2018-01-27 00:29:23 +08:00
Jason Dillaman
86772a187a librbd: normalize image group C/C++ API
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-26 10:32:40 -05:00
Jason Dillaman
3c4e2c1021 librbd: shorten the generated group image snapshot name
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-26 10:32:40 -05:00
Jason Dillaman
deba6b419c librbd: properly handle group snap add failure case
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-26 10:32:40 -05:00
Jason Dillaman
4ad9d565a1 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>
2018-01-26 10:32:40 -05:00
Jason Dillaman
7cd13f8351 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>
2018-01-26 10:32:40 -05:00
Jason Dillaman
94dc5aeb24 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>
2018-01-26 10:32:40 -05:00
Jason Dillaman
c0801af32d cls/rbd: add new op feature bits for groups and snap trash
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-26 10:32:40 -05:00
Jason Dillaman
41c5f323fd cls/rbd: removed unused snapshot feature bitmask
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-26 10:32:40 -05:00
Jason Dillaman
19a9c3bfa5 cls/rbd: cleanup helper method visibility
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-26 10:32:40 -05:00
Jason Dillaman
0ce2c8344f librbd: group image add/remove ops should notify update
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-26 10:32:40 -05:00
Jason Dillaman
4432e7eb45 librbd: remove 'consistency' verbiage from group feature
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-26 10:32:40 -05:00
Jason Dillaman
ac56e7bbd9 test/librbd: treat empty features environment variable as old format
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-26 10:32:40 -05:00
myoungwon oh
94e7b14205 src/test/osd/TestRados: add a comment
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2018-01-26 23:59:16 +09:00
Nathan Cutler
e544f14969
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>
2018-01-26 14:45:35 +01:00
Tone Zhang
95a83580df 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>
2018-01-26 21:05:02 +08:00
Kefu Chai
539e046bd0 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>
2018-01-26 20:55:51 +08:00
Kefu Chai
4600307592 mgr: be compatible with py3
so ceph-mgr can be compiled using py3

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-01-26 20:24:54 +08:00
Kefu Chai
9e45edaab2 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>
2018-01-26 20:24:54 +08:00
Kefu Chai
8b21ba9242 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>
2018-01-26 20:06:21 +08:00
John Spray
367c462882
Merge pull request #19922 from Rubab-Syed/performance_counter_browser
mgr/dashboard: performance counter browsers

Reviewed-by: John Spray <john.spray@redhat.com>
2018-01-26 11:05:28 +00:00
Kefu Chai
c641b205a8
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>
2018-01-26 15:30:11 +08:00
Kefu Chai
73cc02d328
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>
2018-01-26 15:28:02 +08:00
Kefu Chai
8c2037effa doc: update mgr related auth settings
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-01-26 15:24:47 +08:00
myoungwon oh
a1d6304442 qa/suites/rados/thrash/workloads: add paramters to support two pools
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2018-01-26 16:20:01 +09:00
Nathan Cutler
ea5ac3cdde build/ops: rpm: correct Group for python libraries
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-01-26 07:42:18 +01:00
Nathan Cutler
ca6c92b3ec 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>
2018-01-26 07:42:18 +01:00
Nathan Cutler
fab20559e7 cmake: empty INSTALL_RPATH for libceph_zstd.so.2.0.0
See 235448879e for explanation.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-01-26 07:42:18 +01:00
Nathan Cutler
d688b23ff8 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>
2018-01-26 07:42:18 +01:00
Nathan Cutler
e9e62cbf81 build/ops: rpm: move distro-conditional make check deps
These were in the wrong section.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-01-26 07:42:18 +01:00
Nathan Cutler
5ec2364421 doc: PendingReleaseNotes: python-ceph-compat deprecate/drop
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-01-26 07:42:18 +01:00
Nathan Cutler
c0b7aab381 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>
2018-01-26 07:42:18 +01:00
Nathan Cutler
b2d45578e7 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>
2018-01-26 07:42:18 +01:00
Nathan Cutler
661ccdbaa1 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>
2018-01-26 07:42:18 +01:00
Kefu Chai
2d072dc543
Merge pull request #19994 from runsisi/wip-objecter-cleanup
objecter: minor cleanups

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-01-26 14:36:28 +08:00
Kefu Chai
4233cc02d4
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>
2018-01-26 14:34:11 +08:00
Mykola Golub
023759c7c1
Merge pull request #20124 from dillaman/wip-devstack
qa/workunits/rbd: switch devstack to pike release

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-01-26 07:41:00 +02:00