]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agomgr/cephadm: catch exceptions when scraping ceph-volume inventory 33484/head
Sage Weil [Sat, 22 Feb 2020 13:33:48 +0000 (07:33 -0600)]
mgr/cephadm: catch exceptions when scraping ceph-volume inventory

This matches what we do with the background 'cephadm ls'.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33401 from liewegas/wip-octopus-notes
Josh Durgin [Sat, 22 Feb 2020 00:26:37 +0000 (16:26 -0800)]
Merge pull request #33401 from liewegas/wip-octopus-notes

doc/release/octopus: note about upgrade times

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #33476 into master
Patrick Donnelly [Fri, 21 Feb 2020 23:15:48 +0000 (15:15 -0800)]
Merge PR #33476 into master

* refs/pull/33476/head:
mgr/volumes: fix placement default value

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agomgr/volumes: fix placement default value 33476/head
Sage Weil [Fri, 21 Feb 2020 23:02:59 +0000 (17:02 -0600)]
mgr/volumes: fix placement default value

Fixes: https://tracker.ceph.com/issues/44244
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33412 from idryomov/wip-krbd-fsx-build-deps
Ilya Dryomov [Fri, 21 Feb 2020 21:38:49 +0000 (22:38 +0100)]
Merge pull request #33412 from idryomov/wip-krbd-fsx-build-deps

qa: rbd_workunit_suites_fsx: install build dependencies

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge PR #33468 into master
Sage Weil [Fri, 21 Feb 2020 20:58:29 +0000 (14:58 -0600)]
Merge PR #33468 into master

* refs/pull/33468/head:
debian: fix ceph-mgr-modules-core files

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge PR #33457 into master
Sage Weil [Fri, 21 Feb 2020 20:41:59 +0000 (14:41 -0600)]
Merge PR #33457 into master

* refs/pull/33457/head:
qa/workunits/cephadm: separate out test_adoption.sh; fix

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33464 into master
Sage Weil [Fri, 21 Feb 2020 20:10:07 +0000 (14:10 -0600)]
Merge PR #33464 into master

* refs/pull/33464/head:
mgr/BaseMgrModule: drop GIL for is_authorized check
mgr/ActivePyModules: drop GIL to register/unregister clients

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge PR #33466 into master
Sage Weil [Fri, 21 Feb 2020 19:11:52 +0000 (13:11 -0600)]
Merge PR #33466 into master

* refs/pull/33466/head:
cmake: exclude unittest_alloc_aging from "all"

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #33415 into master
Sage Weil [Fri, 21 Feb 2020 18:31:34 +0000 (12:31 -0600)]
Merge PR #33415 into master

* refs/pull/33415/head:
mgr/cephadm: progress for upgrade

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agodebian: fix ceph-mgr-modules-core files 33468/head
Sage Weil [Fri, 21 Feb 2020 18:16:34 +0000 (12:16 -0600)]
debian: fix ceph-mgr-modules-core files

Remove the files from ceph-mgr that are added to ceph-mgr-modules-core.

2020-02-21T17:59:56.031 INFO:teuthology.orchestra.run.smithi060.stdout:dpkg: error processing archive /tmp/apt-dpkg-install-YpwLHV/044-ceph-mgr_15.1.0-1037-ga6b324b-1bionic_amd64.deb (--unpack):
2020-02-21T17:59:56.031 INFO:teuthology.orchestra.run.smithi060.stdout: trying to overwrite '/usr/share/ceph/mgr/alerts/__init__.py', which is also in package ceph-mgr-modules-core 15.1.0-1037-ga6b324b-1bionic

Broken by 589626464d475b4ad96905fbddf11a5782a040f0

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocmake: exclude unittest_alloc_aging from "all" 33466/head
Kefu Chai [Fri, 21 Feb 2020 16:48:36 +0000 (00:48 +0800)]
cmake: exclude unittest_alloc_aging from "all"

