]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 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 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 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 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 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 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 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>
7 years agoMerge pull request #19235 from jcsp/wip-mgr-can-run
John Spray [Thu, 25 Jan 2018 11:23:36 +0000 (11:23 +0000)]
Merge pull request #19235 from jcsp/wip-mgr-can-run

mgr: improved module loading for error reporting etc

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agolibrbd: fix snap create/rm may taking long time 19974/head
Song Shun [Wed, 17 Jan 2018 01:32:45 +0000 (09:32 +0800)]
librbd: fix snap create/rm may taking long time

  fix snap create/rm may taking long time
  http://tracker.ceph.com/issues/22716

Signed-off-by: Song Shun <song.shun3@zte.com.cn>
7 years agoMerge pull request #19122 from smithfarm/wip-lowmem-builder
Nathan Cutler [Thu, 25 Jan 2018 08:36:39 +0000 (09:36 +0100)]
Merge pull request #19122 from smithfarm/wip-lowmem-builder

build/ops: rpm: set build parallelism based on available memory

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
7 years agobuild/ops: cmake: do not guard certain tools with WITH_TESTS 19122/head
Nathan Cutler [Fri, 24 Nov 2017 07:51:38 +0000 (08:51 +0100)]
build/ops: cmake: do not guard certain tools with WITH_TESTS

As a follow-up to d7b493a7108a68302bc0f48337bf3c253a720266 we need to stop guarding

    ceph-osdomap-tool
    ceph-monstore-tool

with WITH_TESTS because they have been moved out of the ceph-test package.

(N.B. ceph-kvstore-tool was also moved out of ceph-test, but apparently never
had the guard.)

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agobuild/ops: rpm: let ctest benefit from memory calculation
Nathan Cutler [Fri, 19 Jan 2018 07:02:42 +0000 (08:02 +0100)]
build/ops: rpm: let ctest benefit from memory calculation

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agobuild/ops: rpm: override %_smp_mflags if not enough memory
Nathan Cutler [Thu, 19 May 2016 18:03:29 +0000 (20:03 +0200)]
build/ops: rpm: override %_smp_mflags if not enough memory

Sometimes the build machine has lots of processor cores and not enough
memory to successfully build Ceph on all of them at once. Calculate
how many parallel build processes we can sustain with the memory we
have and set a lower build parallelism if necessary. Never exceed
the value set by %_smp_mflags even if memory is aplenty.

Credits to Tomáš Chvátal for the original idea and implementation.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agobuild/ops: rpm: fix Group for rados-objclass-devel subpackage
Nathan Cutler [Mon, 27 Nov 2017 13:22:07 +0000 (14:22 +0100)]
build/ops: rpm: fix Group for rados-objclass-devel subpackage

Fixes RPMLINT warning "non-standard-group Development/Libraries"

Also, the Group: line is only needed for SUSE so put it in an appropriate
distro conditional.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #19384 from ivancich/wip-rgw-lazy-cache-put-on-excl-create
Casey Bodley [Wed, 24 Jan 2018 20:43:58 +0000 (15:43 -0500)]
Merge pull request #19384 from ivancich/wip-rgw-lazy-cache-put-on-excl-create

rgw: do not update all gateway caches upon creation of system obj w/ exclusive flag

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa: always dump corrupt messages in rados/upgrade 19235/head
John Spray [Wed, 24 Jan 2018 14:33:44 +0000 (09:33 -0500)]
qa: always dump corrupt messages in rados/upgrade

Previously only a service with debug_ms>=1 would dump
corrupt messages: in an upgrade test we're *alway*
interested in a corrupt message.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: refactor get_modules/list_modules
John Spray [Thu, 14 Dec 2017 16:29:00 +0000 (11:29 -0500)]
mgr: refactor get_modules/list_modules

list_modules is really about searching for them
on disk, so it's now probe_modules and private.

