]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomgr/dashboard: Reduce Jest logs in CI 24764/head
Tiago Melo [Thu, 25 Oct 2018 23:10:36 +0000 (00:10 +0100)]
mgr/dashboard: Reduce Jest logs in CI

With the current number of unit tests we have for the frontend the output from
Jest is too big, and is exceeding the limit from jenkins.
This is resulting in the omission of linting results.

With this change, Jest will only output the results of failing tests and will no
longer show the coverage in the logs.
Jenkins will keep tracking the coverage via the generated cobertura file.

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #24720 from gauravsitlani/master
Jason Dillaman [Thu, 25 Oct 2018 20:56:05 +0000 (16:56 -0400)]
Merge pull request #24720 from gauravsitlani/master

doc: added rbd default features

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agodoc: added rbd default features 24720/head
Gaurav Sitlani [Tue, 23 Oct 2018 17:37:20 +0000 (23:07 +0530)]
doc: added rbd default features

Fixes: https://tracker.ceph.com/issues/15000
Added RBD default features description

Signed-off-by: Gaurav Sitlani <gauravsitlani@riseup.net>
6 years agoMerge PR #24716 into master
Patrick Donnelly [Thu, 25 Oct 2018 18:52:27 +0000 (11:52 -0700)]
Merge PR #24716 into master

* refs/pull/24716/head:
test/log: drop redundant test case
common/StackStringStream: don't reserve before every insert

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #24283 into master
Patrick Donnelly [Thu, 25 Oct 2018 18:51:30 +0000 (11:51 -0700)]
Merge PR #24283 into master

* refs/pull/24283/head:
client: support for exporting multiple subdirectories in faked mode

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #24050 into master
Patrick Donnelly [Thu, 25 Oct 2018 18:47:24 +0000 (11:47 -0700)]
Merge PR #24050 into master

* refs/pull/24050/head:
Revert "mds: adjust export size after renaming directory into freezing subtree"
mds: cleanup nested auth pins tracking

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #24700 from cbodley/wip-27221
Casey Bodley [Thu, 25 Oct 2018 17:11:37 +0000 (13:11 -0400)]
Merge pull request #24700 from cbodley/wip-27221

rgw: support server-side encryption when SSL is terminated in a proxy

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years agoMerge pull request #24721 from cbodley/wip-librados-mono-timeout
Kefu Chai [Thu, 25 Oct 2018 15:50:15 +0000 (23:50 +0800)]
Merge pull request #24721 from cbodley/wip-librados-mono-timeout

librados: fix unitialized timeout in wait_for_osdmap

Reviewed-by: Mohamad Gebai <mgebai@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24680 from cbodley/wip-36537
Casey Bodley [Thu, 25 Oct 2018 15:41:24 +0000 (11:41 -0400)]
Merge pull request #24680 from cbodley/wip-36537

rgw: fix vector index out of range in RGWReadDataSyncRecoveringShardsCR

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #24677 from cbodley/wip-rgw-beast-derr
Casey Bodley [Thu, 25 Oct 2018 15:40:48 +0000 (11:40 -0400)]
Merge pull request #24677 from cbodley/wip-rgw-beast-derr

rgw: beast frontend logs socket errors at level 4

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoMerge PR #24731 into master
Sage Weil [Thu, 25 Oct 2018 15:32:20 +0000 (10:32 -0500)]
Merge PR #24731 into master

* refs/pull/24731/head:
rados: fix admin/build-doc warnings

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #24641 from ricardoasmarques/fix-cloning-message
Lenz Grimmer [Thu, 25 Oct 2018 15:30:35 +0000 (17:30 +0200)]
Merge pull request #24641 from ricardoasmarques/fix-cloning-message

mgr/dashboard: Fix long running RBD cloning / copying message

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #24587 from ceph/wip-rm36363
Alfredo Deza [Thu, 25 Oct 2018 15:15:53 +0000 (11:15 -0400)]
Merge pull request #24587 from ceph/wip-rm36363

ceph-volume: adds a --prepare flag to `lvm batch`

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #24750 from iotcg/master
Jason Dillaman [Thu, 25 Oct 2018 14:17:51 +0000 (10:17 -0400)]
Merge pull request #24750 from iotcg/master

doc: give pool name if default pool rbd is not created

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agodoc: give pool name if default pool rbd is not created 24750/head
Liu Changcheng [Thu, 25 Oct 2018 03:48:17 +0000 (11:48 +0800)]
doc: give pool name if default pool rbd is not created

