Commit Graph

103894 Commits

Author SHA1 Message Date
Sebastian Wagner
057d5ee7fa script/run_mypy: Support mypy 0.740
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Co-Authored-By: Ernesto Puerta <37327689+epuertat@users.noreply.github.com>
2019-11-04 10:36:07 +01:00
Sebastian Wagner
8ece36241e
Merge pull request #31191 from sebastian-philipp/ceph-volume-pr-template
github: Add ceph-volume to list of jenkins commands

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
2019-11-04 09:41:28 +01:00
Patrick Donnelly
3bc7a8732f
messages: protect CephFS messages get/put methods
Use SafeMessage inheritance so that only intrusive pointers can modify
the reference count. This is just a defensive programming refactor.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-11-03 21:46:20 -08:00
Patrick Donnelly
4fc68320f8
messages: protect MClientCapRelease cons
This should only be constructed via make_message.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-11-03 21:34:13 -08:00
Patrick Donnelly
1f21fca786
messages: simplify MMDSCacheRejoin default cons
Trivial initializations can be moved out.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-11-03 21:34:13 -08:00
Patrick Donnelly
16c4c8bb18
mds: simplify type declarations
This is a trivial refactor.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-11-03 21:19:00 -08:00
Kefu Chai
324f8781ca
Merge pull request #31326 from cbodley/wip-cmake-mgr-cap
cmake: define mgr_cap_obj library when WITH_MGR=OFF

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-03 12:55:21 -08:00
Sage Weil
851a8e7c92 Merge PR #31015 into master
* refs/pull/31015/head:
	mgr/orchestrator: Fix raise_if_exception for Python 3

Reviewed-by: Tim Serong <tserong@suse.com>
2019-11-03 13:42:48 -06:00
Sage Weil
f5c7a8c986 qa/standalone/test_ceph_daemon: fix multi-version python test
We have to rewrite the shebang line, since it is no longer just
'#/usr/bin/env python' (as of e12ad1b016).

Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-03 10:09:06 -06:00
Sage Weil
294cd54449 ceph-daemon: only set up /var/run/ceph/$fsid if it exists
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-03 09:52:59 -06:00
Sage Weil
b481d829fd Merge PR #31337 into master
* refs/pull/31337/head:
	Fixing typo in ceph-daemon script for the output_pub_ssh_key argument

Reviewed-by: Sage Weil <sage@redhat.com>
2019-11-03 09:44:44 -06:00
John McGowan
a3ee73d4c9 Fixing typo in ceph-daemon script for the output_pub_ssh_key argument
Signed-off-by: John McGowan <john@steakfest.com>
2019-11-03 07:33:53 -07:00
Kefu Chai
6fe35ef3c5
Merge pull request #31335 from wjwithagen/wjw-fix-objecstore-bluestore
test: move bluestore dependent code under WITH_BLUESTORE

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-03 04:56:17 -08:00
Kefu Chai
3b0dd6430a
Merge pull request #31312 from changchengx/qa
qa: correct zap disk with ceph-deploy tool

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-03 04:50:51 -08:00
Kefu Chai
20a29355cd
Merge pull request #30791 from kshtsk/wip-python3-no-iteritems-ceph-deploy
tasks/ceph_deploy: get rid of iteritems for python3

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Vasu Kulkarni <vasu@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-03 04:49:08 -08:00
Kefu Chai
e4247e183c
Merge pull request #31209 from wjwithagen/wjw-fix-snprintf
common: fix missing <stdio.h> include

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-03 04:44:52 -08:00
Kefu Chai
e89232c355
Merge pull request #31184 from pdvian/wip-fix-sign-compare-warning
crush/CrushWrapper.cc: Fix sign compare compiler warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-03 04:43:38 -08:00
Kefu Chai
ef7d9b436f
Merge pull request #31306 from wjwithagen/wjw-fix-src_test_objectstore_CMakeLists.txt
test: only compile ceph_test_bmap_alloc_replay WITH_BLUESTORE

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-03 04:42:59 -08:00
Kefu Chai
3a5ed146d5
Merge pull request #31313 from tchaikov/wip/debian/rules/ceph-daemon
debian/rules: run dh_python2 with ceph-daemon