Both methods now return values instead of populating
an argument, since when called they were always writing into
a newly constructed container.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agodoc: note new mgr module error codes
John Spray [Tue, 28 Nov 2017 18:05:57 +0000 (13:05 -0500)]
doc: note new mgr module error codes

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomon: expose can_run flag in `module ls` + mgr dump
John Spray [Tue, 28 Nov 2017 13:57:28 +0000 (08:57 -0500)]
mon: expose can_run flag in `module ls` + mgr dump

Enable people to see can_run failures and the explanatory
messages (telling them about a missing dependency)
before trying to enable a module.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: add health checks for failed modules
John Spray [Mon, 27 Nov 2017 12:42:37 +0000 (07:42 -0500)]
mgr: add health checks for failed modules

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoqa/mgr: add test for command execution errors
John Spray [Thu, 23 Nov 2017 15:49:51 +0000 (10:49 -0500)]
qa/mgr: add test for command execution errors

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: load command definitions earlier
John Spray [Thu, 23 Nov 2017 13:01:33 +0000 (08:01 -0500)]
mgr: load command definitions earlier

...and for all modules, not just the active ones.

This enables us to give better feedback to the user
when they try and use a command from a disabled module,
and also fixes the race between enabling a module and
trying to use its commands.

Fixes: http://tracker.ceph.com/issues/21683
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: evaluate `can_run` method on modules
John Spray [Thu, 16 Nov 2017 21:30:39 +0000 (16:30 -0500)]
mgr: evaluate `can_run` method on modules

...and transmit the result to the monitor in
our beacon.

Fixes: http://tracker.ceph.com/issues/21502
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: load all modules (not just active ones)
John Spray [Thu, 16 Nov 2017 11:45:45 +0000 (06:45 -0500)]
mgr: load all modules (not just active ones)

This is to enable us to learn more about the module
before it is enabled, such as whether its can_run method
return true.

We can also use this to enable loading a module's
commands before it is enabled, to give the user
a better response when they try to use a command
belong to a module that is not loaded.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20054 from ceph/wip-rm22619
Andrew Schoen [Wed, 24 Jan 2018 17:22:56 +0000 (18:22 +0100)]
Merge pull request #20054 from ceph/wip-rm22619

ceph-volume: dmcrypt support for lvm

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agobuild/ops: rpm: introduce _remote_tarball_prefix macro
Nathan Cutler [Sat, 25 Nov 2017 17:45:58 +0000 (18:45 +0100)]
build/ops: rpm: introduce _remote_tarball_prefix macro

With this macro, we can use a single Source0 line for all supported distros.
RH/CentOS/Fedora needs the prefix, while SUSE builds in the OBS use a local
tarball.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agobuild/ops: rpm: use %_fillupdir macro in openSUSE/SLES
sysrich [Sat, 25 Nov 2017 20:02:15 +0000 (21:02 +0100)]
build/ops: rpm: use %_fillupdir macro in openSUSE/SLES

Replace references to /var/adm/fillup-templates with new %_fillupdir macro

Fixes: https://bugzilla.opensuse.org/show_bug.cgi?id=1069468
Signed-off-by: Richard Brown <rbrown@suse.com>
7 years agobuild/ops: rpm: reconstruct SUSE bconds
Nathan Cutler [Fri, 24 Nov 2017 05:58:40 +0000 (06:58 +0100)]
build/ops: rpm: reconstruct SUSE bconds

Disable java build completely. Enable lttng build on SLES only, and only for
certain architectures.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #20083 from liewegas/wip-msgr2-goals
Sage Weil [Wed, 24 Jan 2018 10:22:38 +0000 (04:22 -0600)]
Merge pull request #20083 from liewegas/wip-msgr2-goals

doc/dev/msgr2.rst: a few notes on protocol goals

Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agorbd: add deep cp CLI method 19996/head
songweibin [Thu, 18 Jan 2018 02:56:19 +0000 (10:56 +0800)]
rbd: add deep cp CLI method

Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agodoc/dev/msgr2.rst: a few notes on protocol goals 20083/head
Sage Weil [Tue, 23 Jan 2018 23:40:43 +0000 (17:40 -0600)]
doc/dev/msgr2.rst: a few notes on protocol goals

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20010 from ceph/wip-rm22653
Alfredo Deza [Tue, 23 Jan 2018 19:24:55 +0000 (14:24 -0500)]
Merge pull request #20010 from ceph/wip-rm22653

