]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agoMerge pull request #24062 from nrdmn/fix-quota
Yuri Weinstein [Wed, 26 Sep 2018 16:00:26 +0000 (09:00 -0700)]
Merge pull request #24062 from nrdmn/fix-quota

rgw: fix max-size in radosgw-admin and REST Admin API

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #24177 from cbodley/wip-24595
Yuri Weinstein [Wed, 26 Sep 2018 15:59:51 +0000 (08:59 -0700)]
Merge pull request #24177 from cbodley/wip-24595

rgw: apply quota config to users created via external auth

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
6 years agoMerge pull request #24199 from aclamk/fio-rados-manual
Kefu Chai [Wed, 26 Sep 2018 13:57:18 +0000 (21:57 +0800)]
Merge pull request #24199 from aclamk/fio-rados-manual

test/fio: Added tips for compilation of fio with 'rados' engine.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #24273 from tspmelo/wip-html-linter
Lenz Grimmer [Wed, 26 Sep 2018 13:45:52 +0000 (15:45 +0200)]
Merge pull request #24273 from tspmelo/wip-html-linter

mgr/dashboard: Add html-linter

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23534 from cbodley/wip-26897
Casey Bodley [Wed, 26 Sep 2018 13:28:30 +0000 (09:28 -0400)]
Merge pull request #23534 from cbodley/wip-26897

rgw multisite: enforce spawn_window for data full sync

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agomgr/dashboard: Update frontend linting scripts and documentation 24273/head
Tiago Melo [Tue, 25 Sep 2018 17:02:01 +0000 (18:02 +0100)]
mgr/dashboard: Update frontend linting scripts and documentation

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Add html linter and fix lint errors
Tiago Melo [Tue, 25 Sep 2018 14:43:35 +0000 (15:43 +0100)]
mgr/dashboard: Add html linter and fix lint errors

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge PR #24203 into master
Patrick Donnelly [Tue, 25 Sep 2018 23:01:33 +0000 (16:01 -0700)]
Merge PR #24203 into master

* refs/pull/24203/head:
ceph-fuse: add to selinux profile

Reviewed-by: Boris Ranto <branto@redhat.com>
6 years agoMerge pull request #24221 from cbodley/wip-36034
Yehuda Sadeh [Tue, 25 Sep 2018 22:02:01 +0000 (15:02 -0700)]
Merge pull request #24221 from cbodley/wip-36034

rgw multisite: uses local DataChangesLog to track active buckets for trim

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #23988 from cbodley/wip-35851
Yehuda Sadeh [Tue, 25 Sep 2018 20:43:17 +0000 (13:43 -0700)]
Merge pull request #23988 from cbodley/wip-35851

rgw: dont access rgw_http_req_data::client of canceled request

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #23986 from cbodley/wip-35715
Casey Bodley [Tue, 25 Sep 2018 20:40:52 +0000 (16:40 -0400)]
Merge pull request #23986 from cbodley/wip-35715

rgw: fix leak of curl handle on shutdown

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #24011 from cbodley/wip-qa-rgw-multisite-speedup
Casey Bodley [Tue, 25 Sep 2018 20:39:51 +0000 (16:39 -0400)]
Merge pull request #24011 from cbodley/wip-qa-rgw-multisite-speedup

qa/rgw: reduce number of multisite log shards

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #23987 from cbodley/wip-35812
Yehuda Sadeh [Tue, 25 Sep 2018 20:20:59 +0000 (13:20 -0700)]
Merge pull request #23987 from cbodley/wip-35812

rgw: RGWAsyncGetBucketInstanceInfo does not access coroutine memory

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #24274 from ceph/wip-batch-report-fix
Alfredo Deza [Tue, 25 Sep 2018 19:26:04 +0000 (15:26 -0400)]
Merge pull request #24274 from ceph/wip-batch-report-fix

ceph-volume: fix journal and filestore data size in `lvm batch --report`

6 years agoMerge pull request #24251 from alfredodeza/wip-rm27210
Andrew Schoen [Tue, 25 Sep 2018 18:13:50 +0000 (13:13 -0500)]
Merge pull request #24251 from alfredodeza/wip-rm27210

