]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agoceph-volume: do not pin the testinfra version for the simple tests 23268/head
Andrew Schoen [Thu, 26 Jul 2018 17:41:15 +0000 (12:41 -0500)]
ceph-volume: do not pin the testinfra version for the simple tests

For testinfra to work with a 2.6.x version of ansible it must use the
latest version.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #23263 from ceph/simple-ansible-version
Andrew Schoen [Thu, 26 Jul 2018 15:22:46 +0000 (15:22 +0000)]
Merge pull request #23263 from ceph/simple-ansible-version

ceph-volume: update version of ansible to 2.6.x for simple tests

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: update version of ansible to 2.6.x for simple tests 23263/head
Andrew Schoen [Thu, 26 Jul 2018 15:09:17 +0000 (10:09 -0500)]
ceph-volume: update version of ansible to 2.6.x for simple tests

ceph-ansible now requires a 2.5.x or 2.6.x version of ansible if you're
using the master branch. This updates our functional tests for the
simple subcommand to use a 2.6.x version of ansible.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #23256 from trociny/wip-25114
Jason Dillaman [Thu, 26 Jul 2018 13:29:23 +0000 (09:29 -0400)]
Merge pull request #23256 from trociny/wip-25114

test/pybind: fix test_rbd.TestClone.test_trash_snapshot

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23168 from tchaikov/wip-dpdk-fixes
Kefu Chai [Thu, 26 Jul 2018 12:23:52 +0000 (20:23 +0800)]
Merge pull request #23168 from tchaikov/wip-dpdk-fixes

msg/async: fix FTBFS of dpdk

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23200 from votdev/bug_25068
Lenz Grimmer [Thu, 26 Jul 2018 12:01:15 +0000 (14:01 +0200)]
Merge pull request #23200 from votdev/bug_25068

mgr/dashboard: RGW is not working if an URL prefix is defined

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #22906 from tspmelo/wip-improve-summary
Lenz Grimmer [Thu, 26 Jul 2018 12:00:11 +0000 (14:00 +0200)]
Merge pull request #22906 from tspmelo/wip-improve-summary

mgr/dashboard: Improve SummaryService and TaskWrapperService

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agotest/pybind: fix test_rbd.TestClone.test_trash_snapshot 23256/head
Mykola Golub [Thu, 26 Jul 2018 07:34:57 +0000 (10:34 +0300)]
test/pybind: fix test_rbd.TestClone.test_trash_snapshot

Fixes: http://tracker.ceph.com/issues/25114
Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #23191 from dillaman/wip-23398
Mykola Golub [Thu, 26 Jul 2018 05:06:33 +0000 (08:06 +0300)]
Merge pull request #23191 from dillaman/wip-23398

rbd: improved trash snapshot namespace handling

Reviewed-by: songweibin <song.weibin@zte.com.cn>
Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #23228 from tchaikov/wip-ceph-dencoder
Kefu Chai [Thu, 26 Jul 2018 04:11:39 +0000 (12:11 +0800)]
Merge pull request #23228 from tchaikov/wip-ceph-dencoder

test: move ceph-dencoder to src/tools

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #20366 from Synesis-LLC/master
Kefu Chai [Thu, 26 Jul 2018 03:50:26 +0000 (11:50 +0800)]
Merge pull request #20366 from Synesis-LLC/master

doc: print pg peering in SVG instead of PNG

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23248 from linuxbox2/rgw-fix-relaxed
Matt Benjamin [Wed, 25 Jul 2018 22:33:54 +0000 (18:33 -0400)]
Merge pull request #23248 from linuxbox2/rgw-fix-relaxed

rgw: fix build

6 years agoMerge pull request #22758 from ricardoasmarques/wip-user-management
Lenz Grimmer [Wed, 25 Jul 2018 22:27:07 +0000 (00:27 +0200)]
Merge pull request #22758 from ricardoasmarques/wip-user-management

mgr/dashboard: Ceph dashboard user management from the UI

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agorgw: fix build 23248/head
Matt Benjamin [Wed, 25 Jul 2018 21:21:11 +0000 (17:21 -0400)]
rgw: fix build

