]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agodoc: broken link on troubleshooting-mon page 25312/head
James McClune [Thu, 29 Nov 2018 03:10:33 +0000 (22:10 -0500)]
doc: broken link on troubleshooting-mon page
Fixes: https://tracker.ceph.com/issues/37451
This fix involves adding :ref: labels to the add-or-rm-mons.rst
page. I also added :ref: labels for other headings within
add-or-rm-mons.rst (for future reference).

Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>
6 years agoMerge PR #25272 into master
Sage Weil [Wed, 28 Nov 2018 17:34:57 +0000 (11:34 -0600)]
Merge PR #25272 into master

* refs/pull/25272/head:
qa: add simple test-volumes.sh workunit and run it from fs/basic_functional
vstart.sh: create default fs via 'fs volume create'
mgr/volumes: fix oremote
mon/MgrMonitor: enable volumes module by default
mgr: create `volumes` module
mgr: cleaner constructor for CommandResult
mgr: block for latest osdmap after command execution
mgr: add MgrModule.mon_command helper
ceph_volume_client: enable using existing rados inst
mon: give ceph-mgr access to 'fs' commands

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
6 years agoMerge pull request #25160 from theanalyst/rgw-empty-zg-fix
Casey Bodley [Wed, 28 Nov 2018 15:24:13 +0000 (10:24 -0500)]
Merge pull request #25160 from theanalyst/rgw-empty-zg-fix

rgw: handle cases around zone deletion

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #24662 from theanalyst/reshard-stale-cleanup
Matt Benjamin [Wed, 28 Nov 2018 15:22:46 +0000 (10:22 -0500)]
Merge pull request #24662 from theanalyst/reshard-stale-cleanup

rgw: reshard stale instance cleanup

6 years agoqa: add simple test-volumes.sh workunit and run it from fs/basic_functional 25272/head
Sage Weil [Wed, 28 Nov 2018 14:50:00 +0000 (08:50 -0600)]
qa: add simple test-volumes.sh workunit and run it from fs/basic_functional

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25290 from noahdesu/dashboard-tox-workdir
Lenz Grimmer [Wed, 28 Nov 2018 11:17:39 +0000 (12:17 +0100)]
Merge pull request #25290 from noahdesu/dashboard-tox-workdir

mgr/dashboard: use dedicated tox working dir

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
6 years agoMerge pull request #25179 from tspmelo/wip-check-i18n
Lenz Grimmer [Wed, 28 Nov 2018 10:19:06 +0000 (11:19 +0100)]
Merge pull request #25179 from tspmelo/wip-check-i18n

mgr/dashboard: Add i18n validation script

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agoMerge pull request #24900 from zmc/wip-minimal-health
Lenz Grimmer [Wed, 28 Nov 2018 09:56:40 +0000 (10:56 +0100)]
Merge pull request #24900 from zmc/wip-minimal-health

mgr/dashboard: Replace dashboard service

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #25280 from tchaikov/wip-ceph-py3
Kefu Chai [Wed, 28 Nov 2018 05:14:19 +0000 (13:14 +0800)]
Merge pull request #25280 from tchaikov/wip-ceph-py3

ceph.in: write bytes to stdout in raw_write()

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #25261 from sebastian-philipp/mgr-handle-command-result
Kefu Chai [Wed, 28 Nov 2018 05:12:05 +0000 (13:12 +0800)]
Merge pull request #25261 from sebastian-philipp/mgr-handle-command-result

mgr: Add `HandleCommandResult` namedtuple

6 years agoMerge pull request #25255 from tchaikov/wip-ceph-dencoder-without-cephfs
Kefu Chai [Wed, 28 Nov 2018 05:10:05 +0000 (13:10 +0800)]
Merge pull request #25255 from tchaikov/wip-ceph-dencoder-without-cephfs

tools/ceph-dencoder: conditionally link against mds

6 years agoMerge pull request #25244 from trociny/wip-crash-procname
Kefu Chai [Wed, 28 Nov 2018 05:08:53 +0000 (13:08 +0800)]
Merge pull request #25244 from trociny/wip-crash-procname

