]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoceph-volume tests.functional install new ceph-ansible dependencies 22116/head
Alfredo Deza [Mon, 21 May 2018 11:11:28 +0000 (07:11 -0400)]
ceph-volume tests.functional install new ceph-ansible dependencies

Make note that ceph-ansible's requirements.txt can't be used just yet

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #22084 from liewegas/wip-fix-fop
Kefu Chai [Mon, 21 May 2018 08:40:41 +0000 (16:40 +0800)]
Merge pull request #22084 from liewegas/wip-fix-fop

osd/PrimaryLogPG: fix try_flush_mark_clean write contention case

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22072 from dillaman/wip-24165
Mykola Golub [Mon, 21 May 2018 07:00:15 +0000 (10:00 +0300)]
Merge pull request #22072 from dillaman/wip-24165

librbd: prevent the use of internal feature bits from external users

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #21982 from tchaikov/mgr-brag
Sage Weil [Mon, 21 May 2018 02:34:12 +0000 (21:34 -0500)]
Merge pull request #21982 from tchaikov/mgr-brag

mgr/telemetry: Add Ceph Telemetry module to send reports back to project

7 years agoMerge PR #21847 into wip-sage-testing-20180521.023125
Sage Weil [Mon, 21 May 2018 02:31:34 +0000 (21:31 -0500)]
Merge PR #21847 into wip-sage-testing-20180521.023125

* refs/pull/21847/head:
log: disk write coalescing

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22063 from liewegas/wip-unit-spaces
Sage Weil [Mon, 21 May 2018 02:26:03 +0000 (21:26 -0500)]
Merge pull request #22063 from liewegas/wip-unit-spaces

include/types: space between number and units

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
7 years agoMerge pull request #22042 from liewegas/wip-rm-pool-race
Sage Weil [Mon, 21 May 2018 02:24:37 +0000 (21:24 -0500)]
Merge pull request #22042 from liewegas/wip-rm-pool-race

ceph_test_rados_api_misc: remove obsolete LibRadosMiscPool.PoolCreationRace

Reviewed-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #22106 from liewegas/wip-rados-distros
Sage Weil [Mon, 21 May 2018 02:23:48 +0000 (21:23 -0500)]
Merge pull request #22106 from liewegas/wip-rados-distros

qa/suites/rados/thrash-old-clients: only centos and 16.04

7 years agoMerge PR #21997 into master
Patrick Donnelly [Sun, 20 May 2018 23:52:40 +0000 (16:52 -0700)]
Merge PR #21997 into master

* refs/pull/21997/head:
mds: broadcast quota to relevant clients when quota is explicitly set

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #22001 into master
Patrick Donnelly [Sun, 20 May 2018 23:52:35 +0000 (16:52 -0700)]
Merge PR #22001 into master

* refs/pull/22001/head:
client: avoid freeing inode when it contains TX buffer heads

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #22023 into master
Patrick Donnelly [Sun, 20 May 2018 23:52:30 +0000 (16:52 -0700)]
Merge PR #22023 into master

* refs/pull/22023/head:
messages: print quota info in MClientQuota msg

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #22045 into master
Patrick Donnelly [Sun, 20 May 2018 23:52:25 +0000 (16:52 -0700)]
Merge PR #22045 into master

* refs/pull/22045/head:
client: cleanup Cap init

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge PR #22080 into master
Patrick Donnelly [Sun, 20 May 2018 23:52:20 +0000 (16:52 -0700)]
Merge PR #22080 into master

* refs/pull/22080/head:
client: fix issue of revoking non-auth caps

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa/suites/rados/thrash-old-clients: only centos and 16.04 22106/head
Sage Weil [Sun, 20 May 2018 14:38:02 +0000 (09:38 -0500)]
qa/suites/rados/thrash-old-clients: only centos and 16.04

We don't have old client builds for the newer distros.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21961 from ceph/wip-cd-ovh-vol
Kefu Chai [Sun, 20 May 2018 10:35:35 +0000 (18:35 +0800)]
Merge pull request #21961 from ceph/wip-cd-ovh-vol

qa/tests: fix volume size when running in ovh

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22098 from liewegas/wip-24180
Kefu Chai [Sun, 20 May 2018 09:40:17 +0000 (17:40 +0800)]
Merge pull request #22098 from liewegas/wip-24180

