]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agoqa/workunits/cephadm/test_repos: don't try to use the refspec 33134/head
Sage Weil [Sat, 8 Feb 2020 13:33:47 +0000 (07:33 -0600)]
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>
5 years agoqa/workunits/cephadm/test_repos: apt update 33132/head
Sage Weil [Sat, 8 Feb 2020 04:16:29 +0000 (22:16 -0600)]
qa/workunits/cephadm/test_repos: apt update

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/workunits/cephadm/test_repos: fix subst
Sage Weil [Sat, 8 Feb 2020 01:08:49 +0000 (19:08 -0600)]
qa/workunits/cephadm/test_repos: fix subst

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/rados/cephadm/.../test_repos: run without ulimit and coverage tools
Sage Weil [Fri, 7 Feb 2020 23:58:08 +0000 (17:58 -0600)]
qa/suites/rados/cephadm/.../test_repos: run without ulimit and coverage tools

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/tasks/workunit: accept coverage_and_limits: false
Sage Weil [Fri, 7 Feb 2020 23:55:32 +0000 (17:55 -0600)]
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>
5 years agoqa/suites/rados/cephadm: move ubuntu_18.04_podman to shared location
Sage Weil [Fri, 7 Feb 2020 23:49:39 +0000 (17:49 -0600)]
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>
5 years agoqa/suites/rados/cephadm: fix conflicts, missing .qa link
Sage Weil [Fri, 7 Feb 2020 22:19:08 +0000 (16:19 -0600)]
qa/suites/rados/cephadm: fix conflicts, missing .qa link

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #33070 into master
Sage Weil [Fri, 7 Feb 2020 19:37:47 +0000 (13:37 -0600)]
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>
5 years agoMerge PR #33118 into master
Sage Weil [Fri, 7 Feb 2020 19:27:34 +0000 (13:27 -0600)]
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>
5 years agoMerge PR #33062 into master
Sage Weil [Fri, 7 Feb 2020 19:27:13 +0000 (13:27 -0600)]
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>
5 years agoMerge PR #33119 into master
Sage Weil [Fri, 7 Feb 2020 19:26:54 +0000 (13:26 -0600)]
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>
5 years agoMerge pull request #33086 from guits/guits-fix_cv_rerun
Jan Fajerski [Fri, 7 Feb 2020 17:14:52 +0000 (18:14 +0100)]
Merge pull request #33086 from guits/guits-fix_cv_rerun

ceph-volume: skip osd creation when already done

5 years agoqa/suites/rados/cephadm: collect all cephadm tests together here 33062/head
Sage Weil [Fri, 7 Feb 2020 14:43:38 +0000 (08:43 -0600)]
qa/suites/rados/cephadm: collect all cephadm tests together here

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/workunits/cephadm/test_repos: add test for the repo commands
Sage Weil [Thu, 6 Feb 2020 17:02:31 +0000 (11:02 -0600)]
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>
5 years agocephadm: add '{add,rm}-repo', with initial centos/rhel/fedora/ubuntu support
Sage Weil [Tue, 4 Feb 2020 14:28:05 +0000 (08:28 -0600)]
cephadm: add '{add,rm}-repo', with initial centos/rhel/fedora/ubuntu support

Other distros to follow.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #33111 into master
Sage Weil [Fri, 7 Feb 2020 17:10:29 +0000 (11:10 -0600)]
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>
5 years agoMerge pull request #33128 from pponnuvel/fix_incorrect_link_documentation
Kefu Chai [Fri, 7 Feb 2020 16:42:50 +0000 (00:42 +0800)]
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>
5 years agocoding-style: update a link and fix typos. 33128/head
Ponnuvel Palaniyappan [Fri, 7 Feb 2020 15:55:08 +0000 (15:55 +0000)]
coding-style: update a link and fix typos.

Signed-off-by: Ponnuvel Palaniyappan <pponnuvel@gmail.com>
5 years agoceph-volume: add unit test test_safe_prepare_osd_already_created 33086/head
Guillaume Abrioux [Fri, 7 Feb 2020 14:22:46 +0000 (15:22 +0100)]
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>
5 years agoceph-volume: skip osd creation when already done
Guillaume Abrioux [Wed, 5 Feb 2020 16:48:22 +0000 (17:48 +0100)]
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 bb4de1a3fc238eaf9f717dc59c6bdf338ef6d657