ceph-volume custom cluster names fail on filestore trigger

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: only run ceph-common once during tests 24274/head
Andrew Schoen [Tue, 25 Sep 2018 17:09:15 +0000 (12:09 -0500)]
ceph-volume: only run ceph-common once during tests

Using import_role we can have just one play and avoid rerunning
ceph-common over and over again in daemon specific plays.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge PR #24020 into master
Patrick Donnelly [Tue, 25 Sep 2018 16:20:22 +0000 (09:20 -0700)]
Merge PR #24020 into master

* refs/pull/24020/head:
*: set missing CLOEXEC on opened fds
msg: set O_NONBLOCK on file status flags

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #24163 into master
Patrick Donnelly [Tue, 25 Sep 2018 14:47:04 +0000 (07:47 -0700)]
Merge PR #24163 into master

* refs/pull/24163/head:
mds/MDCache: fix mds internal op missing events time

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #24252 into master
Patrick Donnelly [Tue, 25 Sep 2018 14:36:16 +0000 (07:36 -0700)]
Merge PR #24252 into master

* refs/pull/24252/head:
qa: cleanup workunit dir for each unit
qa: use sudo to cleanup workspace

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge PR #24232 into master
Patrick Donnelly [Tue, 25 Sep 2018 14:16:20 +0000 (07:16 -0700)]
Merge PR #24232 into master

* refs/pull/24232/head:
githubmap: update contributors

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #24248 from dillaman/wip-rbd-iscsi-docs
Jason Dillaman [Tue, 25 Sep 2018 12:36:31 +0000 (08:36 -0400)]
Merge pull request #24248 from dillaman/wip-rbd-iscsi-docs

doc: ceph-iscsi-api ports should not be public facing

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
6 years agoMerge PR #24226 into master
Sage Weil [Tue, 25 Sep 2018 04:14:15 +0000 (23:14 -0500)]
Merge PR #24226 into master

* refs/pull/24226/head:
osd/PG: fix not_ready_to_merge behavior for merge target

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge PR #24194 into master
Patrick Donnelly [Mon, 24 Sep 2018 22:01:52 +0000 (15:01 -0700)]
Merge PR #24194 into master

* refs/pull/24194/head:
mds: fix mds damaged due to unexpected journal length

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #24170 into master
Patrick Donnelly [Mon, 24 Sep 2018 21:50:04 +0000 (14:50 -0700)]
Merge PR #24170 into master

* refs/pull/24170/head:
libcephfs: expose CEPH_SETATTR_MTIME_NOW and CEPH_SETATTR_ATIME_NOW

Reviewed-by: Jeff Layton <jlayton@redhat.com>
6 years agoMerge PR #23187 into master
Patrick Donnelly [Mon, 24 Sep 2018 21:46:14 +0000 (14:46 -0700)]
Merge PR #23187 into master

* refs/pull/23187/head:
test: make rank argument mandatory when running journal_tool
cephfs-journal-tool: make "--rank" argument mandatory
cephfs-journal-tool: pass local arg vector for Journal actions
cephfs-journal-tool: dump to per rank output file wherever necessary

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23530 into master
Patrick Donnelly [Mon, 24 Sep 2018 21:41:59 +0000 (14:41 -0700)]
Merge PR #23530 into master

* refs/pull/23530/head:
qa/vstart_runner: fix daemons list
PendingReleaseNotes: note multifs support in libcephfs
test/cephfs: add pybind test for mount_root
pybind/cephfs: enable passing filesystem name to mount
libcephfs: add ceph_select_filesystem
common: add doc strings to client_mds_namespace
client: allow passing fs name to mount()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Conflicts:
    PendingReleaseNotes

6 years agoceph-volume: fail fast during tests
Andrew Schoen [Mon, 24 Sep 2018 21:41:37 +0000 (16:41 -0500)]
ceph-volume: fail fast during tests