merge crossed with #23074

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge PR #23247 into master
Sage Weil [Wed, 25 Jul 2018 21:23:42 +0000 (16:23 -0500)]
Merge PR #23247 into master

* refs/pull/23247/head:
Revert "rpm,deb: chown bluestore block* links to ceph.ceph on install/upgrade"
Revert "rpm,deb: fix chown to use -h"
rpm,deb: fix chown to use -h
rpm,deb: chown bluestore block* links to ceph.ceph on install/upgrade

Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoRevert "rpm,deb: chown bluestore block* links to ceph.ceph on install/upgrade" 23247/head
Sage Weil [Wed, 25 Jul 2018 21:22:09 +0000 (16:22 -0500)]
Revert "rpm,deb: chown bluestore block* links to ceph.ceph on install/upgrade"

This reverts commit 58cde3fd793c037beca6645cc30b2ae1c30e2af1.

This was only needed for luminous and mimic.  We are keeping these commits in master (and reverting them) only so that the cherry-pick -x references work.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoRevert "rpm,deb: fix chown to use -h"
Sage Weil [Wed, 25 Jul 2018 21:22:04 +0000 (16:22 -0500)]
Revert "rpm,deb: fix chown to use -h"

This reverts commit 92207c76b91c26c0558688a358ade7c0d94d1b59.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23234 from ceph/wip-rm24784
Alfredo Deza [Wed, 25 Jul 2018 20:52:40 +0000 (16:52 -0400)]
Merge pull request #23234 from ceph/wip-rm24784

ceph-volume: PVolumes.get() should return one PV when using name or uuid

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #23237 from neha-ojha/wip-whitelist-slow-requests
Yuri Weinstein [Wed, 25 Jul 2018 19:36:17 +0000 (12:36 -0700)]
Merge pull request #23237 from neha-ojha/wip-whitelist-slow-requests

qa/tasks/thrashosds-health.yaml: whitelist slow requests

6 years agoMerge pull request #23141 from alfredodeza/wip-rm24993
Alfredo Deza [Wed, 25 Jul 2018 19:02:00 +0000 (15:02 -0400)]
Merge pull request #23141 from alfredodeza/wip-rm24993

ceph-volume process.call with stdin in Python 3 fix

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #22533 from linuxbox2/wip-rgw-24507
Matt Benjamin [Wed, 25 Jul 2018 18:41:27 +0000 (14:41 -0400)]
Merge pull request #22533 from linuxbox2/wip-rgw-24507

rgw: add option for relaxed region enforcement

6 years agoqa/tasks/thrashosds-health.yaml: whitelist slow requests 23237/head
Neha Ojha [Wed, 25 Jul 2018 17:20:12 +0000 (10:20 -0700)]
qa/tasks/thrashosds-health.yaml: whitelist slow requests

Signed-off-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #23074 from tchaikov/wip-seastar-config
Kefu Chai [Wed, 25 Jul 2018 17:02:11 +0000 (01:02 +0800)]
Merge pull request #23074 from tchaikov/wip-seastar-config

common/config: add ConfigProxy for crimson

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agomgr/dashboard: Ceph dashboard user management 22758/head
Ricardo Marques [Tue, 12 Jun 2018 14:55:08 +0000 (15:55 +0100)]
mgr/dashboard: Ceph dashboard user management

Fixes: https://tracker.ceph.com/issues/24446
Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Skip tab focus on "show/hide password" button
Ricardo Marques [Sat, 21 Jul 2018 11:10:14 +0000 (12:10 +0100)]
mgr/dashboard: Skip tab focus on "show/hide password" button

Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Add 'onCancel' output for 'ConfirmationModal'
Ricardo Marques [Mon, 2 Jul 2018 10:54:42 +0000 (11:54 +0100)]
mgr/dashboard: Add 'onCancel' output for 'ConfirmationModal'

Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Add cd-select-badges component
Ricardo Marques [Mon, 18 Jun 2018 15:24:31 +0000 (16:24 +0100)]
mgr/dashboard: Add cd-select-badges component

Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agoceph-volume: PVolumes.get() should return one PV when using name or uuid 23234/head
Andrew Schoen [Wed, 25 Jul 2018 16:47:27 +0000 (11:47 -0500)]
ceph-volume: PVolumes.get() should return one PV when using name or uuid