unless creating the default pool named to be "rbd",
it will fail without pointing the pool name when
using rbd command.

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
6 years agoceph-volume: update man page for batch --prepare 24587/head
Andrew Schoen [Thu, 25 Oct 2018 12:51:41 +0000 (07:51 -0500)]
ceph-volume: update man page for batch --prepare

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agomgr/dashboard: Fix long running RBD cloning / copying message 24641/head
Ricardo Marques [Wed, 17 Oct 2018 17:18:24 +0000 (18:18 +0100)]
mgr/dashboard: Fix long running RBD cloning / copying message

Fixes: https://tracker.ceph.com/issues/36484
Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #24693 from idryomov/wip-is-queued
Ricardo Dias [Thu, 25 Oct 2018 08:12:11 +0000 (09:12 +0100)]
Merge pull request #24693 from idryomov/wip-is-queued

msg/async: fix is_queued() semantics

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #24739 from tspmelo/wip-py3-itervalues
Kefu Chai [Thu, 25 Oct 2018 02:50:54 +0000 (10:50 +0800)]
Merge pull request #24739 from tspmelo/wip-py3-itervalues

ceph.in: Add support for python 3

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23962 from aclamk/fio-fix-compilation
Kefu Chai [Thu, 25 Oct 2018 02:24:28 +0000 (10:24 +0800)]
Merge pull request #23962 from aclamk/fio-fix-compilation

objectstore/test/fio: Fixed fio compilation when tcmalloc is used.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoceph.in: Add support for python 3 24739/head
Tiago Melo [Wed, 24 Oct 2018 16:01:53 +0000 (17:01 +0100)]
ceph.in: Add support for python 3

This will allow the condition to work in both python 2 and 3 environments.

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #24738 from alfredodeza/wip-rm36492
Alfredo Deza [Wed, 24 Oct 2018 16:22:52 +0000 (12:22 -0400)]
Merge pull request #24738 from alfredodeza/wip-rm36492

ceph-volume: do not send (lvm) stderr/stdout to the terminal, use the logfile

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge PR #24665 into master
Sage Weil [Wed, 24 Oct 2018 15:34:44 +0000 (10:34 -0500)]
Merge PR #24665 into master

* refs/pull/24665/head:
common: remove unused ioprio thread/wq infrastructure

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agoMerge PR #24701 into master
Sage Weil [Wed, 24 Oct 2018 15:34:29 +0000 (10:34 -0500)]
Merge PR #24701 into master

* refs/pull/24701/head:
os/bluestore: fix race between SharedBlobSet::lookup and SharedBlob::put

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge PR #24707 into master
Sage Weil [Wed, 24 Oct 2018 15:34:08 +0000 (10:34 -0500)]
Merge PR #24707 into master

* refs/pull/24707/head:
build/ops: drop sgdisk build/runtime dependencies

Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
6 years agoMerge PR #24687 into master
Sage Weil [Wed, 24 Oct 2018 15:31:15 +0000 (10:31 -0500)]
Merge PR #24687 into master

* refs/pull/24687/head:
src/test: fix unordered manifest-unset op

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agorados: fix admin/build-doc warnings 24731/head
Jos Collin [Wed, 24 Oct 2018 07:37:41 +0000 (13:07 +0530)]
rados: fix admin/build-doc warnings

Fixed admin/build-doc warnings in librados.h
and rados_types.h

Signed-off-by: Jos Collin <jcollin@redhat.com>
6 years agoceph-volume tests.api update monkeypatching to use **kw 24738/head
Alfredo Deza [Wed, 24 Oct 2018 14:55:06 +0000 (10:55 -0400)]
ceph-volume tests.api update monkeypatching to use **kw

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests allow **kw when monkeypatching
Alfredo Deza [Wed, 24 Oct 2018 14:54:48 +0000 (10:54 -0400)]
ceph-volume tests allow **kw when monkeypatching

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume api.lvm: do not spit out errors on the terminal from LVM
Alfredo Deza [Wed, 24 Oct 2018 14:54:18 +0000 (10:54 -0400)]
ceph-volume api.lvm: do not spit out errors on the terminal from LVM

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #24722 from zmc/rbd-redirect
Lenz Grimmer [Wed, 24 Oct 2018 09:47:13 +0000 (11:47 +0200)]
Merge pull request #24722 from zmc/rbd-redirect