Fixes: https://tracker.ceph.com/issues/43981
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
5 years agoMerge PR #33042 into master
Sage Weil [Fri, 7 Feb 2020 14:47:52 +0000 (08:47 -0600)]
Merge PR #33042 into master

* refs/pull/33042/head:
cephadm: bootstrap: warn on fqdn hostname

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoqa/suites/rados/cephadm[-smoke]: test podman on ubuntu 18.04 33111/head
Sage Weil [Thu, 6 Feb 2020 14:54:06 +0000 (08:54 -0600)]
qa/suites/rados/cephadm[-smoke]: test podman on ubuntu 18.04

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/upgrade: fix mgr self check 33119/head
Sage Weil [Thu, 6 Feb 2020 20:37:47 +0000 (14:37 -0600)]
mgr/upgrade: fix mgr self check

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: fail upgrade if target image doesn't exist
Sage Weil [Thu, 6 Feb 2020 20:31:18 +0000 (14:31 -0600)]
mgr/cephadm: fail upgrade if target image doesn't exist

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: factor upgrade failure into helper
Sage Weil [Thu, 6 Feb 2020 20:31:06 +0000 (14:31 -0600)]
mgr/cephadm: factor upgrade failure into helper

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: refresh if we don't know a daemon's image_id
Sage Weil [Thu, 6 Feb 2020 19:52:05 +0000 (13:52 -0600)]
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>
5 years agomgr/cephadm: refresh services in upgrade loop
Sage Weil [Thu, 6 Feb 2020 19:51:42 +0000 (13:51 -0600)]
mgr/cephadm: refresh services in upgrade loop

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: clean up upgrade messages a bit
Sage Weil [Thu, 6 Feb 2020 19:49:14 +0000 (13:49 -0600)]
mgr/cephadm: clean up upgrade messages a bit

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #32634 from jan--f/c-v-inventory-fixes
Jan Fajerski [Fri, 7 Feb 2020 13:46:25 +0000 (14:46 +0100)]
Merge pull request #32634 from jan--f/c-v-inventory-fixes

ceph-volume: finer grained availability notion in inventory.

5 years agoMerge pull request #31978 from jan--f/c-v-batch-no-db-dev-drop
Jan Fajerski [Fri, 7 Feb 2020 13:41:27 +0000 (14:41 +0100)]
Merge pull request #31978 from jan--f/c-v-batch-no-db-dev-drop

ceph-volume/batch: fail on filtered devices when non-interactive

5 years agoMerge PR #33075 into master
Sage Weil [Fri, 7 Feb 2020 13:16:14 +0000 (07:16 -0600)]
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>
5 years agoceph-volume: add available property in target specific flavors 32634/head
Jan Fajerski [Mon, 6 Jan 2020 17:02:57 +0000 (18:02 +0100)]
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>
5 years agoMerge pull request #33112 from jan--f/c-v-lvm-list-regression-31700
Jan Fajerski [Fri, 7 Feb 2020 10:30:01 +0000 (11:30 +0100)]
Merge pull request #33112 from jan--f/c-v-lvm-list-regression-31700

ceph-volume: fix regression and improve output in lvm list

5 years agoMerge pull request #32985 from sebastian-philipp/mgr-progress-mypy
Kefu Chai [Fri, 7 Feb 2020 07:49:37 +0000 (15:49 +0800)]
Merge pull request #32985 from sebastian-philipp/mgr-progress-mypy

mgr/progress: Add integration to pybind/mgr/tox.ini

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #32432 into master
Patrick Donnelly [Fri, 7 Feb 2020 03:29:20 +0000 (19:29 -0800)]
Merge PR #32432 into master

* refs/pull/32432/head:
mds: Reorganize structure members in snap header

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoorchestrator cli: change 'rgw update' params order 33118/head
Yehuda Sadeh [Fri, 7 Feb 2020 02:28:18 +0000 (18:28 -0800)]
orchestrator cli: change 'rgw update' params order

