]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agotest/pybind/rbd.pyx: add test_remove_snap_by_id case in test_rbd.py 30927/head
zhangjiao [Tue, 15 Oct 2019 07:49:33 +0000 (15:49 +0800)]
test/pybind/rbd.pyx: add test_remove_snap_by_id case in test_rbd.py

Signed-off-by: Zhang Jiao <zhangjiao@cmss.chinamobile.com>
5 years agoMerge pull request #30441 from anthonyeleven/master
Kefu Chai [Sat, 28 Sep 2019 08:05:05 +0000 (16:05 +0800)]
Merge pull request #30441 from anthonyeleven/master

osd: Change osd op queue cut off default to high

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #30581 from liewegas/wip-write-returns
Kefu Chai [Sat, 28 Sep 2019 08:03:11 +0000 (16:03 +0800)]
Merge pull request #30581 from liewegas/wip-write-returns

osd: allow rados write ops to return data and error codes

Reviewed-by: Samuel Just <sjust@redhat.com>
5 years agoMerge pull request #30454 from trociny/wip-41891
Kefu Chai [Sat, 28 Sep 2019 08:01:37 +0000 (16:01 +0800)]
Merge pull request #30454 from trociny/wip-41891

osd: fix possible crash on sending dynamic perf stats report

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #30544 from tchaikov/wip-check-getentropy-at-runtime
Kefu Chai [Sat, 28 Sep 2019 03:19:06 +0000 (11:19 +0800)]
Merge pull request #30544 from tchaikov/wip-check-getentropy-at-runtime

auth/Crypto: fallback to /dev/urandom if getentropy() fails

Reviewed-by: Chang Liu <liuchang0812@gmail.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #30526 from uweigand/endian-private
Kefu Chai [Fri, 27 Sep 2019 18:05:29 +0000 (02:05 +0800)]
Merge pull request #30526 from uweigand/endian-private

include,os: Make ceph_le member private

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #30525 into master
Sage Weil [Fri, 27 Sep 2019 17:08:37 +0000 (12:08 -0500)]
Merge PR #30525 into master

* refs/pull/30525/head:
qa/tasks/ceph.conf.template: disable power-of-2 warning
qa/standalone/mon/health-mute: use power of 2 for pg_num
osd/OSDMap: remove remaining g_conf() usage
PendingReleaseNotes: add note for 14.2.5 so we can backport this
osd/OSDMap: health alert for non-power-of-two pg_num

Reviewed-by: Kai Wagner <kwagner@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge PR #30431 into master
Sage Weil [Fri, 27 Sep 2019 15:11:58 +0000 (10:11 -0500)]
Merge PR #30431 into master