mgr/dashboard: Redirect /block to /block/rbd

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #19964 from runsisi/wip-build
Kefu Chai [Wed, 24 Oct 2018 02:01:37 +0000 (10:01 +0800)]
Merge pull request #19964 from runsisi/wip-build

cmake: move ceph-osdomap-tool, ceph-monstore-tool out of ceph-test

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agolibrados: fix unitialized timeout in wait_for_osdmap 24721/head
Casey Bodley [Tue, 23 Oct 2018 19:10:12 +0000 (15:10 -0400)]
librados: fix unitialized timeout in wait_for_osdmap

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge PR #24540 into master
Patrick Donnelly [Tue, 23 Oct 2018 22:32:55 +0000 (15:32 -0700)]
Merge PR #24540 into master

* refs/pull/24540/head:
mgr/status: fix fs status subcommand did not show standby-replay MDS' perf info

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #24709 into master
Patrick Donnelly [Tue, 23 Oct 2018 22:24:09 +0000 (15:24 -0700)]
Merge PR #24709 into master

* refs/pull/24709/head:
PendingReleaseNotes: note about cephfs client state reclaim

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #24466 into master
Patrick Donnelly [Tue, 23 Oct 2018 22:02:26 +0000 (15:02 -0700)]
Merge PR #24466 into master

* refs/pull/24466/head:
common: assert if buffer advance length overflow

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #24529 into master
Patrick Donnelly [Tue, 23 Oct 2018 22:01:53 +0000 (15:01 -0700)]
Merge PR #24529 into master

* refs/pull/24529/head:
mds: cleanup command descriptions

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #24640 into master
Patrick Donnelly [Tue, 23 Oct 2018 22:01:14 +0000 (15:01 -0700)]
Merge PR #24640 into master

* refs/pull/24640/head:
mds: remove MonClient reconnect

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #24533 into master
Patrick Donnelly [Tue, 23 Oct 2018 21:46:34 +0000 (14:46 -0700)]
Merge PR #24533 into master

* refs/pull/24533/head:
qa: add timeouts for remote ops for client mounts

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge pull request #24679 from tspmelo/wip-36528
Lenz Grimmer [Tue, 23 Oct 2018 21:23:18 +0000 (23:23 +0200)]
Merge pull request #24679 from tspmelo/wip-36528

mgr/dashboard: Fix HttpClient Module imports in unit tests

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #24632 from Devp00l/wip-issue-36468
Lenz Grimmer [Tue, 23 Oct 2018 21:22:05 +0000 (23:22 +0200)]
Merge pull request #24632 from Devp00l/wip-issue-36468

mgr/dashboard: Handle class objects as regular objects in KV-table

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #24674 from sileht/master
Alfredo Deza [Tue, 23 Oct 2018 20:04:54 +0000 (15:04 -0500)]
Merge pull request #24674 from sileht/master

ceph-volume: extract flake8 config

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agomgr/dashboard: Redirect /block to /block/rbd 24722/head
Zack Cerza [Tue, 23 Oct 2018 18:57:30 +0000 (12:57 -0600)]
mgr/dashboard: Redirect /block to /block/rbd

Fixes: https://tracker.ceph.com/issues/36401
Signed-off-by: Zack Cerza <zack@redhat.com>
6 years agoMerge pull request #23242 from linuxbox2/wip-rgw-inflight-ops
Matt Benjamin [Tue, 23 Oct 2018 15:21:10 +0000 (11:21 -0400)]
Merge pull request #23242 from linuxbox2/wip-rgw-inflight-ops

rgw: set default objecter_inflight_ops = 24576

6 years agocommon: remove unused ioprio thread/wq infrastructure 24665/head
Sage Weil [Thu, 18 Oct 2018 16:25:26 +0000 (11:25 -0500)]
common: remove unused ioprio thread/wq infrastructure

This is all now obsolete, with no remaining users.

Move ceph_gettid into Thread.{cc,h}

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #24692 from tchaikov/wip-cmake-with-asan
Kefu Chai [Tue, 23 Oct 2018 11:26:59 +0000 (19:26 +0800)]
Merge pull request #24692 from tchaikov/wip-cmake-with-asan

cmake: fixes to enable WITH_ASAN with clang and GCC

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #24664 from tspmelo/wip-36513
Lenz Grimmer [Tue, 23 Oct 2018 10:59:06 +0000 (12:59 +0200)]
Merge pull request #24664 from tspmelo/wip-36513