Fixes: https://tracker.ceph.com/issues/44029
First realm, then zone -- to be consistent with the other commands

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
5 years agomgr/cephadm: fix minor typo
Yehuda Sadeh [Fri, 7 Feb 2020 01:21:08 +0000 (17:21 -0800)]
mgr/cephadm: fix minor typo

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
5 years agoMerge PR #33114 into master
Sage Weil [Thu, 6 Feb 2020 22:12:39 +0000 (16:12 -0600)]
Merge PR #33114 into master

* refs/pull/33114/head:
cephadm:Fix name argument parsing during image check for non-ceph components

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agocephadm:Fix name argument parsing during image check for non-ceph components 33114/head
Daniel-Pivonka [Thu, 6 Feb 2020 20:47:26 +0000 (15:47 -0500)]
cephadm:Fix name argument parsing during image check for non-ceph components

bug in parsing introduced in 97def7c
args.name may exist but will be none if flag is not used
check the value in addition to checking if it exists

Signed-off-by: Daniel-Pivonka <dpivonka@redhat.com>
5 years agoMerge PR #33109 into master
Sage Weil [Thu, 6 Feb 2020 20:42:46 +0000 (14:42 -0600)]
Merge PR #33109 into master

* refs/pull/33109/head:
cephadm: fix inspect-image

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33089 into master
Sage Weil [Thu, 6 Feb 2020 20:42:34 +0000 (14:42 -0600)]
Merge PR #33089 into master

* refs/pull/33089/head:
cephadm: re-introduce the `podman logs` command

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #33110 into master
Sage Weil [Thu, 6 Feb 2020 19:13:48 +0000 (13:13 -0600)]
Merge PR #33110 into master

* refs/pull/33110/head:
qa/distros: rhel and centos: whitelist cephadm logrotate selinux denial

Reviewed-by: Boris Ranto <branto@redhat.com>
5 years agoceph-volume: fix various lvm list issues 33112/head
Jan Fajerski [Thu, 6 Feb 2020 15:49:12 +0000 (16:49 +0100)]
ceph-volume: fix various lvm list issues

A single report on a non-lvm device now works.
Format was cleaned up, report lvm journal,wal, db only once.

Fixes: https://tracker.ceph.com/issues/44009
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
5 years agoceph-volume: add get_device_lvs to easily retrieve all lvs per device
Jan Fajerski [Thu, 6 Feb 2020 15:47:08 +0000 (16:47 +0100)]
ceph-volume: add get_device_lvs to easily retrieve all lvs per device

Also drop the sep argument from get_lvs and siblings, unused.
Introduce LV_CMD_OPTIONS to unify options to lvs.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
5 years agocephadm: re-introduce the `podman logs` command 33089/head
Michael Fritch [Wed, 5 Feb 2020 16:02:02 +0000 (09:02 -0700)]
cephadm: re-introduce the `podman logs` command

Fixes: https://tracker.ceph.com/issues/43973
Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33093 into master
Sage Weil [Thu, 6 Feb 2020 15:22:21 +0000 (09:22 -0600)]
Merge PR #33093 into master

* refs/pull/33093/head:
build-integration-branch: don't fail on existing branch

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agocephadm: fix inspect-image 33109/head
Sage Weil [Thu, 6 Feb 2020 15:18:13 +0000 (09:18 -0600)]
cephadm: fix inspect-image

This was broken by d8debba782cd4f40ed13db7f1af8ef43503ccec5
because the 'images' json output works with podman but not with
docker.  (Also, the inspect command is more explicit and cleaner.)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/distros: rhel and centos: whitelist cephadm logrotate selinux denial 33110/head
Sage Weil [Thu, 6 Feb 2020 14:22:40 +0000 (08:22 -0600)]
qa/distros: rhel and centos: whitelist cephadm logrotate selinux denial

This is fixed in RHEL 8.1.1 (and by extension centos/rhel 8.2+).

No fix for el 7 yet

Partially-fixes: https://tracker.ceph.com/issues/43703
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #33071 into master
Sage Weil [Thu, 6 Feb 2020 12:33:36 +0000 (06:33 -0600)]
Merge PR #33071 into master

* refs/pull/33071/head:
mgr/cephadm: remove item from cache when removing

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #33059 from tspmelo/wip-node-10-18-1
Lenz Grimmer [Thu, 6 Feb 2020 11:34:56 +0000 (11:34 +0000)]
Merge pull request #33059 from tspmelo/wip-node-10-18-1