mon/LogMonitor: call no_reply() on ignored log message

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22092 from liewegas/wip-mimic-upgrades
Sage Weil [Sat, 19 May 2018 17:34:52 +0000 (12:34 -0500)]
Merge pull request #22092 from liewegas/wip-mimic-upgrades

qa/suites/upgrade/luminous-x: a few fixes

7 years agoMerge pull request #21941 from ukernel/wip-24053
Yan, Zheng [Sat, 19 May 2018 09:07:40 +0000 (17:07 +0800)]
Merge pull request #21941 from ukernel/wip-24053

mds: reply session reject for open request from blacklisted client

7 years agoqa/tasks/cephfs: add timeout parameter to kclient umount_wait 21941/head
Yan, Zheng [Fri, 11 May 2018 12:26:43 +0000 (20:26 +0800)]
qa/tasks/cephfs: add timeout parameter to kclient umount_wait

Just make caller happy. there is no easy way to support timeout.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
Fixes: https://tracker.ceph.com/issues/24053
7 years agomds: reply session reject for open request from blacklisted client
Yan, Zheng [Fri, 11 May 2018 06:55:12 +0000 (14:55 +0800)]
mds: reply session reject for open request from blacklisted client

Kernel client and old version libcephfs do not check if themselves
are blacklisted. They can be stuck at opening session after getting
blacklisted. The session reject message can avoid this.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: https://tracker.ceph.com/issues/24054
7 years agoclient: fix issue of revoking non-auth caps 22080/head
Yan, Zheng [Fri, 18 May 2018 06:26:32 +0000 (14:26 +0800)]
client: fix issue of revoking non-auth caps

when non-auth mds revokes caps, Fcb caps can still be issued by auth
auth mds. It's wrong to flush buffer or invalidate cache when non-auth
mds revokes other caps. This bug can cause client to not respond the
revoke.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: https://tracker.ceph.com/issues/24172
7 years agoMerge PR #22073 into master
Patrick Donnelly [Sat, 19 May 2018 04:36:50 +0000 (21:36 -0700)]
Merge PR #22073 into master

* refs/pull/22073/head:
client: delay dentry trimming until after cap traversal
qa: test for trim_caps segfault for trimmed dentries

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoclient: delay dentry trimming until after cap traversal 22073/head
Patrick Donnelly [Fri, 18 May 2018 00:06:52 +0000 (17:06 -0700)]
client: delay dentry trimming until after cap traversal

Fixes: http://tracker.ceph.com/issues/24137
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa: test for trim_caps segfault for trimmed dentries
Patrick Donnelly [Fri, 18 May 2018 02:36:42 +0000 (19:36 -0700)]
qa: test for trim_caps segfault for trimmed dentries

Test case by Yan Zheng [1].

[1] http://tracker.ceph.com/issues/24137#note-6

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #21548 into master
Patrick Donnelly [Fri, 18 May 2018 21:31:18 +0000 (14:31 -0700)]
Merge PR #21548 into master

* refs/pull/21548/head:
osdc/Objecter: apply throttle on enumerate_objects.

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge PR #21963 into master
Patrick Donnelly [Fri, 18 May 2018 21:31:11 +0000 (14:31 -0700)]
Merge PR #21963 into master

* refs/pull/21963/head:
mds: properly setup client_need_snapflush for snap inode
Revert "mds: properly setup need_snapflush for snapped inode"

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #21972 into master
Patrick Donnelly [Fri, 18 May 2018 21:31:03 +0000 (14:31 -0700)]
Merge PR #21972 into master

* refs/pull/21972/head:
client: increase verbosity level for log messages in helper methods

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #22066 from liewegas/wip-pgmap-digest-decode
Sage Weil [Fri, 18 May 2018 20:53:20 +0000 (15:53 -0500)]
Merge pull request #22066 from liewegas/wip-pgmap-digest-decode

mon/PGMap: fix PGMapDigest decode

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomon/LogMonitor: call no_reply() on ignored log message 22098/head
Sage Weil [Fri, 18 May 2018 20:44:09 +0000 (15:44 -0500)]
mon/LogMonitor: call no_reply() on ignored log message