mgr/dashboard: Fix missing failed restore notification

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #24637 from ricardoasmarques/fix-rbd-actions-disable
Lenz Grimmer [Tue, 23 Oct 2018 10:35:53 +0000 (12:35 +0200)]
Merge pull request #24637 from ricardoasmarques/fix-rbd-actions-disable

mgr/dashboard: Fix RBD actions disable

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #24612 from Tinatinak/fix_bug24548
Lenz Grimmer [Tue, 23 Oct 2018 10:28:57 +0000 (12:28 +0200)]
Merge pull request #24612 from Tinatinak/fix_bug24548

mgr/dashboard: Fixed documentation link on RGW page

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Fix HttpClient Module imports in unit tests 24679/head
Tiago Melo [Fri, 19 Oct 2018 15:56:21 +0000 (16:56 +0100)]
mgr/dashboard: Fix HttpClient Module imports in unit tests

Some of the tests were importing the wrong HttpClient Module and that was
causing random errors.

Fixes: https://tracker.ceph.com/issues/36528
Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Fix missing failed restore notification 24664/head
Tiago Melo [Thu, 18 Oct 2018 16:00:46 +0000 (17:00 +0100)]
mgr/dashboard: Fix missing failed restore notification

Fixes: http://tracker.ceph.com/issues/36513
Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #24544 from votdev/bug_24729
Lenz Grimmer [Tue, 23 Oct 2018 06:50:14 +0000 (08:50 +0200)]
Merge pull request #24544 from votdev/bug_24729

mgr/dashboard: Confirmation modal doesn't close

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #24699 from rhcs-dashboard/add-tslint-rule
Lenz Grimmer [Tue, 23 Oct 2018 06:48:54 +0000 (08:48 +0200)]
Merge pull request #24699 from rhcs-dashboard/add-tslint-rule

mgr/dashboard: Add TSLint rule "no-unused-variable"

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #24694 from tspmelo/wip-36544
Lenz Grimmer [Tue, 23 Oct 2018 06:47:55 +0000 (08:47 +0200)]
Merge pull request #24694 from tspmelo/wip-36544

mgr/dashboard: Fix problem with ErasureCodeProfileService

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #24696 from dillaman/wip-36542
Mykola Golub [Tue, 23 Oct 2018 06:41:43 +0000 (09:41 +0300)]
Merge pull request #24696 from dillaman/wip-36542

qa/tasks/qemu: use unique clone directory to avoid race with workunit

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agobuild/ops: drop sgdisk build/runtime dependencies 24707/head
Nathan Cutler [Tue, 23 Oct 2018 05:56:13 +0000 (07:56 +0200)]
build/ops: drop sgdisk build/runtime dependencies

sgdisk was a dependency of ceph-disk, which has been ripped out.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge PR #24698 into master
Sage Weil [Tue, 23 Oct 2018 03:46:23 +0000 (22:46 -0500)]
Merge PR #24698 into master