ceph-volume: adds a --destroy flag to ceph-volume lvm zap

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume add lvm/encryption to the index 20054/head
Alfredo Deza [Mon, 22 Jan 2018 19:21:37 +0000 (14:21 -0500)]
doc/ceph-volume add lvm/encryption to the index

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/man/ceph-volume add dmcrypt support
Alfredo Deza [Mon, 22 Jan 2018 17:11:32 +0000 (12:11 -0500)]
doc/man/ceph-volume add dmcrypt support

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/man/ceph-volume add docs for zap sub-command
Alfredo Deza [Mon, 22 Jan 2018 17:06:25 +0000 (12:06 -0500)]
doc/man/ceph-volume add docs for zap sub-command

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/man/ceph-volume add docs for list sub-command
Alfredo Deza [Mon, 22 Jan 2018 17:03:18 +0000 (12:03 -0500)]
doc/man/ceph-volume add docs for list sub-command

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/dev/ceph-volume update internal LVM metadata information
Alfredo Deza [Mon, 22 Jan 2018 16:41:32 +0000 (11:41 -0500)]
doc/dev/ceph-volume update internal LVM metadata information

Includes dmcrypt information, and updated key names to reflect current
code

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add xenial filestore tests for dmcrypt
Alfredo Deza [Fri, 19 Jan 2018 16:12:52 +0000 (11:12 -0500)]
ceph-volume tests.functional add xenial filestore tests for dmcrypt

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #20020 from mikechristie/wip-doc-mnc-update-iscsi-client
Jason Dillaman [Tue, 23 Jan 2018 14:11:32 +0000 (09:11 -0500)]
Merge pull request #20020 from mikechristie/wip-doc-mnc-update-iscsi-client

doc: update ceph iscsi kernel and package info

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18323 from thmour/thmour_rbdtrash
Jason Dillaman [Tue, 23 Jan 2018 13:35:51 +0000 (08:35 -0500)]
Merge pull request #18323 from thmour/thmour_rbdtrash

rbd: replace trash delay option, add rbd trash purge command

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20014 from liewegas/wip-rbd-validate
Jason Dillaman [Tue, 23 Jan 2018 13:34:58 +0000 (08:34 -0500)]
Merge pull request #20014 from liewegas/wip-rbd-validate

common/options,librbd/Utils: refactor RBD feature validation

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agomgr: apply auth_service_required to client conns 20048/head
John Spray [Tue, 23 Jan 2018 12:43:12 +0000 (07:43 -0500)]
mgr: apply auth_service_required to client conns

Previously was using auth_cluster_required for all
connections, which meant that if someone had
disabled client cephx, they'd get BADAUTHORIZER
from their CLI when it tried to load mgr
command descriptions.

Disabling cephx on the admin CLI is odd, but the mon
tolerates it so the mgr should too.

Fixes: https://tracker.ceph.com/issues/22096
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoosdc: build MOSDOp message in Objecter::_send_op 19994/head
runsisi [Thu, 18 Jan 2018 02:22:57 +0000 (10:22 +0800)]
osdc: build MOSDOp message in Objecter::_send_op

it's more intuitive and consistent

Signed-off-by: runsisi <runsisi@zte.com.cn>
7 years agospdk: update submodule to more recent upstream 20077/head
Nathan Cutler [Tue, 23 Jan 2018 11:30:57 +0000 (12:30 +0100)]
spdk: update submodule to more recent upstream

This commit fast-forwards the SPDK submodule to upstream commit
93bd60e0de6b161567182d965239735bf467e85c to enable the py3-only build.
(Without said commit, SPDK configure script fails to find the python
interpreter in py3-only environment.)

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agorbd trash: replace cli delay option, add rbd trash purge command 18323/head
Theofilos Mouratidis [Wed, 6 Dec 2017 12:39:18 +0000 (13:39 +0100)]
rbd trash: replace cli delay option, add rbd trash purge command

