Commit Graph

107528 Commits

Author SHA1 Message Date
Sage Weil
0594526393 qa/workunits/cephadm/test_cephadm: 2 OSDs is enough
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-08 18:00:37 -06:00
Sage Weil
99bcf59783 cephadm: disable node-exporter cpu/memory limits for the time being
Ubuntu 18.04 kernel does not support these.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-08 08:22:24 -06: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
8cdbc8e8e6 qa/workunits/cephadm/test_repos: don't try to use the refspec
This is usually a sha1, and we can't reliably find packages based on
that.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-08 07:33:47 -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
cbeb24323a qa/suites/upgrade/nautilus-x-singleton: ensure hit sets behave across upgrade
Create a pool that generates hit sets before the upgrade, and ensure that
they (continue to) trim after the upgrade.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 16:44:18 -06:00
Sage Weil
8f40e2cdf7 osd/PrimaryLogPG: use legacy timestamp rendering for hit_set objects
These objects exist prior to octopus and we need to be consistent with
the naming.  Stick with the legacy form.

Fixes: https://tracker.ceph.com/issues/44024
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 16:44:18 -06:00
Sage Weil
64fdf60d64 include/utime: allow legacy rendering of timestamp
In 79d8d761cf and
ec3ddcb988
we switched to a strict ISO8660 rendering for timestamps.  In some cases,
we need to render the timestamp in the legacy form: ' ' instead of 'T',
and no time zone suffix.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 16:44:18 -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
Sage Weil
01c36d9db7 mgr/ansible: remove
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 09:45:12 -06: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