mgr/crash: add process name to crash metadata

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24990 from dragonylffly/wip-fix-bench
Kefu Chai [Wed, 28 Nov 2018 05:07:59 +0000 (13:07 +0800)]
Merge pull request #24990 from dragonylffly/wip-fix-bench

tools/rados: always call rados.shutdown() before exit()

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24939 from marcosps/simplify_examples
Kefu Chai [Wed, 28 Nov 2018 05:04:07 +0000 (13:04 +0800)]
Merge pull request #24939 from marcosps/simplify_examples

examples/librados: Remove not needed else clauses

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #24502 into master
Sage Weil [Wed, 28 Nov 2018 03:32:04 +0000 (21:32 -0600)]
Merge PR #24502 into master

* refs/pull/24502/head:
crushtool: implement --rebuild-class-roots command
crushtool: make --reweight re-sum choose_args weight-sets too
crushtool: --reweight should only reweight nonshadow roots
crush/CrushWrapper: reclassify: use default parent for created buckets
crush/CrushWrapper: reclassify: handle to-be-created buckets that we need twice
test/cli/crushtool/reclassify: add second gabe test case
crushtool: add --set-subtree-class; do not set class via --reclassify-root
test/cli/crushtool/reclassify: add reclassify test cases
doc/rados/operations/crush*: document reclassify
doc/rados/operations/crush: remove instructions for separate crush trees for ssd
crushtool: add --compare command
crushtool: implement --reclassify
crush/CrushCompiler: fix id scan to include class ids

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agocrushtool: implement --rebuild-class-roots command 24502/head
Sage Weil [Fri, 26 Oct 2018 17:40:32 +0000 (12:40 -0500)]
crushtool: implement --rebuild-class-roots command

This simply rebuilds the class roots.  Normally this should create no
change in the map since whatever was making changes to the map before
should have rebuild the shadow roots at that point.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocrushtool: make --reweight re-sum choose_args weight-sets too
Sage Weil [Fri, 26 Oct 2018 14:32:27 +0000 (09:32 -0500)]
crushtool: make --reweight re-sum choose_args weight-sets too

This ensures that the weights add us for each weight-set (and each
position).  Note that since we don't have anything that actually
creates positional weight-sets, the behavior here might not be what we
want in the end, but for the compat weight-sets (no position), we *do*
keep the weights as a properly summing tree.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocrushtool: --reweight should only reweight nonshadow roots
Sage Weil [Thu, 25 Oct 2018 20:16:34 +0000 (15:16 -0500)]
crushtool: --reweight should only reweight nonshadow roots

The shadow roots will be then be rebuilt accordingly.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocrush/CrushWrapper: reclassify: use default parent for created buckets
Sage Weil [Tue, 23 Oct 2018 19:16:17 +0000 (14:16 -0500)]
crush/CrushWrapper: reclassify: use default parent for created buckets

Note that these last 2 fixes also fix the 'h' test case.  \o/

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocrush/CrushWrapper: reclassify: handle to-be-created buckets that we need twice
Sage Weil [Tue, 23 Oct 2018 19:15:25 +0000 (14:15 -0500)]
crush/CrushWrapper: reclassify: handle to-be-created buckets that we need twice

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agotest/cli/crushtool/reclassify: add second gabe test case
Sage Weil [Tue, 16 Oct 2018 13:45:35 +0000 (08:45 -0500)]
test/cli/crushtool/reclassify: add second gabe test case

New adjusted test map from Dan.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocrushtool: add --set-subtree-class; do not set class via --reclassify-root
Sage Weil [Sun, 14 Oct 2018 19:57:59 +0000 (14:57 -0500)]
crushtool: add --set-subtree-class; do not set class via --reclassify-root