If we're dropping it on the floor, we need to tell the mon that, so that
it can tell the forwarding mon to discard its state.

Fixes: https://tracker.ceph.com/issues/24180
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/suites/thrashosds-health: whitelist REQUEST_SLOW 22092/head
Sage Weil [Fri, 18 May 2018 19:01:33 +0000 (14:01 -0500)]
qa/suites/thrashosds-health: whitelist REQUEST_SLOW

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/suites/upgrade/luminous-x: whitelist SLOW_OPS
Sage Weil [Fri, 18 May 2018 19:01:19 +0000 (14:01 -0500)]
qa/suites/upgrade/luminous-x: whitelist SLOW_OPS

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/suites/upgrade/luminous-x: more cinder volumes
Sage Weil [Fri, 18 May 2018 19:01:01 +0000 (14:01 -0500)]
qa/suites/upgrade/luminous-x: more cinder volumes

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/workunits/cephtool/test.sh: update unit formatting 22063/head
Sage Weil [Fri, 18 May 2018 18:53:04 +0000 (13:53 -0500)]
qa/workunits/cephtool/test.sh: update unit formatting

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22040 from alfredodeza/wip-rm24147
Alfredo Deza [Fri, 18 May 2018 17:36:07 +0000 (13:36 -0400)]
Merge pull request #22040 from alfredodeza/wip-rm24147

common/options: add description of osd objectstore backends

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Nathan Cutler <cutler@suse.cz>
7 years agocls/rbd: prevent creating image with internal feature bits enabled 22072/head
Jason Dillaman [Thu, 17 May 2018 17:11:09 +0000 (13:11 -0400)]
cls/rbd: prevent creating image with internal feature bits enabled

Fixes: http://tracker.ceph.com/issues/24165
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/librbd: fsx should use the default image features
Jason Dillaman [Thu, 17 May 2018 18:12:27 +0000 (14:12 -0400)]
test/librbd: fsx should use the default image features

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: prevent creation of images with internal feature bits
Jason Dillaman [Thu, 17 May 2018 17:52:04 +0000 (13:52 -0400)]
librbd: prevent creation of images with internal feature bits

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoosd/PrimaryLogPG: fix try_flush_mark_clean write contention case 22084/head
Sage Weil [Fri, 18 May 2018 14:24:48 +0000 (09:24 -0500)]
osd/PrimaryLogPG: fix try_flush_mark_clean write contention case

Release ctx *after* we dereference it to queue up the other flush waiters.
This was a dumb mistake in the recent fix from 41609ba1b24e5384494c7959494e19302b5a2429

Fixes: http://tracker.ceph.com/issues/24174
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agorbd-mirror: mask off implicitly enabled feature bits for new images
Jason Dillaman [Thu, 17 May 2018 17:46:18 +0000 (13:46 -0400)]
rbd-mirror: mask off implicitly enabled feature bits for new images

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd-mirror: re-use image create option logic for clones
Jason Dillaman [Thu, 17 May 2018 17:18:15 +0000 (13:18 -0400)]
rbd-mirror: re-use image create option logic for clones

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #22078 from tchaikov/wip-cls-rbd-fix-FTBFS
Jason Dillaman [Fri, 18 May 2018 11:22:13 +0000 (07:22 -0400)]
Merge pull request #22078 from tchaikov/wip-cls-rbd-fix-FTBFS

cls/rbd: fix build

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agocls/rbd: fix build 22078/head
Kefu Chai [Fri, 18 May 2018 10:16:00 +0000 (18:16 +0800)]
cls/rbd: fix build

3cbe0ced was merged after d03ff14, so update accordingly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21915 from dillaman/wip-rbd-mirror-policy
Mykola Golub [Fri, 18 May 2018 07:32:49 +0000 (10:32 +0300)]
Merge pull request #21915 from dillaman/wip-rbd-mirror-policy

rbd-mirror: optionally support active/active replication

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #21651 from ceph/wip-da-dmclock-submodule
Josh Durgin [Thu, 17 May 2018 20:57:39 +0000 (13:57 -0700)]
Merge pull request #21651 from ceph/wip-da-dmclock-submodule

move dmclock subtree into submodule

