]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agodoc: snap-schedule documentation 39671/head
Jan Fajerski [Fri, 4 Sep 2020 13:12:55 +0000 (15:12 +0200)]
doc: snap-schedule documentation

Fixes: https://tracker.ceph.com/issues/48017
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agoMerge pull request #39821 from dillaman/wip-qa-objectstore-logs
Kefu Chai [Mon, 8 Mar 2021 10:43:59 +0000 (18:43 +0800)]
Merge pull request #39821 from dillaman/wip-qa-objectstore-logs

qa: reduce debug log levels for bluestore

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #39900 from tchaikov/wip-crimson-watch
Kefu Chai [Mon, 8 Mar 2021 08:23:20 +0000 (16:23 +0800)]
Merge pull request #39900 from tchaikov/wip-crimson-watch

crimson/osd: cleanup Notify::send_completion()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #39729 from aclamk/wip-rocksdb-aware-bluefs-buffered-io
Kefu Chai [Sun, 7 Mar 2021 16:07:42 +0000 (00:07 +0800)]
Merge pull request #39729 from aclamk/wip-rocksdb-aware-bluefs-buffered-io

Allows RocksDB to distinguish between buffered/direct_io files

Reviewed-by: Mark Nelson <mnelson@redhat.com>
4 years agoMerge pull request #38997 from gerald-yang/patch-48946
Kefu Chai [Sun, 7 Mar 2021 15:54:06 +0000 (23:54 +0800)]
Merge pull request #38997 from gerald-yang/patch-48946

common: Fix assertion when disabling and re-enabling clog_to_monitors

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39775 from rishabh-d-dave/fs-qa-accept-cmds-as-str
Kefu Chai [Sun, 7 Mar 2021 15:52:54 +0000 (23:52 +0800)]
Merge pull request #39775 from rishabh-d-dave/fs-qa-accept-cmds-as-str

qa/ceph_manager: accepts commands as str too

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #39690 from rishabh-d-dave/qa-raw_cluster_cmd
Kefu Chai [Sun, 7 Mar 2021 15:51:05 +0000 (23:51 +0800)]
Merge pull request #39690 from rishabh-d-dave/qa-raw_cluster_cmd

qa/ceph_manger: fixes bugs in CephManager

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #39712 from tchaikov/wip-prometheus-ann
Kefu Chai [Sun, 7 Mar 2021 15:50:02 +0000 (23:50 +0800)]
Merge pull request #39712 from tchaikov/wip-prometheus-ann

mgr/prometheus: add type annotations

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
4 years agoMerge pull request #39740 from tchaikov/wip-pybind-rtype
Kefu Chai [Sun, 7 Mar 2021 15:48:06 +0000 (23:48 +0800)]
Merge pull request #39740 from tchaikov/wip-pybind-rtype

pybind/{rados,cephfs}: use type annotation for rtype docstring

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agocrimson/osd: add constness to Notify 39900/head
Kefu Chai [Sun, 7 Mar 2021 13:51:53 +0000 (21:51 +0800)]
crimson/osd: add constness to Notify

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: cleanup Notify::send_completion()
Kefu Chai [Sun, 7 Mar 2021 13:32:28 +0000 (21:32 +0800)]
crimson/osd: cleanup Notify::send_completion()

Notify::send_completion() should just send the completion message. so,
move irrelevant code out of Notify::send_completion().

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: differentiate Notify with and without watchers
Kefu Chai [Sun, 7 Mar 2021 13:23:54 +0000 (21:23 +0800)]
crimson/osd: differentiate Notify with and without watchers

we don't need to arm the timer, if there is no watchers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: factor out "maybe" from maybe_send_completion()
Kefu Chai [Sun, 7 Mar 2021 13:04:52 +0000 (21:04 +0800)]
crimson/osd: factor out "maybe" from maybe_send_completion()

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39896 from bolapara/patch-1
Kefu Chai [Sun, 7 Mar 2021 12:23:21 +0000 (20:23 +0800)]
Merge pull request #39896 from bolapara/patch-1

docs: Ubuntu uses 'apt' not 'dnf'

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39895 from tchaikov/wip-crimson-watch
Kefu Chai [Sun, 7 Mar 2021 11:18:05 +0000 (19:18 +0800)]
Merge pull request #39895 from tchaikov/wip-crimson-watch

crimson/osd: watch-notify related cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agodoc/cephadm: use 'apt' to install cephadm on Ubuntu 39896/head
Josh [Sun, 7 Mar 2021 03:59:46 +0000 (21:59 -0600)]
doc/cephadm: use 'apt' to install cephadm on Ubuntu

Adjusted so Ubuntu command uses 'apt' and added Fedora since that uses 'dnf'.

