Commit Graph

107475 Commits

Author SHA1 Message Date
Kefu Chai
1867afcef0
Merge pull request #32934 from rzarzynski/wip-bl-32bytes
include, common: make ceph::bufferlist 32 bytes long on x86

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-02-09 18:41:03 +08:00
Kefu Chai
97182e75da
Merge pull request #33099 from howard0su/wip_ceph_fix
ceph.in: print decoded output in interactive mode

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-02-09 18:36:03 +08:00
Kefu Chai
f66dc746c8
Merge pull request #33101 from tchaikov/wip-thread-join
pybind/ceph_argparse: avoid int overflow

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-02-09 18:33:26 +08:00
Yuval Lifshitz
2277588617
Merge pull request #33068 from yuvalif/verify-pubsub-inc-sync
qa/rgw/pubsub: verify incremental sync is used in pubsub
2020-02-09 11:55:57 +02:00
Patrick Donnelly
16e58d65d4
Merge PR #32816 into master
* refs/pull/32816/head:
	mds: check inode type when deciding if filelock should be in EXCL state
	mds: don't delegate inos when handling replayed requests
	mds: process re-sent async dir operations at clientreplay stage
	mds: consider async dirops when checking directory empty
	mds: always suppress issuing caps in Locker::issue_new_caps()
	mds: try reconnect cap only when replayed request creates new inode
	mds: set cap id to 1 for newly created inode

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-08 17:51:56 -08:00
Sage Weil
12a0faa9fa Merge PR #33092 into master
* refs/pull/33092/head:
	doc/rados/operations: adjust docs a bit
	mon/OSDMonitor: accept 'autoscale_mode' argument to 'osd pool create'

Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-02-08 08:10:57 -06:00
Sage Weil
38d564cc07 Merge PR #33094 into master
* refs/pull/33094/head:
	mgr/telemetry: split entity_name only once (handle ids with dots)

Reviewed-by: Sage Weil <sage@redhat.com>
2020-02-08 08:08:11 -06:00
Sage Weil
593420d0c7 Merge PR #33037 into master
* refs/pull/33037/head:
	osd/OSD: choose more heartbeat peers from different subtrees

Reviewed-by: yanjun <yan.jun8@zte.com.cn>
2020-02-08 08:08:01 -06:00
Sage Weil
82c4bce2a1 Merge PR #33132 into master
* refs/pull/33132/head:
	qa/workunits/cephadm/test_repos: apt update
	qa/workunits/cephadm/test_repos: fix subst
	qa/suites/rados/cephadm/.../test_repos: run without ulimit and coverage tools
	qa/tasks/workunit: accept coverage_and_limits: false
	qa/suites/rados/cephadm: move ubuntu_18.04_podman to shared location
	qa/suites/rados/cephadm: fix conflicts, missing .qa link

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-02-08 07:27:27 -06:00
Sage Weil
fd17368e9c qa/workunits/cephadm/test_repos: apt update
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 22:16:29 -06:00
Sage Weil
883f82aee6 qa/workunits/cephadm/test_repos: fix subst
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 21:26:03 -06:00
Kefu Chai
957c8a0cf1
Merge pull request #33061 from tchaikov/wip-pybind-compiler-flags-patch
pybind: refactor monkey_with_compiler()