Sometimes we don't want the --reclassify-root to set the class of every
device because a small number of them are (correctly) a different class.
Allow both behaviors by adding a new, separate command to set the class
of all devices beneath a point in the hierarchy and do not implicitly do
that relabeling as part of --reclassify-root.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agotest/cli/crushtool/reclassify: add reclassify test cases
Sage Weil [Tue, 9 Oct 2018 17:54:34 +0000 (12:54 -0500)]
test/cli/crushtool/reclassify: add reclassify test cases

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agodoc/rados/operations/crush*: document reclassify
Sage Weil [Mon, 8 Oct 2018 21:51:11 +0000 (16:51 -0500)]
doc/rados/operations/crush*: document reclassify

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/dashboard: Replace dashboard service 24900/head
Zack Cerza [Mon, 29 Oct 2018 22:07:27 +0000 (16:07 -0600)]
mgr/dashboard: Replace dashboard service

This splits out the collection of health and log data from the
/api/dashboard/health controller into /api/health/{full,minimal} and
/api/logs/all.

/health/full contains all the data (minus logs) that /dashboard/health
did, whereas /health/minimal contains only what is needed for the health
component to function. /logs/all contains exactly what the logs portion
of /dashboard/health did.

By using /health/minimal, on a vstart cluster we pull ~1.4KB of data
every 5s, where we used to pull ~6KB; those numbers would get larger
with larger clusters. Once we split out log data, that will drop to
~0.4KB.

Fixes: http://tracker.ceph.com/issues/36675
Signed-off-by: Zack Cerza <zack@redhat.com>
6 years agoMerge PR #24923 into master
Patrick Donnelly [Tue, 27 Nov 2018 22:47:03 +0000 (14:47 -0800)]
Merge PR #24923 into master

* refs/pull/24923/head:
mds: properly update freeze_tree_state when fragmenting dirfrags

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomgr/dashboard: use dedicated tox working dir 25290/head
Noah Watkins [Tue, 27 Nov 2018 20:46:53 +0000 (12:46 -0800)]
mgr/dashboard: use dedicated tox working dir

Avoids conflicting with other test environments.

Fixes: https://tracker.ceph.com/issues/37405
Signed-off-by: Noah Watkins <nwatkins@redhat.com>
6 years agoMerge PR #24849 into master
Patrick Donnelly [Tue, 27 Nov 2018 22:23:20 +0000 (14:23 -0800)]
Merge PR #24849 into master

* refs/pull/24849/head:
client: remove redundant abort logic during dentry invalidation test

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #24886 into master
Patrick Donnelly [Tue, 27 Nov 2018 21:58:26 +0000 (13:58 -0800)]
Merge PR #24886 into master

* refs/pull/24886/head:
qa: fix delay type config name

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #24839 into master
Patrick Donnelly [Tue, 27 Nov 2018 21:53:50 +0000 (13:53 -0800)]
Merge PR #24839 into master

* refs/pull/24839/head:
ceph-volume-client: allow setting mode of CephFS volumes

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoAllow specifying a schema for unknown JObj keys
Zack Cerza [Thu, 8 Nov 2018 00:00:22 +0000 (17:00 -0700)]
Allow specifying a schema for unknown JObj keys

Signed-off-by: Zack Cerza <zack@redhat.com>
6 years agovstart.sh: create default fs via 'fs volume create'
Sage Weil [Tue, 27 Nov 2018 19:14:07 +0000 (13:14 -0600)]
vstart.sh: create default fs via 'fs volume create'

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/volumes: fix oremote
Sage Weil [Tue, 27 Nov 2018 04:05:01 +0000 (22:05 -0600)]
mgr/volumes: fix oremote

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/MgrMonitor: enable volumes module by default
Sage Weil [Tue, 27 Nov 2018 03:43:06 +0000 (21:43 -0600)]
mon/MgrMonitor: enable volumes module by default

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr: create `volumes` module
John Spray [Tue, 7 Aug 2018 14:19:41 +0000 (10:19 -0400)]
mgr: create `volumes` module

This encapsulates and extends ceph_volume_client, providing
similar functionality as a service from ceph-mgr.

We used to call CephFS namespaces "filesystems", and the
ceph_volume_client-created directories "volumes".  That
terminology changes in this module: namespaces are now "volumes",
and the directory-based entity is a "subvolume".