link it against GTest::Main, which was remove by
96a0439faf551dfae45676072eddd5f37a157289.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #33432 into master
Sage Weil [Fri, 21 Feb 2020 15:48:43 +0000 (09:48 -0600)]
Merge PR #33432 into master

* refs/pull/33432/head:
mgr/orchestrator: functools.partial doesn't work for methods

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33258 from sebastian-philipp/orchestrator-get_hosts-HostSpec
Sebastian Wagner [Fri, 21 Feb 2020 15:48:08 +0000 (16:48 +0100)]
Merge pull request #33258 from sebastian-philipp/orchestrator-get_hosts-HostSpec

mgr/orchestrator: get_hosts return `HostSpec` instead of `InventoryDevice`

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #32552 from Devp00l/wip-42617-new-tree
Lenz Grimmer [Fri, 21 Feb 2020 15:46:40 +0000 (15:46 +0000)]
Merge pull request #32552 from Devp00l/wip-42617-new-tree

mgr/dashboard: Reload all CephFS directories

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #32680 from votdev/wip-force-pwd
Lenz Grimmer [Fri, 21 Feb 2020 15:45:35 +0000 (15:45 +0000)]
Merge pull request #32680 from votdev/wip-force-pwd

mgr/dashboard: Enforce password change upon first login

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #33193 from cbodley/wip-44068
Casey Bodley [Fri, 21 Feb 2020 15:45:17 +0000 (10:45 -0500)]
Merge pull request #33193 from cbodley/wip-44068

rgw: data_sync_source_zones only contains 'exporting' zones

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agomgr/BaseMgrModule: drop GIL for is_authorized check 33464/head
Sage Weil [Fri, 21 Feb 2020 14:59:50 +0000 (08:59 -0600)]
mgr/BaseMgrModule: drop GIL for is_authorized check

This is making a call all the way to the mon!  We need to drop the GIL.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ActivePyModules: drop GIL to register/unregister clients
Sage Weil [Fri, 21 Feb 2020 14:58:55 +0000 (08:58 -0600)]
mgr/ActivePyModules: drop GIL to register/unregister clients

We need to drop the GIL since we are taking ActivePyModules::lock.

Fixes: df507cde8d71063d5873a42f668156e4c32e86f9
Fixes: https://tracker.ceph.com/issues/44241
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33046 from ivancich/wip-listing-w-namespaces
J. Eric Ivancich [Fri, 21 Feb 2020 14:47:20 +0000 (09:47 -0500)]
Merge pull request #33046 from ivancich/wip-listing-w-namespaces

rgw: fix bug with (un)ordered bucket listing and marker w/ namespace

Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-By: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33397 from aclamk/fix-disable-alloc-aging
Kefu Chai [Fri, 21 Feb 2020 14:10:56 +0000 (22:10 +0800)]
Merge pull request #33397 from aclamk/fix-disable-alloc-aging

cmake: Removed unittest_alloc_aging from make check

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33256 from tchaikov/wip-cmake-cares
Kefu Chai [Fri, 21 Feb 2020 14:04:23 +0000 (22:04 +0800)]
Merge pull request #33256 from tchaikov/wip-cmake-cares

cmake: should expose ${C-ARES_BINARY_DIR} from c-ares

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #31981 from petrutlucian94/windows
Kefu Chai [Fri, 21 Feb 2020 13:41:58 +0000 (21:41 +0800)]
Merge pull request #31981 from petrutlucian94/windows

Windows support [part 1]

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/workunits/cephadm: separate out test_adoption.sh; fix 33457/head
Sage Weil [Fri, 21 Feb 2020 13:17:15 +0000 (07:17 -0600)]
qa/workunits/cephadm: separate out test_adoption.sh; fix

- fix adoption test to handle different legacy fsids
- separate it out into a different script

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33430 from rosinL/wip-testosdscrub
Kefu Chai [Fri, 21 Feb 2020 13:17:09 +0000 (21:17 +0800)]
Merge pull request #33430 from rosinL/wip-testosdscrub