It is possible to get duplicated pv entires from the 'pvs' lvm command.
If we're using PVolumes.get() with either pv_name or pv_uuid we can
safely return a single PVolume object. However, if we use pv_tags with
PVolumes.get() we must still raise a MultiplePVsError if many pvs
are found that have the tags, because they are not guaranteed to be the
same pv, as would be the case with pv_name or pv_uuid.

Fixes: http://tracker.ceph.com/issues/24784
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge PR #23232 into master
Sage Weil [Wed, 25 Jul 2018 16:38:52 +0000 (11:38 -0500)]
Merge PR #23232 into master

* refs/pull/23232/head:
mon: don't require CEPHX_V2 from mons until nautilus

6 years agoceph-volume tests run to log_descriptors, verifying utf-8 23141/head
Alfredo Deza [Wed, 25 Jul 2018 12:40:53 +0000 (08:40 -0400)]
ceph-volume tests run to log_descriptors, verifying utf-8

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume process decode to utf-8 when logging descriptors
Alfredo Deza [Wed, 25 Jul 2018 12:39:16 +0000 (08:39 -0400)]
ceph-volume process decode to utf-8 when logging descriptors

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.process ensure that stdin works on py3 and py2.7
Alfredo Deza [Fri, 20 Jul 2018 13:49:59 +0000 (09:49 -0400)]
ceph-volume tests.process ensure that stdin works on py3 and py2.7

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume process encode stdin with utf-8 to prevent bytes TypeError
Alfredo Deza [Fri, 20 Jul 2018 13:48:38 +0000 (09:48 -0400)]
ceph-volume process encode stdin with utf-8 to prevent bytes TypeError

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agomon: don't require CEPHX_V2 from mons until nautilus 23232/head
Sage Weil [Wed, 25 Jul 2018 16:22:45 +0000 (11:22 -0500)]
mon: don't require CEPHX_V2 from mons until nautilus

The mimic 13.2.0 didn't have it.

Fixes: 3dc80e5f9b6ebf1bc1cecbd95b288005216bdbec
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23231 from tchaikov/wip-fio
Kefu Chai [Wed, 25 Jul 2018 16:11:29 +0000 (00:11 +0800)]
Merge pull request #23231 from tchaikov/wip-fio

tests/fio: fix build failures and ensure this is covered by run-make-check.sh

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agotools/ceph_dencoder: use full path for including headers 23228/head
Kefu Chai [Wed, 25 Jul 2018 16:07:32 +0000 (00:07 +0800)]
tools/ceph_dencoder: use full path for including headers

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Add match validator
Ricardo Marques [Mon, 18 Jun 2018 11:42:08 +0000 (12:42 +0100)]
mgr/dashboard: Add match validator

Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Add user management API
Ricardo Marques [Wed, 20 Jun 2018 15:03:39 +0000 (16:03 +0100)]
mgr/dashboard: Add user management API

Fixes: https://tracker.ceph.com/issues/24446
Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Add asserError helper method
Ricardo Marques [Wed, 20 Jun 2018 15:05:22 +0000 (16:05 +0100)]
mgr/dashboard: Add asserError helper method

Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agocmake: sync up with upstream FIO 23231/head
Kefu Chai [Wed, 25 Jul 2018 14:47:18 +0000 (22:47 +0800)]
cmake: sync up with upstream FIO

to pick up the change to FTBFS with C++ engine.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Improve SummaryService and TaskWrapperService 22906/head
Tiago Melo [Thu, 5 Jul 2018 16:45:32 +0000 (17:45 +0100)]
mgr/dashboard: Improve SummaryService and TaskWrapperService

When you create a new task, and it stays running, it will be added automatically
to the summary data.

This will allows for us to deal with it more quickly, by subscribing
to the summaryService, and removes the need to pass a runningTasks array
between services.