Reviewed-By: Adam Emersen <aemerson@redhat.com>
2020-02-08 10:14:10 +08:00
Sage Weil
0584db6221 Merge PR #33098 into master
* refs/pull/33098/head:
	mgr/orch,cephadm: add 'host set-addr'
	mgr/orch: include addr (and labels) in 'host ls'
	mgr/cephadm: fix 'cephadm check-host'
	mgr/cephadm: use addr to contact host
	mgr/orch: pass HostSpec to add_host
	mgr/orch: HostSpec -> HostPlacementSpec

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-02-07 19:12:43 -06:00
Sage Weil
ab71e45728 qa/suites/rados/cephadm/.../test_repos: run without ulimit and coverage tools
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 17:58:08 -06:00
Sage Weil
52cb75acf3 qa/tasks/workunit: accept coverage_and_limits: false
Allow workunits without teuthology tools (normally installed by ceph.py,
IIRC).

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 17:57:45 -06:00
Sage Weil
55518208ab qa/suites/rados/cephadm: move ubuntu_18.04_podman to shared location
Also set the registries.conf file so we can pull from docker.io.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 17:49:52 -06:00
Sage Weil
5dd8834c4a qa/suites/rados/cephadm: fix conflicts, missing .qa link
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 16:32:05 -06:00
Patrick Donnelly
53a5d1f4ec
Merge PR #33080 into master
* refs/pull/33080/head:
	qa: specify random distros in multimds

Reviewed-by: Rishabh Dave <ridave@redhat.com>
2020-02-07 13:26:16 -08:00
Sage Weil
11d6171230 Merge PR #33070 into master
* refs/pull/33070/head:
	mgr/telemetry: use raise_for_status()
	mgr/telemetry: factor post into helper
	mgr/telemetry: catch exception during requests.put

Reviewed-by: Yaarit Hatuka <yaarithatuka@gmail.com>
2020-02-07 13:37:48 -06:00
Sage Weil
d3b9a2252c mgr/orch,cephadm: add 'host set-addr'
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 13:36:45 -06:00
Sage Weil
5276871e15 mgr/orch: include addr (and labels) in 'host ls'
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 13:36:45 -06:00
Sage Weil
608eb783d8 mgr/cephadm: fix 'cephadm check-host'
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 13:36:45 -06:00
Sage Weil
744e2b28bf mgr/cephadm: use addr to contact host
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 13:36:45 -06:00
Sage Weil
16c35f2011 mgr/orch: pass HostSpec to add_host
Distinguish between the hostname and the addr (dns name or IP) to reach
the host.  Include labels here too since it's convenient to do so.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 13:36:45 -06:00
Sage Weil
778704dd23 mgr/orch: HostSpec -> HostPlacementSpec
This object is about describing where to place a service on a host: it
includes a host name and either an IP or network and possibly even a name
for the service.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 13:36:16 -06:00
Sage Weil
a868e3a763 Merge PR #33118 into master
* refs/pull/33118/head:
	orchestrator cli: change 'rgw update' params order
	mgr/cephadm: fix minor typo

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-02-07 13:27:34 -06:00
Sage Weil
e46a37195a Merge PR #33062 into master
* refs/pull/33062/head:
	qa/suites/rados/cephadm: collect all cephadm tests together here
	qa/workunits/cephadm/test_repos: add test for the repo commands
	cephadm: add '{add,rm}-repo', with initial centos/rhel/fedora/ubuntu support

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-02-07 13:27:13 -06:00
Sage Weil
b74141bac6 Merge PR #33119 into master
* refs/pull/33119/head:
	mgr/upgrade: fix mgr self check
	mgr/cephadm: fail upgrade if target image doesn't exist
	mgr/cephadm: factor upgrade failure into helper
	mgr/cephadm: refresh if we don't know a daemon's image_id
	mgr/cephadm: refresh services in upgrade loop
	mgr/cephadm: clean up upgrade messages a bit

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-02-07 13:26:54 -06:00
Jan Fajerski
afc897238c
Merge pull request #33086 from guits/guits-fix_cv_rerun
ceph-volume: skip osd creation when already done
2020-02-07 18:14:52 +01:00
Sage Weil
e52c567385 qa/suites/rados/cephadm: collect all cephadm tests together here
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 11:14:47 -06:00
Sage Weil
a98855ecf5 qa/workunits/cephadm/test_repos: add test for the repo commands
This isn't a great test, but it is something.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 11:14:47 -06:00
Sage Weil
03d9c4cd39 cephadm: add '{add,rm}-repo', with initial centos/rhel/fedora/ubuntu support
Other distros to follow.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 11:14:47 -06:00
Sage Weil
abc20b6919 Merge PR #33111 into master
* refs/pull/33111/head:
	qa/suites/rados/cephadm[-smoke]: test podman on ubuntu 18.04

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-02-07 11:10:29 -06:00
Kefu Chai
8ccd730b45
Merge pull request #33128 from pponnuvel/fix_incorrect_link_documentation
coding-style: update a link and fix typos

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-02-08 00:42:50 +08:00
Ponnuvel Palaniyappan
cf18717143 coding-style: update a link and fix typos.
Signed-off-by: Ponnuvel Palaniyappan <pponnuvel@gmail.com>
2020-02-07 15:55:08 +00:00
Guillaume Abrioux
ccf92d718d ceph-volume: add unit test test_safe_prepare_osd_already_created
This commit adds a new unit test
`test_safe_prepare_osd_already_created()` in order to test when
`is_ceph_device()` returns `True` `RuntimeError` is well raised.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2020-02-07 16:42:17 +01:00
Guillaume Abrioux
634a709b9c ceph-volume: skip osd creation when already done
When rerunning ceph-volume lvm create on a device already prepared and
activated, ceph-volume should skip the creation.