External systems can use librados to access the command
interface provided by this module, instead of using
ceph_volume_client directly.

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agoMerge PR #25020 into master
Patrick Donnelly [Tue, 27 Nov 2018 18:36:03 +0000 (10:36 -0800)]
Merge PR #25020 into master

* refs/pull/25020/head:
script/ceph-backport.sh: adjust to change in github API

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #25235 from sebastian-philipp/dashboard-fix-type-annotation-error
Lenz Grimmer [Tue, 27 Nov 2018 17:19:27 +0000 (18:19 +0100)]
Merge pull request #25235 from sebastian-philipp/dashboard-fix-type-annotation-error

qa/mgr/dashboard: Fix type annotation error.

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agomgr: Add `HandleCommandResult` namedtuple 25261/head
Sebastian Wagner [Mon, 26 Nov 2018 11:46:05 +0000 (12:46 +0100)]
mgr: Add `HandleCommandResult` namedtuple

Mostly a documentation improvement to make it obvious
what `handle_command` is supposed to return .

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #25268 from smithfarm/wip-37392
Kefu Chai [Tue, 27 Nov 2018 15:22:51 +0000 (23:22 +0800)]
Merge pull request #25268 from smithfarm/wip-37392

qa/workunits/rados/test_librados_build.sh: grab files from explicit git branch

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25129 from rzarzynski/wip-common-annotate
Kefu Chai [Tue, 27 Nov 2018 15:18:48 +0000 (23:18 +0800)]
Merge pull request #25129 from rzarzynski/wip-common-annotate

common: avoid the overhead of ANNOTATE_HAPPENS_* in NDEBUG builds.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agorgw: batch and process bucket instances 24662/head
Abhishek Lekshmanan [Wed, 17 Oct 2018 22:44:51 +0000 (00:44 +0200)]
rgw: batch and process bucket instances

Sort through and batch bucket instances so that multiple calls to reading
current bucket info and locking can be avoided. For the most trivial case when
the bucket is already deleted we exit early with all the stale instances. When
the bucket reshard is in progress we only process the stale entries with status
done, if the bucket is available for locking then we lock down and mark the
other instances as well.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agocli: use rgw-admin reshard stale-instances list/delete
Abhishek Lekshmanan [Mon, 15 Oct 2018 17:34:28 +0000 (19:34 +0200)]
cli: use rgw-admin reshard stale-instances list/delete

Add a delete command as well that clears the resharded instances. We print out
the json status to indicate success or error state

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoMerge pull request #25224 from sebastian-philipp/ceph-volume-fix-json
Alfredo Deza [Tue, 27 Nov 2018 15:05:31 +0000 (10:05 -0500)]
Merge pull request #25224 from sebastian-philipp/ceph-volume-fix-json

ceph-volume: fix JSON output in `inventory`

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #25256 from tchaikov/wip-kv-bench-cleanup
Kefu Chai [Tue, 27 Nov 2018 14:32:53 +0000 (22:32 +0800)]
Merge pull request #25256 from tchaikov/wip-kv-bench-cleanup

ceph_kvstorebench: include <errno.h> not asm-generic/errno.h

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agoMerge pull request #25073 from oshynsong/master
Casey Bodley [Tue, 27 Nov 2018 14:08:01 +0000 (09:08 -0500)]
Merge pull request #25073 from oshynsong/master

rgw: add list user admin OP API

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #25034 from smithfarm/wip-luminous-notes-12.2.10
Abhishek L [Tue, 27 Nov 2018 12:46:58 +0000 (13:46 +0100)]
Merge pull request #25034 from smithfarm/wip-luminous-notes-12.2.10

doc: Luminous v12.2.10 release notes

Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-By: Yuri Weinstein <yweinstein@redhat.com>
6 years agoceph.in: write bytes to stdout in raw_write() 25280/head
Kefu Chai [Tue, 27 Nov 2018 11:00:15 +0000 (19:00 +0800)]
ceph.in: write bytes to stdout in raw_write()

in python3, sys.stdout.buffer is an io.BufferedWriter, while in python2
`sys.__stdout__` is a plain file. the former only accepts "bytes". so if
we send it a "str", it complains:

