]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agocommon: get_str_vec and friends use for_each_substr 18798/head
Casey Bodley [Fri, 3 Nov 2017 18:44:54 +0000 (14:44 -0400)]
common: get_str_vec and friends use for_each_substr

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agocommon: add for_each_substr() for cheap string split
Casey Bodley [Tue, 7 Nov 2017 15:54:59 +0000 (10:54 -0500)]
common: add for_each_substr() for cheap string split

using boost::string_view avoids copies (and potential allocation) of
the substrings

using a callback model avoids baking in the container type, along with
the copies and allocations required for insertion

this interface is ideal for cases where you just want to iterate over
the substrings, and don't actually need to store them in a container

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agotest/common: extend str_list tests to include set
Casey Bodley [Fri, 3 Nov 2017 20:25:24 +0000 (16:25 -0400)]
test/common: extend str_list tests to include set

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agocommon: add simplified interfaces to get_str_*
Casey Bodley [Fri, 3 Nov 2017 20:24:22 +0000 (16:24 -0400)]
common: add simplified interfaces to get_str_*

the simpler interfaces rely on return value optimization to avoid
copying the result. removing the container from the argument list makes
it easier to provide a default argument for 'delims'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18823 from ceph/wip-bz1498200
Andrew Schoen [Thu, 9 Nov 2017 18:01:12 +0000 (12:01 -0600)]
Merge pull request #18823 from ceph/wip-bz1498200

ceph-volume: support GPT and other deployed OSDs

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #18817 from ZVampirEM77/wip-em-zone-cleanup
Yuri Weinstein [Thu, 9 Nov 2017 17:36:26 +0000 (09:36 -0800)]
Merge pull request #18817 from ZVampirEM77/wip-em-zone-cleanup

rgw cleanup: some unnecessary function called and repeated assignment

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18683 from tchaikov/wip-erasure-cleanup
Sage Weil [Thu, 9 Nov 2017 17:10:27 +0000 (11:10 -0600)]
Merge pull request #18683 from tchaikov/wip-erasure-cleanup

erasure-code: refactor the interfaces to hide internals from public

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agodoc/ceph-volume include the top level systemd.rst in the toctree 18823/head
Alfredo Deza [Thu, 9 Nov 2017 15:50:43 +0000 (10:50 -0500)]
doc/ceph-volume include the top level systemd.rst in the toctree

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate add --file in help docstring as an example
Alfredo Deza [Thu, 9 Nov 2017 11:49:49 +0000 (06:49 -0500)]
ceph-volume simple.activate add --file in help docstring as an example

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume activate has a --file option for json files
Alfredo Deza [Thu, 9 Nov 2017 11:46:59 +0000 (06:46 -0500)]
doc/ceph-volume activate has a --file option for json files

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate enable the osd when activating
Alfredo Deza [Wed, 8 Nov 2017 22:23:41 +0000 (17:23 -0500)]
ceph-volume simple.activate enable the osd when activating

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume systemd.systemctl always force symlink when masking ceph-disk
Alfredo Deza [Wed, 8 Nov 2017 20:25:05 +0000 (15:25 -0500)]
ceph-volume systemd.systemctl always force symlink when masking ceph-disk

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate use the contents of the JSON file, fallback to CLI args
Alfredo Deza [Wed, 8 Nov 2017 20:21:10 +0000 (15:21 -0500)]
ceph-volume simple.activate use the contents of the JSON file, fallback to CLI args

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate only check for missing id and uuid if file is not passed in
Alfredo Deza [Wed, 8 Nov 2017 19:50:16 +0000 (14:50 -0500)]
ceph-volume simple.activate only check for missing id and uuid if file is not passed in

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate allow to pass a file to activate
Alfredo Deza [Wed, 8 Nov 2017 19:28:12 +0000 (14:28 -0500)]
ceph-volume simple.activate allow to pass a file to activate

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.util add tests for OSDPath validator
Alfredo Deza [Wed, 8 Nov 2017 17:49:31 +0000 (12:49 -0500)]
ceph-volume tests.util add tests for OSDPath validator

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume systemd.systemctl masking ceph-disk needs to be done by directly symlinki...
Alfredo Deza [Wed, 8 Nov 2017 16:56:36 +0000 (11:56 -0500)]
ceph-volume systemd.systemctl masking ceph-disk needs to be done by directly symlinking to dev/null

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume systemd.systemctl masking needs to use systemctl mask, not disable
Alfredo Deza [Wed, 8 Nov 2017 14:47:12 +0000 (09:47 -0500)]
ceph-volume systemd.systemctl masking needs to use systemctl mask, not disable

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.scan if mounted device cannot be detected, raise an error
Alfredo Deza [Wed, 8 Nov 2017 14:46:20 +0000 (09:46 -0500)]
ceph-volume simple.scan if mounted device cannot be detected, raise an error

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate remove str formatting from logging
Alfredo Deza [Wed, 8 Nov 2017 14:17:52 +0000 (09:17 -0500)]
ceph-volume simple.activate remove str formatting from logging

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume util.arg_validators always convert the path to an absolute path
Alfredo Deza [Wed, 8 Nov 2017 14:11:41 +0000 (09:11 -0500)]
ceph-volume util.arg_validators always convert the path to an absolute path

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #18781 from iliul/correct-error-messages
Casey Bodley [Thu, 9 Nov 2017 14:48:26 +0000 (09:48 -0500)]
Merge pull request #18781 from iliul/correct-error-messages