This also rsyncs the ceph-volume code to the testing vms before
a ceph.conf is generated because ceph-volume is needed now for this
to figure out the number of osds when you're using 'lvm batch'.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge PR #24125 into master
Patrick Donnelly [Mon, 24 Sep 2018 21:40:34 +0000 (14:40 -0700)]
Merge PR #24125 into master

* refs/pull/24125/head:
mon: fix fs add_data_pool setting wrong pool metadata

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #24158 into master
Patrick Donnelly [Mon, 24 Sep 2018 21:39:45 +0000 (14:39 -0700)]
Merge PR #24158 into master

* refs/pull/24158/head:
cephfs: remove vestiges of mds deactivate

Reviewed-by: Douglas Fuller <dfuller@redhat.com>
6 years agoceph-volume: when using batch --report return journal/data size as ints
Andrew Schoen [Mon, 24 Sep 2018 21:37:35 +0000 (16:37 -0500)]
ceph-volume: when using batch --report return journal/data size as ints

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge PR #24234 into master
Sage Weil [Mon, 24 Sep 2018 20:15:52 +0000 (15:15 -0500)]
Merge PR #24234 into master

* refs/pull/24234/head:
qa/suites/rados/thrash-old-clients/workloads/rbd_cls.yaml: skip parents test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoceph-volume tests/functional update dmcrypt test playbooks to use --cluster 24251/head
Alfredo Deza [Mon, 24 Sep 2018 18:44:31 +0000 (14:44 -0400)]
ceph-volume tests/functional update dmcrypt test playbooks to use --cluster

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoqa: cleanup workunit dir for each unit 24252/head
Patrick Donnelly [Mon, 24 Sep 2018 18:29:10 +0000 (11:29 -0700)]
qa: cleanup workunit dir for each unit

This was wrongly dropped and moved to the finalizer.

Introduced-by: de824f74dd8ac909e47335ccd53d7a085e388e41
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoqa: use sudo to cleanup workspace
Patrick Donnelly [Mon, 24 Sep 2018 18:02:49 +0000 (11:02 -0700)]
qa: use sudo to cleanup workspace

Files in scratch_tmp may not be owned by ubuntu.

Fixes: http://tracker.ceph.com/issues/36165
Introduced-by: de824f74dd8ac909e47335ccd53d7a085e388e41
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoceph-volume tests/functional/batch update tests to use 'test' cluster name
Alfredo Deza [Mon, 24 Sep 2018 16:52:50 +0000 (12:52 -0400)]
ceph-volume tests/functional/batch update tests to use 'test' cluster name

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests/functional/lvm update tests to use 'test' cluster name
Alfredo Deza [Mon, 24 Sep 2018 16:52:33 +0000 (12:52 -0400)]
ceph-volume tests/functional/lvm update tests to use 'test' cluster name

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests/functional update playbooks to use --cluster
Alfredo Deza [Mon, 24 Sep 2018 16:51:47 +0000 (12:51 -0400)]
ceph-volume tests/functional update playbooks to use --cluster

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume main move out the load_ceph_conf_path to the configuration module
Alfredo Deza [Mon, 24 Sep 2018 16:27:04 +0000 (12:27 -0400)]
ceph-volume main move out the load_ceph_conf_path to the configuration module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoosd/PG: fix not_ready_to_merge behavior for merge target 24226/head
Sage Weil [Sat, 22 Sep 2018 16:01:15 +0000 (11:01 -0500)]
osd/PG: fix not_ready_to_merge behavior for merge target

Track the *target* not being ready to merge independently from the source,
so that we do not have two PGs fighting over the state of
not_ready_ready_to_merge_source, and so that the map reflects the *source*
PGs readiness only.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #24225 into master
Sage Weil [Mon, 24 Sep 2018 16:01:22 +0000 (11:01 -0500)]
Merge PR #24225 into master

* refs/pull/24225/head:
osd/ECBackend: suppress 'Error -2 reading object' if EC fast reads

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoqa/suites/rados/thrash-old-clients/workloads/rbd_cls.yaml: skip parents test 24234/head
Sage Weil [Mon, 24 Sep 2018 03:43:08 +0000 (22:43 -0500)]
qa/suites/rados/thrash-old-clients/workloads/rbd_cls.yaml: skip parents test