TypeError: a bytes-like object is required, not 'str'

it happens when quitting from the interactive mode of ceph CLI. in that
case, `new_style_command()` returns a tuple of `0, '\n', ''`, where the
second element is a str.

in this change, we always send `bytes` to raw_stdout.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25107 from familyuu/pool
Lenz Grimmer [Tue, 27 Nov 2018 11:03:43 +0000 (12:03 +0100)]
Merge pull request #25107 from familyuu/pool

 mgr/dashboard: Allow renaming an existing Pool

Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoqa/mgr/dashboard: Fix type annotation error. 25235/head
Sebastian Wagner [Fri, 23 Nov 2018 13:45:34 +0000 (14:45 +0100)]
qa/mgr/dashboard: Fix type annotation error.

Also removed unused import

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agomgr/dashboard: Allow renaming an existing Pool 25107/head
guodan1 [Wed, 14 Nov 2018 12:34:03 +0000 (20:34 +0800)]
mgr/dashboard: Allow renaming an existing Pool
fixes: http://tracker.ceph.com/issues/36560
Signed-off-by: guodan1 <guodan1@lenovo.com>
6 years agomgr/crash: group by process name in 'ceph crash json_report' 25244/head
Mykola Golub [Sun, 25 Nov 2018 10:38:48 +0000 (12:38 +0200)]
mgr/crash: group by process name in 'ceph crash json_report'

It is almost the same for daemons like osd or mon, but much better
for 'client' daemons like rgw or rbd-mirror.

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agomgr/crash: add process name to 'ceph crash ls' output
Mykola Golub [Sun, 25 Nov 2018 10:35:15 +0000 (12:35 +0200)]
mgr/crash: add process name to 'ceph crash ls' output

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoglobal: add process_name to crash meta
Mykola Golub [Sun, 25 Nov 2018 10:33:15 +0000 (12:33 +0200)]
global: add process_name to crash meta

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #25251 from tchaikov/wip-bionic-dockerfile
Kefu Chai [Tue, 27 Nov 2018 06:30:45 +0000 (14:30 +0800)]
Merge pull request #25251 from tchaikov/wip-bionic-dockerfile

tests: add ubuntu 18.04 dockerfile

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
6 years agoMerge pull request #25245 from wjwithagen/wjw-fix-install-flake8
Kefu Chai [Tue, 27 Nov 2018 06:07:42 +0000 (14:07 +0800)]
Merge pull request #25245 from wjwithagen/wjw-fix-install-flake8

install-deps.sh: Update python requirements for FreeBSD

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25146 from noahdesu/separate-tox-workdir
Kefu Chai [Tue, 27 Nov 2018 06:01:12 +0000 (14:01 +0800)]
Merge pull request #25146 from noahdesu/separate-tox-workdir

mgr/insights: use dedicated tox working dir

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25177 from iotcg/master
Kefu Chai [Tue, 27 Nov 2018 05:09:22 +0000 (13:09 +0800)]
Merge pull request #25177 from iotcg/master

make-debs.sh: clean dir to allow building deb packages multiple times

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomgr: cleaner constructor for CommandResult
John Spray [Tue, 7 Aug 2018 13:48:56 +0000 (09:48 -0400)]
mgr: cleaner constructor for CommandResult

This is just to reduce the visual noise of all the
CommandResult("").  Nothing really uses the optional
tag part, but it's conceivably useful so let's not
rip it out just yet.

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agomgr: block for latest osdmap after command execution
John Spray [Thu, 8 Mar 2018 13:45:59 +0000 (13:45 +0000)]
mgr: block for latest osdmap after command execution

This is a hack, but as most of our python modules
currently use commands for osdmap manipulation,
it is a very useful one.

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agomgr: add MgrModule.mon_command helper
John Spray [Tue, 27 Nov 2018 03:38:34 +0000 (21:38 -0600)]
mgr: add MgrModule.mon_command helper

The flexibilty of send_command and CommandResult
is needed sometimes, but lots of places just want
a simpler synchronous command to the monitor.

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agotools/rados: always call rados.shutdown() before exit() 24990/head
Li Wang [Tue, 27 Nov 2018 03:35:53 +0000 (03:35 +0000)]
tools/rados: always call rados.shutdown() before exit()