Added 3 new methods to SummaryService.

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #22695 from a2batic/scss
Lenz Grimmer [Wed, 25 Jul 2018 14:32:16 +0000 (16:32 +0200)]
Merge pull request #22695 from a2batic/scss

mgr/dashboard: Color variables for color codes

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23100 from adamemerson/wip-robustly-notify
Casey Bodley [Wed, 25 Jul 2018 14:30:05 +0000 (10:30 -0400)]
Merge pull request #23100 from adamemerson/wip-robustly-notify

rgw: Robustly notify

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #23183 from ricardoasmarques/wip-fix-url-prefix
Ricardo Dias [Wed, 25 Jul 2018 14:20:18 +0000 (15:20 +0100)]
Merge pull request #23183 from ricardoasmarques/wip-fix-url-prefix

mgr/dashboard: Fix cherrypy static content URL prefix config

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: Color variables for color codes 22695/head
a2batic [Sat, 21 Jul 2018 00:59:47 +0000 (02:59 +0200)]
mgr/dashboard: Color variables for color codes
Assign variables to colors present in css files
Changed navigation icons padding because the notification dropdown was going out of window.
Fixes: http://tracker.ceph.com/issues/24575
Signed-off-by: Kanika Murarka <kmurarka@redhat.com>
6 years agoMerge pull request #22857 from tspmelo/wip-move-test-file
Lenz Grimmer [Wed, 25 Jul 2018 13:13:20 +0000 (15:13 +0200)]
Merge pull request #22857 from tspmelo/wip-move-test-file

mgr/dashboard: Move unit-test-helper into the new testing folder

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #22624 from ashutosh-narkar/opa-ceph
Matt Benjamin [Wed, 25 Jul 2018 13:09:32 +0000 (09:09 -0400)]
Merge pull request #22624 from ashutosh-narkar/opa-ceph

rgw: Initial work for OPA-Ceph integration

6 years agotest: move ceph-dencoder to src/tools
Kefu Chai [Wed, 25 Jul 2018 13:09:18 +0000 (21:09 +0800)]
test: move ceph-dencoder to src/tools

as it belongs to ceph-common, not ceph-test.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #23220 into master
Sage Weil [Wed, 25 Jul 2018 12:00:23 +0000 (07:00 -0500)]
Merge PR #23220 into master

* refs/pull/23220/head:
osd/OSDMap: CRUSH_TUNABLES5 added in jewel, not kraken

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agomgr/dashboard: RGW is not working if an URL prefix is defined 23200/head
Volker Theile [Tue, 24 Jul 2018 07:28:49 +0000 (09:28 +0200)]
mgr/dashboard: RGW is not working if an URL prefix is defined

Fixes https://tracker.ceph.com/issues/25068

Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoInitial work for OPA-Ceph integration 22624/head
Ashutosh Narkar [Wed, 30 May 2018 23:49:30 +0000 (16:49 -0700)]
Initial work for OPA-Ceph integration

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
6 years agocommon/config_proxy: document Config{Values,Proxy} 23074/head
Kefu Chai [Wed, 25 Jul 2018 04:56:12 +0000 (12:56 +0800)]
common/config_proxy: document Config{Values,Proxy}

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest/crimson: update test_alien_echo.cc with f80b848d
Kefu Chai [Sat, 21 Jul 2018 12:40:14 +0000 (20:40 +0800)]
test/crimson: update test_alien_echo.cc with f80b848d

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: build c-ares if it's not found or not new enough
Kefu Chai [Thu, 19 Jul 2018 16:14:03 +0000 (00:14 +0800)]
cmake: build c-ares if it's not found or not new enough

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoc-ares: add c-ares submodule
Kefu Chai [Thu, 19 Jul 2018 16:11:31 +0000 (00:11 +0800)]
c-ares: add c-ares submodule