* refs/pull/24698/head:
Merge PR #24697 into nautilus
ceph_test_msgr: fix authorizer behavior
Merge pull request #24667 from liewegas/wip-ec-thrash-full
Merge PR #24689 into nautilus
qa/suites/rados/thrash-erasure-code*/thrashers/*: less likely resv rejection injection

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #24691 from iridescent-rsy/fix_typo
Kefu Chai [Tue, 23 Oct 2018 02:56:13 +0000 (10:56 +0800)]
Merge pull request #24691 from iridescent-rsy/fix_typo

common: fix typos in BackoffThrottle

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #24697 into nautilus 24698/head
Sage Weil [Tue, 23 Oct 2018 01:45:40 +0000 (20:45 -0500)]
Merge PR #24697 into nautilus

* refs/pull/24697/head:
ceph_test_msgr: fix authorizer behavior

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
6 years agoMerge pull request #24652 from badone/wip-undefined-gperftool-symbols-2
Brad Hubbard [Mon, 22 Oct 2018 23:37:35 +0000 (09:37 +1000)]
Merge pull request #24652 from badone/wip-undefined-gperftool-symbols-2

rpm: Use updated gperftools-libs at runtime

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
6 years agoos/bluestore: fix race between SharedBlobSet::lookup and SharedBlob::put 24701/head
Sage Weil [Mon, 22 Oct 2018 19:38:48 +0000 (14:38 -0500)]
os/bluestore: fix race between SharedBlobSet::lookup and SharedBlob::put

A                             B
SharedBlobSet::lookup()
  takes lock
  nref is not 0
                              SharedBlob::put()
                                --nref
returns SharedBlobRef,
  ++nref
                                takes cache lock
                                SharedBlobSet::remove
                                  takes lock
                                  removes
                                deletes SharedBlob

-> A ends up with a ref to deleted SharedBlob

Fix by verifying that nref is still zero in SharedBlobSet::remove(),
while we are holding the SharedBlobSet::lock.  The lock ensures that we
have increased the ref for the lookup before entering remove, so we can
verify that nref is still zero before removing it.  If not, we have
raced, and put() bails out and does nothing.

Fixes: http://tracker.ceph.com/issues/36526
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agorgw: aws:SecureTransport uses rgw_transport_is_secure() 24700/head
Casey Bodley [Mon, 22 Oct 2018 18:16:59 +0000 (14:16 -0400)]
rgw: aws:SecureTransport uses rgw_transport_is_secure()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: SSE operations check rgw_transport_is_secure()
Casey Bodley [Mon, 22 Oct 2018 18:14:44 +0000 (14:14 -0400)]
rgw: SSE operations check rgw_transport_is_secure()

Fixes: http://tracker.ceph.com/issues/27221
Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: add helper function rgw_transport_is_secure()
Casey Bodley [Mon, 22 Oct 2018 18:13:21 +0000 (14:13 -0400)]
rgw: add helper function rgw_transport_is_secure()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agocommon: add config option rgw_trust_forwarded_https
Casey Bodley [Mon, 22 Oct 2018 15:04:55 +0000 (11:04 -0400)]
common: add config option rgw_trust_forwarded_https

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agotest/log: drop redundant test case 24716/head
Ilya Dryomov [Mon, 22 Oct 2018 17:47:19 +0000 (19:47 +0200)]
test/log: drop redundant test case

After the recent logging rework, ManyGatherLog and
ManyGatherLogStringAssign are identical barring the string.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agocommon/StackStringStream: don't reserve before every insert
Ilya Dryomov [Mon, 22 Oct 2018 15:39:11 +0000 (17:39 +0200)]
common/StackStringStream: don't reserve before every insert

Unlike ConcreteEntry, MutableEntry can be appended to.  Reserving the
exact number of elements before every append is harmful: vector will
likely reallocate each time and grow linearly instead of geometrically.
This results in quadratic behaviour when we spill past the preallocated
capacity and doesn't benefit the fast path in any way.

The new test case takes half a second with this patch and many hours
spinning in memmove without this patch.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agomgr/dashboard: Add TSLint rule 24699/head
alfonsomthd [Mon, 22 Oct 2018 17:38:38 +0000 (19:38 +0200)]
mgr/dashboard: Add TSLint rule
- TSlint no-unused-variable rule added.
- Cleanup: unused imports and variables.

Signed-off-by: Alfonso Martínez <almartin@redhat.com>
6 years agoMerge pull request #24591 from tspmelo/wip-testing-module
Lenz Grimmer [Mon, 22 Oct 2018 17:33:53 +0000 (19:33 +0200)]
Merge pull request #24591 from tspmelo/wip-testing-module

mgr/dashboard: Unit Tests cleanup

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoceph_test_msgr: fix authorizer behavior 24697/head
Sage Weil [Mon, 22 Oct 2018 15:00:28 +0000 (10:00 -0500)]
ceph_test_msgr: fix authorizer behavior

Fixes breakage from this PR 2152d8ffb73a507a3d08d48b38c5a8e73f887138.

Fixes: http://tracker.ceph.com/issues/36495
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoinclude/ceph_assert.h: do not pack assert params if WITH_ASAN 24692/head
Kefu Chai [Mon, 22 Oct 2018 08:41:45 +0000 (16:41 +0800)]
include/ceph_assert.h: do not pack assert params if WITH_ASAN

we pack the asset() params for smaller code size, but this creates a
inlined `assert_data_ctx` instance for every compilation unit which
call ceph_assert() defined in .h .

__PRETTY_FUNCTION__ is likely to be referenced by `assert_data_ctx`
sections which are included by different compiled object files. if the
ceph_assert() call is used by header file, then there will be multiple
`assert_data_ctx` sections sharing the same identifier. these sections are
defined as "COMDAT" group sections, i.e. common data sections. when linker
see multiple COMDAT sections with the same identifer, it will simply discard
the duplicated ones, and only keep a single copy of them. without enabling
ASan, GCC can always handle this problem just fine. but the dedup feature
does not work well with ASan. if ASan is enabled, and we link the objects
with the wrong order, some references will be pointing to the discarded
sections.

to address this issue, we could audit the link command line and inspect
all .o files to make sure they are properly ordered. but this is
non-trivial. as a workaround, in this change, the assert params are not
packed, and sent to the  __ceph_assert_fail() overrides which accepts
unpacked params directly, so the COMDAT section is not created.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/tasks/qemu: use unique clone directory to avoid race with workunit 24696/head
Jason Dillaman [Mon, 22 Oct 2018 14:44:40 +0000 (10:44 -0400)]
qa/tasks/qemu: use unique clone directory to avoid race with workunit

If there is a workunit task associated with the same client, the two
tasks will attempt to clone the suite repo to the same directory.
Worse, if it's parallel tasks, the two clones will clobber each
other.

Fixes: http://tracker.ceph.com/issues/36542
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #24667 from liewegas/wip-ec-thrash-full
Josh Durgin [Mon, 22 Oct 2018 14:39:26 +0000 (07:39 -0700)]
Merge pull request #24667 from liewegas/wip-ec-thrash-full

qa/suites/rados/thrash-erasure-code*/thrashers/*: less likely resv rejection injection

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #23103 from ifed01/wip-ifed-bluefs-migrate
Kefu Chai [Mon, 22 Oct 2018 14:33:08 +0000 (22:33 +0800)]
Merge pull request #23103 from ifed01/wip-ifed-bluefs-migrate

os/bluestore: allow ceph-bluestore-tool to coalesce, add and migrate BlueFS backing volumes

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23090 from mingshuaiwang/master
Kefu Chai [Mon, 22 Oct 2018 14:30:41 +0000 (22:30 +0800)]
Merge pull request #23090 from mingshuaiwang/master

OSD: ceph-osd parent process need to restart log service after fork

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #24689 into nautilus
Sage Weil [Mon, 22 Oct 2018 14:20:50 +0000 (09:20 -0500)]
Merge PR #24689 into nautilus

* refs/pull/24689/head:
qa/tasks/ceph_manager: fix get_stuck_pgs from pg dump change

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #24689 into master
Sage Weil [Mon, 22 Oct 2018 14:19:46 +0000 (09:19 -0500)]
Merge PR #24689 into master

* refs/pull/24689/head:
qa/tasks/ceph_manager: fix get_stuck_pgs from pg dump change
Merge PR #24625 into nautilus
qa/suites/rados/mgr/tasks/module_selftest: whitelist 'foo bar security'

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Fix RBD actions disable 24637/head
Ricardo Marques [Wed, 17 Oct 2018 13:10:46 +0000 (14:10 +0100)]
mgr/dashboard: Fix RBD actions disable

Fixes: https://tracker.ceph.com/issues/36403
Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Confirmation modal doesn't close 24544/head
Volker Theile [Thu, 11 Oct 2018 13:02:39 +0000 (15:02 +0200)]
mgr/dashboard: Confirmation modal doesn't close

Fixes: https://tracker.ceph.com/issues/24729
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agomgr/dashboard: Fix problem with ErasureCodeProfileService 24694/head
Tiago Melo [Mon, 22 Oct 2018 10:57:01 +0000 (11:57 +0100)]
mgr/dashboard: Fix problem with ErasureCodeProfileService

ErasureCodeProfileService was being provided twice and that was causing
problems in production mode.

Fixes: https://tracker.ceph.com/issues/36544
Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #20004 from mogeb/steady-clock-tools-rados
Kefu Chai [Mon, 22 Oct 2018 09:46:44 +0000 (17:46 +0800)]
Merge pull request #20004 from mogeb/steady-clock-tools-rados

librados: use steady clock for rados_mon_op_timeout

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24658 from tchaikov/wip-18202-rebased
Kefu Chai [Mon, 22 Oct 2018 09:44:07 +0000 (17:44 +0800)]
Merge pull request #24658 from tchaikov/wip-18202-rebased

blkdev: Rework API and add FreeBSD support

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agoinclude/ceph_assert: always use __PRETTY_FUNCTION__ for C++
Kefu Chai [Mon, 22 Oct 2018 08:07:13 +0000 (16:07 +0800)]
include/ceph_assert: always use __PRETTY_FUNCTION__ for C++

we've moved to GCC-7, no need to check for ancient compiler versions

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake,ceph.in: preload libasan if WITH_ASAN
Kefu Chai [Mon, 22 Oct 2018 06:06:38 +0000 (14:06 +0800)]
cmake,ceph.in: preload libasan if WITH_ASAN

we need to preload libasan.so as the python exectuable is not likely to
be compiled with ASan enabled.
see:
https://github.com/google/sanitizers/wiki/AddressSanitizerAsDso#asan-and-ld_preload

just to ease the use of ASan, for fine-tuned behaviour, use
`ASAN_OPTIONS`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoceph.in: extract get_cmake_variables()
Kefu Chai [Mon, 22 Oct 2018 05:13:49 +0000 (13:13 +0800)]
ceph.in: extract get_cmake_variables()

so it can be reused

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: should compile libzstd with -fPIC
Kefu Chai [Mon, 22 Oct 2018 05:13:11 +0000 (13:13 +0800)]
cmake: should compile libzstd with -fPIC

otherwise we will have

/usr/bin/ld: libzstd/lib/libzstd.a(error_private.c.o): relocation
R_X86_64_32S against `.rodata' can not be used when making a shared
object; recompile with -fPIC

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: pass Sanitizers flags to linker for linking .so
Kefu Chai [Mon, 22 Oct 2018 04:42:10 +0000 (12:42 +0800)]
cmake: pass Sanitizers flags to linker for linking .so

see
https://github.com/google/sanitizers/wiki/AddressSanitizer#using-addresssanitizer

to be specific,

> In order to use AddressSanitizer you will need to compile and link your
> program using `clang` with the `-fsanitize=address` switch.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: pass cflags to disutils using CC instead of CFLAGS
Kefu Chai [Mon, 22 Oct 2018 04:28:01 +0000 (12:28 +0800)]
cmake: pass cflags to disutils using CC instead of CFLAGS

in python's distutils.ccompiler, linker_exe is composed using CC instead
of LDFLAGS. the latter only effects how it builds (shared) library.

and put CMAKE_C_FLAGS into the cflags for the compiler for building
python C extensions, it's more consistent this way. more importantly,
if we build with ASan enabled, the canary program, a.k.a. rados_dummy.c,
won't link without proper CFLAGS.

without this change, rados.so fails to build with errors like:

/usr/bin/ld: /var/ssd/ceph/build/lib/librados.so: undefined reference to
`__asan_stack_free_10'
/usr/bin/ld: /var/ssd/ceph/build/lib/librados.so: undefined reference to
`__asan_report_exp_store8'
...
...

clang: error: linker command failed with exit code 1 (use -v to see
invocation)

Link Error: RADOS library not found
make[3]: ***
[src/pybind/rados/CMakeFiles/cython_rados.dir/build.make:57:
src/pybind/rados/CMakeFiles/cython_rados] Error 1

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/TextTable: define endrow
Kefu Chai [Mon, 22 Oct 2018 03:38:57 +0000 (11:38 +0800)]
common/TextTable: define endrow

otherwise "cmake -DWITH_ASAN=ON -DCMAKE_BUILD_TYPE=Debug" will fail to
build with

/usr/bin/ld: //var/ssd/ceph/build/lib/libceph-common.so.0: undefined
reference to `TextTable::endrow'

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon: fix typos in BackoffThrottle 24691/head
Shiyang Ruan [Mon, 22 Oct 2018 05:06:34 +0000 (13:06 +0800)]
common: fix typos in BackoffThrottle

Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
6 years agoPendingReleaseNotes: note about cephfs client state reclaim 24709/head
Yan, Zheng [Mon, 22 Oct 2018 03:57:08 +0000 (11:57 +0800)]
PendingReleaseNotes: note about cephfs client state reclaim

Fixes: http://tracker.ceph.com/issues/36394
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
6 years agoqa/tasks/ceph_manager: fix get_stuck_pgs from pg dump change 24689/head
Sage Weil [Sun, 21 Oct 2018 15:52:38 +0000 (10:52 -0500)]
qa/tasks/ceph_manager: fix get_stuck_pgs from pg dump change

Fixes 95b7d2340c04dc7cf90085c89606b8c85a8f2803

Fixes: http://tracker.ceph.com/issues/36485
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agosrc/test: fix unordered manifest-unset op 24687/head
myoungwon oh [Sun, 21 Oct 2018 06:29:09 +0000 (15:29 +0900)]
src/test: fix unordered manifest-unset op

- manifest unset op to foo-chunk object
 - remove manifest flag
 - commit
 - send an ack to a client
 - send decrement mesages ("chunk_put") to old chunks (bar-chunk)

Current unit test(ManifestUnset) send "chunk_read" command (to bar-chunk)
in order to see whether chunk's reference count is decreased.
But, as described above, "chunk_read" event can be triggered after a client
(test application) receives an ack. Therefore, there is a corner case
such as bar-chunk (in chunk pool) receives "chunk_read" first instead of "chunk_put"

Reference count model of dedup/tiering is based on false-positive (#24230).
So decreasing reference count is not guaranteed. If reference mismatch occur,
chunk-scrub (this is WIP) will fix it.
One guaranteed thing is that existing manifest flag is removed.

So, the solution of this commit is just re-send unset op, and then
chenk that return value is -EOPNOTSUPP (this means manifest flags is removed).

Fixes: http://tracker.ceph.com/issues/24485
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
6 years agoMerge PR #24184 into master 21364/head
Sage Weil [Sat, 20 Oct 2018 21:40:22 +0000 (16:40 -0500)]
Merge PR #24184 into master

* refs/pull/24184/head:
mgr/DaemonServer: remove any upmaps on merging PGs
mgr/DaemonServer: prevent merge if either pg is remapped|upmap
mgr/DaemonServer: move pending merge check for more consistent code
qa/suites/rados/thrash*/thrashers/careful.yaml: thrash with mgr controller
mgr/DaemonServer: add option to bypass careful throttling for thrasher
PendingReleaseNotes: note about mgr/balancer/max_misplaced change
mgr/DaemonServer: remove stale/misleading check
mgr/DaemonServer: throttle pgp_num changes based on misplaced %
mgr/DaemonServer: block pg_num decrease(merge) until pgp_num is reduced
mgr/DaemonServer: adjust_pgs(): cosmetic change to debug output
mon/PGMap: add get_recovery_stats()
mgr/balancer: mgr/balancer/max_misplaced -> pg_max_misplaced
pybind/mgr/mgr_module: add get_option()
mgr/DaemonServer: allow pg_num increases that abort pending merges
mon/OSDMonitor: resent pre-nautilus client ops on aborted merge
mon/OSDMonitor: make pgp_num track pg_num more consistently

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge PR #24654 into master
Sage Weil [Sat, 20 Oct 2018 20:39:56 +0000 (15:39 -0500)]
Merge PR #24654 into master