Reviewed-by: Eric Ivancich <ivancich@redhat.com>
7 years agoMerge pull request #22015 from tchaikov/wip-denc
Kefu Chai [Thu, 17 May 2018 16:56:08 +0000 (00:56 +0800)]
Merge pull request #22015 from tchaikov/wip-denc

buffer,denc: use ptr::const_iterator for decode

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #22059 from LenzGr/mgr-dashboard-documentation
Sage Weil [Thu, 17 May 2018 16:40:20 +0000 (11:40 -0500)]
Merge pull request #22059 from LenzGr/mgr-dashboard-documentation

doc: Updated dashboard documentation (features, SSL config)

Reviewed-by: Wido den Hollander <wido@42on.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoqa/workunits/rbd/import_export: update unit formatting
Sage Weil [Thu, 17 May 2018 16:14:13 +0000 (11:14 -0500)]
qa/workunits/rbd/import_export: update unit formatting

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/workunits/rbd/cli_generic: update unit formatting
Sage Weil [Thu, 17 May 2018 16:13:31 +0000 (11:13 -0500)]
qa/workunits/rbd/cli_generic: update unit formatting

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agotest/cli-integration/rbd: update unit formatting
Sage Weil [Thu, 17 May 2018 16:12:44 +0000 (11:12 -0500)]
test/cli-integration/rbd: update unit formatting

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoinclude/types: space between number and units
Sage Weil [Thu, 17 May 2018 15:04:18 +0000 (10:04 -0500)]
include/types: space between number and units

not

    client:   504B/s rd, 10.6MiB/s wr, 0op/s rd, 30op/s wr

but

    client:   504 B/s rd, 10.6 MiB/s wr, 0 op/s rd, 30 op/s wr

This was changed as part of d3cecebacdcebcf475808a6204de22dfa94d729d.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon/PGMap: fix PGMapDigest decode 22066/head
Sage Weil [Thu, 17 May 2018 15:51:46 +0000 (10:51 -0500)]
mon/PGMap: fix PGMapDigest decode

The compat path wasn't clearing the map before filling in new entries.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22061 from tspmelo/wip-npmrc
Lenz Grimmer [Thu, 17 May 2018 15:44:59 +0000 (17:44 +0200)]
Merge pull request #22061 from tspmelo/wip-npmrc

mgr/dashboard: Disable package-lock.json creation

Reviewed-by: Ricardo Marques <rimarques@suse.com>
7 years agodoc: Updated dashboard documentation (features, SSL config) 22059/head
Lenz Grimmer [Thu, 17 May 2018 15:34:36 +0000 (17:34 +0200)]
doc: Updated dashboard documentation (features, SSL config)

Updated Ceph manager dashboard documentation: added SSL to the
feature overview, added new section about configuring SSL certificates.
Rearranged installation instructions for setting host name and port.

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
7 years agoMerge pull request #22058 from ricardoasmarques/wip-ng-serve-remote-access
Lenz Grimmer [Thu, 17 May 2018 14:50:23 +0000 (16:50 +0200)]
Merge pull request #22058 from ricardoasmarques/wip-ng-serve-remote-access

mgr/dashboard: ng serve bind to 0.0.0.0

Reviewed-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Disable package-lock.json creation 22061/head
Tiago Melo [Thu, 17 May 2018 13:33:27 +0000 (14:33 +0100)]
mgr/dashboard: Disable package-lock.json creation

Since we are not keeping track of this file, it is better to not generate it.
Otherwise we might face some package version conflicts,
which break the dashboard build.

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #22057 from tchaikov/qa-valgrind-without-random-distro 21865/head
Sage Weil [Thu, 17 May 2018 12:00:08 +0000 (07:00 -0500)]
Merge pull request #22057 from tchaikov/qa-valgrind-without-random-distro

qa/suites/rados/verify: remove random-distro$

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoceph-volume util.prepare remove undocumented comments 22040/head
Alfredo Deza [Wed, 16 May 2018 19:39:54 +0000 (15:39 -0400)]
ceph-volume util.prepare remove undocumented comments

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agocommon/options add description of osd objectstore backends
Alfredo Deza [Wed, 16 May 2018 19:37:49 +0000 (15:37 -0400)]
common/options add description of osd objectstore backends

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoqa/suites/rados/verify: remove random-distro$ 22057/head
Kefu Chai [Thu, 17 May 2018 11:08:16 +0000 (19:08 +0800)]
qa/suites/rados/verify: remove random-distro$