rgw/rgw_op.cc: Fix error message in rgw_user_get_all_buckets_stats

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18796 from ivancich/wip-fix-fmt-warnings
Casey Bodley [Thu, 9 Nov 2017 14:43:33 +0000 (09:43 -0500)]
Merge pull request #18796 from ivancich/wip-fix-fmt-warnings

rgw: address warnings due to incorrect format code

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #17659 from majianpeng/osd-wait-ratherthan-waitinterval
Kefu Chai [Thu, 9 Nov 2017 14:18:47 +0000 (22:18 +0800)]
Merge pull request #17659 from majianpeng/osd-wait-ratherthan-waitinterval

osd/OSD: Using Wait rather than WaitInterval to wait queue.is_empty().

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18759 from tchaikov/wip-mon-log-last
Kefu Chai [Thu, 9 Nov 2017 14:17:31 +0000 (22:17 +0800)]
Merge pull request #18759 from tchaikov/wip-mon-log-last

mon/LogMonitor: "log last" should return up to n entries

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18779 from tchaikov/wip-osd-remove-unused-objects_read_async
Kefu Chai [Thu, 9 Nov 2017 14:16:51 +0000 (22:16 +0800)]
Merge pull request #18779 from tchaikov/wip-osd-remove-unused-objects_read_async

osd: remove unused ReplicatedBackend::objects_read_async()

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Xinze Chi <xinze@xsky.com>
7 years agoMerge pull request #18809 from tchaikov/wip-21904
Kefu Chai [Thu, 9 Nov 2017 14:15:06 +0000 (22:15 +0800)]
Merge pull request #18809 from tchaikov/wip-21904

mgr/zabbix: ignore osd with 0 kb capacity

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Wido den Hollander <wido@42on.com>
7 years agorgw/rgw_op.cc: Fix error message in rgw_user_get_all_buckets_stats 18781/head
iliul [Tue, 7 Nov 2017 07:17:26 +0000 (15:17 +0800)]
rgw/rgw_op.cc: Fix error message in rgw_user_get_all_buckets_stats