test/TestOSDScrub: fix mktime() error

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #33444 into master
Sage Weil [Fri, 21 Feb 2020 12:31:58 +0000 (06:31 -0600)]
Merge PR #33444 into master

* refs/pull/33444/head:
mgr/cephadm: no gibberish suffix for some services
mgr/cephadm: prometheus: scrape all mgrs
mgr/cephadm: make prometheus scrape all node-exporters
cephadm: reset-failed on reconfig
cephadm: fix reconfig for monitoring daemons

Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
5 years agoMerge PR #33447 into master
Sage Weil [Fri, 21 Feb 2020 12:31:46 +0000 (06:31 -0600)]
Merge PR #33447 into master

* refs/pull/33447/head:
mgr/cephadm: fix upgrade wait loop

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #33435 from tchaikov/wip-viva-la-module
Kefu Chai [Fri, 21 Feb 2020 11:38:33 +0000 (19:38 +0800)]
Merge pull request #33435 from tchaikov/wip-viva-la-module

deb,rpm,doc: s/plugin/module/

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #33422 from tchaikov/wip-ceph-mgr-essentials
Kefu Chai [Fri, 21 Feb 2020 11:34:31 +0000 (19:34 +0800)]
Merge pull request #33422 from tchaikov/wip-ceph-mgr-essentials

rpm,deb: package always-enabled plugins in a separated package

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge pull request #33088 from liewegas/wip-cephadm-doc
Sebastian Wagner [Fri, 21 Feb 2020 10:37:48 +0000 (11:37 +0100)]
Merge pull request #33088 from liewegas/wip-cephadm-doc

doc/bootstrap: add mds and rgw steps to bootstrap

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoqa/tasks/cephadm: `orch host ls` now returns hostnames 33258/head
Sebastian Wagner [Fri, 21 Feb 2020 09:24:31 +0000 (10:24 +0100)]
qa/tasks/cephadm: `orch host ls` now returns hostnames

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: NodeAssignment.get_hosts_func now returns List[str]
Sebastian Wagner [Thu, 20 Feb 2020 09:39:28 +0000 (10:39 +0100)]
mgr/cephadm: NodeAssignment.get_hosts_func now returns List[str]

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/orchestrator: get_hosts return `HostSpec` instead of `InventoryDevice`
Sebastian Wagner [Thu, 13 Feb 2020 10:10:13 +0000 (11:10 +0100)]
mgr/orchestrator: get_hosts return `HostSpec` instead of `InventoryDevice`

This fixes a bad symmetry problem:

previsously:
```python
def add_host(host: HostSpec): ...
def get_hosts() -> List[InventoryDevice]: ...
```

now:
```python
def add_host(host: HostSpec): ...
def get_hosts() -> List[HostSpec]: ...
```

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/orchestrator: functools.partial doesn't work for methods 33432/head
Sebastian Wagner [Thu, 20 Feb 2020 13:09:24 +0000 (14:09 +0100)]
mgr/orchestrator: functools.partial doesn't work for methods

Use `partialmethod` instead:

```
def decorator_partial(f):
     return partial(f)

def decorator_lambda(f):
     return lambda *args, **kwargs: f(*args, **kwargs)

class C:
     @decorator_partial
     def f(self, arg): pass

     decorator_lambda
     def g(self, arg): pass

C().f(1)
TypeError: f() missing 1 required positional argument: 'arg'

C().g(1)
None
```

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #33453 from tchaikov/wip-seastar
Kefu Chai [Fri, 21 Feb 2020 08:15:49 +0000 (16:15 +0800)]
Merge pull request #33453 from tchaikov/wip-seastar

seastar: pickup change to add pthread linkage

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #33452 from tchaikov/wip-docker-centos8
Kefu Chai [Fri, 21 Feb 2020 06:23:04 +0000 (14:23 +0800)]
Merge pull request #33452 from tchaikov/wip-docker-centos8