the distro specified by random-distro$ will be overwrited by the one
specfied by valgrind.yaml. and teuthology-suite will give

KeyError: '16.04 not a centos version or codename'

when scheduling a suite involving the facets above. also, i think it's
of not much value to run valgrind/lockdep with different distros.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomgr/dashboard: ng serve bind to 0.0.0.0 22058/head
Ricardo Marques [Thu, 17 May 2018 10:07:52 +0000 (11:07 +0100)]
mgr/dashboard: ng serve bind to 0.0.0.0

This will allow access to ng serve from remote machines

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agoclient: increase verbosity level for log messages in helper methods 21972/head
Rishabh Dave [Mon, 14 May 2018 07:38:47 +0000 (07:38 +0000)]
client: increase verbosity level for log messages in helper methods

Fixes: http://tracker.ceph.com/issues/21014
Signed-off-by: Rishabh Dave <ridave@redhat.com>
7 years agoMerge pull request #21981 from tspmelo/fix-momentjs
Lenz Grimmer [Thu, 17 May 2018 09:11:33 +0000 (11:11 +0200)]
Merge pull request #21981 from tspmelo/fix-momentjs

mgr/dashboard: Fix moment.js deprecation warning

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22046 from tchaikov/wip-23653
Kefu Chai [Thu, 17 May 2018 06:03:47 +0000 (14:03 +0800)]
Merge pull request #22046 from tchaikov/wip-23653

cmake: do not check for aligned_alloc() anymore

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agocore: use const_iterator for decode 22015/head
Kefu Chai [Tue, 15 May 2018 15:56:39 +0000 (23:56 +0800)]
core: use const_iterator for decode

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomds: use const_iterator for decode
Kefu Chai [Tue, 15 May 2018 15:55:09 +0000 (23:55 +0800)]
mds: use const_iterator for decode

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agorgw: use const_iterator for decode
Kefu Chai [Tue, 15 May 2018 15:54:47 +0000 (23:54 +0800)]
rgw: use const_iterator for decode

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agorbd: use const_iterator for decode
Kefu Chai [Tue, 15 May 2018 15:50:34 +0000 (23:50 +0800)]
rbd: use const_iterator for decode

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agodenc: use ptr::const_iterator for decode
Kefu Chai [Tue, 15 May 2018 15:49:21 +0000 (23:49 +0800)]
denc: use ptr::const_iterator for decode

as ptr::iterator is able to write to the underlying buffer.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agobuffer: add cbegin() methods
Kefu Chai [Tue, 15 May 2018 15:45:26 +0000 (23:45 +0800)]
buffer: add cbegin() methods

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: do not check for aligned_alloc() anymore 22046/head
Kefu Chai [Thu, 17 May 2018 02:30:33 +0000 (10:30 +0800)]
cmake: do not check for aligned_alloc() anymore

this reverts 16f0a67d

Fixes: http://tracker.ceph.com/issues/23653
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoclient: cleanup Cap init 22045/head
Patrick Donnelly [Tue, 15 May 2018 19:35:53 +0000 (12:35 -0700)]
client: cleanup Cap init

Use reference for inode so it's write-once and must be valid.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoceph_test_rados_api_misc: fix LibRadosMiscPool.PoolCreationRace 22042/head
Sage Weil [Wed, 16 May 2018 21:56:33 +0000 (16:56 -0500)]
ceph_test_rados_api_misc: fix LibRadosMiscPool.PoolCreationRace

This test is trying to reproduce a case where we don't have a session
for the given OSD, drop our big lock to open one, and when we retake the
osdmap has changed.  Previously that was an easy situation to reproduce
by creating an ioctx for a pool that didn't exist (yet) and then creating
it.  The missing pool would send us into the path that rechecks for an
updated osdmap and trigger the race condition.

However, as of 7037cf8f77588aba1e3f251e04f696da0eccf462 we no longer create
ioctxs for pools that don't exist.  And there isn't an easy way that I can
think of to trigger the missing osd session that races with an osdmap
update.  So, use the debug option that injects the delay to drop us into
the same path.  This is a bit artificial in that we do actually have an
osdmap session, but the block handles that case (since the old no pool
case worked that way), so we cover the same code.