make-dist: Bump Node.js to v10.18.1

Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #32546 from votdev/issue_43089_passwd_cmplx_config
Tatjana Dehler [Thu, 6 Feb 2020 08:44:48 +0000 (09:44 +0100)]
Merge pull request #32546 from votdev/issue_43089_passwd_cmplx_config

mgr/dashboard: Make password policy check configurable

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #32881 from tchaikov/wip-43657 31568/head
Kefu Chai [Thu, 6 Feb 2020 08:05:31 +0000 (16:05 +0800)]
Merge pull request #32881 from tchaikov/wip-43657

mgr/orchestrator: use deepcopy for copying exceptions

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoqa/tasks/cephadm: test "orchestrator host ls" 32881/head
Kefu Chai [Fri, 31 Jan 2020 06:01:52 +0000 (14:01 +0800)]
qa/tasks/cephadm: test "orchestrator host ls"

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks: drop test_cephadm_orchestrator.py
Kefu Chai [Fri, 31 Jan 2020 05:52:49 +0000 (13:52 +0800)]
qa/tasks: drop test_cephadm_orchestrator.py

this test will end with a failure like

```
2020-01-30T18:15:15.870 INFO:tasks.ceph.mgr.x.smithi042.stderr:Warning: Permanently added 'smithi042.front.sepia.ceph.com,172.21.15.42' (ECDSA) to the list of known hosts.
2020-01-30T18:15:15.925 INFO:tasks.ceph.mgr.x.smithi042.stderr:Permission denied, please try again.
2020-01-30T18:15:15.932 INFO:tasks.ceph.mgr.x.smithi042.stderr:Permission denied, please try again.
2020-01-30T18:15:15.939 INFO:tasks.ceph.mgr.x.smithi042.stderr:root@smithi042.front.sepia.ceph.com: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
```

because mgr is not able to establish an ssh connection to that host with "root".
please note, the teuthology worker is acting using the "ubuntu" account on the
test node, and by default, "root" does not have its pubkey. and actually
`qa/tasks/cephadm.py` does push the pubkey to all the managed hosts before
testing cephadm.

since `qa/tasks/cephadm.py` is a better test for cephadm, let's just
drop this one.

as suites/rados/cephadm already covers cephadm

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/orchestrator: use deepcopy for copying exceptions
Kefu Chai [Wed, 29 Jan 2020 15:27:47 +0000 (23:27 +0800)]
mgr/orchestrator: use deepcopy for copying exceptions

since rexec module has been removed in python3, we cannot use it
anymore.

Fixes: https://tracker.ceph.com/issues/43657
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agobuild-integration-branch: don't fail on existing branch 33093/head
Sage Weil [Wed, 5 Feb 2020 22:56:42 +0000 (16:56 -0600)]
build-integration-branch: don't fail on existing branch

This behavior is too annoying, and you can always get back to something
clobbered with 'git reflog'.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32946 into master
Sage Weil [Wed, 5 Feb 2020 22:47:21 +0000 (16:47 -0600)]
Merge PR #32946 into master

* refs/pull/32946/head:
qa/suites/rados: improve valgrind leak check
common/ceph_context: add an asok command to deliberately leak memory

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agomgr/telemetry: use raise_for_status() 33070/head
Sage Weil [Wed, 5 Feb 2020 22:45:52 +0000 (16:45 -0600)]
mgr/telemetry: use raise_for_status()

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/telemetry: factor post into helper
Sage Weil [Tue, 4 Feb 2020 20:06:21 +0000 (14:06 -0600)]
mgr/telemetry: factor post into helper

And use it for devices too

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #33055 into master
Sage Weil [Wed, 5 Feb 2020 22:09:12 +0000 (16:09 -0600)]
Merge PR #33055 into master

* refs/pull/33055/head:
qa/tasks/mgr/test_orchestrator_cli: support multiple DriveGroups

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #33056 into master
Sage Weil [Wed, 5 Feb 2020 22:08:40 +0000 (16:08 -0600)]
Merge PR #33056 into master