c-ares is a C library for asynchronous DNS requests, seastar requires
c-ares 1.13.0 or up. but xenial and EPEL offer 1.10.0, so we need to
build and ship it as part of Ceph.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/common: add ceph::common::ConfigProxy
Kefu Chai [Sat, 14 Jul 2018 04:02:55 +0000 (12:02 +0800)]
crimson/common: add ceph::common::ConfigProxy

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/config: change md_config_obs_impl's template param to ConfigProxy
Kefu Chai [Wed, 18 Jul 2018 07:57:46 +0000 (15:57 +0800)]
common/config: change md_config_obs_impl's template param to ConfigProxy

we were using LockPolicy as this tempalte class's template parameter,
but turns out ConfigProxy is a better parameter for it. as ConfigProxy is
"closer" to md_config_obs_impl than LockPolicy is.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/config: change md_config_impl<> back to plain class
Kefu Chai [Wed, 18 Jul 2018 07:55:55 +0000 (15:55 +0800)]
common/config: change md_config_impl<> back to plain class

now that all of the variables that change depending on seastar/alien
have been extracted out of md_config_impl<>, there is no need to make it
a template anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agorpm,install-deps,cmake: install {c-ares,fmt}-devel
Kefu Chai [Wed, 18 Jul 2018 06:22:45 +0000 (14:22 +0800)]
rpm,install-deps,cmake: install {c-ares,fmt}-devel

* ceph.spec.in: c-ares-devel and fmt-devel are installed as
  dependencies fo seastar.
* install-deps.sh: libfmt-dev is missing in xenial, so we only
  install libc-ares-dev for ubuntu in install-deps.sh .
* cmake: build libfmt if it's not found.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agofmt: add libfmt submodule
Kefu Chai [Wed, 18 Jul 2018 06:17:56 +0000 (14:17 +0800)]
fmt: add libfmt submodule

libfmt is a library for fast printf() support in C++, it is used by
seastar. but it's missing in xenial. so we need to ship it in our dist
tarball and build if if it's not found in system.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoseastar: use the modernized cmake
Kefu Chai [Tue, 17 Jul 2018 16:17:13 +0000 (00:17 +0800)]
seastar: use the modernized cmake

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoseastar: sync with upstream
Kefu Chai [Tue, 17 Jul 2018 07:52:14 +0000 (15:52 +0800)]
seastar: sync with upstream

to pick up the commit of 67bb775e, which marks
foreign_ptr::get_owner_shard() const.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/config: mark do_argv_commands() const
Kefu Chai [Sun, 15 Jul 2018 11:31:01 +0000 (19:31 +0800)]
common/config: mark do_argv_commands() const

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/config: extract ObserverMgr from md_config_impl<>
Kefu Chai [Sun, 15 Jul 2018 10:14:43 +0000 (18:14 +0800)]
common/config: extract ObserverMgr from md_config_impl<>

crimson will have sharded<PGShard> (name may vary in future), and
underlying ObjectStore instances. they will be consumers of crimson
ConfigProxy, and will register them as an observer of config changes.
but as always, in crimson osd, world is sharded, each ConfigProxy will
only take care of the sharded services living on the shard which it is
in charge of. in other words, unlike alien's ConfigProxy, the
"observers" data structure is not shared, they are sharded as well. so
we need to extract the observers out of md_config_impl<>, and move it
into ConfigProxy.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoosd/OSDMap: CRUSH_TUNABLES5 added in jewel, not kraken 23220/head
Sage Weil [Wed, 25 Jul 2018 01:30:54 +0000 (20:30 -0500)]
osd/OSDMap: CRUSH_TUNABLES5 added in jewel, not kraken

In 0ceb5c0f3694725c7043ea99b077816da2ca44a7 I screwed up the version that
CRUSH_TUANBLES5 (chooseleaf_stable) was added: it comes from
043a7378ec4e828f2568ea3906d9076848161ccd, v10.0.3, which leads up to
jewel.

This, in turn, means that when jewel tunables are set we do not actually
encode the jewel tunables.  At least, luminous doesn't; jewel uses a
different code path to decode how to encode the OSDMap.

This, in turn, leads to crc errors:

- luminous mons running
- require_osd_release is jewel
- jewel tunables are set.  mon in-memory crushmap gets chooseleaf_stable=1
- osds are luminous, but don't see the new field in the crushmap
- upgrade finishes, and require_osd_Release becomes luminous
- the full osdmap encodes the chooseleaf_stable field, finally, and it
  is 1
- the osds try to encode the same thing, but their crushmap has 0.
-> crc mismatch

This is a regression from 0ceb5c0f3694725c7043ea99b077816da2ca44a7,
backported to luminous in 686b054f48c50859bd5e8bad93007bf9d7d7899c in
12.2.6.

Fixes: 686b054f48c50859bd5e8bad93007bf9d7d7899c
Fixes: http://tracker.ceph.com/issues/25057
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/dashboard: prettify code 22857/head
Tiago Melo [Wed, 4 Jul 2018 16:20:56 +0000 (17:20 +0100)]
mgr/dashboard: prettify code

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Move unit-test-helper into the new testing folder
Tiago Melo [Wed, 4 Jul 2018 15:56:43 +0000 (16:56 +0100)]
mgr/dashboard: Move unit-test-helper into the new testing folder

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #22996 from batrick/mds-state-dot
Gregory Farnum [Tue, 24 Jul 2018 21:22:08 +0000 (14:22 -0700)]
Merge pull request #22996 from batrick/mds-state-dot

doc: add mds state transition diagram

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #22581 from fullerdj/wip-djf-24544
Matt Benjamin [Tue, 24 Jul 2018 20:39:17 +0000 (16:39 -0400)]
Merge pull request #22581 from fullerdj/wip-djf-24544

rgw: change default rgw_thread_pool_size to 512

6 years agomds: remove ascii art version of mds state diagram 22996/head
Patrick Donnelly [Sat, 21 Jul 2018 04:00:14 +0000 (21:00 -0700)]
mds: remove ascii art version of mds state diagram

Now refer to the user documentation. Any updates should go there!

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agodoc: create mds state documentation
Patrick Donnelly [Wed, 11 Jul 2018 19:56:06 +0000 (12:56 -0700)]
doc: create mds state documentation

Fixes: http://tracker.ceph.com/issues/22989
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #20330 from joke-lee/wip-rgw-postobjloc
Yuri Weinstein [Tue, 24 Jul 2018 16:19:47 +0000 (09:19 -0700)]
Merge pull request #20330 from joke-lee/wip-rgw-postobjloc

rgw: return valid Location element, PostObj

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
6 years agoMerge pull request #22937 from tianshan/fix_index_suggest_ut_fail
Yuri Weinstein [Tue, 24 Jul 2018 16:18:01 +0000 (09:18 -0700)]
Merge pull request #22937 from tianshan/fix_index_suggest_ut_fail

rgw: continue enoent index in dir_suggest

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
6 years agoMerge pull request #23095 from trociny/wip-24898
Yuri Weinstein [Tue, 24 Jul 2018 16:17:11 +0000 (09:17 -0700)]
Merge pull request #23095 from trociny/wip-24898

 librbd: ensure exclusive lock acquired when removing sync point snapshots

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23167 from tchaikov/wip-tools-rbd-cleanup
Yuri Weinstein [Tue, 24 Jul 2018 16:16:50 +0000 (09:16 -0700)]
Merge pull request #23167 from tchaikov/wip-tools-rbd-cleanup

tools/rbd: assert(g_ceph_context) not g_conf

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #22419 from votdev/hide_progress_bar
Lenz Grimmer [Tue, 24 Jul 2018 15:40:43 +0000 (17:40 +0200)]
Merge pull request #22419 from votdev/hide_progress_bar

mgr/dashboard: Hide progress bar in case of an error

6 years agoMerge pull request #23182 from alfredodeza/wip-ansible-26
Andrew Schoen [Tue, 24 Jul 2018 14:22:35 +0000 (14:22 +0000)]
Merge pull request #23182 from alfredodeza/wip-ansible-26

ceph-volume tests/functional use Ansible 2.6

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #23132 from dillaman/wip-25000
Mykola Golub [Tue, 24 Jul 2018 13:43:13 +0000 (16:43 +0300)]
Merge pull request #23132 from dillaman/wip-25000