This fix ignores the fact that we still have all this "pool doesn't exist"
handling code in Objecter that deals with teh fact that you could create
an ioctx for a missing pool...that is no longer possible.  Cleanup for
another day!

Fixes: http://tracker.ceph.com/issues/24150
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22028 from tchaikov/wip-wheelhouse
Dan Mick [Wed, 16 May 2018 21:32:36 +0000 (14:32 -0700)]
Merge pull request #22028 from tchaikov/wip-wheelhouse

install-deps: nuke wheelhouse if it's stale

7 years agoMerge pull request #21751 from shangfufei/wip-async-needless-code
Sage Weil [Wed, 16 May 2018 21:07:17 +0000 (16:07 -0500)]
Merge pull request #21751 from shangfufei/wip-async-needless-code

msg/async: the ceph_abort is needless in handle_connect_msg

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21854 from ifed01/wip-ifed-bluestore-alloc-cleanup
Sage Weil [Wed, 16 May 2018 21:06:49 +0000 (16:06 -0500)]
Merge pull request #21854 from ifed01/wip-ifed-bluestore-alloc-cleanup

os/bluestore: allocator pruning

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21926 from dragonylffly/wip-fix-throttle-configurations
Sage Weil [Wed, 16 May 2018 21:06:19 +0000 (16:06 -0500)]
Merge pull request #21926 from dragonylffly/wip-fix-throttle-configurations

os/filestore: fix throttle configurations

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21937 from yanghonggang/balancer-list
Sage Weil [Wed, 16 May 2018 21:05:49 +0000 (16:05 -0500)]
Merge pull request #21937 from yanghonggang/balancer-list

mgr/balancer: add cmd to list all plans

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21957 from tchaikov/wip-test-rados-bench
Sage Weil [Wed, 16 May 2018 21:05:18 +0000 (16:05 -0500)]
Merge pull request #21957 from tchaikov/wip-test-rados-bench

test/pybind/test_rados.py: collect output in stdout for "bench" cmd

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #21984 from liewegas/wip-24118
Sage Weil [Wed, 16 May 2018 21:04:34 +0000 (16:04 -0500)]
Merge pull request #21984 from liewegas/wip-24118

mon/MonClient: set configs via finisher

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #21892 from dzafman/wip-24045
Sage Weil [Wed, 16 May 2018 20:27:53 +0000 (15:27 -0500)]
Merge pull request #21892 from dzafman/wip-24045

osd: Don't evict even when preemption has restarted with smaller chunk

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agocls/rbd: fixed last read key for interrupted mirror_image_map_list 21915/head
Jason Dillaman [Wed, 16 May 2018 20:14:36 +0000 (16:14 -0400)]
cls/rbd: fixed last read key for interrupted mirror_image_map_list

Previously, the image map would only return a maximum of 64 mappings.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #22027 from trociny/wip-24141
Jason Dillaman [Wed, 16 May 2018 18:04:20 +0000 (14:04 -0400)]
Merge pull request #22027 from trociny/wip-24141

rbd-mirror: potential deadlock when running asok 'flush' command

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #21624 from trociny/wip-22787
Jason Dillaman [Wed, 16 May 2018 18:04:00 +0000 (14:04 -0400)]
Merge pull request #21624 from trociny/wip-22787

librbd: deep copy optionally support flattening cloned image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoosd: Clear part of cleaned_meta_map in case of a restarted smaller chunk 21892/head
David Zafman [Wed, 16 May 2018 00:32:50 +0000 (17:32 -0700)]
osd: Clear part of cleaned_meta_map in case of a restarted smaller chunk

This can not happen at the primary because scrub_compare_maps() is only
called once per chunk start.

Preemption causes a smaller chunk from start to be processed again at
replicas.  We clear any of the previous chunk's information.

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agomgr/dashboard: Fix moment.js deprecation warning 21981/head
Tiago Melo [Mon, 14 May 2018 15:24:58 +0000 (16:24 +0100)]
mgr/dashboard: Fix moment.js deprecation warning