We can't (easily) build updated hammer packages, but all this sh script does
it run this one test binary with --gtest_filter arguments, so just do
it directly and skip the test explicitly here.  (Newer version of the .sh
understand the environemnt variable but the hammer version does not.)

Fixes: http://tracker.ceph.com/issues/36104
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoceph-volume tests.devices patch configuration.load to avoid raising non-existing...
Alfredo Deza [Mon, 24 Sep 2018 14:34:55 +0000 (10:34 -0400)]
ceph-volume tests.devices patch configuration.load to avoid raising non-existing ceph.conf

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests reset the cluster name after every unit test
Alfredo Deza [Mon, 24 Sep 2018 14:29:12 +0000 (10:29 -0400)]
ceph-volume tests reset the cluster name after every unit test

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.functional add custom cluster name to centos7-filestore-create
Alfredo Deza [Wed, 19 Sep 2018 17:23:19 +0000 (13:23 -0400)]
ceph-volume tests.functional add custom cluster name to centos7-filestore-create

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm.activate load the config always by reading the cluster name from...
Alfredo Deza [Wed, 19 Sep 2018 16:04:41 +0000 (12:04 -0400)]
ceph-volume lvm.activate load the config always by reading the cluster name from the LV

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume configuration be able to set conf.ceph
Alfredo Deza [Wed, 19 Sep 2018 16:04:17 +0000 (12:04 -0400)]
ceph-volume configuration be able to set conf.ceph

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agodoc: ceph-iscsi-api ports should not be public facing 24248/head
Jason Dillaman [Mon, 24 Sep 2018 14:32:25 +0000 (10:32 -0400)]
doc: ceph-iscsi-api ports should not be public facing

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #24078 from Songweibin/wip-rbd-trash-state
Jason Dillaman [Mon, 24 Sep 2018 14:19:13 +0000 (10:19 -0400)]
Merge pull request #24078 from Songweibin/wip-rbd-trash-state

rbd: not allowed to restore an image when it is being deleted

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23743 from trociny/wip-rbd-config-pool
Jason Dillaman [Mon, 24 Sep 2018 14:19:01 +0000 (10:19 -0400)]
Merge pull request #23743 from trociny/wip-rbd-config-pool

librbd: pool and image level config overrides

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23568 from rhcs-dashboard/wip-24573-landing-page
Lenz Grimmer [Mon, 24 Sep 2018 13:32:48 +0000 (15:32 +0200)]
Merge pull request #23568 from rhcs-dashboard/wip-24573-landing-page

mgr/dashboard: New Landing Page

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Kanika Murarka <kmurarka@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23570 from jcsp/wip-rook-api
John Spray [Mon, 24 Sep 2018 11:12:10 +0000 (12:12 +0100)]
Merge pull request #23570 from jcsp/wip-rook-api

mgr/rook: update for v1beta1 API

Reviewed-by: Sebastian Wagner <swagner@suse.com>
6 years agorgw: fix max-size-kb REST quota parameter and add max-size 24062/head
Nick Erdmann [Mon, 24 Sep 2018 10:48:57 +0000 (12:48 +0200)]
rgw: fix max-size-kb REST quota parameter and add max-size

Signed-off-by: Nick Erdmann <n@nirf.de>
6 years agorgw/radosgw-admin: allow negative values for --max-size
Nick Erdmann [Wed, 12 Sep 2018 13:56:41 +0000 (15:56 +0200)]
rgw/radosgw-admin: allow negative values for --max-size

Fix regression in e664488e.

Signed-off-by: Nick Erdmann <n@nirf.de>
6 years agogithubmap: update contributors 24232/head
myoungwon oh [Mon, 24 Sep 2018 03:14:20 +0000 (12:14 +0900)]
githubmap: update contributors

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
6 years agoMerge PR #24133 into master
Sage Weil [Sun, 23 Sep 2018 16:17:03 +0000 (11:17 -0500)]
Merge PR #24133 into master