4 years agocrimson/osd: no need to clear watchers beforehand 39895/head
Kefu Chai [Sun, 7 Mar 2021 02:55:35 +0000 (10:55 +0800)]
crimson/osd: no need to clear watchers beforehand

as long as we don't yield, we can assume the atomicity.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: use transparent comparator
Kefu Chai [Sun, 7 Mar 2021 02:47:20 +0000 (10:47 +0800)]
crimson/osd: use transparent comparator

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39879 from rzarzynski/wip-crimson-notify-timeout
Kefu Chai [Sun, 7 Mar 2021 01:44:12 +0000 (09:44 +0800)]
Merge pull request #39879 from rzarzynski/wip-crimson-notify-timeout

crimson/osd: implement timeout for notify propagation.

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocommon: provide description for osd_default_notify_timeout. 39879/head
Radoslaw Zarzynski [Fri, 5 Mar 2021 21:43:07 +0000 (21:43 +0000)]
common: provide description for osd_default_notify_timeout.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: unify initialization in Notify.
Radoslaw Zarzynski [Fri, 5 Mar 2021 21:37:05 +0000 (21:37 +0000)]
crimson/osd: unify initialization in Notify.

Let's be consistent with the `Notify::timeout_timer`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: implement timeout for notify propagation.
Radoslaw Zarzynski [Fri, 5 Mar 2021 18:49:05 +0000 (18:49 +0000)]
crimson/osd: implement timeout for notify propagation.

This missed feature was the root cause of the following
failure at Sepia:

```
2021-03-04T15:40:03.013 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: [ RUN      ] LibRadosWatchNotify.WatchNotify2Timeout
2021-03-04T15:40:03.013 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: watch_notify2_test_cb from 4394 notify_id 120259084288 cookie 94023196911472
2021-03-04T15:40:03.013 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-1471-g8bd81c29/rpm/el8/BUILD/ceph-17.0.0-1471-g8bd81c29/src/test/librados/watch_notify.cc:425: Failure
2021-03-04T15:40:03.014 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: Expected equality of these values:
2021-03-04T15:40:03.015 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify:   -110
2021-03-04T15:40:03.015 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify:   rados_notify2(ioctx, notify_oid, "notify", 6, 1000, &reply_buf, &reply_buf_len)
2021-03-04T15:40:03.015 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify:     Which is: 0
2021-03-04T15:40:03.016 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: [  FAILED  ] LibRadosWatchNotify.WatchNotify2Timeout (3020 ms)
```

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #39886 from tchaikov/wip-github-workflow-milestone
Kefu Chai [Sat, 6 Mar 2021 14:38:46 +0000 (22:38 +0800)]
Merge pull request #39886 from tchaikov/wip-github-workflow-milestone

.github: add workflow for adding milestone

Reviewed-by: Sage Weil <sage@redhat.com>
4 years ago.github: add workflow for adding milestone 39886/head
Kefu Chai [Sat, 6 Mar 2021 13:18:13 +0000 (21:18 +0800)]
.github: add workflow for adding milestone

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39846 from tchaikov/wip-cmake-find-pmem
Kefu Chai [Sat, 6 Mar 2021 09:03:39 +0000 (17:03 +0800)]
Merge pull request #39846 from tchaikov/wip-cmake-find-pmem

cmake: support COMPONENTS param in Findpmem.cmake

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agocmake: make the linkage to pmem::pmemobj public 39846/head
Kefu Chai [Sat, 6 Mar 2021 07:43:33 +0000 (15:43 +0800)]
cmake: make the linkage to pmem::pmemobj public

tools/ceph-dencoder/rbd_types.cc includes Types.h which in turn includes
libpmemobj.h via librbd/cache/pwl/Types.h. and ceph-dencoder pulls in the
rbd_type.cc's linked libraries by linking against rbd_types. but before
this change, rbd_types links against pmem::pmemobj as a PRIVATE library.

so, if we want to pull in rbd_types linkage we should always link
rbd_types as a PUBLIC library. as rbd_types include libpmemobj.h in its
header file.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: link libpmemobj against libpmem
Kefu Chai [Sat, 6 Mar 2021 04:22:39 +0000 (12:22 +0800)]
cmake: link libpmemobj against libpmem

libpmemobj should link against libpmem, but, in CMake, imported library
does not allow PRIVATE linkage. so pmem::pmem is added to the list of
INTERFACE_LINK_LIBRARIES.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: support COMPONENTS param in Findpmem.cmake
Kefu Chai [Fri, 5 Mar 2021 06:04:23 +0000 (14:04 +0800)]
cmake: support COMPONENTS param in Findpmem.cmake

add two components: pmem and pmemobj to this package. so we can find
them and link against them in a more intuitive way.

before this change the COMPONENTS parameter passed to

find_package(pmem ...)

is dropped on the floor and ignored.

after this change, it is checked and taken into consideration.