librbd: deep-copy should not write to objects that cannot exist

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoqa/workunits/rbd: updates to the clone v2 CLI tests 23191/head
Jason Dillaman [Mon, 23 Jul 2018 18:58:51 +0000 (14:58 -0400)]
qa/workunits/rbd: updates to the clone v2 CLI tests

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: clone detach should attempt to remove trashed snapshots
Jason Dillaman [Mon, 23 Jul 2018 14:57:44 +0000 (10:57 -0400)]
librbd: clone detach should attempt to remove trashed snapshots

Fixes: http://tracker.ceph.com/issues/23398
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: new helper method for retrieving a single snapshot info record
Jason Dillaman [Mon, 23 Jul 2018 18:15:05 +0000 (14:15 -0400)]
librbd: new helper method for retrieving a single snapshot info record

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: reduce log level of write denied permission error
Jason Dillaman [Mon, 23 Jul 2018 15:40:20 +0000 (11:40 -0400)]
librbd: reduce log level of write denied permission error

The watch OSD op requires write permission since -EPERM will still
be returned to the user.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agorbd: permit removal of snapshots by snap-id
Jason Dillaman [Mon, 25 Jun 2018 21:04:21 +0000 (17:04 -0400)]
rbd: permit removal of snapshots by snap-id

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agorbd: 'snap ls --all' now shows a trash snapshot's original name
Jason Dillaman [Mon, 25 Jun 2018 20:46:20 +0000 (16:46 -0400)]
rbd: 'snap ls --all' now shows a trash snapshot's original name

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agopybind/rbd: improved handling for snapshot namespaces
Jason Dillaman [Mon, 25 Jun 2018 20:42:04 +0000 (16:42 -0400)]
pybind/rbd: improved handling for snapshot namespaces

The snap iterator now includes the namespace type and group/trash
sub-dictionaries (if applicable). It's also possible to remove a
non-user snapshot by its id.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #22792 from jcsp/wip-mgrmodule-none-docs
John Spray [Tue, 24 Jul 2018 09:36:44 +0000 (10:36 +0100)]
Merge pull request #22792 from jcsp/wip-mgrmodule-none-docs

mgr: improve docs for MgrModule methods

6 years agoMerge pull request #22794 from wido/mgr-metadata-none
John Spray [Tue, 24 Jul 2018 09:35:44 +0000 (10:35 +0100)]
Merge pull request #22794 from wido/mgr-metadata-none

mgr: Ignore daemon if no metadata was returned

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #22827 from theanalyst/wip-device-py3
John Spray [Tue, 24 Jul 2018 09:28:37 +0000 (10:28 +0100)]
Merge pull request #22827 from theanalyst/wip-device-py3

mgr: devicehealth: dont error on dict iteritems

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #22951 from jcsp/wip-mgr-intermodule
John Spray [Tue, 24 Jul 2018 09:25:59 +0000 (10:25 +0100)]
Merge pull request #22951 from jcsp/wip-mgr-intermodule

mgr: enable inter-module calls

Reviewed-by: Tim Serong <tserong@suse.com>
6 years agoMerge pull request #23181 from tspmelo/wip-remove-karma
Lenz Grimmer [Tue, 24 Jul 2018 09:09:48 +0000 (11:09 +0200)]
Merge pull request #23181 from tspmelo/wip-remove-karma

mgr/dashboard: Remove karma packages

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23115 from tspmelo/wip-angular-cmake
Lenz Grimmer [Tue, 24 Jul 2018 09:03:34 +0000 (11:03 +0200)]
Merge pull request #23115 from tspmelo/wip-angular-cmake

mgr/dashboard: Remove angular build progress logs during cmake

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #23159 from smithfarm/wip-example-no-boost
Nathan Cutler [Tue, 24 Jul 2018 07:58:23 +0000 (09:58 +0200)]
Merge pull request #23159 from smithfarm/wip-example-no-boost