Signed-off-by: iliul <liul.stone@gmail.com>
7 years agoceph-volume util.arg_validators require superuser privs to check paths
Alfredo Deza [Wed, 8 Nov 2017 14:10:47 +0000 (09:10 -0500)]
ceph-volume util.arg_validators require superuser privs to check paths

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.scan skip directories to scan
Alfredo Deza [Wed, 8 Nov 2017 14:09:06 +0000 (09:09 -0500)]
ceph-volume simple.scan skip directories to scan

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.devices.simple add activate CLI unit tests
Alfredo Deza [Tue, 7 Nov 2017 20:08:13 +0000 (15:08 -0500)]
ceph-volume tests.devices.simple add activate CLI unit tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.devices add help menu unit test
Alfredo Deza [Tue, 7 Nov 2017 20:07:44 +0000 (15:07 -0500)]
ceph-volume tests.devices add help menu unit test

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume systemd describe the interaction with 'simple' activation
Alfredo Deza [Tue, 7 Nov 2017 18:42:45 +0000 (13:42 -0500)]
doc/ceph-volume systemd describe the interaction with 'simple' activation

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume index initial description of simple
Alfredo Deza [Tue, 7 Nov 2017 18:42:11 +0000 (13:42 -0500)]
doc/ceph-volume index initial description of simple

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume lvm add back a system.rst with just the lvm portion of it
Alfredo Deza [Tue, 7 Nov 2017 18:41:12 +0000 (13:41 -0500)]
doc/ceph-volume lvm add back a system.rst with just the lvm portion of it

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume make systemd.rst generic enough to be related to other sub-commands
Alfredo Deza [Tue, 7 Nov 2017 18:40:44 +0000 (13:40 -0500)]
doc/ceph-volume make systemd.rst generic enough to be related to other sub-commands

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume move lvm/systemd.rst to top level, making it generic
Alfredo Deza [Tue, 7 Nov 2017 18:39:52 +0000 (13:39 -0500)]
doc/ceph-volume move lvm/systemd.rst to top level, making it generic

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume simple.activate initial take on documenting activation
Alfredo Deza [Tue, 7 Nov 2017 16:52:17 +0000 (11:52 -0500)]
doc/ceph-volume simple.activate initial take on documenting activation

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume lvm update systemd anchor to reflect lvm parent
Alfredo Deza [Tue, 7 Nov 2017 13:35:57 +0000 (08:35 -0500)]
doc/ceph-volume lvm update systemd anchor to reflect lvm parent

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume lvm.activate update systemd anchor to reflect lvm parent
Alfredo Deza [Tue, 7 Nov 2017 13:35:43 +0000 (08:35 -0500)]
doc/ceph-volume lvm.activate update systemd anchor to reflect lvm parent

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume lvm.systemd update anchor to reflect lvm parent
Alfredo Deza [Tue, 7 Nov 2017 12:56:35 +0000 (07:56 -0500)]
doc/ceph-volume lvm.systemd update anchor to reflect lvm parent

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume document the scan functionality
Alfredo Deza [Mon, 6 Nov 2017 20:53:39 +0000 (15:53 -0500)]
doc/ceph-volume document the scan functionality

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #18793 from idryomov/wip-qa-cram-path
Jason Dillaman [Wed, 8 Nov 2017 16:00:41 +0000 (11:00 -0500)]
Merge pull request #18793 from idryomov/wip-qa-cram-path

qa/tasks/cram: include /usr/sbin in the PATH for all commands

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18556 from joke-lee/validate_cors_rule_header_in_cors_option_request
Yuri Weinstein [Wed, 8 Nov 2017 16:00:33 +0000 (08:00 -0800)]
Merge pull request #18556 from joke-lee/validate_cors_rule_header_in_cors_option_request

rgw: add cors header rule check in cors option request

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18795 from idryomov/wip-krbd-enable-generic-050-448
Jason Dillaman [Wed, 8 Nov 2017 16:00:03 +0000 (11:00 -0500)]
Merge pull request #18795 from idryomov/wip-krbd-enable-generic-050-448

qa/suites/krbd: enable generic/050 and generic/448

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18706 from cbodley/wip-rgw-policy-emplace
Yuri Weinstein [Wed, 8 Nov 2017 15:59:13 +0000 (07:59 -0800)]
Merge pull request #18706 from cbodley/wip-rgw-policy-emplace

rgw: simplify use of map::emplace in iam

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
7 years agoMerge pull request #18770 from tchaikov/wip-doc-log-file
John Spray [Wed, 8 Nov 2017 12:42:22 +0000 (12:42 +0000)]
Merge pull request #18770 from tchaikov/wip-doc-log-file

doc: fix desc of option "mon cluster log file"

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agorgw: cleanup repeated assignment to need_zone_update in zone modify command 18817/head
Enming Zhang [Wed, 8 Nov 2017 12:38:18 +0000 (20:38 +0800)]
rgw: cleanup repeated assignment to need_zone_update in zone modify command

Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
7 years agodoc: fix desc of option "mon cluster log file" 18770/head
Kefu Chai [Mon, 6 Nov 2017 16:21:13 +0000 (00:21 +0800)]
doc: fix desc of option "mon cluster log file"

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomgr/zabbix: ignore osd with 0 kb capacity 18809/head
Ilja Slepnev [Tue, 24 Oct 2017 17:27:59 +0000 (20:27 +0300)]
mgr/zabbix: ignore osd with 0 kb capacity