* refs/pull/30431/head:
pybind/ceph_argparse: add :int or :float to numerical args
pybind/ceph_argparse: simplify osd name and target types
pybind/ceph_argparse: prefer field names to types in help output
pybind/ceph_argparse: more concise n=N '...'
pybind/ceph_argparse: [] (not {}) around optional args

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agomgr/dashboard: Support minimum password complexity rules (#29532)
Lenz Grimmer [Fri, 27 Sep 2019 13:54:17 +0000 (13:54 +0000)]
mgr/dashboard: Support minimum password complexity rules (#29532)

mgr/dashboard: Support minimum password complexity rules

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agomgr/dashboard: CephFS snapshots/quota REST API (#30256)
Lenz Grimmer [Fri, 27 Sep 2019 13:45:28 +0000 (13:45 +0000)]
mgr/dashboard: CephFS snapshots/quota REST API (#30256)

mgr/dashboard: CephFS snapshots/quota REST API

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge PR #30577 into master
Sage Weil [Fri, 27 Sep 2019 13:22:27 +0000 (08:22 -0500)]
Merge PR #30577 into master

* refs/pull/30577/head:
qa/suites/rados/thrash-old-clients: tolerate MON_DOWN

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoMerge pull request #30599 from votdev/issue_41797_url_prefix
Lenz Grimmer [Fri, 27 Sep 2019 12:31:32 +0000 (12:31 +0000)]
Merge pull request #30599 from votdev/issue_41797_url_prefix

mgr/dashboard: Configuring an URL prefix does not work as expected

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #30597 from smithfarm/wip-opensuse-15.1
Nathan Cutler [Fri, 27 Sep 2019 09:59:10 +0000 (11:59 +0200)]
Merge pull request #30597 from smithfarm/wip-opensuse-15.1

qa/distros/all: add openSUSE 15.1, drop openSUSE 12.2

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.de>
5 years agoMerge pull request #30430 from smithfarm/wip-release-schedule-14.2.4
Nathan Cutler [Fri, 27 Sep 2019 09:58:32 +0000 (11:58 +0200)]
Merge pull request #30430 from smithfarm/wip-release-schedule-14.2.4

doc/releases/schedule.rst: add 14.2.3, 14.2.4, 15.0.0 and drop dumpling

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agoMerge pull request #30478 from votdev/issue_41930_standby_dashboard
Lenz Grimmer [Fri, 27 Sep 2019 09:37:37 +0000 (09:37 +0000)]
Merge pull request #30478 from votdev/issue_41930_standby_dashboard

mgr/dashboard: Standby Dashboards don't handle all requests properly

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
5 years agoMerge pull request #30501 from liewegas/bugfix-41913
Kefu Chai [Fri, 27 Sep 2019 08:16:37 +0000 (16:16 +0800)]
Merge pull request #30501 from liewegas/bugfix-41913

ceph-objectstore-tool: better error message if pgid and object do not match

Reviewed-by: David Zafman <dzafman@redhat.com>
5 years agoMerge pull request #30518 from liewegas/wip-mon-less-snap-metadata
Kefu Chai [Fri, 27 Sep 2019 07:04:38 +0000 (15:04 +0800)]
Merge pull request #30518 from liewegas/wip-mon-less-snap-metadata

mon/OSDMonitor: clean up removed_snap keys

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30530 from dzafman/wip-42015
Kefu Chai [Fri, 27 Sep 2019 07:01:39 +0000 (15:01 +0800)]
Merge pull request #30530 from dzafman/wip-42015

osd: Remove unused osdmap flags full, nearfull from output

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #30406 into master
Patrick Donnelly [Fri, 27 Sep 2019 06:49:42 +0000 (23:49 -0700)]
Merge PR #30406 into master

* refs/pull/30406/head:
doc: move MDS deployment from main quick start to CephFS quick start
doc: update CephFS Quick Start doc

Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30561 into master
Patrick Donnelly [Fri, 27 Sep 2019 06:11:05 +0000 (23:11 -0700)]
Merge PR #30561 into master

* refs/pull/30561/head:
doc/ceph-fuse: mention -k option in ceph-fuse man page

Reviewed-by: Douglas Fuller <dfuller@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
5 years agoMerge pull request #30404 from shun-s/cleanup-failure-pending
Kefu Chai [Fri, 27 Sep 2019 05:50:17 +0000 (13:50 +0800)]
Merge pull request #30404 from shun-s/cleanup-failure-pending

osd: make osd recover more smoothly by avoiding failure peer info to resent

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30517 from tchaikov/wip-test/dashboard/scheme-allow-unknown
Kefu Chai [Fri, 27 Sep 2019 05:36:23 +0000 (13:36 +0800)]
Merge pull request #30517 from tchaikov/wip-test/dashboard/scheme-allow-unknown

qa/tasks/mgr/dashboard/test_health: add "allow_unknown" in mgr_map

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge PR #30297 into master
Patrick Donnelly [Fri, 27 Sep 2019 05:34:28 +0000 (22:34 -0700)]
Merge PR #30297 into master

* refs/pull/30297/head:
test_cephfs_shell: add note on how to run this testsuite
cephfs-shell: rewrite help text for put and get commands

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #30533 from cxytt/fix-complete-to-not-reset
Kefu Chai [Fri, 27 Sep 2019 05:32:19 +0000 (13:32 +0800)]
Merge pull request #30533 from cxytt/fix-complete-to-not-reset

osd/PGLog: reset log.complete_to when recover obect failed

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #30538 from tchaikov/wip/test/ceph_argparse/yet-another-test
Kefu Chai [Fri, 27 Sep 2019 05:31:38 +0000 (13:31 +0800)]
Merge pull request #30538 from tchaikov/wip/test/ceph_argparse/yet-another-test

mon.test: improve validation and add a test for "osd pool create"

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #30504 from Songweibin/wip-app-meta-get
Kefu Chai [Fri, 27 Sep 2019 05:24:56 +0000 (13:24 +0800)]
Merge pull request #30504 from Songweibin/wip-app-meta-get

pybind/rados: add application_metadata_get

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #30421 from sebastian-philipp/prometheus-always-on-modules
Kefu Chai [Fri, 27 Sep 2019 05:21:10 +0000 (13:21 +0800)]
Merge pull request #30421 from sebastian-philipp/prometheus-always-on-modules

mgr/prometheus: Fix KeyError in get_mgr_status

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #30200 from NancySu05/dev
Kefu Chai [Fri, 27 Sep 2019 05:18:19 +0000 (13:18 +0800)]
Merge pull request #30200 from NancySu05/dev

mon/OSDMonitor: trim not-longer-exist failure reporters

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #29906 into master
Patrick Donnelly [Fri, 27 Sep 2019 05:12:03 +0000 (22:12 -0700)]
Merge PR #29906 into master

* refs/pull/29906/head:
vstart_runner: name booleans for options differently
qa/vstart_runner.py: add an option to remove old log
qa/vstart_runner.py: make log initialization code reusable
qa/vstart_runner.py: make printing of stdout of ps optional
qa/vstart_runner.py: add timeout for vstart.sh and stop.sh
qa/vstart_runner.py: add an option to teardown cluster

Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge pull request #30612 from tchaikov/wip-install-deps.sh/do-not-fail-if-already...
Kefu Chai [Fri, 27 Sep 2019 03:24:09 +0000 (11:24 +0800)]
Merge pull request #30612 from tchaikov/wip-install-deps.sh/do-not-fail-if-already-installed

install-deps: do not install if rpm already installed

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoinstall-deps: do not install if rpm already installed 30612/head
Kefu Chai [Fri, 27 Sep 2019 02:26:54 +0000 (10:26 +0800)]
install-deps: do not install if rpm already installed

there is chance that the system already have epel-release-latest-7.noarch.rpm
installed, in that case, install-deps.sh should not fail.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30466 from xiexingguo/wip-41924
Xie Xingguo [Fri, 27 Sep 2019 02:18:33 +0000 (10:18 +0800)]
Merge pull request #30466 from xiexingguo/wip-41924

osd/PGLog: persist num_objects_missing for replicas when peering is done

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #30576 from xiexingguo/wip-42052
Xie Xingguo [Fri, 27 Sep 2019 02:17:54 +0000 (10:17 +0800)]
Merge pull request #30576 from xiexingguo/wip-42052

osd/OSDMap: do not trust partially simplified pg_upmap_item

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30560 from xiexingguo/wip-balancer-upmap-cli
Xie Xingguo [Fri, 27 Sep 2019 02:17:09 +0000 (10:17 +0800)]
Merge pull request #30560 from xiexingguo/wip-balancer-upmap-cli

mgr/balancer: enable pg_upmap cli for future use

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #30223 into master
Sage Weil [Fri, 27 Sep 2019 00:28:51 +0000 (19:28 -0500)]
Merge PR #30223 into master

* refs/pull/30223/head:
msg/async: do not register lossy client connections
msg/async: allow anonymous client-side connections

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
5 years agomgr/dashboard: REST API: OpenAPI docs require internet connect… (#30477)
Lenz Grimmer [Thu, 26 Sep 2019 16:14:45 +0000 (16:14 +0000)]
mgr/dashboard: REST API: OpenAPI docs require internet connect… (#30477)

mgr/dashboard: REST API: OpenAPI docs require internet connection

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #30557 from smithfarm/wip-42023
Nathan Cutler [Thu, 26 Sep 2019 16:03:50 +0000 (18:03 +0200)]
Merge pull request #30557 from smithfarm/wip-42023

install-deps.sh: add EPEL repo for non-x86_64 archs as well

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agomgr/dashboard: Configuring an URL prefix does not work as expected 30599/head
Volker Theile [Thu, 26 Sep 2019 15:33:24 +0000 (17:33 +0200)]
mgr/dashboard: Configuring an URL prefix does not work as expected

Fixes: https://tracker.ceph.com/issues/41797
Signed-off-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #30590 from jtlayton/wip-42032
jtlayton [Thu, 26 Sep 2019 15:35:36 +0000 (11:35 -0400)]
Merge pull request #30590 from jtlayton/wip-42032

ceph.spec.in: fix Cython package dependency for Fedora

5 years agoMerge pull request #29460 from rhcs-dashboard/bucket-versioning
Lenz Grimmer [Thu, 26 Sep 2019 15:27:58 +0000 (15:27 +0000)]
Merge pull request #29460 from rhcs-dashboard/bucket-versioning

mgr/dashboard: enable/disable versioning on RGW bucket

Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoqa/distros/all: add openSUSE 15.1, drop openSUSE 12.2 30597/head
Nathan Cutler [Thu, 26 Sep 2019 15:07:36 +0000 (17:07 +0200)]
qa/distros/all: add openSUSE 15.1, drop openSUSE 12.2

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoqa/tasks/ceph.conf.template: disable power-of-2 warning 30525/head
Sage Weil [Thu, 26 Sep 2019 14:27:40 +0000 (09:27 -0500)]
qa/tasks/ceph.conf.template: disable power-of-2 warning

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/standalone/mon/health-mute: use power of 2 for pg_num
Sage Weil [Thu, 26 Sep 2019 14:25:49 +0000 (09:25 -0500)]
qa/standalone/mon/health-mute: use power of 2 for pg_num

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30208 from ricardoasmarques/support-iscsi-controls-types
Ricardo Marques [Thu, 26 Sep 2019 13:45:58 +0000 (14:45 +0100)]
Merge pull request #30208 from ricardoasmarques/support-iscsi-controls-types

mgr/dashboard: Controls UI inputs based on "type"

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge PR #28834 into master
Patrick Donnelly [Thu, 26 Sep 2019 13:26:46 +0000 (06:26 -0700)]
Merge PR #28834 into master

* refs/pull/28834/head:
libcephfs: Add test for lazyio via libcephfs
libcephfs: Add lazyio_propogate and lazyio_synchronize methods to libcephfs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge PR #29818 into master
Patrick Donnelly [Thu, 26 Sep 2019 13:25:17 +0000 (06:25 -0700)]
Merge PR #29818 into master

* refs/pull/29818/head:
client/MetaRequest: Add age to MetaRequest dump
osdc/Objecter: Add age to the ops
common/ceph_time: Use fixed floating-point notation for mono_clock

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #29902 into master
Patrick Donnelly [Thu, 26 Sep 2019 13:23:18 +0000 (06:23 -0700)]
Merge PR #29902 into master

* refs/pull/29902/head:
mds: Revert "properly setup client_need_snapflush for snap inode"
mds: cleanup dirty snap caps tracking

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #29921 into master
Patrick Donnelly [Thu, 26 Sep 2019 13:22:01 +0000 (06:22 -0700)]
Merge PR #29921 into master

* refs/pull/29921/head:
mds: split the dir if the op makes it oversized

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
5 years agoMerge PR #30202 into master
Patrick Donnelly [Thu, 26 Sep 2019 13:20:48 +0000 (06:20 -0700)]
Merge PR #30202 into master

* refs/pull/30202/head:
mds: Explicitly call slave_updates with 0 size
mds: Move log_segment_seq_t into class LogSegment
mds: Reorganize class members in LogSegment header

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30403 into master
Patrick Donnelly [Thu, 26 Sep 2019 13:19:39 +0000 (06:19 -0700)]
Merge PR #30403 into master

* refs/pull/30403/head:
mds: mds returns -5 error when the deleted file does not exist

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge PR #30462 into master
Patrick Donnelly [Thu, 26 Sep 2019 13:17:10 +0000 (06:17 -0700)]
Merge PR #30462 into master

* refs/pull/30462/head:
qa: have kclient tests use new mount.ceph functionality

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
5 years agomgr/dashboard: Support iSCSI target-level CHAP auth (#30011)
Lenz Grimmer [Thu, 26 Sep 2019 12:33:33 +0000 (12:33 +0000)]
mgr/dashboard: Support iSCSI target-level CHAP auth (#30011)

mgr/dashboard: Support iSCSI target-level CHAP auth

Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #30588 from ricardoasmarques/fix-iscsi-test-put
Kefu Chai [Thu, 26 Sep 2019 12:22:39 +0000 (20:22 +0800)]
Merge pull request #30588 from ricardoasmarques/fix-iscsi-test-put

mgr/dashboard: Wait for iSCSI target put and delete

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoceph.spec.in: fix Cython package dependency for Fedora 30590/head
Jeff Layton [Thu, 26 Sep 2019 11:50:28 +0000 (07:50 -0400)]
ceph.spec.in: fix Cython package dependency for Fedora

Fedora distros do not have python3?-Cython packages, but they do have
python3-Cython ones. Fix the BuildRequires so that we only use the
python3_version_nodots based version string for RHEL.

Fixes: https://tracker.ceph.com/issues/42032
Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agomgr/dashboard: Wait for iSCSI target put and delete 30588/head
Ricardo Marques [Thu, 26 Sep 2019 09:42:21 +0000 (10:42 +0100)]
mgr/dashboard: Wait for iSCSI target put and delete

Signed-off-by: Ricardo Marques <rimarques@suse.com>
5 years agoMerge pull request #30571 from smithfarm/wip-bci-force
Nathan Cutler [Thu, 26 Sep 2019 10:25:35 +0000 (12:25 +0200)]
Merge pull request #30571 from smithfarm/wip-bci-force

src/script/backport-create-issue: implement --force option

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agomgr/dashboard: Controls UI inputs based on "type" 30208/head
Ricardo Marques [Fri, 6 Sep 2019 10:54:08 +0000 (11:54 +0100)]
mgr/dashboard: Controls UI inputs based on "type"

iSCSI controls UI inputs should be rendered based
on the control "type" returned by `ceph-iscsi`.

Fixes: https://tracker.ceph.com/issues/41682
Signed-off-by: Ricardo Marques <rimarques@suse.com>
5 years agomgr/dashboard: test_mgr_module QA test has not been adapted to… (#30513)
Lenz Grimmer [Thu, 26 Sep 2019 08:48:31 +0000 (08:48 +0000)]
mgr/dashboard: test_mgr_module QA test has not been adapted to… (#30513)

mgr/dashboard: Adapt test_mgr_module QA test to latest controller changes

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agomgr/dashboard: wait for iscsi/target create/put (#30582)
Lenz Grimmer [Thu, 26 Sep 2019 07:11:49 +0000 (07:11 +0000)]
mgr/dashboard: wait for iscsi/target create/put (#30582)

mgr/dashboard: wait for iscsi/target create/put

Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agomgr/dashboard: enable/disable versioning on RGW bucket 29460/head
Alfonso Martínez [Thu, 26 Sep 2019 06:41:14 +0000 (08:41 +0200)]
mgr/dashboard: enable/disable versioning on RGW bucket

Fixes: https://tracker.ceph.com/issues/40920
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
5 years agoMerge pull request #30578 from tchaikov/wip-seastar-unix-domain-socket
Kefu Chai [Thu, 26 Sep 2019 04:42:07 +0000 (12:42 +0800)]
Merge pull request #30578 from tchaikov/wip-seastar-unix-domain-socket

seastar: pickup unix domain socket support

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
5 years agomgr/dashboard: wait for iscsi/target create/put 30582/head
Kefu Chai [Thu, 26 Sep 2019 00:54:01 +0000 (08:54 +0800)]
mgr/dashboard: wait for iscsi/target create/put

IscsiTarget.create() returns a Task, so we need to wait for its
completion before moving on.

the same applies to IscsiTarget.put()

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomessages/MOSDOpReply: ensure input payload is not passed via reply 30581/head
Sage Weil [Wed, 25 Sep 2019 18:28:30 +0000 (13:28 -0500)]
messages/MOSDOpReply: ensure input payload is not passed via reply

The reply shouldn't include the input payload, for the sake of efficiency.

This has the slightly annoying side-effect that the class name and method
are no longer visible in osd_op_reply messages.  However, it does mean
that any data payload is not sent back to the client.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PrimaryLogPG: make proxied writes behave with RETURNVEC
Sage Weil [Wed, 25 Sep 2019 18:19:53 +0000 (13:19 -0500)]
osd/PrimaryLogPG: make proxied writes behave with RETURNVEC

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocls/hello: test large return buffer overflow
Sage Weil [Tue, 24 Sep 2019 19:52:02 +0000 (14:52 -0500)]
cls/hello: test large return buffer overflow

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PrimaryLogPG: impose a per-op return buffer limit (32)
Sage Weil [Tue, 24 Sep 2019 19:51:45 +0000 (14:51 -0500)]
osd/PrimaryLogPG: impose a per-op return buffer limit (32)

Limit the return value size for writes, so that we don't inadvertantly
stuff too much data in the PGLog.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PrimaryLogPG: include op_returns in pg log [dup] records, reply
Sage Weil [Tue, 24 Sep 2019 19:31:31 +0000 (14:31 -0500)]
osd/PrimaryLogPG: include op_returns in pg log [dup] records, reply

If the op has the RETURNVEC flag set,

- Record the per-op return value and overall return code in the pg log and
  dup records.
- Include the same in the actual MOSDOpReply back to the client.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/osd_types: reset payload_len in merge_osd_op_vector_out_data
Sage Weil [Tue, 24 Sep 2019 19:28:01 +0000 (14:28 -0500)]
osd/osd_types: reset payload_len in merge_osd_op_vector_out_data

This is cleaner and simpler.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/osd_types: show in and out byte counts for OSDOp
Sage Weil [Tue, 24 Sep 2019 18:46:59 +0000 (13:46 -0500)]
osd/osd_types: show in and out byte counts for OSDOp

This will appear in the MOSDOp[Reply] message strings.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocls/hello,ceph_test_cls_hello: test returning data from a mutation
Sage Weil [Tue, 24 Sep 2019 14:17:52 +0000 (09:17 -0500)]
cls/hello,ceph_test_cls_hello: test returning data from a mutation

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosdc/Objecter: allow mutate ops to have return data
Sage Weil [Tue, 24 Sep 2019 14:07:58 +0000 (09:07 -0500)]
osdc/Objecter: allow mutate ops to have return data

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agolibrados: add a RETURNVEC flag
Sage Weil [Mon, 23 Sep 2019 22:22:03 +0000 (17:22 -0500)]
librados: add a RETURNVEC flag

This signals that the client is soliciting and expecting return codes
that are >0 and/or return buffers on update ops.

This should be used with caution, since it means that compound requests
that include read and write requests will *also* persist the read ops in
order to be idempotent, which means that those ops' results may get
truncated.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/osd_types: add per-op return fields to log [dup] records
Sage Weil [Mon, 23 Sep 2019 22:20:03 +0000 (17:20 -0500)]
osd/osd_types: add per-op return fields to log [dup] records

Allow an overall positive return value, and also per-op return value and
outdata for each op in a request.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PrimaryLogPG: remove finish_proxy_write reply path
Sage Weil [Wed, 25 Sep 2019 15:59:42 +0000 (10:59 -0500)]
osd/PrimaryLogPG: remove finish_proxy_write reply path

There is no case where we have already allocated a reply message here,
since that is only done in execute_ctx() after the transaction is prepared,
something that doesn't happen if we proxy the write through to the base
layer.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PrimaryLogPG: drop unused MOSDOpReply creation path
Sage Weil [Tue, 24 Sep 2019 18:37:37 +0000 (13:37 -0500)]
osd/PrimaryLogPG: drop unused MOSDOpReply creation path

It is unclear why this path was originally needed, but it does predate
the removal of the dual-ack removal, so I expect it was related to
that.  It is no longer necesarry.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomsg/async: do not register lossy client connections 30223/head
Sage Weil [Fri, 6 Sep 2019 20:04:11 +0000 (15:04 -0500)]
msg/async: do not register lossy client connections

If our policy is server + lossy, we do not need to track our incoming
client connections by address.  First, because it doesn't do us any good.
Second, it is nicer if we don't, because we can allow multiple incoming
connections from the same peer addr.

Update a couple of tests: one doesn't apply any more, and the other needs
a different way of getting the just-accepted con ref.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomsg/async: allow anonymous client-side connections
Sage Weil [Fri, 6 Sep 2019 19:34:05 +0000 (14:34 -0500)]
msg/async: allow anonymous client-side connections

If the connection mode is lossy, allow us to open a new connection to
a target, regardless of whether other such connections are already open.
This allows for single-use connections.  If you call this multiple times,
you'll get separate, distinct connections.

We are lucky that the cleanup infrastructure for AsyncMessenger just works
without modification.  :)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoseastar: pickup unix domain socket support 30578/head
Kefu Chai [Wed, 25 Sep 2019 15:33:07 +0000 (23:33 +0800)]
seastar: pickup unix domain socket support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #30523 into master
Sage Weil [Wed, 25 Sep 2019 14:49:57 +0000 (09:49 -0500)]
Merge PR #30523 into master

* refs/pull/30523/head:
mon/MonClient: skip CEPHX_V2 challenge if client doesn't support it

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
5 years agoosd/OSDMap: remove remaining g_conf() usage
Sage Weil [Wed, 25 Sep 2019 13:12:59 +0000 (08:12 -0500)]
osd/OSDMap: remove remaining g_conf() usage

Use the explicitly-passed cct here instead of relying on the global symbol.
The only user was check_health(), so this is easy.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/OSDMap: do not trust partially simplified pg_upmap_item 30576/head
xie xingguo [Wed, 25 Sep 2019 11:36:10 +0000 (19:36 +0800)]
osd/OSDMap: do not trust partially simplified pg_upmap_item

If we simplified a partially no-op pg_upmap_item, we shall still
continue to verify that the remaining part is valid.
The bug is introduced by 02e5499b350bcd7d9eac98b2072052a9a4a1f535,
before which we always validate the correctness of a pg_upmap_item
before trying to cancel or simplify it.

Fixes: https://tracker.ceph.com/issues/42052
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoqa/suites/rados/thrash-old-clients: tolerate MON_DOWN 30577/head
Sage Weil [Wed, 25 Sep 2019 13:20:43 +0000 (08:20 -0500)]
qa/suites/rados/thrash-old-clients: tolerate MON_DOWN

The first thing this test does is upgrade all mons.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/dashboard: Support iSCSI target-level CHAP auth 30011/head
Ricardo Marques [Thu, 29 Aug 2019 14:28:23 +0000 (15:28 +0100)]
mgr/dashboard: Support iSCSI target-level CHAP auth

Requires `ceph-iscsi` config v11

Fixes: https://tracker.ceph.com/issues/41576
Signed-off-by: Ricardo Marques <rimarques@suse.com>
5 years agomgr/dashboard: Display the "destroyed" state in OSD list (#30514)
Lenz Grimmer [Wed, 25 Sep 2019 09:49:21 +0000 (09:49 +0000)]
mgr/dashboard: Display the "destroyed" state in OSD list (#30514)

mgr/dashboard: Display the "destroyed" state in OSD list

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoinstall-deps.sh: add EPEL repo for non-x86_64 archs as well 30557/head
Nathan Cutler [Tue, 24 Sep 2019 19:48:27 +0000 (21:48 +0200)]
install-deps.sh: add EPEL repo for non-x86_64 archs as well

Fixes: https://tracker.ceph.com/issues/42023
Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agosrc/script/backport-create-issue: implement --force option 30571/head
Nathan Cutler [Wed, 25 Sep 2019 08:47:28 +0000 (10:47 +0200)]
src/script/backport-create-issue: implement --force option

If --force option is given along with an explicit list of issue numbers,
backport issues will be created regardless of issue status.

In all other usage scenarios, script behavior remains the same (backport
issues are created only if issue status is "Pending Backport").

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #30420 from runsisi/wip-remove-requests
Kefu Chai [Wed, 25 Sep 2019 08:31:13 +0000 (16:31 +0800)]
Merge pull request #30420 from runsisi/wip-remove-requests

rpm,deb: python-requests is not needed for ceph-common

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agodoc: move MDS deployment from main quick start to CephFS quick start 30406/head
Rishabh Dave [Wed, 25 Sep 2019 07:33:09 +0000 (13:03 +0530)]
doc: move MDS deployment from main quick start to CephFS quick start

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agodoc: update CephFS Quick Start doc
Rishabh Dave [Mon, 16 Sep 2019 13:18:49 +0000 (18:48 +0530)]
doc: update CephFS Quick Start doc

Also, skip the details about CephX user's keyring and monitor's socket
since the kernel driver can figure out these details automatically now.

Fixes: https://tracker.ceph.com/issues/41872
Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoMerge pull request #30422 from rishabh-d-dave/cv-fix-pytest-warning
Jan Fajerski [Wed, 25 Sep 2019 07:05:06 +0000 (09:05 +0200)]
Merge pull request #30422 from rishabh-d-dave/cv-fix-pytest-warning

ceph-volume: fix warnings raised by pytest

5 years agodoc/ceph-fuse: mention -k option in ceph-fuse man page 30561/head
Rishabh Dave [Wed, 25 Sep 2019 06:12:50 +0000 (11:42 +0530)]
doc/ceph-fuse: mention -k option in ceph-fuse man page

Fixes: https://tracker.ceph.com/issues/42044
Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agovstart_runner: name booleans for options differently 29906/head
Rishabh Dave [Wed, 25 Sep 2019 06:35:55 +0000 (12:05 +0530)]
vstart_runner: name booleans for options differently

This achieves 2 things: makes it more understandable for the reader that
the boolean variable is an option and reads less like a method name.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoqa/vstart_runner.py: add an option to remove old log
Rishabh Dave [Mon, 26 Aug 2019 13:30:43 +0000 (19:00 +0530)]
qa/vstart_runner.py: add an option to remove old log

Add an option "--clear-old-log" to get rid of log entries before making
entries for current batch of tests.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoqa/vstart_runner.py: make log initialization code reusable
Rishabh Dave [Mon, 26 Aug 2019 12:14:22 +0000 (17:44 +0530)]
qa/vstart_runner.py: make log initialization code reusable

Move it to a method so that the code be can be reused.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoqa/vstart_runner.py: make printing of stdout of ps optional
Rishabh Dave [Sat, 17 Aug 2019 07:42:38 +0000 (13:12 +0530)]
qa/vstart_runner.py: make printing of stdout of ps optional

stdout of ps command is generally pretty huge which makes it harder to
interpret logs. Don't print it by default and add "--log-ps-output" to
enable printing it.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoqa/vstart_runner.py: add timeout for vstart.sh and stop.sh
Rishabh Dave [Sat, 17 Aug 2019 06:40:08 +0000 (12:10 +0530)]
qa/vstart_runner.py: add timeout for vstart.sh and stop.sh

Override default timeout for execution of vstart.sh and stop.sh since
neither scripts take more than 100 seconds normally.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoqa/vstart_runner.py: add an option to teardown cluster
Rishabh Dave [Sat, 17 Aug 2019 06:35:33 +0000 (12:05 +0530)]
qa/vstart_runner.py: add an option to teardown cluster

Add "--teardown" option so that vstart_runner.py tears down Ceph
cluster automatically after the batch of tests has completed running.
Also delete build/dev and build/out directories, after running stop.sh.

Update the doc for vstart_runner.py as well.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agomgr/balancer: enable pg_upmap cli for future use 30560/head
xie xingguo [Wed, 25 Sep 2019 05:09:39 +0000 (13:09 +0800)]
mgr/balancer: enable pg_upmap cli for future use

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoosd/PrimaryLogPG: remove unnecessary claim_op_out_data() calls
Sage Weil [Tue, 24 Sep 2019 18:36:07 +0000 (13:36 -0500)]
osd/PrimaryLogPG: remove unnecessary claim_op_out_data() calls

In all of these cases, the vector<OSDOp>* ops in question points to
the MOSDOp::ops vector, which is copied by the MOSDOpReply ctor.

Move back to a const MOSDOp* where appropropriate.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PrimaryLogPG: do_pg_ops make MOSDOp const, fix comment
Sage Weil [Tue, 24 Sep 2019 18:28:05 +0000 (13:28 -0500)]
osd/PrimaryLogPG: do_pg_ops make MOSDOp const, fix comment

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