also, in this change, the exposed variables are renamed from

PMEM_* to pmem_*

to be consistent with the package name. it's encouraged to be consistent
with the package name when it comes to the INCLUDE_DIR and LIBRARIES
variable names.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: do not link blk against pmem::pmemobj
Kefu Chai [Fri, 5 Mar 2021 13:15:59 +0000 (21:15 +0800)]
cmake: do not link blk against pmem::pmemobj

as blk does not use pmem::pmemobj, librbd does.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39719 from zdover23/wip-doc-dev-t8y-interactive-on-error-rewrite...
Neha Ojha [Sat, 6 Mar 2021 01:32:42 +0000 (17:32 -0800)]
Merge pull request #39719 from zdover23/wip-doc-dev-t8y-interactive-on-error-rewrite-2021-Feb-26

doc/dev: t8y interactive-on-error rewrite

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge PR #38819 into master
Patrick Donnelly [Fri, 5 Mar 2021 22:28:25 +0000 (14:28 -0800)]
Merge PR #38819 into master

* refs/pull/38819/head:
win32*.sh: use ninja instead of make
doc: add ceph-dokan documentation
cephfs: Add ceph-dokan, providing Windows support
cephfs: add ceph_may_delete function
cephfs: disable inode emulation on Windows

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39874 into master
Patrick Donnelly [Fri, 5 Mar 2021 22:06:48 +0000 (14:06 -0800)]
Merge PR #39874 into master

* refs/pull/39874/head:
qa/crontab: simplify pacific cronjob def

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
4 years agoMerge PR #39873 into master
Patrick Donnelly [Fri, 5 Mar 2021 22:05:09 +0000 (14:05 -0800)]
Merge PR #39873 into master

* refs/pull/39873/head:
qa/crontab: set teuthology envvars in crontab

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #33996 from mdw-at-linuxbox/wip-master-kmip
Matt Benjamin [Fri, 5 Mar 2021 21:20:18 +0000 (16:20 -0500)]
Merge pull request #33996 from mdw-at-linuxbox/wip-master-kmip

rgw / kmip kms

4 years agoMerge PR #39817 into master
Sage Weil [Fri, 5 Mar 2021 20:33:50 +0000 (15:33 -0500)]
Merge PR #39817 into master

* refs/pull/39817/head:
qa/suites/rados/cephadm: drop centos/rhel cephadm tests for the moment
qa/sites/rados/cephadm/thrash: rename 3-tasks.yaml/ -> 3-tasks/
qa/suites/rados/cephadm: adjust distros
qa/suites/upgrade: use kubic; test all distros
qa/suites/rados/cephadm/upgrade: use kubic on centos
qa: new kubic distro files; use kubic podman for centos/rhel

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge PR #39855 into master
Sage Weil [Fri, 5 Mar 2021 20:33:38 +0000 (15:33 -0500)]
Merge PR #39855 into master

* refs/pull/39855/head:
qa/suites/rgw/singleton: add trivial cephadm case
Revert "rgw: register daemon in service map with more details"

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge pull request #39861 from tchaikov/wip-doc-theme
Josh Durgin [Fri, 5 Mar 2021 19:42:30 +0000 (11:42 -0800)]
Merge pull request #39861 from tchaikov/wip-doc-theme

doc/_theme: remove the spacing at top of "dl dt"

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge PR #39841 into master
Patrick Donnelly [Fri, 5 Mar 2021 19:34:14 +0000 (11:34 -0800)]
Merge PR #39841 into master

* refs/pull/39841/head:
qa: ignorelist slow ops during scrub

Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoMerge PR #38859 into master
Patrick Donnelly [Fri, 5 Mar 2021 19:33:08 +0000 (11:33 -0800)]
Merge PR #38859 into master

* refs/pull/38859/head:
mds: don't start purging inodes in the middle of recovery
mds: purge orphan objects created by lost async file creation
mds: track free prealloc_inos and delegated_inos separately
mds: cleanup code that purges orphan objects created by lost unsafe file creation
mds: subtract inos_to_purge from prealloc_inos when session close is logged
mds: use vector to define old_pools in PurgeItem and inode_backtrace_t

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoqa/crontab: simplify pacific cronjob def 39874/head
Patrick Donnelly [Fri, 5 Mar 2021 18:18:50 +0000 (10:18 -0800)]
qa/crontab: simplify pacific cronjob def

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoqa/crontab: set teuthology envvars in crontab 39873/head
Patrick Donnelly [Fri, 5 Mar 2021 17:01:44 +0000 (09:01 -0800)]
qa/crontab: set teuthology envvars in crontab

These are magically set somewhere in teuthology's startup rc files.
Instead, define them here.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #39838 from sebastian-philipp/doc-rm-cephadm-install
zdover23 [Fri, 5 Mar 2021 17:38:37 +0000 (03:38 +1000)]
Merge pull request #39838 from sebastian-philipp/doc-rm-cephadm-install