* refs/pull/33056/head:
common: fix clang compile errors from cython_modules

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #33058 into master
Sage Weil [Wed, 5 Feb 2020 22:07:43 +0000 (16:07 -0600)]
Merge PR #33058 into master

* refs/pull/33058/head:
mgr/cephadm: enforce that a host is a valid DNS name
mgr/cephadm: verify host's hostname matches our host name
cephadm: check-host: add optional --expect-hostname

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge PR #33069 into master
Sage Weil [Wed, 5 Feb 2020 22:07:28 +0000 (16:07 -0600)]
Merge PR #33069 into master

* refs/pull/33069/head:
cephadm: use appropriate default image for non-ceph components

Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33039 into master
Sage Weil [Wed, 5 Feb 2020 18:55:53 +0000 (12:55 -0600)]
Merge PR #33039 into master

* refs/pull/33039/head:
osd/OSD: prevent down osds from immediately rejoining the culster
osd/OSD: trim osd_markdown_log in tick() thread

Reviewed-by: yanjun <yan.jun8@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: enforce that a host is a valid DNS name 33058/head
Sage Weil [Wed, 5 Feb 2020 17:19:59 +0000 (11:19 -0600)]
mgr/cephadm: enforce that a host is a valid DNS name

This combines the hostname restrictions

 * 1-63 chars
 * a-z, A-Z, 0-9, -

and the DNS name restrictions

 * .-delimited
 * no empty components (or leading or trailing .)
 * 250 chars total max

Note that this allows bare IPv4 addresses (which are indistinguishable from
a valid DNS name, AFAICS), but disallows bare IPv6 addresses.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: remove item from cache when removing 33071/head
Sage Weil [Tue, 4 Feb 2020 19:06:49 +0000 (13:06 -0600)]
mgr/cephadm: remove item from cache when removing

This makes the daemon disappear immediately from 'service ls', and also
avoids a temporary health warning about a stray service.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/dashboard: Fix fsevents and node-gyp error 33059/head
Tiago Melo [Wed, 5 Feb 2020 16:54:48 +0000 (15:54 -0100)]
mgr/dashboard: Fix fsevents and node-gyp error

Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agomake-dist: Bump Node.js to v10.18.1
Tiago Melo [Tue, 4 Feb 2020 13:54:22 +0000 (12:54 -0100)]
make-dist: Bump Node.js to v10.18.1

This will fix an error caused by the usage of the latest version of Angular CLI
and Node.js v10.16.0.

Fixes: https://tracker.ceph.com/issues/43961
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #33085 from rzarzynski/wip-client-bl_iter_advance
Kefu Chai [Wed, 5 Feb 2020 16:26:12 +0000 (00:26 +0800)]
Merge pull request #33085 from rzarzynski/wip-client-bl_iter_advance

client: fix FTBFS due to bl::iterator::advance().

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoclient: fix FTBFS due to bl::iterator::advance(). 33085/head
Radoslaw Zarzynski [Wed, 5 Feb 2020 16:08:34 +0000 (17:08 +0100)]
client: fix FTBFS due to bl::iterator::advance().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #33026 from liewegas/wip-el81
Kefu Chai [Wed, 5 Feb 2020 15:44:15 +0000 (23:44 +0800)]
Merge pull request #33026 from liewegas/wip-el81

qa/distros: add rhel/centos 8.1

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #32996 from cbodley/wip-rgw-put-multipart-stripe
Casey Bodley [Wed, 5 Feb 2020 13:42:50 +0000 (08:42 -0500)]
Merge pull request #32996 from cbodley/wip-rgw-put-multipart-stripe

rgw: MultipartObjectProcessor supports stripe size > chunk size

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
5 years agoMerge pull request #32811 from multi-arch/master
Casey Bodley [Wed, 5 Feb 2020 13:40:08 +0000 (08:40 -0500)]
Merge pull request #32811 from multi-arch/master

test/rgw: fix test_rgw_reshard_wait with -DHAVE_BOOST_CONTEXT=OFF

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge PR #33051 into master
Sage Weil [Wed, 5 Feb 2020 13:36:01 +0000 (07:36 -0600)]
Merge PR #33051 into master

