]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomgr/dashboard: frontend: move ellipsis to before progress in task execution description 28006/head
Ricardo Dias [Wed, 17 Jul 2019 11:37:53 +0000 (12:37 +0100)]
mgr/dashboard: frontend: move ellipsis to before progress in task execution description

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: test_pool: fix pool unit tests
Ricardo Dias [Tue, 16 Jul 2019 14:45:45 +0000 (15:45 +0100)]
mgr/dashboard: test_pool: fix pool unit tests

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: pool: make _get and _wait_for_pgs class methods
Ricardo Dias [Tue, 16 Jul 2019 14:44:59 +0000 (15:44 +0100)]
mgr/dashboard: pool: make _get and _wait_for_pgs class methods

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: Watch for pool pg's increase and decrease
Stephan Müller [Tue, 30 Apr 2019 14:19:39 +0000 (16:19 +0200)]
mgr/dashboard: Watch for pool pg's increase and decrease

Now when creating or editing a pool the background task will watch
increasing and decreasing pg's. The executing task will also use a
progress to show the progress.

If the change was not executed through the dashboard, there is no task
to show, but the frontend will make sure to inform the user about the
change that is going on in order to stop the user from doing actions on
the changing pool.

Fixes: https://tracker.ceph.com/issues/39482
Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: RGW rest client instances cache eviction (#28480)
Volker Theile [Wed, 3 Jul 2019 09:45:29 +0000 (11:45 +0200)]
mgr/dashboard: RGW rest client instances cache eviction (#28480)

mgr/dashboard: RGW rest client instances cache eviction

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #28265 from ricardoasmarques/wip-iscsi-logged-in
Lenz Grimmer [Wed, 3 Jul 2019 09:34:37 +0000 (11:34 +0200)]
Merge pull request #28265 from ricardoasmarques/wip-iscsi-logged-in

mgr/dashboard: Display iSCSI "logged in" info

Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Pool list shows current r/w byte usage in graph (#28153)
Lenz Grimmer [Wed, 3 Jul 2019 09:26:30 +0000 (11:26 +0200)]
mgr/dashboard: Pool list shows current r/w byte usage in graph (#28153)

mgr/dashboard: Pool list shows current r/w byte usage in graph

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agomgr/dashboard: Allow viewing and setting pool quotas (#27945)
Lenz Grimmer [Wed, 3 Jul 2019 09:20:25 +0000 (11:20 +0200)]
mgr/dashboard: Allow viewing and setting pool quotas (#27945)

mgr/dashboard: Allow viewing and setting pool quotas

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: fix MDS charts are stacked in Filesystems page (#28341)
Lenz Grimmer [Wed, 3 Jul 2019 09:17:50 +0000 (11:17 +0200)]
mgr/dashboard: fix MDS charts are stacked in Filesystems page (#28341)

mgr/dashboard: fix MDS charts are stacked in Filesystems page

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Interlock `fast-diff` and `object-map` RBD imag… (#28076)
Lenz Grimmer [Wed, 3 Jul 2019 09:13:20 +0000 (11:13 +0200)]
mgr/dashboard: Interlock `fast-diff` and `object-map` RBD imag… (#28076)

mgr/dashboard: Interlock `fast-diff` and `object-map` RBD image features

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 #27997 from LenzGr/master-documentation
Ricardo Marques [Wed, 3 Jul 2019 08:23:52 +0000 (09:23 +0100)]
Merge pull request #27997 from LenzGr/master-documentation

doc: Added dashboard features, improved wording

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
6 years agomgr/dashboard: fix HACKING.rst rendering (#28841)
Volker Theile [Wed, 3 Jul 2019 08:10:40 +0000 (10:10 +0200)]
mgr/dashboard: fix HACKING.rst rendering (#28841)

mgr/dashboard: fix HACKING.rst rendering

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #28542 from cyx1231st/wip-seastar-msgr-perf
Kefu Chai [Wed, 3 Jul 2019 07:41:44 +0000 (15:41 +0800)]
Merge pull request #28542 from cyx1231st/wip-seastar-msgr-perf

test/crimson: improved perf_crimson_msgr with timer and sampled lat

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28836 from alfredodeza/wip-toxsleep
Andrew Schoen [Tue, 2 Jul 2019 18:51:56 +0000 (13:51 -0500)]
Merge pull request #28836 from alfredodeza/wip-toxsleep

ceph-volume tests add a sleep in tox for slow OSDs after booting

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agomgr/dashboard: Add backwards compatibility to interlock of `fast-diff` and `object... 28076/head
Patrick Nawracay [Tue, 18 Jun 2019 12:00:15 +0000 (14:00 +0200)]
mgr/dashboard: Add backwards compatibility to interlock of `fast-diff` and `object-map`

Fixes: http://tracker.ceph.com/issues/39451
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agomgr/dashboard: Interlock `fast-diff` and `object-map`
Patrick Nawracay [Tue, 18 Jun 2019 11:57:46 +0000 (13:57 +0200)]
mgr/dashboard: Interlock `fast-diff` and `object-map`

Fixes: http://tracker.ceph.com/issues/39451
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agomgr/dashboard: fix document rendering 28841/head
Tatjana Dehler [Tue, 2 Jul 2019 14:48:18 +0000 (16:48 +0200)]
mgr/dashboard: fix document rendering

Fixes: https://tracker.ceph.com/issues/40523
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
6 years agoceph-volume tests add a sleep in tox for slow OSDs after booting 28836/head
Alfredo Deza [Tue, 2 Jul 2019 12:34:01 +0000 (08:34 -0400)]
ceph-volume tests add a sleep in tox for slow OSDs after booting

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #28752 from xiexingguo/wip-reset-hb-session
Kefu Chai [Tue, 2 Jul 2019 09:54:42 +0000 (17:54 +0800)]
Merge pull request #28752 from xiexingguo/wip-reset-hb-session

osd/OSD: auto mark heartbeat sessions as stale and tear them down

Reviewed-by: yanjun <yan.jun8@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28731 from tchaikov/wip-40533
Kefu Chai [Tue, 2 Jul 2019 09:45:06 +0000 (17:45 +0800)]
Merge pull request #28731 from tchaikov/wip-40533

qa/tasks/ceph_manager.py: ignore errors in test_pool_min_size

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #28744 from tchaikov/wip-monitor-cleanup
Kefu Chai [Tue, 2 Jul 2019 09:38:35 +0000 (17:38 +0800)]
Merge pull request #28744 from tchaikov/wip-monitor-cleanup

mon/Monitor: no need to create a local variable for capturing it

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28581 from Aran85/fix-mtime
Kefu Chai [Tue, 2 Jul 2019 09:37:27 +0000 (17:37 +0800)]
Merge pull request #28581 from Aran85/fix-mtime

osd: copyfrom omitted to set mtime

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agomgr/dashboard: Separate file for icons for refering and reusing (#27376)
Volker Theile [Tue, 2 Jul 2019 08:50:09 +0000 (10:50 +0200)]
mgr/dashboard: Separate file for icons for refering and reusing (#27376)

mgr/dashboard: Separate file for icons for refering and reusing

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
6 years agoMerge pull request #28827 from Rjerk/fix-mgr-ansible-doc
Kefu Chai [Tue, 2 Jul 2019 08:31:38 +0000 (16:31 +0800)]
Merge pull request #28827 from Rjerk/fix-mgr-ansible-doc

doc/mgr/ansible.rst: fix typo

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28798 from tchaikov/wip-crimson-net
Kefu Chai [Tue, 2 Jul 2019 07:41:09 +0000 (15:41 +0800)]
Merge pull request #28798 from tchaikov/wip-crimson-net

crimson/net: print tx/rx messages using logger().info()

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agodoc/mgr/ansible.rst: fix typo 28827/head
Lan Liu [Tue, 2 Jul 2019 02:45:43 +0000 (10:45 +0800)]
doc/mgr/ansible.rst: fix typo

Signed-off-by: Lan Liu <liulan@umcloud.com>
6 years agoMerge pull request #28828 from iotcg/crimson
Kefu Chai [Tue, 2 Jul 2019 04:49:13 +0000 (12:49 +0800)]
Merge pull request #28828 from iotcg/crimson

crimson/common: remove unused file .#log.cc

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28818 from tchaikov/wip-ceph-conf-cli-test
Kefu Chai [Tue, 2 Jul 2019 04:46:41 +0000 (12:46 +0800)]
Merge pull request #28818 from tchaikov/wip-ceph-conf-cli-test

test/cli/ceph-conf: fix test

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #28805 from Rjerk/fix-doc
Xie Xingguo [Tue, 2 Jul 2019 03:55:55 +0000 (11:55 +0800)]
Merge pull request #28805 from Rjerk/fix-doc

doc/rados/configuration: fix typos in osd-config-ref.rst

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/common: remove unused file .#log.cc 28828/head
Changcheng Liu [Tue, 2 Jul 2019 03:31:45 +0000 (11:31 +0800)]
crimson/common: remove unused file .#log.cc

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
6 years agocrimson/net: print tx/rx messages using logger().debug() 28798/head
Kefu Chai [Sun, 30 Jun 2019 08:50:18 +0000 (16:50 +0800)]
crimson/net: print tx/rx messages using logger().debug()

so we can find them with less efforts.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/net: print trivial logging using "trace"
Kefu Chai [Tue, 2 Jul 2019 03:04:48 +0000 (11:04 +0800)]
crimson/net: print trivial logging using "trace"

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/net: note down server's peer_id as client
Kefu Chai [Sun, 30 Jun 2019 10:58:55 +0000 (18:58 +0800)]
crimson/net: note down server's peer_id as client

the peer_id is not used at this moment. this change is made just for
the sake of completeness.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/net: use Connection::peer_is_mon()
Kefu Chai [Sun, 30 Jun 2019 10:04:28 +0000 (18:04 +0800)]
crimson/net: use Connection::peer_is_mon()

always prefer using interface over its implementation

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson: store ticket.peer_global_id in connection
Kefu Chai [Sun, 30 Jun 2019 10:01:13 +0000 (18:01 +0800)]
crimson: store ticket.peer_global_id in connection

peer_global_id is used by `ProtocolV2::_handle_auth_request()` when
encoding an `AuthDoneFrame`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agodoc/rados/configuration: fix typos in osd-config-ref.rst 28805/head
Lan Liu [Mon, 1 Jul 2019 03:30:38 +0000 (11:30 +0800)]
doc/rados/configuration: fix typos in osd-config-ref.rst

Signed-off-by: Lan Liu <liulan@umcloud.com>
6 years agoMerge pull request #28795 from tchaikov/wip-cmake-rbd
Kefu Chai [Tue, 2 Jul 2019 02:04:07 +0000 (10:04 +0800)]
Merge pull request #28795 from tchaikov/wip-cmake-rbd

CMakeLists.txt: fix typo in error message

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28750 from neha-ojha/wip-40488
Kefu Chai [Tue, 2 Jul 2019 02:00:03 +0000 (10:00 +0800)]
Merge pull request #28750 from neha-ojha/wip-40488

doc/rados/operations/erasure-code.rst: allow recovery below min_size

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #27073 into master
Patrick Donnelly [Mon, 1 Jul 2019 22:31:55 +0000 (15:31 -0700)]
Merge PR #27073 into master

* refs/pull/27073/head:
qa/tasks: Check MDS failover during mon_thrash
qa/tasks: Compare two FSStatuses
qa/suites/fs: renamed default.yaml to mds.yaml
qa/suites/fs: mon_thrash test for fs
qa/tasks: Fix typo in the comment

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28459 into master
Patrick Donnelly [Mon, 1 Jul 2019 22:28:30 +0000 (15:28 -0700)]
Merge PR #28459 into master

* refs/pull/28459/head:
mds: wake up lock waiters after forcibly changing lock state

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28642 into master
Patrick Donnelly [Mon, 1 Jul 2019 21:56:54 +0000 (14:56 -0700)]
Merge PR #28642 into master

* refs/pull/28642/head:
mds: check last laggy before marking unresponsive client stale
mds: remove the code that skip evicting the only client

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28632 from linuxbox2/wip-rgwfile-advexp
Matt Benjamin [Mon, 1 Jul 2019 18:15:28 +0000 (14:15 -0400)]
Merge pull request #28632 from linuxbox2/wip-rgwfile-advexp

rgw_file: advance_mtime() should consider namespace expiration

6 years agoMerge pull request #27794 from cbodley/wip-39487
Casey Bodley [Mon, 1 Jul 2019 13:59:02 +0000 (09:59 -0400)]
Merge pull request #27794 from cbodley/wip-39487

rgw: data/bilogs are trimmed when no peers are reading them

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
6 years agoMerge pull request #28743 from dillaman/wip-40417
Mykola Golub [Mon, 1 Jul 2019 13:47:57 +0000 (16:47 +0300)]
Merge pull request #28743 from dillaman/wip-40417

librbd: prevent concurrent AIO callbacks to external clients

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agotest/cli/ceph-conf: fix test 28818/head
Kefu Chai [Mon, 1 Jul 2019 12:39:03 +0000 (20:39 +0800)]
test/cli/ceph-conf: fix test

turns out the libstdc++ on fc30 does not include error_code.message() in
filesystem_error.what(). let's make it optional

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28800 from tchaikov/wip-crimson-mkfs
Kefu Chai [Mon, 1 Jul 2019 02:04:12 +0000 (10:04 +0800)]
Merge pull request #28800 from tchaikov/wip-crimson-mkfs

crimson: use given osd_fsid when mkfs

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #28774 from falcon78921/wip-doc-40575
Kefu Chai [Mon, 1 Jul 2019 01:41:52 +0000 (09:41 +0800)]
Merge pull request #28774 from falcon78921/wip-doc-40575

doc: fixed broken link in Swift Settings section

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agodoc: fixed broken link in Swift Settings section 28774/head
James McClune [Thu, 27 Jun 2019 21:16:46 +0000 (17:16 -0400)]
doc: fixed broken link in Swift Settings section

Fixes: https://tracker.ceph.com/issues/40575
Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>
6 years agoMerge pull request #28786 from tchaikov/wip-const-head
Kefu Chai [Sun, 30 Jun 2019 15:44:51 +0000 (23:44 +0800)]
Merge pull request #28786 from tchaikov/wip-const-head

osd/PrimaryLogPG: more constness

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agocrimson: use given osd_fsid when mkfs 28800/head
Kefu Chai [Sun, 30 Jun 2019 15:34:53 +0000 (23:34 +0800)]
crimson: use given osd_fsid when mkfs

MemStore does not have this feature, but CyanStore needs it. because
`qa/tasks/ceph.py` uses following steps when creating/starting an OSD

1. ceph-osd --mkfs --mkkey -i <osd_id> --monmap <monmap>
2. read the osd_fsid of osd.<osd_id>
3. ceph osd new <osd_fsid> <osd_id>

when we mkfs for the OSD, the osd_fsid is still unknown. so we cannot
use the configured one, as it is always empty. in that case, we need to
use a random uuid, and persist it to both ${osd_data}/fsid and
superblock.osd_fsid

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28719 from majianpeng/remove-unused-code-XioMessenger
Kefu Chai [Sun, 30 Jun 2019 07:55:08 +0000 (15:55 +0800)]
Merge pull request #28719 from majianpeng/remove-unused-code-XioMessenger

msg/Message: Remove used code about XioMessenger.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28794 from tchaikov/wip-crimson-option-help-seastar
Kefu Chai [Sun, 30 Jun 2019 07:52:32 +0000 (15:52 +0800)]
Merge pull request #28794 from tchaikov/wip-crimson-option-help-seastar

crimson/osd: add "--help-seastar" command line option

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoCMakeLists.txt: s/Remote block storage/RADOS Block Device/ 28795/head
Kefu Chai [Sat, 29 Jun 2019 15:47:42 +0000 (23:47 +0800)]
CMakeLists.txt: s/Remote block storage/RADOS Block Device/

RBD is short for RADOS Block Device, not Remote Block Storage.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoCMakeLists.txt: fix typo in error message
Kefu Chai [Sat, 29 Jun 2019 15:35:46 +0000 (23:35 +0800)]
CMakeLists.txt: fix typo in error message

krbd depends on rbd, so we cannot build krbd without rbd.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agodoc/dev/crimson.rst: update with stuff related to seastar options 28794/head
Kefu Chai [Sat, 29 Jun 2019 15:15:34 +0000 (23:15 +0800)]
doc/dev/crimson.rst: update with stuff related to seastar options

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28792 from tchaikov/wip-crimson-logging
Kefu Chai [Sat, 29 Jun 2019 15:02:39 +0000 (23:02 +0800)]
Merge pull request #28792 from tchaikov/wip-crimson-logging

common/config_values: set seastar logging level per that of ceph

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #28790 from tchaikov/wip-crimson-unknown-objectstore
Kefu Chai [Sat, 29 Jun 2019 14:54:15 +0000 (22:54 +0800)]
Merge pull request #28790 from tchaikov/wip-crimson-unknown-objectstore

crimson/osd: abort on unsupported objectstore type

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson/osd: add "--help-seastar" command line option
Kefu Chai [Sat, 29 Jun 2019 14:37:02 +0000 (22:37 +0800)]
crimson/osd: add "--help-seastar" command line option

so we can

* have access to the available command line options offered by Seastar.
* tell if the executable we are playing around is ceph-osd or crimson-osd.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agodoc/dev/crimson.rst: update logging related doc 28792/head
Kefu Chai [Sat, 29 Jun 2019 13:40:58 +0000 (21:40 +0800)]
doc/dev/crimson.rst: update logging related doc

as crimson's logging levels are now connected those of ceph, there is no
need to note down the difference between them anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/config_values: set seastar logging level as well
Kefu Chai [Sat, 29 Jun 2019 13:35:31 +0000 (21:35 +0800)]
common/config_values: set seastar logging level as well

when the logging level of a subsys changes, update seastar accordingly

before this change, seastar logging levels of different logger are not
connected to ceph's logging levels of different subsystem.

after this change, they are connected. whenever a subsys's logging level
changes, the corresponding seastar logger is updated as well.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/dout.h: extract log level mapping out
Kefu Chai [Sat, 29 Jun 2019 13:34:39 +0000 (21:34 +0800)]
common/dout.h: extract log level mapping out

so we can reuse it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: revert 9813f7d6
Kefu Chai [Sat, 29 Jun 2019 12:25:16 +0000 (20:25 +0800)]
crimson/osd: revert 9813f7d6

since we have a proper PeeringState implementation, there is no need to
fake an active+clean PG anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: abort on unsupported objectstore type 28790/head
Kefu Chai [Sat, 29 Jun 2019 11:52:45 +0000 (19:52 +0800)]
crimson/osd: abort on unsupported objectstore type

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: add editor variables/options
Kefu Chai [Sat, 29 Jun 2019 11:52:16 +0000 (19:52 +0800)]
crimson/osd: add editor variables/options

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/common: implement "__ceph_abortf()"
Kefu Chai [Sat, 29 Jun 2019 11:50:18 +0000 (19:50 +0800)]
crimson/common: implement "__ceph_abortf()"

the macro of `ceph_abort_msgf()` is implemented using it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: add a space before function name
Kefu Chai [Sat, 29 Jun 2019 07:08:26 +0000 (15:08 +0800)]
crimson/osd: add a space before function name

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: use get_osdmap_epoch()
Kefu Chai [Sat, 29 Jun 2019 07:06:25 +0000 (15:06 +0800)]
crimson/osd: use get_osdmap_epoch()

always prefer using the interface.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoosd/PrimaryLogPG: more constness 28786/head
Kefu Chai [Sat, 29 Jun 2019 06:30:16 +0000 (14:30 +0800)]
osd/PrimaryLogPG: more constness

use `hobject_t::get_head()` instead of relying on the fact that head
object's snap is `CEPH_NOSNAP`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28780 from varshar16/wip-doc-update-sepia-link
Kefu Chai [Sat, 29 Jun 2019 04:12:36 +0000 (12:12 +0800)]
Merge pull request #28780 from varshar16/wip-doc-update-sepia-link

doc: Updates link to Sepia lab

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoosd/OSD: auto mark heartbeat sessions as stale and tear them down 28752/head
xie xingguo [Wed, 26 Jun 2019 06:24:08 +0000 (14:24 +0800)]
osd/OSD: auto mark heartbeat sessions as stale and tear them down

The primary benefit is that the OSD doesn't need to keep a flood of
blocked heartbeat messages around in memory.
This prevents OSDs from accumulating heartbeat messages due to a
broken switch and then exhausting the whole node's memory:

Jun 11 04:19:26 host-192-168-9-12 kernel: [409881.137077] Out of memory:
Kill process 1471476 (ceph-osd) score 47 or sacrifice child
Jun 11 04:19:26 host-192-168-9-12 kernel: [409881.146054] Killed process
1471476 (ceph-osd) total-vm:4822548kB, anon-rss:3097860kB,
file-rss:2556kB, shmem-rss:0kB

Fixes: http://tracker.ceph.com/issues/40586
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #28664 from linuxbox2/wip-rgwfile-faststats
Matt Benjamin [Fri, 28 Jun 2019 23:09:00 +0000 (19:09 -0400)]
Merge pull request #28664 from linuxbox2/wip-rgwfile-faststats

rgw_file: introduce fast S3 Unix stats (immutable)

6 years agodoc: update erasure-code.rst with review comments. 28750/head
Gregory Farnum [Fri, 28 Jun 2019 20:59:13 +0000 (13:59 -0700)]
doc: update erasure-code.rst with review comments.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
6 years agodoc: update erasure code recovery description
Gregory Farnum [Wed, 26 Jun 2019 15:14:11 +0000 (08:14 -0700)]
doc: update erasure code recovery description

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
6 years agoMerge pull request #28783 from cbodley/wip-rgw-object-lock-get-params
Ali Maredia [Fri, 28 Jun 2019 20:36:32 +0000 (16:36 -0400)]
Merge pull request #28783 from cbodley/wip-rgw-object-lock-get-params

rgw: fix MalformedXML errors in PutBucketObjectLock/PutObjRetention

6 years agorgw_file: introduce fast S3 Unix stats (immutable) 28664/head
Matt Benjamin [Wed, 19 Jun 2019 18:43:38 +0000 (14:43 -0400)]
rgw_file: introduce fast S3 Unix stats (immutable)

For objects originating in S3/Swift, it is frequently acceptable
to synthesize c/mtime and size stats from meta attributes in the RGW
bucket index entry.

Synthetic stat behavior is not compatible with mutation of file
ownership and permissions via SETATTR.  In future, current xattr-based,
mutable, Unix stats may be moved to the bucket index.  For now, use
synthetic stats only when a new option rgw_nfs_s3_fast_attrs is present.

Fixes: http://tracker.ceph.com/issues/40456
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #27964 from Kriechi/fix-rgw-ldap-username
Matt Benjamin [Fri, 28 Jun 2019 20:17:34 +0000 (16:17 -0400)]
Merge pull request #27964 from Kriechi/fix-rgw-ldap-username

docs: fix rgw_ldap_dnattr username token

6 years agoMerge pull request #28724 from ivancich/wip-abort-multipart-fix
Casey Bodley [Fri, 28 Jun 2019 19:25:12 +0000 (15:25 -0400)]
Merge pull request #28724 from ivancich/wip-abort-multipart-fix

rgw: multipart upload abort is best-effort

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28102 from albIN7/liv2
Ali Maredia [Fri, 28 Jun 2019 18:58:54 +0000 (14:58 -0400)]
Merge pull request #28102 from albIN7/liv2

RGW:Listobjectsv2

6 years agorgw: fix MalformedXML errors in PutBucketObjectLock/PutObjRetention 28783/head
Casey Bodley [Fri, 28 Jun 2019 18:54:54 +0000 (14:54 -0400)]
rgw: fix MalformedXML errors in PutBucketObjectLock/PutObjRetention

RGWPutBucketObjectLock was not calling get_params(), so the 'data' it
was trying to parse was empty

RGWPutObjRetention was calling get_params() a second time, which
overwrote the 'data' from the first call

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge PR #28491 into master
Sage Weil [Fri, 28 Jun 2019 18:44:18 +0000 (13:44 -0500)]
Merge PR #28491 into master

* refs/pull/28491/head:
doc/rados/operations: add safe-to-destroy check to OSD replacement workflow

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #28781 from ivancich/wip-fix-source-permissions
J. Eric Ivancich [Fri, 28 Jun 2019 17:00:00 +0000 (13:00 -0400)]
Merge pull request #28781 from ivancich/wip-fix-source-permissions

src/: remove execute permissions on nine source files

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28775 from neha-ojha/wip-doc-delete-sleep
Neha Ojha [Fri, 28 Jun 2019 16:11:00 +0000 (09:11 -0700)]
Merge pull request #28775 from neha-ojha/wip-doc-delete-sleep

doc/rados/configuration/osd-config-ref.rst: document osd_delete_sleep

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agomisc: remove execute permissions on nine source files 28781/head
J. Eric Ivancich [Wed, 26 Jun 2019 18:48:28 +0000 (14:48 -0400)]
misc: remove execute permissions on nine source files

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
6 years agoMerge pull request #28565 from linuxbox2/wip-rgwfile-eof
Matt Benjamin [Fri, 28 Jun 2019 15:05:42 +0000 (11:05 -0400)]
Merge pull request #28565 from linuxbox2/wip-rgwfile-eof

rgw_file: fix readdir eof() calc--caller stop implies !eof

6 years agoqa/valgrind.supp: drop boost::lockfree::queue suppression 28743/head
Jason Dillaman [Fri, 28 Jun 2019 14:54:57 +0000 (10:54 -0400)]
qa/valgrind.supp: drop boost::lockfree::queue suppression

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agocmake: boost valgrind fixes for boost::lockfree::queue
Jason Dillaman [Fri, 28 Jun 2019 14:50:22 +0000 (10:50 -0400)]
cmake: boost valgrind fixes for boost::lockfree::queue

The issue has been fixed upstream under lockfree commit
7e23dac52d08ed1a099de9a6fb8bcdefbb06d2da but is not yet available in
a boost release.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agodoc: Updates link to Sepia lab 28780/head
Varsha Rao [Fri, 28 Jun 2019 14:17:50 +0000 (19:47 +0530)]
doc: Updates link to Sepia lab

Signed-off-by: Varsha Rao <varao@redhat.com>
6 years agoMerge pull request #28761 from lixiaoy1/pmem_osd
Jason Dillaman [Fri, 28 Jun 2019 11:42:43 +0000 (07:42 -0400)]
Merge pull request #28761 from lixiaoy1/pmem_osd

os/bluestore: fix pmem osd build problem

Reviewed-by: Jason Dillaman <dllaman@redhat.com>
6 years agoMerge pull request #28776 from badone/wip-minimimal-config-no-longer-valid
Kefu Chai [Fri, 28 Jun 2019 09:38:40 +0000 (17:38 +0800)]
Merge pull request #28776 from badone/wip-minimimal-config-no-longer-valid

do_cmake.sh: Add a heading to the minimal config

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoos/bluestore: fix pmem osd build problem 28761/head
lixiaoy1 [Thu, 27 Jun 2019 14:12:34 +0000 (10:12 -0400)]
os/bluestore: fix pmem osd build problem

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
6 years agodo_cmake.sh: Add a heading to the minimal config 28776/head
Brad Hubbard [Fri, 28 Jun 2019 05:46:30 +0000 (15:46 +1000)]
do_cmake.sh: Add a heading to the minimal config

Post #28634 the minimal ceph config is invalid without a header.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
6 years agoMerge pull request #28771 from athanatos/sjust/wip-schedule-event-on-commit
Kefu Chai [Fri, 28 Jun 2019 04:14:19 +0000 (12:14 +0800)]
Merge pull request #28771 from athanatos/sjust/wip-schedule-event-on-commit

crimson/osd/pg: start_operation for read_state, schedule_event_on_commit

Reviewed-by: Yingxin Cheng <yingxincheng@gmail.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agodoc/rados/configuration/osd-config-ref.rst: document osd_delete_sleep 28775/head
Neha Ojha [Fri, 28 Jun 2019 00:21:58 +0000 (17:21 -0700)]
doc/rados/configuration/osd-config-ref.rst: document osd_delete_sleep

Signed-off-by: Neha Ojha <nojha@redhat.com>
6 years agocrimson/osd/pg: start_operation for read_state, schedule_event_on_commit 28771/head
Samuel Just [Thu, 27 Jun 2019 18:57:22 +0000 (11:57 -0700)]
crimson/osd/pg: start_operation for read_state, schedule_event_on_commit

This way they'll be holding the appropriate pipeline stage.

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agoMerge pull request #28351 from trociny/wip-39968
Jason Dillaman [Thu, 27 Jun 2019 17:41:02 +0000 (13:41 -0400)]
Merge pull request #28351 from trociny/wip-39968

 journal: add support for aligned appends

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #28730 from trociny/wip-40519
Jason Dillaman [Thu, 27 Jun 2019 17:37:56 +0000 (13:37 -0400)]
Merge pull request #28730 from trociny/wip-40519

rbd-mirror: handle duplicates in image sync throttler queue

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #28748 from trociny/wip-journal-player-handle_cache_rebalanced
Jason Dillaman [Thu, 27 Jun 2019 17:37:34 +0000 (13:37 -0400)]
Merge pull request #28748 from trociny/wip-journal-player-handle_cache_rebalanced

journal: fix race between player shut down and cache rebalance

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agodoc/rados/operations: add safe-to-destroy check to OSD replacement workflow 28491/head
Sage Weil [Tue, 11 Jun 2019 13:39:29 +0000 (08:39 -0500)]
doc/rados/operations: add safe-to-destroy check to OSD replacement workflow

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28706 from ajarr/wip-fs-subvolumes-enhancements
Venky Shankar [Thu, 27 Jun 2019 14:08:49 +0000 (19:38 +0530)]
Merge pull request #28706 from ajarr/wip-fs-subvolumes-enhancements

mgr/volumes: minor enhancements and fixes

6 years agoMerge pull request #28653 from zhangsw/cleanup-doc-sample.conf
Kefu Chai [Thu, 27 Jun 2019 11:24:36 +0000 (19:24 +0800)]
Merge pull request #28653 from zhangsw/cleanup-doc-sample.conf

sample.ceph.conf: correct the default value of filestore merge threshold

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