* refs/pull/24133/head:
common/Finisher: convert to ceph::mutex etc
common/ceph_mutex: ceph::{mutex,condition_variable,lock_guard}
common/mutex_debug: take const char * to ctor, and require a name
common/mutex_debug: add lockdep support for recursive_mutex_debug
common/mutex_debug: fix whitespace
common/mutex_debug: refactor to remove intermediate class
common/lockdep: add recursive flag for _will_lock
do_cmake.sh: default to Debug build
.gitignore: ignore build.*/

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomds/MDCache: fix mds internal op missing events time 24163/head
Yanhu Cao [Wed, 19 Sep 2018 02:32:48 +0000 (10:32 +0800)]
mds/MDCache: fix mds internal op missing events time

Fixes: http://tracker.ceph.com/issues/36114
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
6 years agoosd/ECBackend: suppress 'Error -2 reading object' if EC fast reads 24225/head
Sage Weil [Sat, 22 Sep 2018 15:42:20 +0000 (10:42 -0500)]
osd/ECBackend: suppress 'Error -2 reading object' if EC fast reads

When fast reads are enabled, it's possible for the ordering of a shard
read to not be enforced with respect to writes that come after because
the read completes on the primary before all shards reply.  This can lead
to an ENOENT on the non-primary, and an ERR message in the cluster log,
even though everything is fine.  (The reply will go back to the primary
with the error but it will be ignored since the read has completed.)

Suppress the error message so we don't see these ERR messages in the
cluster log during the normal course of events.

Fixes: http://tracker.ceph.com/issues/26972
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #24202 into master
Sage Weil [Sat, 22 Sep 2018 15:28:39 +0000 (10:28 -0500)]
Merge PR #24202 into master

* refs/pull/24202/head:
mon/MonClient: fix wait for monmap+config is non-cephx case

Reviewed-by: Mark Nelson <mnelson@redhat.com>
6 years agoMerge PR #24217 into master
Sage Weil [Sat, 22 Sep 2018 15:27:41 +0000 (10:27 -0500)]
Merge PR #24217 into master

* refs/pull/24217/head:
osd/PG.cc: silence "-Wsign-compare" warnings

Reviewed-by: Erwan Velu <erwan@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge PR #24220 into master
Sage Weil [Sat, 22 Sep 2018 15:26:53 +0000 (10:26 -0500)]
Merge PR #24220 into master

* refs/pull/24220/head:
test/objectstore: set pool for fsck test

Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #24157 into master 24223/head
Patrick Donnelly [Fri, 21 Sep 2018 20:01:14 +0000 (13:01 -0700)]
Merge PR #24157 into master

* refs/pull/24157/head:
qa: cleanup parallel execution of fsstress

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agogithubmap: update contributors
Patrick Donnelly [Fri, 21 Sep 2018 20:01:13 +0000 (13:01 -0700)]
githubmap: update contributors

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #24207 into master
Patrick Donnelly [Fri, 21 Sep 2018 18:55:42 +0000 (11:55 -0700)]
Merge PR #24207 into master

* refs/pull/24207/head:
script/ptl-tool.py: fix BASE_PATH

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoqa: cleanup parallel execution of fsstress 24157/head
Patrick Donnelly [Tue, 18 Sep 2018 21:57:05 +0000 (14:57 -0700)]
qa: cleanup parallel execution of fsstress

Two instances of fsstress clobber each other. Just build it in the local sandbox.

Fixes: http://tracker.ceph.com/issues/24177
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agocommon/Finisher: convert to ceph::mutex etc 24133/head
Sage Weil [Fri, 14 Sep 2018 22:19:26 +0000 (17:19 -0500)]
common/Finisher: convert to ceph::mutex etc

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocommon/ceph_mutex: ceph::{mutex,condition_variable,lock_guard}
Sage Weil [Fri, 14 Sep 2018 22:19:12 +0000 (17:19 -0500)]
common/ceph_mutex: ceph::{mutex,condition_variable,lock_guard}