* refs/pull/33051/head:
mgr/telemetry: check get_metadata return val

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33018 from mgfritch/cephadm-docker-disabled
Kefu Chai [Wed, 5 Feb 2020 12:46:16 +0000 (20:46 +0800)]
Merge pull request #33018 from mgfritch/cephadm-docker-disabled

qa/workunits/cephadm/test_cephadm.sh: skip docker when service is disabled

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #32982 from krig/cephadm-fixes
Kefu Chai [Wed, 5 Feb 2020 12:44:58 +0000 (20:44 +0800)]
Merge pull request #32982 from krig/cephadm-fixes

cephadm: Read ceph version from io.ceph.version label if set

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33025 from neha-ojha/wip-no-mgr
Kefu Chai [Wed, 5 Feb 2020 12:36:12 +0000 (20:36 +0800)]
Merge pull request #33025 from neha-ojha/wip-no-mgr

mon/MgrMonitor.cc: warn about missing mgr in a cluster with osds

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33077 from guits/guits-cv_fix_listing
Jan Fajerski [Wed, 5 Feb 2020 12:29:43 +0000 (13:29 +0100)]
Merge pull request #33077 from guits/guits-cv_fix_listing

ceph-volume: fix lvm list

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
5 years agoMerge pull request #33004 from matthewoliver/argparge_matchcnt_kwargs
Kefu Chai [Wed, 5 Feb 2020 12:29:35 +0000 (20:29 +0800)]
Merge pull request #33004 from matthewoliver/argparge_matchcnt_kwargs

ceph_argparse: increment matchcnt on kwargs

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33074 from guits/guits-cv_quick_fix
Jan Fajerski [Wed, 5 Feb 2020 12:29:03 +0000 (13:29 +0100)]
Merge pull request #33074 from guits/guits-cv_quick_fix

ceph-volume: fix has_bluestore_label() function

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
5 years agoMerge pull request #33015 from rouming/double-unlock-p1-fix
Kefu Chai [Wed, 5 Feb 2020 12:18:56 +0000 (20:18 +0800)]
Merge pull request #33015 from rouming/double-unlock-p1-fix

msg/async: open() should be called with connection locked

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
5 years agoMerge pull request #33029 from yaarith/wip-telemetry-show-device
Kefu Chai [Wed, 5 Feb 2020 12:11:39 +0000 (20:11 +0800)]
Merge pull request #33029 from yaarith/wip-telemetry-show-device

mgr/telemetry: anonymizing smartctl report itself

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33003 from tchaikov/wip-buffer-list-advance
Kefu Chai [Wed, 5 Feb 2020 12:10:42 +0000 (20:10 +0800)]
Merge pull request #33003 from tchaikov/wip-buffer-list-advance

include/buffer: add operator+=() for list::iterator

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #33034 from rzarzynski/wip-include-ceph_atomic_in_mempool
Kefu Chai [Wed, 5 Feb 2020 12:00:46 +0000 (20:00 +0800)]
Merge pull request #33034 from rzarzynski/wip-include-ceph_atomic_in_mempool

include: switch mempool.h to ceph::atomic.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoceph-volume: remove stderr in has_bluestore_label() 33074/head
Guillaume Abrioux [Wed, 5 Feb 2020 01:15:17 +0000 (02:15 +0100)]
ceph-volume: remove stderr in has_bluestore_label()

We don't want to generate this log when a call to
`has_bluestore_label()` fails.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
5 years agoceph-volume: fix has_bluestore_label() function
Guillaume Abrioux [Tue, 4 Feb 2020 21:02:26 +0000 (22:02 +0100)]
ceph-volume: fix has_bluestore_label() function

When using vg/lv, this function throws an error like following:

```
 stderr: unable to read label for test_group/data-lv2: (2) No such file or directory
 stderr: 2020-02-04T21:03:32.153+0000 7fe091af4200 -1 bluestore(test_group/data-lv2) _read_bdev_label failed to open test_group/data-lv2: (2) No such file or directory
```

using `self.abspath` fixes this error.

Fixes: https://tracker.ceph.com/issues/43970
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
5 years agoceph-volume: fix lvm list 33077/head
Guillaume Abrioux [Wed, 5 Feb 2020 01:29:14 +0000 (02:29 +0100)]
ceph-volume: fix lvm list