Reviewed-by: Sage Weil <sage@redhat.com>
2019-11-03 04:42:28 -08:00
Kefu Chai
6b98bd7d62
Merge pull request #31238 from tchaikov/wip/install-deps/el8
install-deps.sh: use sepia/lab-extra/8

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: David Galloway <dgallowa@redhat.com>
2019-11-03 04:41:55 -08:00
Patrick Donnelly
5b8b8d5111
Merge PR #30751 into master
* refs/pull/30751/head:
	doc: Document Export Process during Subtree Migrations

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-11-03 01:38:27 -07:00
Patrick Donnelly
7b331f05af
Merge PR #30749 into master
* refs/pull/30749/head:
	doc: document mds journal event types

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Douglas Fuller <dfuller@redhat.com>
2019-11-03 01:03:22 -07:00
Willem Jan Withagen
68042f5122 test: move bluestore dependant code under WITH_BLUESTORE
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2019-11-02 20:47:14 +01:00
Boris Ranto
c971efde06
Merge pull request #31152 from LongDuncan/feature/mgr_restful_rquest_api_support_multicommand
mgr/restful: requests api adds support multiple commands

Reviewed-by: Boris Ranto <branto@redhat.com>
2019-11-02 10:30:43 +01:00
Patrick Donnelly
31a5d128f8
Merge PR #30938 into master
* refs/pull/30938/head:
	mds: Reorganize class members in MDSCacheObject header

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-11-01 16:05:42 -07:00
Patrick Donnelly
e91986f131
Merge PR #28077 into master
* refs/pull/28077/head:
	client: optimize rename operation under different quota root

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-11-01 16:03:12 -07:00
Patrick Donnelly
0606118660
Merge PR #30365 into master
* refs/pull/30365/head:
	cephfs-shell: get rid of "return" at the end of the method
	pybind/cephfs.pyx: add NotDirectory exception
	cephfs-shell: don't expect both Error and OSEror together
	cephfs-shell: print built-in error messages for exceptions
	cephfs-shell: use poutput defined with the module
	cephfs-shell: use perror() defined within the module
	cephfs-shell: don't pass default values in calls to perror
	cephfs-shell: align perror's signature with cmd2.Cmd.perror
	pybind/cephfs: make actual error message part of strerror of OSError

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
2019-11-01 16:00:27 -07:00
Patrick Donnelly
f64688880d
Merge PR #30054 into master
* refs/pull/30054/head:
	doc: fs subvolume resize command
	qa/tasks: tests for resize subvolume
	mgr/volumes: fs subvolume resize command

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-11-01 15:57:56 -07:00
Patrick Donnelly
2586d96e5e
Merge PR #30402 into master
* refs/pull/30402/head:
	client: add warning when cap != in->auth_cap.

Reviewed-by: Zheng Yan <zyan@redhat.com>
2019-11-01 15:52:25 -07:00
Patrick Donnelly
84ff644cb9
Merge PR #30990 into master
* refs/pull/30990/head:
	mds: Reorganize class members in MDSDaemon header

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-11-01 15:50:20 -07:00
Patrick Donnelly
154f1ccc86
Merge PR #31207 into master
* refs/pull/31207/head:
	qa/tasks: Better handling of thrasher names and __init__ calls

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-11-01 15:37:12 -07:00
Patrick Donnelly
463b31d71d
Merge PR #31137 into master
* refs/pull/31137/head:
	msg/DispatchQueue: Set throttle stamp for local_delivery

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-01 15:34:41 -07:00
Sage Weil
09ef9b850f mon/ConfigMap: search nested sections
For an entity a.b.c.d, search all dot-delineated prefix sections.  This
enables you to establish a hierarchical set of options for clients, such
as radosgw daemons.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-01 16:51:54 -05:00
Sage Weil
310381e88f Merge PR #31319 into master
* refs/pull/31319/head:
	ceph-daemon: absolute path for /bin/install
	ceph-daemon: ExecStart=/bin/bash script

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2019-11-01 16:43:42 -05:00
Casey Bodley
41c1cee88b cmake: define mgr_cap_obj library when WITH_MGR=OFF
resolves the cmake error when WITH_MGR=OFF:

  Error evaluating generator expression:

    $<TARGET_OBJECTS:mgr_cap_obj>

  Objects of target "mgr_cap_obj" referenced but no such target exists.