test: remove Dockerfile for centos7 and add Dockerfile for centos8

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agocmake: drop Threads::Threads linkage from libcrimson 33453/head
Kefu Chai [Fri, 21 Feb 2020 06:10:19 +0000 (14:10 +0800)]
cmake: drop Threads::Threads linkage from libcrimson

since seastar is now linked against pthread by itself.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoseastar: pickup change to add pthread linkage
Kefu Chai [Fri, 21 Feb 2020 06:07:21 +0000 (14:07 +0800)]
seastar: pickup change to add pthread linkage

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agotest/centos-8: change to adapt to centos8 33452/head
Kefu Chai [Wed, 19 Feb 2020 07:40:54 +0000 (15:40 +0800)]
test/centos-8: change to adapt to centos8

for more context, see

https://github.com/CentOS/sig-cloud-instance-images/issues/22
https://wiki.centos.org/AdditionalResources/Repositories/CR
https://fedoraproject.org/wiki/EPEL

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agotest/centos-8: add centos8 Dockerfile
Kefu Chai [Wed, 19 Feb 2020 07:26:56 +0000 (15:26 +0800)]
test/centos-8: add centos8 Dockerfile

and drop centos-7 Dockerfile, as we've moved over centos8 for better
python3 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #33441 into master
Sage Weil [Fri, 21 Feb 2020 03:40:45 +0000 (21:40 -0600)]
Merge PR #33441 into master

* refs/pull/33441/head:
mgr/orchestrator: add ability to parse placementspec from strings
mgr/volumes: add arg to fs volume create for mds daemons placement

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #33443 into master
Sage Weil [Fri, 21 Feb 2020 03:40:34 +0000 (21:40 -0600)]
Merge PR #33443 into master

* refs/pull/33443/head:
cephadm: prepare-host: do not create Packager unless we need it

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #33445 into master
Sage Weil [Fri, 21 Feb 2020 03:40:23 +0000 (21:40 -0600)]
Merge PR #33445 into master

* refs/pull/33445/head:
cephadm: fix adoption safety check

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33446 into master
Sage Weil [Fri, 21 Feb 2020 03:40:13 +0000 (21:40 -0600)]
Merge PR #33446 into master

* refs/pull/33446/head:
cephadm: pull: strip newline from version string

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #32882 from trociny/wip-41559-2
Jason Dillaman [Fri, 21 Feb 2020 03:12:34 +0000 (22:12 -0500)]
Merge pull request #32882 from trociny/wip-41559-2

rbd: add 'mirror snapshot schedule' commands

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge PR #33450 into master
Sage Weil [Fri, 21 Feb 2020 03:10:46 +0000 (21:10 -0600)]
Merge PR #33450 into master

* refs/pull/33450/head:
doc: add CephFS Octopus release notes

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33368 from trociny/wip-44161
Jason Dillaman [Fri, 21 Feb 2020 03:09:34 +0000 (22:09 -0500)]
Merge pull request #33368 from trociny/wip-44161

rbd-mirror: don't expect image map is always initialized

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #33411 from trociny/wip-44159
Jason Dillaman [Fri, 21 Feb 2020 03:08:33 +0000 (22:08 -0500)]
Merge pull request #33411 from trociny/wip-44159

rbd-mirror: improve detection of blacklisted state

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge PR #33426 into master
Sage Weil [Fri, 21 Feb 2020 02:01:55 +0000 (20:01 -0600)]
Merge PR #33426 into master

* refs/pull/33426/head:
mgr/dashboard: fix tasks.mgr.dashboard.test_rgw suite

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agodoc: add CephFS Octopus release notes 33450/head
Patrick Donnelly [Fri, 21 Feb 2020 01:47:14 +0000 (17:47 -0800)]
doc: add CephFS Octopus release notes

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agomgr/cephadm: fix upgrade wait loop 33447/head
Sage Weil [Fri, 21 Feb 2020 01:07:32 +0000 (19:07 -0600)]
mgr/cephadm: fix upgrade wait loop