If CEPH_DEBUG_MUTEX is defined, use the [recursive_]mutex_debug classes
that implement lockdep and a bucnh of other random debug checks.  Also
typedef ceph::condition_variable to std::condition_variable_debug, which
adds addition assertions and debug checks.

If CEPH_DEBUG_MUTEX is not defined, then use the bare-bones C++ std::mutex
primitives... or as close as we can get to them.

Since the [recursive_]mutex_debug classes take a string argument for the
lockdep piece, define factory functions ceph::make_[recursive_]mutex that
either pass arguments to the debug implementations or toss them out.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocommon/mutex_debug: take const char * to ctor, and require a name
Sage Weil [Thu, 20 Sep 2018 17:10:13 +0000 (12:10 -0500)]
common/mutex_debug: take const char * to ctor, and require a name

Require a name, like Mutex.

Most callers are passing a C string.  This may avoid a std::string
copy?

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocommon/mutex_debug: add lockdep support for recursive_mutex_debug
Sage Weil [Mon, 17 Sep 2018 17:39:42 +0000 (12:39 -0500)]
common/mutex_debug: add lockdep support for recursive_mutex_debug

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocommon/mutex_debug: fix whitespace
Sage Weil [Mon, 17 Sep 2018 16:02:15 +0000 (11:02 -0500)]
common/mutex_debug: fix whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocommon/mutex_debug: refactor to remove intermediate class
Sage Weil [Mon, 17 Sep 2018 16:54:40 +0000 (11:54 -0500)]
common/mutex_debug: refactor to remove intermediate class

I don't see any purpose for this, and it prevents us from knowing whether
the mutex is recursive when _will_lock() is called.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocommon/lockdep: add recursive flag for _will_lock
Sage Weil [Mon, 17 Sep 2018 16:40:17 +0000 (11:40 -0500)]
common/lockdep: add recursive flag for _will_lock

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agodo_cmake.sh: default to Debug build
Sage Weil [Mon, 17 Sep 2018 16:02:44 +0000 (11:02 -0500)]
do_cmake.sh: default to Debug build

Signed-off-by: Sage Weil <sage@redhat.com>
6 years ago.gitignore: ignore build.*/
Sage Weil [Mon, 17 Sep 2018 15:59:15 +0000 (10:59 -0500)]
.gitignore: ignore build.*/

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #24219 from p-na/fix-test-scrub
Laura Paduano [Fri, 21 Sep 2018 15:24:32 +0000 (17:24 +0200)]
Merge pull request #24219 from p-na/fix-test-scrub

 mgr/dashboard: Possible fix for some dashboard timing issues

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #24179 from dillaman/wip-36074
Mykola Golub [Fri, 21 Sep 2018 15:15:09 +0000 (18:15 +0300)]
Merge pull request #24179 from dillaman/wip-36074

librbd: properly handle potential object map failures

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agorgw: add BucketChangeObserver to RGWDataChangesLog 24221/head
Casey Bodley [Thu, 20 Sep 2018 15:34:42 +0000 (11:34 -0400)]
rgw: add BucketChangeObserver to RGWDataChangesLog

this means that BucketTrimManager will track active buckets based on
local changes, rather than changes in remote datalogs or error repos

Fixes: http://tracker.ceph.com/issues/36034
Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: remove BucketChangeObserver from data sync thread
Casey Bodley [Thu, 20 Sep 2018 15:37:06 +0000 (11:37 -0400)]
rgw: remove BucketChangeObserver from data sync thread

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoscript/ptl-tool.py: fix BASE_PATH 24207/head
Neha Ojha [Thu, 20 Sep 2018 22:25:46 +0000 (15:25 -0700)]
script/ptl-tool.py: fix BASE_PATH

Signed-off-by: Neha Ojha <nojha@redhat.com>
6 years agomgr/dashboard: Fix for some dashboard timing issues 24219/head
Patrick Nawracay [Mon, 17 Sep 2018 07:25:34 +0000 (09:25 +0200)]
mgr/dashboard: Fix for some dashboard timing issues