* refs/pull/24654/head:
osd: remove unused parameter 'dev' in OSD::mkfs function

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agomgr/DaemonServer: remove any upmaps on merging PGs 24184/head
Sage Weil [Mon, 24 Sep 2018 18:53:46 +0000 (13:53 -0500)]
mgr/DaemonServer: remove any upmaps on merging PGs

Remove any pg_upmap[_items] on pgs that are merging to ensure that they
land on the same OSDs.

This is a bit sloppy: we *could* set the source upmap to match the target
upmap (vs potentially moving both PGs to a third location, and/or then
having the balancer move the resulting PG somewhere else again), but for
now assume upmaps are not a common case and Keep It Simple.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/DaemonServer: prevent merge if either pg is remapped|upmap
Sage Weil [Mon, 24 Sep 2018 18:03:05 +0000 (13:03 -0500)]
mgr/DaemonServer: prevent merge if either pg is remapped|upmap

Remapping means they could be on different OSDs.

Fixes: http://tracker.ceph.com/issues/36166
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/DaemonServer: move pending merge check for more consistent code
Sage Weil [Thu, 20 Sep 2018 13:43:37 +0000 (08:43 -0500)]
mgr/DaemonServer: move pending merge check for more consistent code

No functional change, but this makes the code simpler to read.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa/suites/rados/thrash*/thrashers/careful.yaml: thrash with mgr controller
Sage Weil [Wed, 19 Sep 2018 22:09:24 +0000 (17:09 -0500)]
qa/suites/rados/thrash*/thrashers/careful.yaml: thrash with mgr controller

Thrash such that we still exercise the careful throttling in the mgr.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/DaemonServer: add option to bypass careful throttling for thrasher
Sage Weil [Wed, 19 Sep 2018 22:04:38 +0000 (17:04 -0500)]
mgr/DaemonServer: add option to bypass careful throttling for thrasher

Signed-off-by: Sage Weil <sage@redhat.com>