This was succeeding after 4 tries even though it wasn't ok-to-stop.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: fix adoption safety check 33445/head
Sage Weil [Thu, 20 Feb 2020 22:57:48 +0000 (16:57 -0600)]
cephadm: fix adoption safety check

The 'type' file is only required for *osds*.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: pull: strip newline from version string 33446/head
Sage Weil [Thu, 20 Feb 2020 23:17:22 +0000 (17:17 -0600)]
cephadm: pull: strip newline from version string

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #33437 into master
Sage Weil [Thu, 20 Feb 2020 22:50:51 +0000 (16:50 -0600)]
Merge PR #33437 into master

* refs/pull/33437/head:
cephadm: allow multiple get_parm() calls

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agomgr/cephadm: no gibberish suffix for some services 33444/head
Sage Weil [Thu, 20 Feb 2020 22:47:05 +0000 (16:47 -0600)]
mgr/cephadm: no gibberish suffix for some services

Lots of services only need to appear once per node; no need to create a
unique name.  (In fact, most of these *won't* run more than once per
node because they bind to a standard port.)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: prometheus: scrape all mgrs
Sage Weil [Thu, 20 Feb 2020 22:09:50 +0000 (16:09 -0600)]
mgr/cephadm: prometheus: scrape all mgrs

Assume that all standby mgrs are running on the same port as the
active.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: make prometheus scrape all node-exporters
Sage Weil [Thu, 20 Feb 2020 20:13:04 +0000 (14:13 -0600)]
mgr/cephadm: make prometheus scrape all node-exporters

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: reset-failed on reconfig
Sage Weil [Thu, 20 Feb 2020 22:08:00 +0000 (16:08 -0600)]
cephadm: reset-failed on reconfig

Sometimes we had a bad config that reconfig will fix, so we need to
reset-failed before restart.  If there was not failure this is harmless.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: fix reconfig for monitoring daemons
Sage Weil [Thu, 20 Feb 2020 20:18:54 +0000 (14:18 -0600)]
cephadm: fix reconfig for monitoring daemons

We shouldn't check for port usage here.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/orchestrator: add ability to parse placementspec from strings 33441/head
Daniel-Pivonka [Thu, 20 Feb 2020 15:22:35 +0000 (10:22 -0500)]
mgr/orchestrator: add ability to parse placementspec from strings

Signed-off-by: Daniel-Pivonka <dpivonka@redhat.com>
5 years agomgr/volumes: add arg to fs volume create for mds daemons placement
Daniel-Pivonka [Thu, 13 Feb 2020 18:56:13 +0000 (13:56 -0500)]
mgr/volumes: add arg to fs volume create for mds daemons placement

add placement arg for mds daemons created by fs volume create

Signed-off-by: Daniel-Pivonka <dpivonka@redhat.com>
5 years agomgr/cephadm: progress for upgrade 33415/head
Sage Weil [Wed, 19 Feb 2020 19:39:43 +0000 (13:39 -0600)]
mgr/cephadm: progress for upgrade

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: prepare-host: do not create Packager unless we need it 33443/head
Sage Weil [Thu, 20 Feb 2020 19:20:44 +0000 (13:20 -0600)]
cephadm: prepare-host: do not create Packager unless we need it

Otherwise, bootstrap may fail on an unrecognized/unsupported distro even
though all the dependencies are present.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31338 from ivancich/wip-clean-up-ordered-list
J. Eric Ivancich [Thu, 20 Feb 2020 19:06:23 +0000 (14:06 -0500)]
Merge pull request #31338 from ivancich/wip-clean-up-ordered-list

rgw: clean up ordered list

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33338 from smithfarm/wip-qa-cephadm-smoke-opensuse
Nathan Cutler [Thu, 20 Feb 2020 17:03:52 +0000 (18:03 +0100)]
Merge pull request #33338 from smithfarm/wip-qa-cephadm-smoke-opensuse