Call Stack (most recent call first):
  src/mon/CMakeLists.txt:34 (add_library)

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2019-11-01 16:05:08 -04:00
Sage Weil
438c1f37c1 Merge PR #31318 into master
* refs/pull/31318/head:
	ceph.spec.in: run pathfix.py
	ceph-daemon: use /usr/bin/python, not /usr/bin/env python

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-01 13:44:32 -05:00
Sage Weil
c29a71e19c Merge PR #31226 into master
* refs/pull/31226/head:
	mgr/telemetry: add stats about crush map
	mgr/telemetry: add rgw metadata
	mgr/telemetry: include fs size (files, bytes, snaps)
	mds: report r{files,bytes,snaps} via perfcounters
	mgr/telemetry: mds cache stats
	mgr/telemetry: add some rbd metadata
	mgr/telemetry: note whether osd cluster_network is in use
	mgr/telemetry: add host counts
	mgr/telemetry: add more pool metadata
	mgr/telemetry: remove crush rule name
	mgr/telemetry: include min_mon_release and msgr v1 vs v2 addr count
	mgr/telemetry: add CephFS metadata

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-11-01 12:03:38 -05:00
Sage Weil
d8141e1d40 Merge PR #25374 into master
* refs/pull/25374/head:
	osd: add flag to prevent truncate_seq copy in copy-from operation

Reviewed-by: Sage Weil <sage@redhat.com>
2019-11-01 11:58:11 -05:00
Sage Weil
d8625c68a1 Merge PR #31256 into master
* refs/pull/31256/head:
	mgr/MgrClient: fix open condition

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-11-01 11:57:03 -05:00
Sage Weil
0444025aaf ceph-daemon: do not relabel system directories
These are shared system directories and should not be relabled for use by
ceph containers.  (Also, trying to relabel /dev prevents the container
from starting, e.g.

# /bin/podman run -it --net=host  --privileged    -v /dev:/dev:z    --entrypoint bash centos
Error: relabel failed "/dev": SELinux relabeling of /dev is not allowed

)

Fixes: https://tracker.ceph.com/issues/42511
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-01 11:01:42 -05:00
Lenz Grimmer
f9deb4004e
mgr/dashboard: AttributeError: 'NoneType' object has no attrib… (#31078)
mgr/dashboard: Fixed AttributeError: 'NoneType' in smart data integration

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-11-01 15:44:33 +00:00
Kefu Chai
97bf619e1c ceph.spec.in: run pathfix.py
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-01 10:26:23 -05:00
Sage Weil
a34593b9e2 ceph-daemon: absolute path for /bin/install
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-01 10:24:23 -05:00
Sage Weil
13d0a2417c Merge PR #31320 into master
* refs/pull/31320/head:
	ceph-daemon: fix os.mkdir call

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-11-01 09:10:28 -05:00
Sage Weil
7dc77f6806 ceph-daemon: fix os.mkdir call
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-01 09:05:49 -05:00
Sage Weil
728d50f674 Merge PR #31314 into master
* refs/pull/31314/head:
	mgr/orchestrator_cli: pass default value to "req=False" params

Reviewed-by: Sage Weil <sage@redhat.com>
2019-11-01 08:57:33 -05:00
Sage Weil
196eda988e Merge PR #31315 into master
* refs/pull/31315/head:
	ceph-daemon: create ~/.ssh if not exist

Reviewed-by: Sage Weil <sage@redhat.com>
2019-11-01 08:56:36 -05:00
Sage Weil
560b9c1edb ceph-daemon: ExecStart=/bin/bash script
Not sure why this matters, but it doesn't work on centos7 without the
/bin/bash part.

https://stackoverflow.com/questions/45776003/fixing-a-systemd-service-203-exec-failure-no-such-file-or-directory

Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-01 08:53:29 -05:00
Kefu Chai
3d12fc16c6 ceph-daemon: create ~/.ssh if not exist
there is chance that /root/.ssh does not exist yet, when we are trying
to add key to authorized_keys.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-11-01 21:33:25 +08:00
Sage Weil
713dbc9722 mgr/telemetry: add stats about crush map
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-01 07:59:53 -05:00