example/librados: remove dependency on Boost system library

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agocommon/config: extract "changed" from md_config_impl<> to ConfigValues
Kefu Chai [Sun, 15 Jul 2018 11:51:46 +0000 (19:51 +0800)]
common/config: extract "changed" from md_config_impl<> to ConfigValues

for the same reason why we moved ObserverMgr out of md_config_impl<>,
"changed" cannot be shared among shards, we should move "changed" out of
md_config_impl. we can put "changed" into ConfigValues or
ConfigProxy, IMHO, it would be simpler if "changed" resides in
ConfigValues: less fragmented this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/config: move _apply_changes() calls up into ConfigProxy
Kefu Chai [Sun, 15 Jul 2018 09:50:12 +0000 (17:50 +0800)]
common/config: move _apply_changes() calls up into ConfigProxy

see also the previous the commit, to reuse injectargs() and
set_mon_vals() in seastar's ConfigProxy, we need to move apply_changes()
call out of them, as this call is implemented differently in seastar's
ConfigProxy.

finalize_reexpand_meta() is not used by OSD at this moment, so we leave
it as it is for now.

* move _apply_changes() calls up into ConfigProxy
* move update_legacy_vals() out of _apply_changes() into the
callers of the latter. as it changes "values", in seastar's ConfigProxy,
it belongs to the first step of changing a config value

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/config: promote lock from md_config_t to ConfigProxy
Kefu Chai [Sun, 15 Jul 2018 08:49:59 +0000 (16:49 +0800)]
common/config: promote lock from md_config_t to ConfigProxy

seastar's ConfigProxy and alien's ConfigProxy follow different threading
models and expose different methods. the former updates a setting with 3
steps:
1. create a local copy of current setting, and apply the proposed change
   to the copy
2. populate the updated change with a foreign_ptr<> to all shards
   (including itself)
3. on each shards, call apply_changes() to get the interested observers
   updated, please note, apply_changes() should only update the local
   observers on current shard.

while the alien's ConfigProxy do all the job in a single synchronized
call,
but we can split it into a finer-grained steps:
1. apply the proposed change in-place
2. apply_changes() to get the interested observers updated.

so, to reuse the code across these two implementations, for instance,
set_mon_vals() will be implemented in ConfigProxy instead, so we can
have different behavior in different ConfigProxy classes. if we keep
using the existing single-piece md_config_t::set_mon_vals(), we have no
chance to differentiate the apply_changes() for seastar port. but the
alien implementation requires a grand lock protecting set_val() and
apply_changes(), so we have to move the lock from md_config_t up to
ConfigProxy. it's also simpler this way, as we don't need an extra layer
to have a dummy Mutex for seastar's ConfigProxy. as only the alien's
ConfigProxy requires the lock.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/config: do not use unique_ptr<> for config
Kefu Chai [Sat, 14 Jul 2018 04:02:03 +0000 (12:02 +0800)]
common/config: do not use unique_ptr<> for config

it's not necessary to do so.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #22978 from tchaikov/wip-docker-test-cleanup
Josh Durgin [Tue, 24 Jul 2018 00:38:41 +0000 (17:38 -0700)]
Merge pull request #22978 from tchaikov/wip-docker-test-cleanup

test/docker-test-helper.sh: move "cp .git/HEAD" out of loop

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #23194 from alfredodeza/wip-lvm-docs
Gregory Farnum [Mon, 23 Jul 2018 23:52:12 +0000 (16:52 -0700)]
Merge pull request #23194 from alfredodeza/wip-lvm-docs

ceph-volume: expand on why ceph-disk was replaced

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
6 years agoMerge pull request #23029 from dillaman/wip-24909
Yuri Weinstein [Mon, 23 Jul 2018 21:52:02 +0000 (14:52 -0700)]
Merge pull request #23029 from dillaman/wip-24909

osd: do not treat an IO hint as an IOP for PG stats

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #23186 from smithfarm/wip-4640
Dan Mick [Mon, 23 Jul 2018 21:18:15 +0000 (14:18 -0700)]
Merge pull request #23186 from smithfarm/wip-4640

doc/man: mention import and export commands in rados manpage