When connected to ceph cluster, if call exit(1) directly, will cause the finisher
thread segmentation fault as follows,

Caught signal (Segmentation fault) **in thread 7f45377fe700 thread_name:fn_anonymous

run 'rados mapext' without other arguments could easily get it. This patch fixes it
by calling rados.shutdown() before exit()

Fixes: http://tracker.ceph.com/issues/36732
Signed-off-by: Li Wang <laurence.liwang@gmail.com>
6 years agotools/rados: use unique_ptr for better memory management
Li Wang [Tue, 27 Nov 2018 03:15:26 +0000 (03:15 +0000)]
tools/rados: use unique_ptr for better memory management

Signed-off-by: Li Wang <laurence.liwang@gmail.com>
6 years agoinstall-deps.sh: Update python requirements for FreeBSD 25245/head
Willem Jan Withagen [Sun, 25 Nov 2018 14:06:07 +0000 (15:06 +0100)]
install-deps.sh: Update python requirements for FreeBSD

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agoMerge pull request #25223 from smithfarm/wip-rhel-8-py3
Nathan Cutler [Mon, 26 Nov 2018 23:53:30 +0000 (00:53 +0100)]
Merge pull request #25223 from smithfarm/wip-rhel-8-py3

build/ops: rpm: RHEL 8 needs Python 3 build

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
6 years agoqa/workunits/rados/test_librados_build.sh: grab files from explicit git branch 25268/head
Nathan Cutler [Mon, 26 Nov 2018 23:33:36 +0000 (00:33 +0100)]
qa/workunits/rados/test_librados_build.sh: grab files from explicit git branch

Fixes: https://tracker.ceph.com/issues/37392
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agoceph_volume_client: enable using existing rados inst
John Spray [Thu, 9 Aug 2018 10:38:15 +0000 (06:38 -0400)]
ceph_volume_client: enable using existing rados inst

This is for mgr modules that need to use their own
self.rados instance rather than constructing
a fresh one.

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agomon: give ceph-mgr access to 'fs' commands
John Spray [Wed, 8 Aug 2018 17:31:40 +0000 (13:31 -0400)]
mon: give ceph-mgr access to 'fs' commands

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #25215 from majianpeng/test_shared_cache_memory_leak
Gregory Farnum [Mon, 26 Nov 2018 17:50:39 +0000 (09:50 -0800)]
Merge pull request #25215 from majianpeng/test_shared_cache_memory_leak

test_shared_cache: fix memory leak.

6 years agomgr/dashboard: Add i18n validation script 25179/head
Tiago Melo [Fri, 23 Nov 2018 11:32:38 +0000 (11:32 +0000)]
mgr/dashboard: Add i18n validation script

This will check if there are new strings, validate them and ask the developer
to commit and fix those.

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge PR #24798 into master
Sage Weil [Mon, 26 Nov 2018 17:25:19 +0000 (11:25 -0600)]
Merge PR #24798 into master

* refs/pull/24798/head:
fix python collections module warning for v3.7 and above

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #25054 into master
Sage Weil [Mon, 26 Nov 2018 17:24:58 +0000 (11:24 -0600)]
Merge PR #25054 into master

* refs/pull/25054/head:
test/objectstore: enable fsck when needed.

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25247 from wjwithagen/wjw-fix-linker
Kefu Chai [Mon, 26 Nov 2018 16:33:52 +0000 (00:33 +0800)]
Merge pull request #25247 from wjwithagen/wjw-fix-linker

do_freebsd.sh: FreeBSD building needs the llvm linker

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25194 from dillaman/wip-36650
Mykola Golub [Mon, 26 Nov 2018 16:27:37 +0000 (18:27 +0200)]
Merge pull request #25194 from dillaman/wip-36650

librbd: extend API to include parent/child namespaces and image ids

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #24831 from p-na/wip-pna-cleanup-fe
Lenz Grimmer [Mon, 26 Nov 2018 15:31:37 +0000 (16:31 +0100)]
Merge pull request #24831 from p-na/wip-pna-cleanup-fe