17957d9beb42a04b8f180ccb7ba07d43179a41d3 introduced a regression in `lvm
list`.

When passing a vg/lv path for generating a single report, it fails
because the filter used in the `lvs` command isn't right. It uses the lv
name instead of the vg name because `os.path.basename(device)` is used
while it should be `os.path.dirname(device)`

Fixes: https://tracker.ceph.com/issues/43969
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
5 years agoMerge pull request #33076 from liu-chunmei/fix_crimson_pg_coll
Kefu Chai [Wed, 5 Feb 2020 04:50:25 +0000 (12:50 +0800)]
Merge pull request #33076 from liu-chunmei/fix_crimson_pg_coll

crimson: fix crimson pg coll usage error

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33057 from wjwithagen/wjw-fix-buffer.copy
Kefu Chai [Wed, 5 Feb 2020 03:15:37 +0000 (11:15 +0800)]
Merge pull request #33057 from wjwithagen/wjw-fix-buffer.copy

rbd-ggate: fix fallout from bufferlist.copy() change

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson: fix crimson pg coll usage error 33076/head
Chunmei Liu [Wed, 5 Feb 2020 00:42:21 +0000 (16:42 -0800)]
crimson: fix crimson pg coll usage error

coll in pg isn't initialized, should use coll_ref->get_cid() insead.

Signed-off-by: Chunmei Liu <chunmei.liu@intel.com>
5 years agocephadm: use appropriate default image for non-ceph components 33069/head
Sage Weil [Tue, 4 Feb 2020 16:27:58 +0000 (10:27 -0600)]
cephadm: use appropriate default image for non-ceph components

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33066 from gregsfortytwo/wip-specfile
Gregory Farnum [Tue, 4 Feb 2020 22:08:14 +0000 (14:08 -0800)]
Merge pull request #33066 from gregsfortytwo/wip-specfile

rpm: fix up a specfile syntax error

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoexamples/librados: fix bufferlist::copy() in hello_world.cc. 33075/head
Radoslaw Zarzynski [Tue, 4 Feb 2020 21:31:07 +0000 (22:31 +0100)]
examples/librados: fix bufferlist::copy() in hello_world.cc.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agomgr/telemetry: catch exception during requests.put
Sage Weil [Tue, 4 Feb 2020 18:59:32 +0000 (12:59 -0600)]
mgr/telemetry: catch exception during requests.put

Sometimes requests.put throws an exception.  When that happens, generate
an appropriate error but don't crash the module.

Fixes: https://tracker.ceph.com/issues/43963
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30033 from theanalyst/rgw/public-buckets
Abhishek L [Tue, 4 Feb 2020 18:01:05 +0000 (19:01 +0100)]
Merge pull request #30033 from theanalyst/rgw/public-buckets

rgw: add PublicAccessBlock set of APIs on buckets

Reviewed-By: Casey Bodley <cbodley@redhat.com>
5 years agorpm: fix up a specfile syntax error 33066/head
Greg Farnum [Tue, 4 Feb 2020 17:10:17 +0000 (09:10 -0800)]
rpm: fix up a specfile syntax error

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
5 years agoMerge pull request #33049 from yuvalif/wip-yuval-fix-43768
Casey Bodley [Tue, 4 Feb 2020 16:44:46 +0000 (11:44 -0500)]
Merge pull request #33049 from yuvalif/wip-yuval-fix-43768

qa/rgw/pubsub: fix tests to sync from master

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agomgr/cephadm: verify host's hostname matches our host name
Sage Weil [Tue, 4 Feb 2020 13:23:13 +0000 (07:23 -0600)]
mgr/cephadm: verify host's hostname matches our host name

This ensures that we have a consistent view between the hosts that cephadm
is using and the hostname being reported as metadata by the ceph daemons.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: check-host: add optional --expect-hostname
Sage Weil [Tue, 4 Feb 2020 13:17:30 +0000 (07:17 -0600)]
cephadm: check-host: add optional --expect-hostname

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agodoc: add Pending Release Notes entry on public access config 30033/head
Abhishek Lekshmanan [Tue, 4 Feb 2020 16:28:46 +0000 (17:28 +0100)]
doc: add Pending Release Notes entry on public access config

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>