Specifically fixes the recurringly occurring `test_osd.py` error on the
`test_scrub` method. But this change should also prevent other issues of
the same kind. Issues of "same kind" are issues which occurr due to
tests which do not immediately result in a clean cluster status and
aren't manually programmed to wait for it.

Fixes: http://tracker.ceph.com/issues/36107
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agoMerge PR #23985 into master
Sage Weil [Fri, 21 Sep 2018 13:21:53 +0000 (08:21 -0500)]
Merge PR #23985 into master

* refs/pull/23985/head:
ceph-objectstore-tool: add back pool dne check
qa/suites/rados/singleton/reg11184: remove old test
ceph-objectstore-tool: import pg at original epoch
osd: handle null pg slot on startup
ceph-objectstore-tool: drop support for ancient export files
osd: avoid dropping osd_lock when pg osdmaps are not laggy
qa/standalone/osd/pg-merge.sh: add merge vs pg import test

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #24064 into master
Sage Weil [Fri, 21 Sep 2018 13:21:33 +0000 (08:21 -0500)]
Merge PR #24064 into master

* refs/pull/24064/head:
osd: simplify init of fabricated pg
osd/PG: inherit pg history from merge source, if necessary
osd/osd_types: increasing pg_num_pending is also an interval change
osd: cancel pg merge if PGs are undersized
mon/OSDMonitor: handle ready_to_merge message that cancels the merge
osd/PG: only signal ready_to_merge if we have all replicas
osd/PG: move all mark_clean-ish activity into try_mark_clean()
osd/PG: use last_epoch_clean from ReadyToMerge point in time for fabricated history
osd: send last_epoch_clean when indicating PG is ready to merge
osd/osd_types: rename pg_num_pending_dec_epoch -> pg_num_dec_last_epoch_clean
osd,mon: stop setting pg_num_pending_dec_epoch

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoosd/PG.cc: silence "-Wsign-compare" warnings 24217/head
Kefu Chai [Fri, 21 Sep 2018 10:49:17 +0000 (18:49 +0800)]
osd/PG.cc: silence "-Wsign-compare" warnings

/ceph/src/osd/PG.cc: In member function 'void
PG::choose_async_recovery_ec(const std::map<pg_shard_t, pg_info_t>&,
const pg_info_t&, std::vector<int>*, std::set<pg_shard_t>*) const':
/ceph/src/osd/PG.cc:1572:32: warning: comparison of integer expressions
of different signedness: 'long int' and 'long unsigned int'
[-Wsign-compare]
     if (approx_missing_objects > cct->_conf.get_val<uint64_t>(
         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "osd_async_recovery_min_cost")) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ceph/src/osd/PG.cc: In member function 'void