doc/install/index_manual: remove cephadm from toctree

Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agodoc/_theme: remove the spacing at top of "dl dt" 39861/head
Kefu Chai [Fri, 5 Mar 2021 16:13:05 +0000 (00:13 +0800)]
doc/_theme: remove the spacing at top of "dl dt"

otherwise there is a margin-top on top of dt.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoqa/suites/rgw/singleton: add trivial cephadm case 39855/head
Sage Weil [Fri, 5 Mar 2021 14:47:19 +0000 (09:47 -0500)]
qa/suites/rgw/singleton: add trivial cephadm case

Make sure we can deploy an rgw and not generate any warnings.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoRevert "rgw: register daemon in service map with more details"
Sage Weil [Fri, 5 Mar 2021 14:40:59 +0000 (09:40 -0500)]
Revert "rgw: register daemon in service map with more details"

This reverts commit 46ec2f0ddd81b4b5b4a61633eada998dcd606c9b.

This broke cephadm (by triggering CEPHADM_STRAY_DAEMON) because cephadm
assumes that a daemon named rgw.r.z.foo will register as rgw.r.z.foo.

It is not clear to me that there is a way to work around this naming
mismatch that makes much sense.  I think it makes more sense to focus on
the use-case that needs daemons to register under unique names and perhaps
control that naming behavior via an option or invest in providing daemons
with unique ids up front.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #39813 from smithfarm/wip-49583
Nathan Cutler [Fri, 5 Mar 2021 13:28:08 +0000 (14:28 +0100)]
Merge pull request #39813 from smithfarm/wip-49583

rpm: disable parallel compression on SUSE

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agowin32*.sh: use ninja instead of make 38819/head
Lucian Petrut [Wed, 3 Feb 2021 13:45:14 +0000 (13:45 +0000)]
win32*.sh: use ninja instead of make

In order to avoid overcomplicating the ceph cmake files, we're
picking make targets individually.

This is quite inefficient. Ninja can improve the build concurrency,
reducing the build duration by almost 50%.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agodoc: add ceph-dokan documentation
Lucian Petrut [Fri, 5 Mar 2021 13:14:29 +0000 (13:14 +0000)]
doc: add ceph-dokan documentation

This change documents ceph-dokan, describing the prerequisites,
usage and limitations.

Some of this was mentioned in README.windows.rst but is now being
moved to the Ceph doc pages.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agocephfs: Add ceph-dokan, providing Windows support
Lucian Petrut [Fri, 7 Aug 2020 12:07:20 +0000 (12:07 +0000)]
cephfs: Add ceph-dokan, providing Windows support

In order to expose ceph filesystems to Windows hosts, we propose
including ceph-dokan[1][2] in the Ceph tree, while updating it to
work with the latest CephFS and Dokany APIs.

Dokany is a well maintained project (fork of the original Dokan
project), allowing filesystems to be implemented in userspace,
even providing a Fuse compatibility layer.

One reason for not using the FUSE compatibility layer is that it's
only covering the high level API while Ceph is using the low level
FUSE API, which among other things is inode centric.

Changes made by this patch compared to the upstream ceph-dokan:

* support latest stable Dokany API. The upstream version relies on
  the legacy unmaintained Dokan API
* return proper error codes, converting standard errno.h values to
  NTSTATUS
* minor changes to support latest cephfs API
* drop duplicated ceph code, no longer needed if we're to include it
  in tree. This makes it much easier to maintain.
* drop redundant permission checks, leaving it up to libcephfs
* use ceph argparse helpers
* use ceph logging and daemon initialization
* fixed unicode handling
* switched to ceph coding style
* made ceph.conf param optional, using the default path if available
* enabled setting file timestamps
* append support
* configurable timeouts set once per mount
* ensure that the error code is always logged
* various cleanups (removed unused entry points, checks that have
  been moved to dokany, simplified conditional statements,
  unnecessary conversions in the hot path, etc).

[1] https://github.com/ketor/ceph-dokan
[2] https://github.com/ceph/ceph-dokan

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agoMerge pull request #39809 from sebastian-philipp/cephadm-compatibilty
Sebastian Wagner [Fri, 5 Mar 2021 11:20:33 +0000 (12:20 +0100)]
Merge pull request #39809 from sebastian-philipp/cephadm-compatibilty

doc/cephadm: remove warning about cephadm in production

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoMerge pull request #39639 from sebastian-philipp/cephadm-deploy-daemon-units-for...
Sebastian Wagner [Fri, 5 Mar 2021 09:43:39 +0000 (10:43 +0100)]
Merge pull request #39639 from sebastian-philipp/cephadm-deploy-daemon-units-for-existing-osds