qa/cephadm/smoke: run on opensuse_15.1

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoqa/cephadm: "ls -l" cephadm after downloading it 33338/head
Nathan Cutler [Thu, 20 Feb 2020 16:26:07 +0000 (17:26 +0100)]
qa/cephadm: "ls -l" cephadm after downloading it

For better debugging when the download goes awry.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agorbd: add 'mirror snapshot schedule' commands 32882/head
Mykola Golub [Sun, 26 Jan 2020 14:10:45 +0000 (14:10 +0000)]
rbd: add 'mirror snapshot schedule' commands

Signed-off-by: Mykola Golub <mgolub@suse.com>
5 years agomgr/rbd_support: rename 'dump' command to 'list'
Mykola Golub [Sun, 26 Jan 2020 14:05:56 +0000 (14:05 +0000)]
mgr/rbd_support: rename 'dump' command to 'list'

and remove the old 'list' command -- we can live with one command.

Signed-off-by: Mykola Golub <mgolub@suse.com>
5 years agoqa/cephadm.py: better check for cephadm download success
Nathan Cutler [Thu, 20 Feb 2020 11:12:56 +0000 (12:12 +0100)]
qa/cephadm.py: better check for cephadm download success

When the URL passed to "curl --silent ..." does not exist, the
resulting file will be populated with the string:

    404: Not Found

If that (or something similar) happens, the file size will be
suspiciously low, like < 1000 bytes. Fail the test immediately in this
case.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoqa/tasks/cephadm.py: lop off .git more robustly
Nathan Cutler [Thu, 20 Feb 2020 10:59:53 +0000 (11:59 +0100)]
qa/tasks/cephadm.py: lop off .git more robustly

The line

    rest.replace('.git/', '/')

was added to accommodate weird folks who run teuthology-suite
with an option like this:

    --suite-repo https://github.com/ceph/ceph.git/

but they might just as well give the option like this:

    --suite-repo https://github.com/ceph/ceph.git

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agocephadm: allow multiple get_parm() calls 33437/head
Sage Weil [Thu, 20 Feb 2020 16:03:24 +0000 (10:03 -0600)]
cephadm: allow multiple get_parm() calls

This fixes deployment of monitoring components when the config-json is
passed via stdin.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31994 from pritha-srivastava/wip-rgw-assume-role-web-id-doc
Matt Benjamin [Thu, 20 Feb 2020 15:58:07 +0000 (10:58 -0500)]
Merge pull request #31994 from pritha-srivastava/wip-rgw-assume-role-web-id-doc

rgw: adding documentation for AssumeRoleWithWebIdentity.

5 years agomgr/rbd_support: return 'rbd mirror snapshot schedule status' as json
Mykola Golub [Thu, 13 Feb 2020 17:09:12 +0000 (17:09 +0000)]
mgr/rbd_support: return 'rbd mirror snapshot schedule status' as json

Signed-off-by: Mykola Golub <mgolub@suse.com>
5 years agodoc/mgr/dashboard.rst: s/plugin/module/ 33435/head
Kefu Chai [Thu, 20 Feb 2020 14:15:06 +0000 (22:15 +0800)]
doc/mgr/dashboard.rst: s/plugin/module/

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agorpm,deb: s/plugin/module/
Kefu Chai [Thu, 20 Feb 2020 14:13:19 +0000 (22:13 +0800)]
rpm,deb: s/plugin/module/

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agorpm,deb: package always-enabled plugins in a separated package 33422/head
Kefu Chai [Wed, 19 Feb 2020 03:51:42 +0000 (11:51 +0800)]
rpm,deb: package always-enabled plugins in a separated package

ceph-mgr depends on it in the sense that these plugins are
a hard dependency of ceph-mgr. like cmake depends on cmake-data,
even if the later cannot function on its own without the former.