Replaced the delay argument for the trash move
command with a string acceptable by /bin/date, e.g.:

$ rbd trash move --pool foo --image bar --expires-in "2 weeks"

Added a "rbd trash purge" command that deletes any expired
image from the trash, has also a command to alter the current
expiration date with the "--older-than" argument which accepts
again a valid argument for /bin/date, e.g.:

$rbd trash purge mypool --older-than "2017-08-20"

There is also the "threshold" argument which tries to remove the
oldest trashed images (by deferment end time) until the pool space
is freed up to a percentage point, e.g.:

$ rbd trash purge mypool --threshold 0.9

If mypool uses 1GB it will try to remove trashed images until the
pool usage becomes equal to or lower than 900MB.

Signed-off-by: Theofilos Mouratidis <t.mour@cern.ch>
7 years agoosdc: remove Objecter::kick_requests which is unused
runsisi [Thu, 18 Jan 2018 02:13:43 +0000 (10:13 +0800)]
osdc: remove Objecter::kick_requests which is unused

Signed-off-by: runsisi <runsisi@zte.com.cn>
7 years agoqa: assign prometheus ports during selftest 20047/head
John Spray [Mon, 22 Jan 2018 16:04:27 +0000 (16:04 +0000)]
qa: assign prometheus ports during selftest

This was throwing IOError("Port 9283 not free on '::'",)
when trying to serve, since merging https://github.com/ceph/ceph/pull/19744

It's because the standbys (on the same node as the active) are
now trying to listen too.

Fixes: https://tracker.ceph.com/issues/22755
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoqa: add new prometheus test to rados/mgr suite
John Spray [Mon, 22 Jan 2018 13:32:06 +0000 (13:32 +0000)]
qa: add new prometheus test to rados/mgr suite

Added in https://github.com/ceph/ceph/pull/19744

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20005 from jcsp/wip-mgr-minor
John Spray [Tue, 23 Jan 2018 10:17:50 +0000 (10:17 +0000)]
Merge pull request #20005 from jcsp/wip-mgr-minor

mgr: remove a few junk lines

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomgr: remove a few junk lines 20005/head
John Spray [Thu, 18 Jan 2018 13:25:40 +0000 (13:25 +0000)]
mgr: remove a few junk lines

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomon: use pool_sum as param name in PGMapDigest::recovery_summary 20009/head
Chang Liu [Tue, 23 Jan 2018 07:39:56 +0000 (15:39 +0800)]
mon: use pool_sum as param name in PGMapDigest::recovery_summary

the param name of delta_sum of PGMapDigest::recovery_summary() is misleading too.
delta_sum fits the recovery_rate_summary() well, but not recovery_summary().

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
7 years agoMerge pull request #19988 from liewegas/wip-22673
Kefu Chai [Tue, 23 Jan 2018 07:48:11 +0000 (15:48 +0800)]
Merge pull request #19988 from liewegas/wip-22673

osd: only exit if *latest* map(s) say we are destroyed

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agorbd-mirror: image map policy tests 19320/head
Venky Shankar [Mon, 4 Dec 2017 06:30:22 +0000 (01:30 -0500)]
rbd-mirror: image map policy tests

Signed-off-by: Venky Shankar <vshankar@redhat.com>
7 years agoMerge pull request #20059 from ceph/wip-rm22427
Sage Weil [Tue, 23 Jan 2018 00:16:10 +0000 (18:16 -0600)]
Merge pull request #20059 from ceph/wip-rm22427

doc/ceph-volume OSD use the fsid file, not the osd_fsid

7 years agoMerge pull request #19979 from k0ste/prometheus_metadata
Sage Weil [Tue, 23 Jan 2018 00:15:34 +0000 (18:15 -0600)]
Merge pull request #19979 from k0ste/prometheus_metadata