Fixes: https://tracker.ceph.com/issues/24115
Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #22003 from votdev/fix_deletion_dialog
Lenz Grimmer [Wed, 16 May 2018 13:44:05 +0000 (15:44 +0200)]
Merge pull request #22003 from votdev/fix_deletion_dialog

mgr/dashboard: Deletion dialog falsely executes deletion when pressing 'Cancel'

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #21928 from ricardoasmarques/wip-remove-useless-unsubscribe
Lenz Grimmer [Wed, 16 May 2018 13:25:21 +0000 (15:25 +0200)]
Merge pull request #21928 from ricardoasmarques/wip-remove-useless-unsubscribe

mgr/dashboard: Remove useless observable unsubscriptions

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agorbd: deep copy option to copy clone parent data 21624/head
Mykola Golub [Wed, 25 Apr 2018 21:02:57 +0000 (00:02 +0300)]
rbd: deep copy option to copy clone parent data

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agolibrbd: deep copy optionally support flattening cloned image
Mykola Golub [Thu, 26 Apr 2018 08:30:03 +0000 (11:30 +0300)]
librbd: deep copy optionally support flattening cloned image

Fixes: http://tracker.ceph.com/issues/22787
Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agolibrbd/deep_copy: adjust in-memory overlap if set_size updated it on disk
Mykola Golub [Thu, 10 May 2018 18:25:17 +0000 (21:25 +0300)]
librbd/deep_copy: adjust in-memory overlap if set_size updated it on disk

so set_parent won't be called when overlap is changed due to image
size change.

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agolibrbd: hide parent object when deep copying empty child
Mykola Golub [Tue, 8 May 2018 13:52:50 +0000 (16:52 +0300)]
librbd: hide parent object when deep copying empty child

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agolibrbd: fix deep copy clone to destination with larger object size
Mykola Golub [Tue, 8 May 2018 12:29:38 +0000 (15:29 +0300)]
librbd: fix deep copy clone to destination with larger object size

When assembling a destination object from source objects we need to
read from parent if some (but not all) of assembles do not exist.

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agotest/librbd: add deep copy clone tests
Mykola Golub [Tue, 8 May 2018 12:27:25 +0000 (15:27 +0300)]
test/librbd: add deep copy clone tests

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #22002 from votdev/fix_deletion
Lenz Grimmer [Wed, 16 May 2018 12:23:32 +0000 (14:23 +0200)]
Merge pull request #22002 from votdev/fix_deletion

mgr/dashboard: Handle errors during deletion

Reviewed-by: Ricardo Marques <rimarques@suse.com>
7 years agoMerge pull request #22006 from liewegas/wip-mimic
Sage Weil [Wed, 16 May 2018 12:09:52 +0000 (07:09 -0500)]
Merge pull request #22006 from liewegas/wip-mimic

doc/releases/schedule: add mimic column

7 years agodoc/releases/mimic: edit/clean up upgrade notes 22006/head
Sage Weil [Tue, 15 May 2018 17:56:34 +0000 (12:56 -0500)]
doc/releases/mimic: edit/clean up upgrade notes

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoinstall-deps: nuke wheelhouse if it's stale 22028/head
Kefu Chai [Wed, 16 May 2018 11:41:52 +0000 (19:41 +0800)]
install-deps: nuke wheelhouse if it's stale

otherwise, if we update *requirements.txt, and the wheelhouse fails to
offer the newly added dependency, the setup-virtualenv.sh will fail the
build.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agorbd-mirror: make 'flush' asok command asynchronous 22027/head
Mykola Golub [Wed, 16 May 2018 07:40:29 +0000 (10:40 +0300)]
rbd-mirror: make 'flush' asok command asynchronous

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agorbd-mirror: don't reregister asok hook in process entry thread
Mykola Golub [Wed, 16 May 2018 07:34:50 +0000 (10:34 +0300)]
rbd-mirror: don't reregister asok hook in process entry thread

It might get stuck if the asok is busy executing a command.
Instead kick status update, which will call reregister on finish.

Fixes: http://tracker.ceph.com/issues/24141
Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agomessages: print quota info in MClientQuota msg 22023/head
Zhi Zhang [Wed, 16 May 2018 08:06:19 +0000 (16:06 +0800)]
messages: print quota info in MClientQuota msg

Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>