Fixes: http://tracker.ceph.com/issues/21904
Signed-off-by: Ilja Slepnev <islepnev@gmail.com>
7 years agoMerge PR #18807 into master
Patrick Donnelly [Wed, 8 Nov 2017 06:12:55 +0000 (17:12 +1100)]
Merge PR #18807 into master

* refs/pull/18807/head:
ptl-tool: put common use-cases up front in README
ptl-tool: only create tag if new branch
ptl-tool: hint how to skip contributor

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoptl-tool: put common use-cases up front in README 18807/head
Patrick Donnelly [Wed, 8 Nov 2017 06:08:14 +0000 (17:08 +1100)]
ptl-tool: put common use-cases up front in README

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoptl-tool: only create tag if new branch
Patrick Donnelly [Wed, 8 Nov 2017 06:07:25 +0000 (17:07 +1100)]
ptl-tool: only create tag if new branch

It doesn't make sense to create tags for branches that already exist.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoptl-tool: hint how to skip contributor
Patrick Donnelly [Wed, 8 Nov 2017 06:07:03 +0000 (17:07 +1100)]
ptl-tool: hint how to skip contributor

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agorgw: address warnings due to incorrect format code 18796/head
J. Eric Ivancich [Tue, 7 Nov 2017 17:55:10 +0000 (12:55 -0500)]
rgw: address warnings due to incorrect format code

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
7 years agoMerge pull request #18709 from ivancich/wip-bktidx-race-bugfix
Matt Benjamin [Tue, 7 Nov 2017 17:10:23 +0000 (12:10 -0500)]
Merge pull request #18709 from ivancich/wip-bktidx-race-bugfix

rgw: fix BZ 1500904, stale bucket index entry remains after obj delete

7 years agoqa/suites/krbd: enable generic/050 and generic/448 18795/head
Ilya Dryomov [Sat, 4 Nov 2017 08:00:09 +0000 (09:00 +0100)]
qa/suites/krbd: enable generic/050 and generic/448

generic/448 has been failing on ext4 and is now fixed upstream.
The fix for generic/050 is in testing, scheduled for 4.15-rc1.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoMerge pull request #18476 from majianpeng/objecter-misc-cleanup
Yuri Weinstein [Tue, 7 Nov 2017 17:02:08 +0000 (09:02 -0800)]
Merge pull request #18476 from majianpeng/objecter-misc-cleanup

osdc/Objecter: misc cleanups

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18768 from wumingqiao/wip-WaitActingChange
Yuri Weinstein [Tue, 7 Nov 2017 17:00:38 +0000 (09:00 -0800)]
Merge pull request #18768 from wumingqiao/wip-WaitActingChange

PG: fix name of WaitActingChange

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18789 from jcsp/wip-doc-config-set
Jason Dillaman [Tue, 7 Nov 2017 13:18:12 +0000 (08:18 -0500)]
Merge pull request #18789 from jcsp/wip-doc-config-set

doc: replace injectargs usage with "config set"

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18769 from yaozongyou/wip-dashboard-format-label
John Spray [Tue, 7 Nov 2017 12:27:54 +0000 (12:27 +0000)]
Merge pull request #18769 from yaozongyou/wip-dashboard-format-label

mgr/dashboard: format tooltip's label as user friendly string

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agodoc: replace injectargs usage with "config set" 18789/head
John Spray [Tue, 7 Nov 2017 11:30:45 +0000 (11:30 +0000)]
doc: replace injectargs usage with "config set"

Cleaner and easier.  Also implicitly documents
the config set command, which hadn't been explicitly
called out in the docs before.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoosd: use is_erasure() when appropriate 18779/head
Kefu Chai [Tue, 7 Nov 2017 06:21:36 +0000 (14:21 +0800)]
osd: use is_erasure() when appropriate

sometimes, we are using pool.info.require_rollback() even when what we
mean is "pool.info.is_erasure()", so fix it to improve the readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoosd: remove unused ReplicatedBackend::objects_read_async()
Kefu Chai [Tue, 7 Nov 2017 06:14:13 +0000 (14:14 +0800)]
osd: remove unused ReplicatedBackend::objects_read_async()

async read is not used by replica pool at all.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #18689 into master
Patrick Donnelly [Tue, 7 Nov 2017 06:21:04 +0000 (17:21 +1100)]
Merge PR #18689 into master

* refs/pull/18689/head:
cephfs: Do not check auth gid when not specified

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #18386 into master
Patrick Donnelly [Mon, 6 Nov 2017 22:33:13 +0000 (09:33 +1100)]
Merge PR #18386 into master