mgr/dashboard: Cleanup

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge PR #24732 into master
Sage Weil [Mon, 26 Nov 2018 15:21:22 +0000 (09:21 -0600)]
Merge PR #24732 into master

* refs/pull/24732/head:
os/bluestore: fix missing assert->ceph_assert replacement.
os/bluestore: add bluefs perf counters to track DB/WAL/Slow volume

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #24499 into master
Sage Weil [Mon, 26 Nov 2018 15:20:39 +0000 (09:20 -0600)]
Merge PR #24499 into master

* refs/pull/24499/head:
common: reorder bl::iter to reduce its size from 40 to 32 on x86_64.

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agoMerge PR #25248 into master
Sage Weil [Mon, 26 Nov 2018 15:20:21 +0000 (09:20 -0600)]
Merge PR #25248 into master

* refs/pull/25248/head:
mgr: fix Clang warning on superfluous brackets

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #24949 into master
Sage Weil [Mon, 26 Nov 2018 14:33:52 +0000 (08:33 -0600)]
Merge PR #24949 into master

* refs/pull/24949/head:
include/ceph_features: note kernel versions some features appear

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoceph-volume: fix JSON output in `inventory` 25224/head
Sebastian Wagner [Thu, 22 Nov 2018 17:01:50 +0000 (18:01 +0100)]
ceph-volume: fix JSON output in `inventory`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #25225 from Aran85/sangfor-aff
Kefu Chai [Mon, 26 Nov 2018 12:31:32 +0000 (20:31 +0800)]
Merge pull request #25225 from Aran85/sangfor-aff

mailmap,organization: Update sangfor affiliation

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25150 from majianpeng/shared_cache_race_bug
Kefu Chai [Mon, 26 Nov 2018 10:52:21 +0000 (18:52 +0800)]
Merge pull request #25150 from majianpeng/shared_cache_race_bug

common/shared_cache: fix racing issues

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25165 from hsiang41/mgr/diskprediction_cloud_global_config
Kefu Chai [Mon, 26 Nov 2018 10:51:29 +0000 (18:51 +0800)]
Merge pull request #25165 from hsiang41/mgr/diskprediction_cloud_global_config

mgr: Diskprediction cloud activate when config changes

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25105 from tchaikov/wip-ceph-mutex-common
Kefu Chai [Mon, 26 Nov 2018 10:49:12 +0000 (18:49 +0800)]
Merge pull request #25105 from tchaikov/wip-ceph-mutex-common

common: Mutex -> ceph::mutex

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Adam Emerson <aemerson@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agotools/ceph-dencoder: conditionally link against mds 25255/head
Kefu Chai [Mon, 26 Nov 2018 07:49:51 +0000 (15:49 +0800)]
tools/ceph-dencoder: conditionally link against mds

ceph-dencoder should not link against libmds if WITH_CEPHFS is OFF.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomailmap,orgnization: Update sangfor affiliation 25225/head
Zengran Zhang [Fri, 23 Nov 2018 02:06:33 +0000 (10:06 +0800)]
mailmap,orgnization: Update sangfor affiliation

Signed-off-by: Zengran Zhang <zhangzengran@sangfor.com.cn>
6 years agoMerge pull request #23834 from DikshaGodbole/wip-feature-24571
Lenz Grimmer [Mon, 26 Nov 2018 08:11:15 +0000 (09:11 +0100)]
Merge pull request #23834 from DikshaGodbole/wip-feature-24571

mgr/dashboard: Move Cluster/Audit logs from front page to dedicated Logs page

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoceph_kvstorebench: include <errno.h> not asm-generic/errno.h 25256/head
Kefu Chai [Mon, 26 Nov 2018 08:08:09 +0000 (16:08 +0800)]
ceph_kvstorebench: include <errno.h> not asm-generic/errno.h

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25239 from cbodley/wip-rgw-rados-aio-cleanup
Yehuda Sadeh [Mon, 26 Nov 2018 06:28:10 +0000 (08:28 +0200)]
Merge pull request #25239 from cbodley/wip-rgw-rados-aio-cleanup