mgr/cephadm: Activate existing OSDs

Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agocephfs: add ceph_may_delete function
Lucian Petrut [Fri, 26 Feb 2021 08:32:38 +0000 (08:32 +0000)]
cephfs: add ceph_may_delete function

We're adding a new libcephfs function: ceph_may_delete. It checks
if the mount permissions allow deleting a file or directory, without
actually deleting it.

This will allow us to drop the redundant permission checks at
ceph-dokan level, saving about 1500 LOC.

Note that the "DeleteFile" Dokan callback expects us to say if a
delete operation is allowed. The "Cleanup" callback is supposed
to perform the actual file or directory deletion.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agocephfs: disable inode emulation on Windows
Lucian Petrut [Mon, 22 Feb 2021 11:24:56 +0000 (11:24 +0000)]
cephfs: disable inode emulation on Windows

cephfs will use fake inodes when sizeof(ino_t) < 8. On Windows,
ino_t is defined as unsigned short (2B), which isn't enough.

On the other hand, most "native" Windows structures, including the
Dokan ones, are using 64b identifiers.

That being considered, we'll disable inode emulation on Windows.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agodoc/dev: t8y interactive-on-error rewrite 39719/head
Zac Dover [Fri, 26 Feb 2021 13:47:01 +0000 (23:47 +1000)]
doc/dev: t8y interactive-on-error rewrite

This PR rewrites the section of the Teuthology
documentation that is about the --interactive-
on-error flag.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
4 years agoMerge pull request #39824 from batrick/nightly-partitions
Josh Durgin [Fri, 5 Mar 2021 02:15:56 +0000 (18:15 -0800)]
Merge pull request #39824 from batrick/nightly-partitions

qa: allow specifying partition size for nightlies

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
4 years agoMerge pull request #39457 from tchaikov/wip-sphinx-rtd-theme
Kefu Chai [Fri, 5 Mar 2021 02:08:12 +0000 (10:08 +0800)]
Merge pull request #39457 from tchaikov/wip-sphinx-rtd-theme

doc: switch to sphinx_rtd_theme theme

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #39842 from liewegas/smoke-timeout
Neha Ojha [Fri, 5 Mar 2021 02:05:35 +0000 (18:05 -0800)]
Merge pull request #39842 from liewegas/smoke-timeout

src/test/smoke.sh: increase timeout

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #39840 from rzarzynski/wip-crimson-notify_reply_t
Kefu Chai [Fri, 5 Mar 2021 02:05:13 +0000 (10:05 +0800)]
Merge pull request #39840 from rzarzynski/wip-crimson-notify_reply_t

crimson/osd: fix the serialization of notify_reply_t.

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/_theme: customize sphinx_rtd_theme 39457/head
Kefu Chai [Sat, 13 Feb 2021 04:57:19 +0000 (12:57 +0800)]
doc/_theme: customize sphinx_rtd_theme

* move the breadcrumbs to the top
* add border around admonition elements
* use different colors and fonts for section headers
* add decoration lines at the bottom of breadcrumbs
* remove left and right borders in tables
* override the injected versions, the name of theme
  is different from "sphinx_rtd_theme", but the
  versions element is still displayed at the
  bottom-left corner as "versions.html" defines.
  without overriding .rst-badge CSS styling,
  readthedocs puts the injected versions at
  the default bottom-right corner, see
  https://github.com/readthedocs/readthedocs.org/blob/2a519f1146142d18f6a63b61c2f08984067280e0/readthedocs/api/v2/templates/restapi/footer.html

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoqa/suites/rados/cephadm: drop centos/rhel cephadm tests for the moment 39817/head
Sage Weil [Thu, 4 Mar 2021 18:33:12 +0000 (12:33 -0600)]
qa/suites/rados/cephadm: drop centos/rhel cephadm tests for the moment