* refs/pull/18386/head:
ptl-tool: allow setting project/repo for GH req

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18658 from linuxbox2/wip-s3-post-20201
Yuri Weinstein [Mon, 6 Nov 2017 21:06:42 +0000 (13:06 -0800)]
Merge pull request #18658 from linuxbox2/wip-s3-post-20201

RGW: update S3 POST policy handling of Content-Type

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agodoc/ceph-volume update the index to include the simple sub command and files
Alfredo Deza [Mon, 6 Nov 2017 19:17:20 +0000 (14:17 -0500)]
doc/ceph-volume update the index to include the simple sub command and files

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoqa/tasks/cram: include /usr/sbin in the PATH for all commands 18793/head
Ilya Dryomov [Mon, 6 Nov 2017 19:00:50 +0000 (20:00 +0100)]
qa/tasks/cram: include /usr/sbin in the PATH for all commands

/usr/sbin is not in non-login PATH on centos.  We already do this for
workunits, see commit 0e53f5f38b0c ("workunit: include /usr/sbin in the
PATH for all commands").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoceph-volume tests.simple add tests for trigger parsing from systemd
Alfredo Deza [Mon, 6 Nov 2017 16:15:28 +0000 (11:15 -0500)]
ceph-volume tests.simple add tests for trigger parsing from systemd

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.simple create etc_path scan tests
Alfredo Deza [Mon, 6 Nov 2017 15:36:14 +0000 (10:36 -0500)]
ceph-volume tests.simple create etc_path scan tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.simple add checks for get_contents in scan
Alfredo Deza [Mon, 6 Nov 2017 15:06:02 +0000 (10:06 -0500)]
ceph-volume tests.simple add checks for get_contents in scan

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.util add binary verification tests
Alfredo Deza [Mon, 6 Nov 2017 14:43:58 +0000 (09:43 -0500)]
ceph-volume tests.util add binary verification tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests create a fixture for temporary files
Alfredo Deza [Mon, 6 Nov 2017 14:42:53 +0000 (09:42 -0500)]
ceph-volume tests create a fixture for temporary files

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume systemd.systemctl helpers to mask ceph-disk
Alfredo Deza [Fri, 3 Nov 2017 18:36:38 +0000 (14:36 -0400)]
ceph-volume systemd.systemctl helpers to mask ceph-disk

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume devices include simple at the module import level
Alfredo Deza [Fri, 3 Nov 2017 18:36:13 +0000 (14:36 -0400)]
ceph-volume devices include simple at the module import level

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume main add simple to the sub-commands
Alfredo Deza [Fri, 3 Nov 2017 18:35:45 +0000 (14:35 -0400)]
ceph-volume main add simple to the sub-commands

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume util add an OSDPath argument validator
Alfredo Deza [Fri, 3 Nov 2017 18:35:03 +0000 (14:35 -0400)]
ceph-volume util add an OSDPath argument validator

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.system add a helper to check if a file is a binary or not
Alfredo Deza [Fri, 3 Nov 2017 18:34:39 +0000 (14:34 -0400)]
ceph-volume simple.system add a helper to check if a file is a binary or not

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume util.system add a context manager for temporary mounting/unmounting
Alfredo Deza [Fri, 3 Nov 2017 18:34:06 +0000 (14:34 -0400)]
ceph-volume util.system add a context manager for temporary mounting/unmounting

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.scan initial take on directory/device scanning
Alfredo Deza [Fri, 3 Nov 2017 18:32:42 +0000 (14:32 -0400)]
ceph-volume simple.scan initial take on directory/device scanning

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.trigger enable systemd triggering for simple setups
Alfredo Deza [Fri, 3 Nov 2017 18:27:23 +0000 (14:27 -0400)]
ceph-volume simple.trigger enable systemd triggering for simple setups

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate initial take on activation
Alfredo Deza [Fri, 3 Nov 2017 18:26:13 +0000 (14:26 -0400)]
ceph-volume simple.activate initial take on activation

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple add __init__ for the module
Alfredo Deza [Fri, 3 Nov 2017 18:23:47 +0000 (14:23 -0400)]
ceph-volume simple add __init__ for the module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple create the initial, main module
Alfredo Deza [Fri, 3 Nov 2017 18:23:29 +0000 (14:23 -0400)]
ceph-volume simple create the initial, main module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agomgr/dashboard: format chart's tooltip's label as friendly string 18769/head
Yao Zongyou [Mon, 6 Nov 2017 15:40:00 +0000 (23:40 +0800)]
mgr/dashboard: format chart's tooltip's label as friendly string

The default tooltip's label is a long number string, so format
the label as a user friendly string.

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
7 years agocommon/WorkQueue: fix a race avoiding drain endless. 17659/head
Jianpeng Ma [Mon, 6 Nov 2017 13:40:12 +0000 (21:40 +0800)]
common/WorkQueue: fix a race avoiding drain endless.

In function ShardedThreadPool::shardedthreadpool_worker, when call
_proces, it don't get shardedpool_lock. So there is a race between
return_waiting_threads and _proces. If return_waiting_threads first run
and _process will lost this signal and wait until.
This may cause ShardedThreadPool::drain can't complete.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agoMerge pull request #16238 from trociny/wip-copy-deep
Jason Dillaman [Mon, 6 Nov 2017 13:35:06 +0000 (08:35 -0500)]
Merge pull request #16238 from trociny/wip-copy-deep

librbd: generalized deep copy function

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoPG: fix name of WaitActingChange 18768/head
wumingqiao [Mon, 6 Nov 2017 12:41:23 +0000 (20:41 +0800)]
PG: fix name of WaitActingChange

the parent state of WaitActingChange is Primary, not Peering.

Signed-off-by: wumingqiao <wumingqiao@inspur.com>
7 years agoosd/OSD: Using Wait rather than WaitInterval to wait queue.is_empty().
Jianpeng Ma [Tue, 12 Sep 2017 21:05:21 +0000 (05:05 +0800)]
osd/OSD: Using Wait rather than WaitInterval to wait queue.is_empty().

Why use WaitInterval, there is a comment:"optimistically sleep a moment; maybe another work item will come along."
But in fact,we don't see any benefit for this optimization.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agorgw: cleanup some unnecessary function called in RGWZoneGroup::add_zone
Enming Zhang [Mon, 6 Nov 2017 08:38:18 +0000 (16:38 +0800)]
rgw: cleanup some unnecessary function called in RGWZoneGroup::add_zone

Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
7 years agoqa/suites/rbd: enable fsx deep_copy test case 16238/head
Mykola Golub [Tue, 31 Oct 2017 07:48:45 +0000 (09:48 +0200)]
qa/suites/rbd: enable fsx deep_copy test case

Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agotest/librbd: tweak fsx to optionally use deep-copy instead of clone
Mykola Golub [Mon, 30 Oct 2017 20:57:31 +0000 (22:57 +0200)]
test/librbd: tweak fsx to optionally use deep-copy instead of clone

Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agolibrbd: add deep_copy function to API
Mykola Golub [Tue, 31 Oct 2017 20:56:07 +0000 (22:56 +0200)]
librbd: add deep_copy function to API

Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agorbd-mirror: use generalized deep copy for image sync
Mykola Golub [Wed, 27 Sep 2017 10:10:55 +0000 (12:10 +0200)]
rbd-mirror: use generalized deep copy for image sync

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
7 years agolibrbd: generalized deep copy function
Mykola Golub [Sat, 14 Oct 2017 15:58:11 +0000 (18:58 +0300)]
librbd: generalized deep copy function

(based on rbd-mirror image sync)

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
7 years agolibrbd: export ImageOptions print operator
Mykola Golub [Sat, 14 Oct 2017 15:54:28 +0000 (18:54 +0300)]
librbd: export ImageOptions print operator

(so it could be used for logging image options)

Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agotest/librbd: set rand seed for all tests
Mykola Golub [Wed, 23 Aug 2017 08:40:56 +0000 (10:40 +0200)]
test/librbd: set rand seed for all tests

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
7 years agomon/LogMonitor: "log last" should return up to n entries 18759/head
Kefu Chai [Mon, 6 Nov 2017 08:01:23 +0000 (16:01 +0800)]
mon/LogMonitor: "log last" should return up to n entries

limit the # of returned entries to "num", and backoff the start iterator
by one if it reaches the rend().

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18635 from majianpeng/bluestore-omap-flush
Xie Xingguo [Mon, 6 Nov 2017 07:38:09 +0000 (15:38 +0800)]
Merge pull request #18635 from majianpeng/bluestore-omap-flush

os/bluestore: remove unused parameters.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>