This is a regression introduced by bb4de1a3fc

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

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2020-02-07 16:42:13 +01:00
Sage Weil
06c9e64bc6 Merge PR #33042 into master
* refs/pull/33042/head:
	cephadm: bootstrap: warn on fqdn hostname

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-02-07 08:47:52 -06:00
Kefu Chai
711d876184 pybind/ceph_argparse: avoid int overflow
in python 2.6.8, `thread.join(timeout)` tries to convert the given
timeout to PyTime, but turns out `2 << 32` overflows when python
runtime converts the timeout from sec to ns. that's why
the `lock.acquire()` call always fail in
`Thread._wait_for_tstate_lock()`.
and we end up with an alive thread after calling `thread.join()`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-02-07 22:44:54 +08:00
Sage Weil
c6a731bf97 qa/suites/rados/cephadm[-smoke]: test podman on ubuntu 18.04
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 08:29:57 -06:00
Sage Weil
54e474571e mgr/upgrade: fix mgr self check
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 08:27:59 -06:00
Sage Weil
3149c2bfbb mgr/cephadm: fail upgrade if target image doesn't exist
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 08:27:59 -06:00
Sage Weil
6d719fd923 mgr/cephadm: factor upgrade failure into helper
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 08:27:59 -06:00
Sage Weil
0ff43bcbb7 mgr/cephadm: refresh if we don't know a daemon's image_id
This notably happens right after we deploy a fresh daemon.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 08:27:59 -06:00
Sage Weil
339298ffa6 mgr/cephadm: refresh services in upgrade loop
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 08:27:59 -06:00
Sage Weil
aaff7cfe97 mgr/cephadm: clean up upgrade messages a bit
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 08:27:59 -06:00
Jan Fajerski
3fe229e981
Merge pull request #32634 from jan--f/c-v-inventory-fixes
ceph-volume: finer grained availability notion in inventory.
2020-02-07 14:46:25 +01:00
Jan Fajerski
c406ffa79b
Merge pull request #31978 from jan--f/c-v-batch-no-db-dev-drop
ceph-volume/batch: fail on filtered devices when non-interactive
2020-02-07 14:41:27 +01:00
Sage Weil
f29bfa4f60 Merge PR #33075 into master
* refs/pull/33075/head:
	examples/librados: fix bufferlist::copy() in hello_world.cc.

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2020-02-07 07:16:14 -06:00
Jan Fajerski
233ccff240 ceph-volume: add available property in target specific flavors
This adds two properties available_[lvm,raw] to device (and thus inventory).
The goal is to have different notions of availability based on the
intended use case. For example finding LVM structures make a drive
unavailable for the raw mode, but might be available for the lvm mode.

Fixes: https://tracker.ceph.com/issues/43400
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
2020-02-07 12:04:18 +01:00