mgr: prometheus: set metadata metrics value to '1' (#22717).

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
7 years agoMerge pull request #19980 from k0ste/prometheus_latency
Sage Weil [Tue, 23 Jan 2018 00:14:12 +0000 (18:14 -0600)]
Merge pull request #19980 from k0ste/prometheus_latency

mgr: prometheus: added osd commit/apply latency metrics (#22718).

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #19986 from tchaikov/wip-denc-size-t-featured
Sage Weil [Mon, 22 Jan 2018 23:51:34 +0000 (17:51 -0600)]
Merge pull request #19986 from tchaikov/wip-denc-size-t-featured

denc: should check element's type not 'size_t'

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #20028 from mogeb/steady-clock-rados
Sage Weil [Mon, 22 Jan 2018 23:51:02 +0000 (17:51 -0600)]
Merge pull request #20028 from mogeb/steady-clock-rados

rados: use WaitInterval()'s return value instead of manual timing

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20044 from tchaikov/wip-22419
Sage Weil [Mon, 22 Jan 2018 23:50:07 +0000 (17:50 -0600)]
Merge pull request #20044 from tchaikov/wip-22419

osd: update store with options after pg is created

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20032 from liewegas/wip-name-shadowing
Sage Weil [Mon, 22 Jan 2018 23:49:09 +0000 (17:49 -0600)]
Merge pull request #20032 from liewegas/wip-name-shadowing

mon/OSDMonitor: rename outer name declaration to avoid shadowing

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20015 from cbodley/wip-crypto--
Sage Weil [Mon, 22 Jan 2018 23:48:20 +0000 (17:48 -0600)]
Merge pull request #20015 from cbodley/wip-crypto--

crypto: remove cryptopp library

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20029 from tchaikov/wip-osx-build
Sage Weil [Mon, 22 Jan 2018 23:48:00 +0000 (17:48 -0600)]
Merge pull request #20029 from tchaikov/wip-osx-build

osdc,os,osd: fix build on osx

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #20046 from tchaikov/wip-22711
Sage Weil [Mon, 22 Jan 2018 23:46:30 +0000 (17:46 -0600)]
Merge pull request #20046 from tchaikov/wip-22711

test: reduce the chance to have degraded PGs

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agodoc: fix ceph-iscsi-config version number 20020/head
Mike Christie [Mon, 22 Jan 2018 23:08:55 +0000 (17:08 -0600)]
doc: fix ceph-iscsi-config version number

Signed-off-by: Mike Christie <mchristi@redhat.com>
7 years agodoc/ceph-volume OSD use the fsid file, not the osd_fsid 20059/head
Alfredo Deza [Mon, 22 Jan 2018 20:16:40 +0000 (15:16 -0500)]
doc/ceph-volume OSD use the fsid file, not the osd_fsid

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-debug-docker.sh: allow specifying branch sha1 20060/head
Patrick Donnelly [Mon, 22 Jan 2018 20:11:06 +0000 (12:11 -0800)]
ceph-debug-docker.sh: allow specifying branch sha1

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoceph-volume tests.functional add xenial bluestore tests for dmcrypt
Alfredo Deza [Fri, 19 Jan 2018 16:12:40 +0000 (11:12 -0500)]
ceph-volume tests.functional add xenial bluestore tests for dmcrypt

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add dmcrypt support in tox.ini
Alfredo Deza [Fri, 19 Jan 2018 16:08:25 +0000 (11:08 -0500)]
ceph-volume tests.functional add dmcrypt support in tox.ini

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add centos7 filestore tests for dmcrypt
Alfredo Deza [Fri, 19 Jan 2018 16:03:58 +0000 (11:03 -0500)]
ceph-volume tests.functional add centos7 filestore tests for dmcrypt

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add centos7 bluestore tests for dmcrypt
Alfredo Deza [Fri, 19 Jan 2018 15:45:32 +0000 (10:45 -0500)]
ceph-volume tests.functional add centos7 bluestore tests for dmcrypt

Signed-off-by: Alfredo Deza <adeza@redhat.com>