...until we sort out the podman problems!  :( :(

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/sites/rados/cephadm/thrash: rename 3-tasks.yaml/ -> 3-tasks/
Sage Weil [Thu, 4 Mar 2021 18:32:27 +0000 (12:32 -0600)]
qa/sites/rados/cephadm/thrash: rename 3-tasks.yaml/ -> 3-tasks/

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/suites/rados/cephadm: adjust distros
Sage Weil [Thu, 4 Mar 2021 18:32:00 +0000 (12:32 -0600)]
qa/suites/rados/cephadm: adjust distros

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/suites/upgrade: use kubic; test all distros
Sage Weil [Wed, 3 Mar 2021 14:23:56 +0000 (08:23 -0600)]
qa/suites/upgrade: use kubic; test all distros

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/suites/rados/cephadm/upgrade: use kubic on centos
Sage Weil [Wed, 3 Mar 2021 14:18:19 +0000 (08:18 -0600)]
qa/suites/rados/cephadm/upgrade: use kubic on centos

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa: new kubic distro files; use kubic podman for centos/rhel
Sage Weil [Wed, 3 Mar 2021 14:14:29 +0000 (08:14 -0600)]
qa: new kubic distro files; use kubic podman for centos/rhel

The current centos/rhel version of podman (2.2.1) is broken.

- create new qa/distros/podman/* files that install kubic podman
- include centos/rhel variants
- adjust cephadm jobs to use new yaml files
- remove old qa/distros/all/*_podman.yaml files

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agosrc/test/smoke.sh: increase timeout 39842/head
Sage Weil [Thu, 4 Mar 2021 23:34:00 +0000 (17:34 -0600)]
src/test/smoke.sh: increase timeout

Fixes: https://tracker.ceph.com/issues/47419
Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa: schedule random subset 39824/head
Patrick Donnelly [Thu, 4 Mar 2021 21:01:01 +0000 (13:01 -0800)]
qa: schedule random subset

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoqa: allow specifying partition size for nightlies
Patrick Donnelly [Wed, 3 Mar 2021 21:23:35 +0000 (13:23 -0800)]
qa: allow specifying partition size for nightlies

I did some visual cleanup too but mostly this changeset is to support
specifying subsets for each suite type. For now, only "fs" suite is
using partitions different from rados.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39787 into master
Patrick Donnelly [Thu, 4 Mar 2021 21:33:14 +0000 (13:33 -0800)]
Merge PR #39787 into master

* refs/pull/39787/head:
qa: Update featureful_client suite to use octopus instead of nautilus

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39724 into master
Patrick Donnelly [Thu, 4 Mar 2021 21:32:10 +0000 (13:32 -0800)]
Merge PR #39724 into master

* refs/pull/39724/head:
qa: skip exit-on-first-failure option for valgrind on ubuntu
mds,qa: exit instead of respawn under valgrind
qa: skip chdir for fuse_mount
qa: ignore all slow request warnings
qa: add new mds beacon grace mon config
qa: wait for MDS to join fsmap
qa: move get_valgrind_args to qa

Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoMerge PR #39354 into master
Patrick Donnelly [Thu, 4 Mar 2021 21:28:59 +0000 (13:28 -0800)]
Merge PR #39354 into master

* refs/pull/39354/head:
mds/client: create cephfs errno aliases

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #38684 into master
Patrick Donnelly [Thu, 4 Mar 2021 21:27:45 +0000 (13:27 -0800)]
Merge PR #38684 into master

* refs/pull/38684/head:
qa: add _check_scrub_status helper to simplify the code
qa: add run_scrub helper in filesystem class
qa: add get_scrub_status helper in filesystem class
qa: wait the scrub task to complete
qa: remove passed_validation check for test_damage
qa: move wait_until_scrub_complete helper to filesystem class
mds: simplify the C_MDS_EnqueueScrub finish code

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #39835 from yuriw/wip-yuriw-crontab-master
Yuri Weinstein [Thu, 4 Mar 2021 21:23:20 +0000 (13:23 -0800)]
Merge pull request #39835 from yuriw/wip-yuriw-crontab-master

qa/tests: moved nautilus and octopus tests to run on gibba and -p 70 …

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoqa: ignorelist slow ops during scrub 39841/head
Patrick Donnelly [Thu, 4 Mar 2021 21:22:08 +0000 (13:22 -0800)]
qa: ignorelist slow ops during scrub

Fixes: https://tracker.ceph.com/issues/49607
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39832 into master
Sage Weil [Thu, 4 Mar 2021 21:08:14 +0000 (16:08 -0500)]
Merge PR #39832 into master

* refs/pull/39832/head:
mgr/DaemonServer: osd ok-to-stop: return json when there are unknown PGs

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge PR #39726 into master
Sage Weil [Thu, 4 Mar 2021 19:31:57 +0000 (14:31 -0500)]
Merge PR #39726 into master

* refs/pull/39726/head:
mgr/cephadm: document ok_to_stop output argument for clarity
mgr/DaemonServer: make warning language a bit friendlier
mgr/cephadm/upgrade: improve language a bit
mgr/cephadm/upgrade: restart multiple osds at once
mgr/cephadm: gather other osds that are safe to stop
mgr/cephadm: optional pass 'known' through to ok_to_stop
mgr/cephadm/upgrade: log start/stop/pause/resume

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge pull request #38741 from BryceCao/wip-standardize-request
Harish Munjulur [Thu, 4 Mar 2021 19:07:17 +0000 (11:07 -0800)]
Merge pull request #38741 from BryceCao/wip-standardize-request

rgw : add the check for bucket handler if http args exist object_exclusive sub_resource

4 years agoMerge pull request #39790 from yuvalif/wip-yuval-fix-49557
Harish Munjulur [Thu, 4 Mar 2021 19:05:30 +0000 (11:05 -0800)]
Merge pull request #39790 from yuvalif/wip-yuval-fix-49557

rgw/notification: fix persistent notification hang when ack-levl=none

4 years agoMerge pull request #39782 from yuvalif/wip-yuval-fix-49552
Harish Munjulur [Thu, 4 Mar 2021 19:05:14 +0000 (11:05 -0800)]
Merge pull request #39782 from yuvalif/wip-yuval-fix-49552

rgw/notification: fixing the "persistent=false" flag

4 years agoMerge pull request #39515 from CloudFerro/gc_max_objs
Harish Munjulur [Thu, 4 Mar 2021 19:03:56 +0000 (11:03 -0800)]
Merge pull request #39515 from CloudFerro/gc_max_objs

rgw: limit rgw_gc_max_objs to RGW_SHARDS_PRIME_1

4 years agoMerge pull request #39380 from leseb/rgw-svc-map-name
Harish Munjulur [Thu, 4 Mar 2021 19:03:19 +0000 (11:03 -0800)]
Merge pull request #39380 from leseb/rgw-svc-map-name

rgw: register daemon in service map with more details

4 years agoqa/tests: moved nautilus and octopus tests to run on gibba and -p 70 for smoke tests 39835/head
Yuri Weinstein [Thu, 4 Mar 2021 16:40:40 +0000 (08:40 -0800)]
qa/tests: moved nautilus and octopus tests to run on gibba and -p 70 for smoke tests

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
4 years agocrimson/osd: fix the serialization of notify_reply_t. 39840/head
Radoslaw Zarzynski [Thu, 4 Mar 2021 18:13:52 +0000 (18:13 +0000)]
crimson/osd: fix the serialization of notify_reply_t.

The `LibRadosWatchNotify.WatchNotify2` was expecting
data in the very raw form:

```cpp
  std::map<std::pair<uint64_t,uint64_t>, bufferlist> reply_map;
  std::set<std::pair<uint64_t,uint64_t> > missed_map;
  auto reply_p = reply.cbegin();
  decode(reply_map, reply_p);
  decode(missed_map, reply_p);
```

while the serialization of `notify_reply_t` was appending
extra preamable with versioning data.

This was the root cause of the following problem:
```
2021-03-04T15:40:03.001 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: Running main() from gmock_main.cc
2021-03-04T15:40:03.001 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: [==========] Running 11 tests from 2 test suites.
2021-03-04T15:40:03.002 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: [----------] Global test environment set-up.
2021-03-04T15:40:03.002 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: [----------] 10 tests from LibRadosWatchNotify
2021-03-04T15:40:03.002 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: [ RUN      ] LibRadosWatchNotify.WatchNotify
2021-03-04T15:40:03.002 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: watch_notify_test_cb
2021-03-04T15:40:03.003 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: [       OK ] LibRadosWatchNotify.WatchNotify (744 ms)
2021-03-04T15:40:03.003 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: [ RUN      ] LibRadosWatchNotify.Watch2Delete
2021-03-04T15:40:03.003 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: waiting up to 300 for disconnect notification ...
2021-03-04T15:40:03.003 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: watch_notify2_test_errcb cookie 94023196839536 err -107
2021-03-04T15:40:03.004 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: [       OK ] LibRadosWatchNotify.Watch2Delete (3123 ms)
2021-03-04T15:40:03.004 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: [ RUN      ] LibRadosWatchNotify.AioWatchDelete
2021-03-04T15:40:03.004 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: waiting up to 300 for disconnect notification ...
2021-03-04T15:40:03.004 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: watch_notify2_test_errcb cookie 94023196851488 err -107
2021-03-04T15:40:03.005 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: [       OK ] LibRadosWatchNotify.AioWatchDelete (5086 ms)
2021-03-04T15:40:03.005 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: [ RUN      ] LibRadosWatchNotify.WatchNotify2
2021-03-04T15:40:03.005 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: watch_notify2_test_cb from 4394 notify_id 120259084288 cookie 94023196869248
2021-03-04T15:40:03.005 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: unknown file: Failure
2021-03-04T15:40:03.006 INFO:tasks.workunit.client.0.smithi058.stdout:         api_watch_notify: C++ exception with description "End of buffer" thrown in the test body.```

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: improve debugs around sending notify_reply_t.
Radoslaw Zarzynski [Thu, 4 Mar 2021 18:10:43 +0000 (18:10 +0000)]
crimson/osd: improve debugs around sending notify_reply_t.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agodoc/install/index_manual: remove cephadm from toctree 39838/head
Sebastian Wagner [Thu, 4 Mar 2021 17:18:33 +0000 (18:18 +0100)]
doc/install/index_manual: remove cephadm from toctree

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agomgr/cephadm: document ok_to_stop output argument for clarity 39726/head
Sage Weil [Thu, 4 Mar 2021 17:01:28 +0000 (12:01 -0500)]
mgr/cephadm: document ok_to_stop output argument for clarity

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge PR #39823 into master
Sage Weil [Thu, 4 Mar 2021 16:41:28 +0000 (11:41 -0500)]
Merge PR #39823 into master

* refs/pull/39823/head:
qa/tasks/cephadm: remove mirror code

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge pull request #39822 from mgfritch/cephadm-custom-container-sample
Sebastian Wagner [Thu, 4 Mar 2021 15:23:26 +0000 (16:23 +0100)]
Merge pull request #39822 from mgfritch/cephadm-custom-container-sample

cephadm: split custom container args into argv

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #39699 from mgfritch/cephadm-bin-flake8-quotes
Sebastian Wagner [Thu, 4 Mar 2021 14:59:07 +0000 (15:59 +0100)]
Merge pull request #39699 from mgfritch/cephadm-bin-flake8-quotes

cephadm: introduce flake8 and flake8-quotes

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
4 years agomgr/DaemonServer: osd ok-to-stop: return json when there are unknown PGs 39832/head
Sage Weil [Thu, 4 Mar 2021 13:35:24 +0000 (08:35 -0500)]
mgr/DaemonServer: osd ok-to-stop: return json when there are unknown PGs

In 791952cc01201010f298033003ba52374cc0159f we switched to return JSON
both on success and fail to describe which PGs are affected or are blocking
the ability to stop/restart OSDs.  Do the same for the case where
some PG states are unknown (i.e., just after a mgr restart) so that
the cephadm upgrade process can unconditionally expect a JSON result.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/tasks/cephadm: remove mirror code 39823/head
Sage Weil [Wed, 3 Mar 2021 18:35:07 +0000 (12:35 -0600)]
qa/tasks/cephadm: remove mirror code

This is being done from ansible now.  Also, it breaks when
the conf file has unqualified-search-registries but not 'registry'
entries.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #39831 from xxhdx1985126/wip-crimson-io-sequencer-bug
Kefu Chai [Thu, 4 Mar 2021 13:10:36 +0000 (21:10 +0800)]
Merge pull request #39831 from xxhdx1985126/wip-crimson-io-sequencer-bug

crimson/osd: do not pass lvalue of the lambda to seastar::futurize_invoke

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39656 from pritha-srivastava/wip-rgw-sts-user-fix
Matt Benjamin [Thu, 4 Mar 2021 12:57:58 +0000 (07:57 -0500)]
Merge pull request #39656 from pritha-srivastava/wip-rgw-sts-user-fix

rgw/sts: fix for encoding/decoding user namespace

4 years agoMerge pull request #39452 from rhcs-dashboard/wip-49283-master
Ernesto Puerta [Thu, 4 Mar 2021 12:53:06 +0000 (13:53 +0100)]
Merge pull request #39452 from rhcs-dashboard/wip-49283-master

mgr/dashboard: report mgr fsid

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agocrimson/osd: do not pass lvalue of the lambda to seastar::futurize_invoke 39831/head
Xuehan Xu [Thu, 4 Mar 2021 12:29:57 +0000 (20:29 +0800)]
crimson/osd: do not pass lvalue of the lambda to seastar::futurize_invoke

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge pull request #39815 from sebastian-philipp/github-cephadm-minor
Kefu Chai [Thu, 4 Mar 2021 11:06:08 +0000 (19:06 +0800)]
Merge pull request #39815 from sebastian-philipp/github-cephadm-minor

.github: Minor cephadm changes

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agodoc: import layout.html from sphinx_rtd_theme
Kefu Chai [Sat, 13 Feb 2021 03:45:13 +0000 (11:45 +0800)]
doc: import layout.html from sphinx_rtd_theme

so we can customize it later

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc: switch to sphinx_rtd_theme
Kefu Chai [Sat, 13 Feb 2021 03:23:23 +0000 (11:23 +0800)]
doc: switch to sphinx_rtd_theme

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39827 from xxhdx1985126/wip-crimson-minor-bugs
Kefu Chai [Thu, 4 Mar 2021 10:33:25 +0000 (18:33 +0800)]
Merge pull request #39827 from xxhdx1985126/wip-crimson-minor-bugs

crimson/osd: capture error_code by value in PG::handle_failed_op

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge pull request #39812 from rzarzynski/wip-crimson-admin-config-help
Kefu Chai [Thu, 4 Mar 2021 09:45:16 +0000 (17:45 +0800)]
Merge pull request #39812 from rzarzynski/wip-crimson-admin-config-help

crimson/admin: add support for 'config help'

Reviewed-by: Kefu Chai <kchai@redhat.com>