the reason why we need a separated package is that mgr modules
are written in python, and should be arch independent. this change
helps the downstream to understand this and help to minimize the
divergence between upstream and downstream, because distros like
debian and its derivatives encourage splitting architecture independent
data into its own package.
see
https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#architecture-independent-data

also, the python related runtime dependencies are also moved into
ceph-mgr-modules-core.

if a python dependency is shared by another ceph-mgr-* package and
ceph-mgr-modules-core. it's only added to ceph-mgr-modules-core for
simplicity and consistency. as the name of dependency might vary
on different distros, so it's tedious and error-prone to repeat
these conditons and checks.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33166 from dillaman/wip-43936
Mykola Golub [Thu, 20 Feb 2020 13:53:56 +0000 (15:53 +0200)]
Merge pull request #33166 from dillaman/wip-43936

rbd-mirror: initial snapshot replay state machine

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoceph.spec.in: update to adapt to el7
Kefu Chai [Wed, 19 Feb 2020 16:47:42 +0000 (00:47 +0800)]
ceph.spec.in: update to adapt to el7

make sure ceph-mgr installs on el7

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agotest/TestOSDScrub: fix mktime() error 33430/head
luo rixin [Thu, 20 Feb 2020 12:07:39 +0000 (20:07 +0800)]
test/TestOSDScrub: fix mktime() error

The var tm tm isn't initialized, when the tm.tm_isdst is a
positive value, mktime(&tm) return -1 result in test failed
in ubuntu 19.10 for aarch64 GLIBC2.30.

Signed-off-by: luo rixin <luorixin@huawei.com>
5 years agoMerge pull request #33425 from tchaikov/wip-crimson-watcher
Kefu Chai [Thu, 20 Feb 2020 11:11:46 +0000 (19:11 +0800)]
Merge pull request #33425 from tchaikov/wip-crimson-watcher

crimson/osd: capture watcher when calling its member function

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #33423 from tchaikov/wip-doc-search
Kefu Chai [Thu, 20 Feb 2020 11:09:34 +0000 (19:09 +0800)]
Merge pull request #33423 from tchaikov/wip-doc-search

doc: fix errors in "search" page and use relative address for releases.json

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoqa/cephadm/smoke: run on opensuse_15.1
Nathan Cutler [Fri, 14 Feb 2020 17:24:54 +0000 (18:24 +0100)]
qa/cephadm/smoke: run on opensuse_15.1

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoqa/distros: add opensuse_15.2.yaml
Nathan Cutler [Fri, 14 Feb 2020 17:22:52 +0000 (18:22 +0100)]
qa/distros: add opensuse_15.2.yaml

We don't have a FOG image for this, yet, and Shaman is not building for
it (yet), either, but we might as well get this file in place now, since
we already know it will be needed at some point.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoqa/distros: drop obsolete opensuse distros
Nathan Cutler [Fri, 14 Feb 2020 17:22:02 +0000 (18:22 +0100)]
qa/distros: drop obsolete opensuse distros

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #33371 from leseb/raw-list
Sébastien Han [Thu, 20 Feb 2020 10:41:01 +0000 (11:41 +0100)]
Merge pull request #33371 from leseb/raw-list

ceph-volume: silence 'ceph-bluestore-tool' failures

5 years agoMerge pull request #33407 from rhcs-dashboard/coverage-venv-python-version
Lenz Grimmer [Thu, 20 Feb 2020 10:15:02 +0000 (10:15 +0000)]
Merge pull request #33407 from rhcs-dashboard/coverage-venv-python-version

mgr/dashboard: coverage venv python version same as mgr

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agomgr/dashboard: fix tasks.mgr.dashboard.test_rgw suite 33426/head
Alfonso Martínez [Thu, 20 Feb 2020 09:47:38 +0000 (10:47 +0100)]
mgr/dashboard: fix tasks.mgr.dashboard.test_rgw suite

