]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agomgr/ssh: Port raising exceptions from completion handlers to Py2 31940/head
Sebastian Wagner [Mon, 2 Dec 2019 14:13:14 +0000 (15:13 +0100)]
mgr/ssh: Port raising exceptions from completion handlers to Py2

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/dashboard: Eye candy updates to datatable pages (#31764)
Lenz Grimmer [Mon, 2 Dec 2019 09:27:33 +0000 (09:27 +0000)]
mgr/dashboard: Eye candy updates to datatable pages (#31764)

mgr/dashboard: Eye candy updates to datatable pages

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge pull request #31903 from majianpeng/os-bluestore-ceph-assert
Kefu Chai [Mon, 2 Dec 2019 08:50:38 +0000 (16:50 +0800)]
Merge pull request #31903 from majianpeng/os-bluestore-ceph-assert

os/bluestore: don't round_up_to in apply_for_bitset_range.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #31774 from dzafman/wip-balancer3
Kefu Chai [Mon, 2 Dec 2019 08:48:38 +0000 (16:48 +0800)]
Merge pull request #31774 from dzafman/wip-balancer3

osd,tools: Balancer fixes without all of the calc_pg_upmaps() rewrites

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #31317 from wjwithagen/wjw-update-FindBoost.cmake
Kefu Chai [Mon, 2 Dec 2019 08:46:00 +0000 (16:46 +0800)]
Merge pull request #31317 from wjwithagen/wjw-update-FindBoost.cmake

cmake: update FindBoost.cmake for 1.71

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31841 from rosinL/wip-support-dpdk-numa
Kefu Chai [Mon, 2 Dec 2019 08:45:11 +0000 (16:45 +0800)]
Merge pull request #31841 from rosinL/wip-support-dpdk-numa

cmake: Add dpdk numa support

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31915 from majianpeng/osd-remove-useless-ceph-assert
Kefu Chai [Mon, 2 Dec 2019 08:44:27 +0000 (16:44 +0800)]
Merge pull request #31915 from majianpeng/osd-remove-useless-ceph-assert

osd: remove useless ceph_assert.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31723 from rosinL/wip-add-bench-log-usage
Kefu Chai [Mon, 2 Dec 2019 08:43:48 +0000 (16:43 +0800)]
Merge pull request #31723 from rosinL/wip-add-bench-log-usage

test/bench_log: add usage function

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31840 from rosinL/wip-fix-dpdk
Kefu Chai [Mon, 2 Dec 2019 08:42:00 +0000 (16:42 +0800)]
Merge pull request #31840 from rosinL/wip-fix-dpdk

msg/async/dpdk: fix compilation errors when WITH_DPDK=on

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30631 from xxhdx1985126/wip-bluefs-sync-leak-fix
Kefu Chai [Mon, 2 Dec 2019 08:39:09 +0000 (16:39 +0800)]
Merge pull request #30631 from xxhdx1985126/wip-bluefs-sync-leak-fix

BlueFS: prevent BlueFS::dirty_files from being leaked when syncing metadata

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge PR #31900 into master
Sage Weil [Mon, 2 Dec 2019 02:16:31 +0000 (20:16 -0600)]
Merge PR #31900 into master

* refs/pull/31900/head:
mgr: fix debug typo

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #31442 into master
Sage Weil [Mon, 2 Dec 2019 02:12:00 +0000 (20:12 -0600)]
Merge PR #31442 into master

* refs/pull/31442/head:
kv/RocksDBStore: Add minimum key limit before invoking DeleteRange.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agomsg/async/dpdk: Porting seastar's init_port_start to fix to resolve compilation errors 31840/head
Chunsong Feng [Thu, 14 Nov 2019 02:10:34 +0000 (10:10 +0800)]
msg/async/dpdk: Porting seastar's init_port_start to fix to resolve compilation errors

Ceph currently uses dpdk19.05, seastar dpdk_device::init_port_start has
been upgraded to DPDK19.05, so porting changes to fix compiler error.

Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
5 years agoMerge pull request #31165 from votdev/improve_py_unittests
Laura Paduano [Fri, 29 Nov 2019 10:04:57 +0000 (11:04 +0100)]
Merge pull request #31165 from votdev/improve_py_unittests

mgr/dashboard: Refactor Python unittests and controller

Reviewed-by: Ernesto Puertat <epuertat@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #31856 from rzarzynski/wip-crimson-errorator-handle_error
Kefu Chai [Fri, 29 Nov 2019 05:49:26 +0000 (13:49 +0800)]
Merge pull request #31856 from rzarzynski/wip-crimson-errorator-handle_error

crimson/common/errorator.h: add handle_error() method.

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31853 from liewegas/fix-rn-typo
Kefu Chai [Fri, 29 Nov 2019 02:27:36 +0000 (10:27 +0800)]
Merge pull request #31853 from liewegas/fix-rn-typo

PendingReleaseNotes: fix typo

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31918 from rzarzynski/wip-crimson-errorator-simplify_safe_then
Kefu Chai [Fri, 29 Nov 2019 00:24:01 +0000 (08:24 +0800)]
Merge pull request #31918 from rzarzynski/wip-crimson-errorator-simplify_safe_then

crimson/common/errorator.h: simplify the compound safe_then() variant.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #31838 into master
Sage Weil [Thu, 28 Nov 2019 21:28:47 +0000 (15:28 -0600)]
Merge PR #31838 into master

* refs/pull/31838/head:
ceph-daemon: chown uid/gid files during `adopt`
ceph-daemon: use 'iglob' instead of 'glob'
ceph-daemon: Fix handling for symlinks on python2

Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agomgr/dashboard: Eye candy updates to datatable pages 31764/head
Volker Theile [Thu, 28 Nov 2019 15:54:06 +0000 (16:54 +0100)]
mgr/dashboard: Eye candy updates to datatable pages

- Introduce boolean and array pipes
- Introduce configurable 'badge' datatable column
- Refactor the Inventory, OSD, RBD, iSCSI, ... datatable pages

Signed-off-by: Volker Theile <vtheile@suse.com>
5 years agocrimson/common/errorator.h: simplify the compound safe_then() variant. 31918/head
Radoslaw Zarzynski [Thu, 28 Nov 2019 15:39:05 +0000 (16:39 +0100)]
crimson/common/errorator.h: simplify the compound safe_then() variant.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/common/errorator.h: add handle_error() method. 31856/head
Radoslaw Zarzynski [Mon, 25 Nov 2019 13:36:36 +0000 (14:36 +0100)]
crimson/common/errorator.h: add handle_error() method.

In contrast to `safe_then` it deals only with errors
and, on return, leaves the value type `future<ValueT>`
embodies unchanged.
While being basically a specialization of `safe_then`,
it's also a convenience method to squeeze boilerplate.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge PR #31914 into master
Sage Weil [Thu, 28 Nov 2019 14:54:19 +0000 (08:54 -0600)]
Merge PR #31914 into master

* refs/pull/31914/head:
mgr/orchestrator: set node labels to empty list if none specified

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agomgr/dashboard: support creating OSDs on spare devices (#30921)
Volker Theile [Thu, 28 Nov 2019 12:18:22 +0000 (13:18 +0100)]
mgr/dashboard: support creating OSDs on spare devices (#30921)

mgr/dashboard: support creating OSDs on spare devices

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agocmake: Add shared library as dpdk dependency 31841/head
luo rixin [Thu, 28 Nov 2019 12:18:09 +0000 (20:18 +0800)]
cmake: Add shared library as dpdk dependency

librte_eal.a refers to libpthread.so and libdl.so, and libceph-common.so
refers to librte_eal.a. Many test application link libceph-common.so
without linking pthread, it will cause link error.
Such as unittest_interval_set, target_link_libraries (unittest_interval_set
ceph-common)

Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
5 years agocmake: Add dpdk numa support
Chunsong Feng [Thu, 14 Nov 2019 04:35:37 +0000 (12:35 +0800)]
cmake: Add dpdk numa support

Find and link the numa library for DPDK.

Fixes: https://tracker.ceph.com/issues/42275
Signed-off-by: Hu Ye <yehu5@huawei.com>
Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
5 years agoMerge pull request #31785 from votdev/cleanup_remove_useless_var
Laura Paduano [Thu, 28 Nov 2019 10:44:50 +0000 (11:44 +0100)]
Merge pull request #31785 from votdev/cleanup_remove_useless_var

mgr/dashboard: Remove unused variable

Reviewed-by: Kiefer Chang kiefer.chang@suse.com
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #31720 from rhcs-dashboard/fix-42708-master
Laura Paduano [Thu, 28 Nov 2019 10:36:32 +0000 (11:36 +0100)]
Merge pull request #31720 from rhcs-dashboard/fix-42708-master

mgr/dashboard: remove traceback/version assertions

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #31843 from votdev/rename_list_pipe
Laura Paduano [Thu, 28 Nov 2019 10:28:20 +0000 (11:28 +0100)]
Merge pull request #31843 from votdev/rename_list_pipe

mgr/dashboard: Rename pipe list -> join

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
5 years agoos/bluestore: don't round_up_to in apply_for_bitset_range. 31903/head
Jianpeng Ma [Thu, 28 Nov 2019 08:23:01 +0000 (16:23 +0800)]
os/bluestore: don't round_up_to in apply_for_bitset_range.

I met the following error messages:
>sceph7: /home/Jianpeng/ceph/src/os/bluestore/bluestore_common.h: In function 'void apply_for_bitset_range(uint64_t, uint64_t, uint64_t, Bitset&, Func) [with Bitset = boost::dynamic_bitset<long unsigned int>; Func = BlueFS::_replay(bool, bool)::<lambda(uint64_t, boost::dynamic_bitset<long unsigned int>&)>; uint64_t = long unsigned int]' thread 7f7d55a3dd40 time 2019-11-27T23:26:05.949827+0800
>sceph7: /home/Jianpeng/ceph/src/os/bluestore/bluestore_common.h: 28: FAILED ceph_assert(end <= bitset.size())
>sceph7:  ceph version 15.0.0-7747-g22a9a28e28 (22a9a28e2859718c4168f5b3cf6e20a9186e18bc) octopus (dev)
>sceph7:  1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x14f) [0x56322c4440ef]
>sceph7:  2: (()+0x50d2d9) [0x56322c4442d9]
>sceph7:  3: (BlueFS::_replay(bool, bool)+0x5639) [0x56322cb51e49]
>sceph7:  4: (BlueFS::mount()+0x269) [0x56322cb53289]
>sceph7:  5: (BlueStore::_open_bluefs(bool)+0x29e) [0x56322ca6e38e]
>sceph7:  6: (BlueStore::_open_db(bool, bool, bool)+0x59b) [0x56322ca6e9cb]
>sceph7:  7: (BlueStore::mkfs()+0x749) [0x56322caaa259]
>sceph7:  8: (OSD::mkfs(CephContext*, ObjectStore*, uuid_d, int)+0x1c8) [0x56322c5099e8]
>sceph7:  9: (main()+0x1787) [0x56322c4ab117]
>sceph7:  10: (__libc_start_main()+0xeb) [0x7f7d55b5fb6b]
>sceph7:  11: (_start()+0x2a) [0x56322c4de71a]
>sceph7: *** Caught signal (Aborted) **
>sceph7:  in thread 7f7d55a3dd40 thread_name:ceph-osd

If bdev[i]->get_size() / alloc_size[i] != 0,  round_up_to(off+lengh,alloc_size[i])/alloc_size is larger than(one)
ownend_blocks[i].size().

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
5 years agomgr/orchestrator: set node labels to empty list if none specified 31914/head
Tim Serong [Thu, 28 Nov 2019 05:25:21 +0000 (16:25 +1100)]
mgr/orchestrator: set node labels to empty list if none specified

f06366836ff tries to ' '.join(node.labels), which raises an exception
if labels is None, so we need to default it to an empty list.

Signed-off-by: Tim Serong <tserong@suse.com>
5 years agoosd: remove useless ceph_assert. 31915/head
Jianpeng Ma [Thu, 28 Nov 2019 05:21:49 +0000 (13:21 +0800)]
osd: remove useless ceph_assert.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
5 years agoMerge pull request #31588 from usefulalgorithm/patch-1
Neha Ojha [Thu, 28 Nov 2019 01:33:38 +0000 (17:33 -0800)]
Merge pull request #31588 from usefulalgorithm/patch-1

doc/rados/operations: OSD_OUT_OF_ORDER_FULL fullness order is wrong

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agotest: Add test case based on Xie script in commit comment 31774/head
David Zafman [Wed, 27 Nov 2019 18:50:01 +0000 (10:50 -0800)]
test: Add test case based on Xie script in commit comment

Other test fixes to reflect changes

Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agoosd: ceph_pg_upmaps() use any overfull when there are still underfull
David Zafman [Wed, 27 Nov 2019 18:48:30 +0000 (10:48 -0800)]
osd: ceph_pg_upmaps() use any overfull when there are still underfull

Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agoosd: Create more_underfull with below target that aren't in underfull
David Zafman [Tue, 26 Nov 2019 23:19:01 +0000 (15:19 -0800)]
osd: Create more_underfull with below target that aren't in underfull

Use more_underfull for finding remaps for overfull OSDs

Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agoosd: calc_pg_upmaps() pick most overfull remap from try_pg_upmap()
David Zafman [Tue, 26 Nov 2019 05:38:16 +0000 (21:38 -0800)]
osd: calc_pg_upmaps() pick most overfull remap from try_pg_upmap()

Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agoosd: ceph_pg_upmaps() use max_deviation to determine perfect distribution
David Zafman [Fri, 15 Nov 2019 05:10:28 +0000 (21:10 -0800)]
osd: ceph_pg_upmaps() use max_deviation to determine perfect distribution

Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agotools: osdmaptool sync with balancer module behavior
David Zafman [Sat, 9 Nov 2019 00:23:14 +0000 (16:23 -0800)]
tools: osdmaptool sync with balancer module behavior

This can be backported only to nautilus

Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agotools: osdmaptool: Perform upmap calculation as ceph-mgr does
David Zafman [Thu, 7 Nov 2019 04:32:48 +0000 (20:32 -0800)]
tools: osdmaptool: Perform upmap calculation as ceph-mgr does

This is the backportable commit that works with older balancer module.py

Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agoosd: For balancer crush needs the rule passed to get_parent_of_type()
David Zafman [Wed, 20 Nov 2019 06:21:00 +0000 (22:21 -0800)]
osd: For balancer crush needs the rule passed to get_parent_of_type()

Fixes: https://tracker.ceph.com/issues/42718
Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agoosdmaptool: Match default max value of 10
David Zafman [Thu, 7 Nov 2019 04:31:21 +0000 (20:31 -0800)]
osdmaptool: Match default max value of 10

Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agotools: odsmaptool truncate target upmap file
David Zafman [Wed, 20 Nov 2019 19:55:15 +0000 (11:55 -0800)]
tools: odsmaptool truncate target upmap file

Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agomgr: Fix balancer print
David Zafman [Wed, 20 Nov 2019 22:08:24 +0000 (14:08 -0800)]
mgr: Fix balancer print

Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agoMerge PR #31870 into master
Sage Weil [Wed, 27 Nov 2019 20:20:33 +0000 (14:20 -0600)]
Merge PR #31870 into master

* refs/pull/31870/head:
ceph-daemon: fix `systemctl is-enabled` bool

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #31886 into master
Sage Weil [Wed, 27 Nov 2019 20:20:04 +0000 (14:20 -0600)]
Merge PR #31886 into master

* refs/pull/31886/head:
ceph-daemon: error out if not root
ceph-daemon: user-friendly exception/error messages
ceph-daemon: user-friendly exception/error messages

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #31883 from jan--f/ceph-volume-code-owner
Jan Fajerski [Wed, 27 Nov 2019 15:36:23 +0000 (16:36 +0100)]
Merge pull request #31883 from jan--f/ceph-volume-code-owner

github/codeowners: add ceph-volume

5 years agoMerge PR #31892 into master
Sage Weil [Wed, 27 Nov 2019 14:36:12 +0000 (08:36 -0600)]
Merge PR #31892 into master

* refs/pull/31892/head:
ceph-daemon: seek relative to the start of file

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #31899 into master
Sage Weil [Wed, 27 Nov 2019 14:04:14 +0000 (08:04 -0600)]
Merge PR #31899 into master

* refs/pull/31899/head:
mgr: drop session with Ceph daemon when not ready
mgr: improve debug message information

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoceph-daemon: error out if not root 31886/head
Sage Weil [Wed, 27 Nov 2019 14:01:45 +0000 (08:01 -0600)]
ceph-daemon: error out if not root

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: user-friendly exception/error messages
Michael Fritch [Wed, 27 Nov 2019 03:30:25 +0000 (20:30 -0700)]
ceph-daemon: user-friendly exception/error messages

- Rename `CDError` to `Error`
- Display traceback on console when `-v` is specified
- Other misc clean-up

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #30262 from sebastian-philipp/orchestrator-pomise-future
Sebastian Wagner [Wed, 27 Nov 2019 13:58:21 +0000 (14:58 +0100)]
Merge pull request #30262 from sebastian-philipp/orchestrator-pomise-future

mgr/orchestrator: Make Completions composable

Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Joshua Schmid <jschmid@suse.de>
5 years agomgr/ssh: Disable host labels. 30262/head
Sebastian Wagner [Wed, 27 Nov 2019 12:49:02 +0000 (13:49 +0100)]
mgr/ssh: Disable host labels.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #31896 from rsevero/missing_virtualenv
Kefu Chai [Wed, 27 Nov 2019 12:48:40 +0000 (20:48 +0800)]
Merge pull request #31896 from rsevero/missing_virtualenv

doc: add missing virtualenv for build-doc

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/orchestrator: use finalize to set TrivialReadCompletion result
Tim Serong [Mon, 25 Nov 2019 04:43:25 +0000 (15:43 +1100)]
mgr/orchestrator: use finalize to set TrivialReadCompletion result

This is needed to correctly set the state of the completion, so that
Completion.has_result returns true.  Without this, _orchestrator_wait()
will spin forever if given a TrivialReadCompletion.

Signed-off-by: Tim Serong <tserong@suse.com>
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/orchestrator: add pretty_print()
Sebastian Wagner [Thu, 21 Nov 2019 14:18:10 +0000 (15:18 +0100)]
mgr/orchestrator: add pretty_print()

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/ssh: Fix Promises
Sebastian Wagner [Mon, 11 Nov 2019 09:50:21 +0000 (10:50 +0100)]
mgr/ssh: Fix Promises

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoimport typing optionally
Sebastian Wagner [Tue, 1 Oct 2019 09:54:21 +0000 (11:54 +0200)]
import typing optionally

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoFix testing error
Sebastian Wagner [Tue, 1 Oct 2019 09:49:39 +0000 (11:49 +0200)]
Fix testing error

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/deepsea: Fixed DeepSeaReadCompletion arguments
Sebastian Wagner [Fri, 27 Sep 2019 14:52:17 +0000 (16:52 +0200)]
mgr/deepsea: Fixed DeepSeaReadCompletion arguments

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/orchestrator: fix tests
Sebastian Wagner [Tue, 17 Sep 2019 08:53:26 +0000 (10:53 +0200)]
mgr/orchestrator: fix tests

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomake check fixes
Sebastian Wagner [Mon, 16 Sep 2019 13:41:07 +0000 (15:41 +0200)]
make check fixes

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/orchstrator: Removed all type anotations incompatible to Python 2
Sebastian Wagner [Thu, 12 Sep 2019 13:31:34 +0000 (15:31 +0200)]
mgr/orchstrator: Removed all type anotations incompatible to Python 2

* Reduce mypy's type checking capability
* Remove useful code documentation

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agodoc/orchestrator: Adapted to new Completions
Sebastian Wagner [Thu, 12 Sep 2019 10:16:03 +0000 (12:16 +0200)]
doc/orchestrator: Adapted to new Completions

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/orchestrator: add cancel
Sebastian Wagner [Thu, 12 Sep 2019 08:25:21 +0000 (10:25 +0200)]
mgr/orchestrator: add cancel

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoqa/orchestrator: Adapt teuthology test to new completions
Sebastian Wagner [Mon, 9 Sep 2019 09:21:54 +0000 (11:21 +0200)]
qa/orchestrator: Adapt teuthology test to new completions

Also: Adapt mgr/test_orchestrator to new completions

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/deepsea: Adapt to new orchestrator completions
Sebastian Wagner [Fri, 6 Sep 2019 10:57:25 +0000 (12:57 +0200)]
mgr/deepsea: Adapt to new orchestrator completions

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/ansible: Adapt to new orchestrator completions
Sebastian Wagner [Fri, 6 Sep 2019 08:45:30 +0000 (10:45 +0200)]
mgr/ansible: Adapt to new orchestrator completions

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/ssh: Adapt ssh orch to new Completions interface
Sebastian Wagner [Fri, 30 Aug 2019 16:08:46 +0000 (18:08 +0200)]
mgr/ssh: Adapt ssh orch to new Completions interface

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/rook: Adapt to new completions
Sebastian Wagner [Fri, 30 Aug 2019 13:10:10 +0000 (15:10 +0200)]
mgr/rook: Adapt to new completions

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/orchestrator: Introduce composable completions
Sebastian Wagner [Mon, 26 Aug 2019 12:00:32 +0000 (14:00 +0200)]
mgr/orchestrator: Introduce composable completions

Also:

* unify Read and Write completions
* Distinguish should_wait and is_finished
* Removed `all_hosts` parameter to `osd_create`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/orchestrator: rename wait() -> process()
Sebastian Wagner [Thu, 22 Aug 2019 13:53:00 +0000 (15:53 +0200)]
mgr/orchestrator: rename wait() -> process()

Because wait() should actually not wait!

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #31904 from tchaikov/wip-crimson-stop-msgr-after-stopping-osd
Kefu Chai [Wed, 27 Nov 2019 11:46:42 +0000 (19:46 +0800)]
Merge pull request #31904 from tchaikov/wip-crimson-stop-msgr-after-stopping-osd

crimson: stop osd before stopping messengers

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agomgr/dashboard: Remove unused variable 31785/head
Volker Theile [Thu, 21 Nov 2019 12:57:27 +0000 (13:57 +0100)]
mgr/dashboard: Remove unused variable

Signed-off-by: Volker Theile <vtheile@suse.com>
5 years agomgr/dashboard: Rename pipe list -> join 31843/head
Volker Theile [Mon, 25 Nov 2019 09:30:07 +0000 (10:30 +0100)]
mgr/dashboard: Rename pipe list -> join

Signed-off-by: Volker Theile <vtheile@suse.com>
5 years agocrimson: stop osd before stopping messengers 31904/head
Kefu Chai [Wed, 27 Nov 2019 09:26:46 +0000 (17:26 +0800)]
crimson: stop osd before stopping messengers

so we can drain all pending tasks referencing messenger before
destroying it, otherwise they will be using a already-stopped
messenger when they are still alive.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #31756 into master
Patrick Donnelly [Tue, 26 Nov 2019 23:53:48 +0000 (15:53 -0800)]
Merge PR #31756 into master

* refs/pull/31756/head:
pybind / cephfs: remove static typing in LibCephFS.chown

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agomgr: fix debug typo 31900/head
Patrick Donnelly [Tue, 26 Nov 2019 23:44:37 +0000 (15:44 -0800)]
mgr: fix debug typo

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #31828 into master
Sage Weil [Tue, 26 Nov 2019 22:18:44 +0000 (16:18 -0600)]
Merge PR #31828 into master

* refs/pull/31828/head:
mgr/orchestrator: include container_image in 'service ls' output
ceph-daemon: include container_image_name and container_image_id in 'ls' output
common/options: default to ceph/ceph:latest-master-devel (for now)

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #31854 into master
Sage Weil [Tue, 26 Nov 2019 22:18:28 +0000 (16:18 -0600)]
Merge PR #31854 into master

* refs/pull/31854/head:
mgr/orchestrator_cli: print table for 'host ls'
mgr/ssh: populate labels
mgr/orchestrator: add 'labels' property to InventoryNode
mgr/ssh: add/remove labels
mgr/orchestrator: orchestrator host label {add,rm}
mgr/ssh: add explicit host list

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #31864 into master
Sage Weil [Tue, 26 Nov 2019 22:17:51 +0000 (16:17 -0600)]
Merge PR #31864 into master

* refs/pull/31864/head:
osd/PeeringState: clear LAGGY and WAIT states on exiting Started

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
5 years agoMerge PR #31865 into master
Sage Weil [Tue, 26 Nov 2019 22:17:05 +0000 (16:17 -0600)]
Merge PR #31865 into master

* refs/pull/31865/head:
cls/rbd: improve efficiency of mirror image status queries

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge PR #31866 into master
Sage Weil [Tue, 26 Nov 2019 22:16:33 +0000 (16:16 -0600)]
Merge PR #31866 into master

* refs/pull/31866/head:
osd/SnapMirror: no need to record purged_snaps every epoch

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agomgr: drop session with Ceph daemon when not ready 31899/head
Patrick Donnelly [Tue, 26 Nov 2019 20:49:01 +0000 (12:49 -0800)]
mgr: drop session with Ceph daemon when not ready

If the mgr is waiting on daemon metadata from the mons, it has no
DaemonState associated with the daemon yet. If we try to process this
MgrOpen, the metadata sent by the daemon (like its config) will not be
recorded.

Fixes: https://tracker.ceph.com/issues/43037
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agomgr: improve debug message information
Patrick Donnelly [Tue, 26 Nov 2019 20:20:26 +0000 (12:20 -0800)]
mgr: improve debug message information

Connection pointer is not helpful.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agodoc: missing virtualenv for build-doc 31896/head
Rodrigo Severo [Tue, 26 Nov 2019 19:01:54 +0000 (16:01 -0300)]
doc: missing virtualenv for build-doc

The install deps command recommended by admin/build-doc doesn't install virtualenv which is required by admin/build-doc.

After manually installing virtualenv, admin/build-doc runned without issues.

Signed-off-by: Rodrigo Severo <rodrigo@fabricadeideias.com>
5 years agoMerge PR #27467 into master
Patrick Donnelly [Tue, 26 Nov 2019 17:47:40 +0000 (09:47 -0800)]
Merge PR #27467 into master

* refs/pull/27467/head:
cephfs-shell: add snapshot management

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #31871 from smithfarm/wip-43021
Nathan Cutler [Tue, 26 Nov 2019 17:42:58 +0000 (18:42 +0100)]
Merge pull request #31871 from smithfarm/wip-43021

doc: mention --namespace option in rados manpage

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
5 years agoceph-daemon: seek relative to the start of file 31892/head
Michael Fritch [Tue, 26 Nov 2019 16:44:38 +0000 (09:44 -0700)]
ceph-daemon: seek relative to the start of file

python3 only allows seeks relative to the start of a text file

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agodoc: mention --namespace option in rados manpage 31871/head
Nathan Cutler [Tue, 26 Nov 2019 07:04:17 +0000 (08:04 +0100)]
doc: mention --namespace option in rados manpage

Fixes: https://tracker.ceph.com/issues/43021
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoceph-daemon: user-friendly exception/error messages
Sage Weil [Tue, 26 Nov 2019 14:08:07 +0000 (08:08 -0600)]
ceph-daemon: user-friendly exception/error messages

We don't want tracebacks for most error conditions in ceph-daemon.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/orchestrator_cli: print table for 'host ls' 31854/head
Sage Weil [Mon, 25 Nov 2019 14:44:54 +0000 (08:44 -0600)]
mgr/orchestrator_cli: print table for 'host ls'

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: populate labels
Sage Weil [Mon, 25 Nov 2019 14:44:41 +0000 (08:44 -0600)]
mgr/ssh: populate labels

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/orchestrator: add 'labels' property to InventoryNode
Sage Weil [Mon, 25 Nov 2019 14:44:37 +0000 (08:44 -0600)]
mgr/orchestrator: add 'labels' property to InventoryNode

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: add/remove labels
Sage Weil [Mon, 25 Nov 2019 14:32:59 +0000 (08:32 -0600)]
mgr/ssh: add/remove labels

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/orchestrator: orchestrator host label {add,rm}
Sage Weil [Mon, 25 Nov 2019 14:32:53 +0000 (08:32 -0600)]
mgr/orchestrator: orchestrator host label {add,rm}

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: add explicit host list
Sage Weil [Mon, 25 Nov 2019 14:22:41 +0000 (08:22 -0600)]
mgr/ssh: add explicit host list

Keep the host list in an explicit 'inventory' key, and provide a dict for
each host so that we can keep other metadata (like labels).

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #31837 into master
Sage Weil [Tue, 26 Nov 2019 13:11:05 +0000 (07:11 -0600)]
Merge PR #31837 into master

* refs/pull/31837/head:
ceph-daemon: add additional debug logging

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agogithub/codeowners: add ceph-volume 31883/head
Jan Fajerski [Tue, 26 Nov 2019 12:49:41 +0000 (13:49 +0100)]
github/codeowners: add ceph-volume

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
5 years agoMerge pull request #31874 from tchaikov/wip-crimson-cyanstore-restructure
Kefu Chai [Tue, 26 Nov 2019 12:13:40 +0000 (20:13 +0800)]
Merge pull request #31874 from tchaikov/wip-crimson-cyanstore-restructure

crimson: move os/cyan_* down to os/cyanstore/*

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agomgr/dashboard: Refactor Python unittests 31165/head
Volker Theile [Wed, 6 Nov 2019 14:02:49 +0000 (15:02 +0100)]
mgr/dashboard: Refactor Python unittests

* Make use of the KVStoreMockMixin class to get rid off duplicate code.
* Fake the index.html file to be able to run tests/test_home.py locally without building the frontend in production mode.
* Encapsulate helper functions in controllers/home.py, otherwise tests/test_feature_toggles.py need to fake the filesystem because load_controllers() will load the home.py controller and fail due missing files in the filesystem.

Signed-off-by: Volker Theile <vtheile@suse.com>