rgw: remove unused aio helper functions

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge PR #17526 into master
Sage Weil [Mon, 26 Nov 2018 03:21:02 +0000 (21:21 -0600)]
Merge PR #17526 into master

* refs/pull/17526/head:
qa/tasks/ceph_manager: avoid test_map_discontinuity stall with too few up osds

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
6 years agoMerge PR #21444 into master
Sage Weil [Mon, 26 Nov 2018 03:20:44 +0000 (21:20 -0600)]
Merge PR #21444 into master

* refs/pull/21444/head:
qa: Replace 'ceph' with cluster name in restart()

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #25185 into master
Sage Weil [Mon, 26 Nov 2018 03:20:18 +0000 (21:20 -0600)]
Merge PR #25185 into master

* refs/pull/25185/head:
auth/AuthSessionHandler: no handler if no session key

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agotests: add ubuntu 18.04 dockerfile 25251/head
Kefu Chai [Mon, 26 Nov 2018 03:18:13 +0000 (11:18 +0800)]
tests: add ubuntu 18.04 dockerfile

ubuntu bionic is an LTS release. while 17.04 is not. so move 17.04 to
18.04

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr: fix Clang warning on superfluous brackets 25248/head
Willem Jan Withagen [Sun, 25 Nov 2018 14:44:06 +0000 (15:44 +0100)]
mgr: fix Clang warning on superfluous brackets

```
/home/jenkins/workspace/ceph-master/src/mgr/OSDPerfMetricTypes.h:105:19: warning: braces around scalar initializer [-Wbraced-scalar-init]
        d.regex = {d.regex_str.c_str()};
                  ^~~~~~~~~~~~~~~~~~~~~
1 warning generated.
```

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agobuild: FreeBSD building needs the llvm linker 25247/head
Willem Jan Withagen [Sun, 25 Nov 2018 14:38:54 +0000 (15:38 +0100)]
build: FreeBSD building needs the llvm linker

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agorbd: avoid usage of newly deprecated API methods 25194/head
Jason Dillaman [Thu, 22 Nov 2018 14:37:45 +0000 (09:37 -0500)]
rbd: avoid usage of newly deprecated API methods

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agorbd: expose optional namespace in parent/child image output
Jason Dillaman [Wed, 21 Nov 2018 03:54:08 +0000 (22:54 -0500)]
rbd: expose optional namespace in parent/child image output

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: expand API to include namespaces and image ids
Jason Dillaman [Wed, 21 Nov 2018 00:06:23 +0000 (19:06 -0500)]
librbd: expand API to include namespaces and image ids

The get parent and list children methods now return a common
struct that includes the full pool details (including the
optional namespace). Additionally, a new image list method has
been added which includes both the name and id (of v2 images).

Fixes: http://tracker.ceph.com/issues/36650
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #25206 from dillaman/wip-36622
Mykola Golub [Sun, 25 Nov 2018 08:56:21 +0000 (10:56 +0200)]
Merge pull request #25206 from dillaman/wip-36622

pybind/rbd: add namespace helper API methods

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agomake-debs.sh: clean dir to avoid build deb packages error 25177/head
Changcheng Liu [Wed, 21 Nov 2018 12:14:16 +0000 (20:14 +0800)]
make-debs.sh: clean dir to avoid build deb packages error

Without this patch, it'll hit build error in the 2nd time.
Example:
make-deb.sh  #no error: first time
make-deb.sh  #hit error: second time

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
6 years agomgr/dashboard: Added new logs component 23834/head
Diksha Godbole [Wed, 29 Aug 2018 06:56:59 +0000 (12:26 +0530)]
mgr/dashboard: Added new logs component

Added new Logs component and created a cluster->logs menu item. Moved the logs from the dashboard home page to the dedicated logs page.Additional comments resolved.Dropped Logs from health component.

Fixes: https://tracker.ceph.com/issues/24571
Signed-off-by: Diksha Godbole <diksha.godbole@gmail.com>