PG::choose_async_recovery_replicated(const std::map<pg_shard_t,
pg_info_t>&, const pg_info_t&, std::vector<int>*, std::set<pg_shard_t>*)
const':
/ceph/src/osd/PG.cc:1625:33: warning: comparison of integer expressions
of different signedness: 'long int' and 'long unsigned int'
[-Wsign-compare]
     if (approx_missing_objects  > cct->_conf.get_val<uint64_t>(
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "osd_async_recovery_min_cost")) {
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest/objectstore: set pool for fsck test 24220/head
Kefu Chai [Fri, 21 Sep 2018 11:56:08 +0000 (19:56 +0800)]
test/objectstore: set pool for fsck test

since 0bd2546eaca72ed0122a9c2648df4bef05b0d5d2, we check the pool id
of object when performing fsck to ensure we are looking at the right
collection, but the test is still using the pool id set by the
constructor of hobject_t. so all objects we created in that test belong
to the POOL_META. while the collection is created with the pool id of
`555`. hence the test fails.

Fixes: http://tracker.ceph.com/issues/36099
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest: make rank argument mandatory when running journal_tool 23187/head
Venky Shankar [Tue, 4 Sep 2018 06:20:54 +0000 (02:20 -0400)]
test: make rank argument mandatory when running journal_tool

Also, fix a bunch of quirky journal_tool invocations that pass
"--rank" argument as the command argument rather than passing it
as function argument.

Fixes: https://tracker.ceph.com/issues/24780
Signed-off-by: Venky Shankar <vshankar@redhat.com>
6 years agocephfs-journal-tool: make "--rank" argument mandatory
Venky Shankar [Mon, 23 Jul 2018 06:35:05 +0000 (02:35 -0400)]
cephfs-journal-tool: make "--rank" argument mandatory

... and do not silenty act on the default filesystem.
Force users to specify the filesystem name and rank.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
6 years agocephfs-journal-tool: pass local arg vector for Journal actions
Venky Shankar [Mon, 23 Jul 2018 06:30:47 +0000 (02:30 -0400)]
cephfs-journal-tool: pass local arg vector for Journal actions

Some helper functions clobber the passed in arg vector. This
causes operations on all but the first rank to fail as the
operations for the first rank tampers with the arg vector.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
6 years agocephfs-journal-tool: dump to per rank output file wherever necessary
Venky Shankar [Mon, 23 Jul 2018 06:28:07 +0000 (02:28 -0400)]
cephfs-journal-tool: dump to per rank output file wherever necessary

cephfs-journal-tool supports operations on all ranks. Operations
such as dump/export do not write to distinct filenames hence
overwriting the data dumped or exported for the previous rank.

With this change (and further commits), for operations on all
ranks, dump/export would write to distinct filenames suffixed
by the mds rank (.0, .1, etc..). For operations on a single rank
or if there exist a single rank, the passed in filename is used
as it is.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
6 years agoMerge pull request #24139 from tchaikov/wip-fix-typos
Kefu Chai [Fri, 21 Sep 2018 08:56:31 +0000 (16:56 +0800)]
Merge pull request #24139 from tchaikov/wip-fix-typos

*/: fix typos in docs,messages,logs,comments

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #23317 from xiexingguo/wip-fix-polog-overtrim
Xie Xingguo [Fri, 21 Sep 2018 06:44:35 +0000 (14:44 +0800)]
Merge pull request #23317 from xiexingguo/wip-fix-polog-overtrim

osd/PrimaryLogPG: fix potential pg-log overtrimming

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Yan Jun <yan.jun8@zte.com.cn>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agotools: fix typos in user-visible message and comments 24139/head
Kefu Chai [Tue, 18 Sep 2018 03:32:56 +0000 (11:32 +0800)]
tools: fix typos in user-visible message and comments

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotools,test: fix typos in comments and usage message
Kefu Chai [Tue, 18 Sep 2018 03:32:13 +0000 (11:32 +0800)]
tools,test: fix typos in comments and usage message

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoscript: fix typos
Kefu Chai [Tue, 18 Sep 2018 03:31:57 +0000 (11:31 +0800)]
script: fix typos

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agorgw: fix typos
Kefu Chai [Tue, 18 Sep 2018 03:31:34 +0000 (11:31 +0800)]
rgw: fix typos

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agopybind/rados: fix typos
Kefu Chai [Tue, 18 Sep 2018 03:31:12 +0000 (11:31 +0800)]
pybind/rados: fix typos

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agopybind/mgr: fix typos
Kefu Chai [Tue, 18 Sep 2018 03:30:51 +0000 (11:30 +0800)]
pybind/mgr: fix typos

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomount,osdc: fix typos
Kefu Chai [Tue, 18 Sep 2018 03:28:10 +0000 (11:28 +0800)]
mount,osdc: fix typos

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/PyFormatter: fix typos
Kefu Chai [Tue, 18 Sep 2018 03:27:25 +0000 (11:27 +0800)]
mgr/PyFormatter: fix typos

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomds: fix typos
Kefu Chai [Tue, 18 Sep 2018 03:26:41 +0000 (11:26 +0800)]
mds: fix typos

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon: fix typos
Kefu Chai [Tue, 18 Sep 2018 03:23:48 +0000 (11:23 +0800)]
common: fix typos

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agorbd: fix typos
Kefu Chai [Tue, 18 Sep 2018 03:23:03 +0000 (11:23 +0800)]
rbd: fix typos

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