Fixes: https://tracker.ceph.com/issues/44201
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
5 years agocrimson/osd: capture watcher when calling its member function 33425/head
Kefu Chai [Thu, 20 Feb 2020 08:09:19 +0000 (16:09 +0800)]
crimson/osd: capture watcher when calling its member function

otherwise the extracted node handler will be destroyed, and so does the
watcher enclosed in it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc: do not use absolute address 33423/head
Kefu Chai [Thu, 20 Feb 2020 06:42:32 +0000 (14:42 +0800)]
doc: do not use absolute address

use relative address instead, to ease the pain when testing.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc: do not add suffix for search result links
Kefu Chai [Thu, 20 Feb 2020 06:34:01 +0000 (14:34 +0800)]
doc: do not add suffix for search result links

since sphinx 1.5, SOURCELINK_SUFFIX is always added to the source file,
and search page always tries to add it to the highlighted source result.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc: do not try to patch #edit-on-github if not found
Kefu Chai [Thu, 20 Feb 2020 05:05:45 +0000 (13:05 +0800)]
doc: do not try to patch #edit-on-github if not found

we add this element in _templates/page.html, which is only used for the
content pages, not in the "search" page. to avoid the js errors, just
disabled it if it's not found.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #33394 into master
Sage Weil [Wed, 19 Feb 2020 22:58:47 +0000 (16:58 -0600)]
Merge PR #33394 into master

* refs/pull/33394/head:
mgr/cephadm: trigger device refresh after osd creation
mgr/orch,cephadm: implement 'device zap'
mgr/cephadm: remove inventory_cache
mgr/cephadm: reimplement 'device ls' in terms of cache
mgr/cephadm: fix invalidate helpers
mgr/cephadm: scrape and cache devices, too
mgr/cephadm: rename DaemonCache methods etc to generalize

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33400 into master
Sage Weil [Wed, 19 Feb 2020 22:46:16 +0000 (16:46 -0600)]
Merge PR #33400 into master

* refs/pull/33400/head:
mgr/progress: 'progress clear' command should clear events in 'ceph -s'

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge PR #33402 into master
Sage Weil [Wed, 19 Feb 2020 22:45:45 +0000 (16:45 -0600)]
Merge PR #33402 into master

* refs/pull/33402/head:
mgr/pg_autoscaler: fix division by zero

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge PR #33352 into master
Sage Weil [Wed, 19 Feb 2020 22:45:01 +0000 (16:45 -0600)]
Merge PR #33352 into master

* refs/pull/33352/head:
ceph.in: catch KeyboardInterrupt from outer code
ceph.in: fix second exception on ^C

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #33374 into master
Sage Weil [Wed, 19 Feb 2020 22:35:10 +0000 (16:35 -0600)]
Merge PR #33374 into master

* refs/pull/33374/head:
cephadm: remove distutils dependency
mgr/cephadm: add prepare-host command
cephadm: prepare-host during bootstrap
cephadm: add prepare-host command
cephadm: include docker.io in image name

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agomgr/cephadm: trigger device refresh after osd creation 33394/head
Sage Weil [Tue, 18 Feb 2020 19:18:47 +0000 (13:18 -0600)]
mgr/cephadm: trigger device refresh after osd creation

Presumably the new OSD(s) consumed one or more devices.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/orch,cephadm: implement 'device zap'
Sage Weil [Tue, 18 Feb 2020 19:06:51 +0000 (13:06 -0600)]
mgr/orch,cephadm: implement 'device zap'

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: remove inventory_cache
Sage Weil [Tue, 18 Feb 2020 18:40:20 +0000 (12:40 -0600)]
mgr/cephadm: remove inventory_cache

No longer used.

Clean up _get_hosts now that there is only one user.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: reimplement 'device ls' in terms of cache
Sage Weil [Tue, 18 Feb 2020 18:36:04 +0000 (12:36 -0600)]
mgr/cephadm: reimplement 'device ls' in terms of cache

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