]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agodoc/rados/operations/health-checks: document new bluestore warnings 27519/head
Sage Weil [Mon, 15 Apr 2019 13:59:46 +0000 (08:59 -0500)]
doc/rados/operations/health-checks: document new bluestore warnings

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/bluestore: alert on fm/bdev size mismatch
Igor Fedotov [Fri, 12 Apr 2019 14:04:07 +0000 (17:04 +0300)]
os/bluestore: alert on fm/bdev size mismatch

Relates to: https://tracker.ceph.com/issues/39151

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
6 years agoos/bluestore: introduce legacy statfs alert
Igor Fedotov [Wed, 10 Apr 2019 16:18:37 +0000 (19:18 +0300)]
os/bluestore: introduce legacy statfs alert

Fixes: https://tracker.ceph.com/issues/39146
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge pull request #27290 from sebastian-philipp/rook-system-namespace
Sebastian Wagner [Wed, 10 Apr 2019 13:20:40 +0000 (15:20 +0200)]
Merge pull request #27290 from sebastian-philipp/rook-system-namespace

mgr/rook: Support other system namespaces

Reviewed-by: Blaine Gardner <blaine.gardner@suse.com>
Reviewed-by: Rohan Gupta <rohanrgupta1996@gmail.com>
Reviewed-by: Travis Nielsen <tnielsen@redhat.com>
6 years agoMerge pull request #27408 from nathan-weinberg/reformat
Lenz Grimmer [Wed, 10 Apr 2019 12:56:08 +0000 (14:56 +0200)]
Merge pull request #27408 from nathan-weinberg/reformat

mgr/dashboard: Updated existing E2E tests to match new format

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge PR #27490 into master
Sage Weil [Wed, 10 Apr 2019 12:27:27 +0000 (07:27 -0500)]
Merge PR #27490 into master

* refs/pull/27490/head:
PendingReleaseNotes: note on python3.6 changes

Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoPendingReleaseNotes: note on python3.6 changes 27490/head
Kefu Chai [Wed, 10 Apr 2019 10:08:04 +0000 (18:08 +0800)]
PendingReleaseNotes: note on python3.6 changes

Fixes: http://tracker.ceph.com/issues/39164
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27406 from rhcs-dashboard/fix-39125-master
Ricardo Marques [Wed, 10 Apr 2019 09:53:27 +0000 (10:53 +0100)]
Merge pull request #27406 from rhcs-dashboard/fix-39125-master

mgr/dashboard: Add whitelist to guard

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #27289 from sebastian-philipp/rook-fix-osd-create
Sebastian Wagner [Wed, 10 Apr 2019 08:50:22 +0000 (10:50 +0200)]
Merge pull request #27289 from sebastian-philipp/rook-fix-osd-create

mgr/rook: Fix creation of bluestore OSDs

Reviewed-by: Blaine Gardner <blaine.gardner@suse.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Travis Nielsen <tnielsen@redhat.com>
6 years agoMerge PR #27464 into master
Sage Weil [Tue, 9 Apr 2019 18:49:42 +0000 (13:49 -0500)]
Merge PR #27464 into master

* refs/pull/27464/head:
msg/async/frames_v2.h: fix warning

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #27357 from dillaman/wip-39021
Mykola Golub [Tue, 9 Apr 2019 17:34:16 +0000 (20:34 +0300)]
Merge pull request #27357 from dillaman/wip-39021

librbd: fixed several race conditions related to copyup

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #27466 from wjwithagen/wjw-fix-/src/test/rgw/CMakeLists.txt
Casey Bodley [Tue, 9 Apr 2019 17:03:15 +0000 (13:03 -0400)]
Merge pull request #27466 from wjwithagen/wjw-fix-/src/test/rgw/CMakeLists.txt

build/rgw: unittest_rgw_dmclock_scheduler does not need Boost_LIBRARIES

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27468 from tchaikov/wip-rpm-python3
Boris Ranto [Tue, 9 Apr 2019 16:53:07 +0000 (18:53 +0200)]
Merge pull request #27468 from tchaikov/wip-rpm-python3

rpm: add "Provides: python3-*" for python packages and cleanup

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
6 years agorpm: add "Provides: python3-*" for python packages 27468/head
Kefu Chai [Tue, 9 Apr 2019 15:22:57 +0000 (23:22 +0800)]
rpm: add "Provides: python3-*" for python packages

so user can install python3-rados, instead of python36-rados, without
specifying the minor version of python. also, we should not break our
teuthology tests with this naming scheme change. for instance, our
cephfs qa suite installs `python3-cephfs` for testing the `cephfs-shell`

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27309 from pritha-srivastava/wip-rgw-non-existent-object
Casey Bodley [Tue, 9 Apr 2019 16:02:36 +0000 (12:02 -0400)]
Merge pull request #27309 from pritha-srivastava/wip-rgw-non-existent-object

rgw: Evaluating bucket policies also while reading permissions for an…

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agorpm: always use 3 as the default python3_{pkgversion,version}
Kefu Chai [Tue, 9 Apr 2019 15:15:16 +0000 (23:15 +0800)]
rpm: always use 3 as the default python3_{pkgversion,version}

as we have the rpm macros installed in
https://github.com/ceph/ceph-build/pull/1283 .

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agobuild/rgw: unittest_rgw_dmclock_scheduler does not need Boost_LIBRARIES 27466/head
Willem Jan Withagen [Tue, 9 Apr 2019 14:49:09 +0000 (16:49 +0200)]
build/rgw: unittest_rgw_dmclock_scheduler does not need Boost_LIBRARIES

Redo fix, also see #26799

Otherwise linking could error like:
```
/usr/local/bin/ld: /usr/local/lib/libboost_python27.so: undefined reference to `PyUnicodeUCS4_FromEncodedObject'
/usr/local/bin/ld: /usr/local/lib/libboost_python27.so: undefined reference to `PyNumber_InPlaceDivide'
........
/usr/local/bin/ld: /usr/local/lib/libboost_python27.so: undefined reference to `PyStaticMethod_Type'
/usr/local/bin/ld: /usr/local/lib/libboost_python27.so: undefined reference to `PyTuple_Size'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [src/test/rgw/CMakeFiles/unittest_rgw_dmclock_scheduler.dir/build.make:147: bin/unittest_rgw_dmclock_scheduler] Error 1
```

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agomsg/async/frames_v2.h: fix warning 27464/head
Sage Weil [Tue, 9 Apr 2019 14:31:24 +0000 (09:31 -0500)]
msg/async/frames_v2.h: fix warning

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #27455 from wjwithagen/wjw-fix-test_weighted_shuffle.cc
Kefu Chai [Tue, 9 Apr 2019 14:29:55 +0000 (22:29 +0800)]
Merge pull request #27455 from wjwithagen/wjw-fix-test_weighted_shuffle.cc

test: Add `#include <array>`

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27431 from sebastian-philipp/rook-doc-update-mon
Sebastian Wagner [Tue, 9 Apr 2019 14:19:53 +0000 (16:19 +0200)]
Merge pull request #27431 from sebastian-philipp/rook-doc-update-mon

doc/mgr/orchestrator_cli: Rook orch supports mon update

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
6 years agoMerge pull request #25985 from l-vo/update_php_doc
Casey Bodley [Tue, 9 Apr 2019 13:40:42 +0000 (09:40 -0400)]
Merge pull request #25985 from l-vo/update_php_doc

doc/radosgw: update documentation examples with the current S3 PHP client

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge PR #27051 into master
Patrick Donnelly [Tue, 9 Apr 2019 13:18:26 +0000 (06:18 -0700)]
Merge PR #27051 into master

* refs/pull/27051/head:
mds: open import bounding dirfrags in batch
mds: remove superfluous error in StrayManager::advance_delayed()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #27412 into master
Patrick Donnelly [Tue, 9 Apr 2019 13:17:26 +0000 (06:17 -0700)]
Merge PR #27412 into master

* refs/pull/27412/head:
doc: add doc for blacklisting older CephFS clients

Reviewed-by: Barbora Ančincová <bara@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge pull request #27194 from trociny/wip-38661
Jason Dillaman [Tue, 9 Apr 2019 12:58:50 +0000 (08:58 -0400)]
Merge pull request #27194 from trociny/wip-38661

librbd: do not allow to deep copy migrating image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #27268 from trociny/wip-38364
Jason Dillaman [Tue, 9 Apr 2019 12:57:53 +0000 (08:57 -0400)]
Merge pull request #27268 from trociny/wip-38364

librbd: support EC data pool images sparsify

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #27452 from tchaikov/wip-crimson-auth-server
Kefu Chai [Tue, 9 Apr 2019 11:16:50 +0000 (19:16 +0800)]
Merge pull request #27452 from tchaikov/wip-crimson-auth-server

crimson: move dummy impl of AuthServer to DummyAuth

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agomgr/dashboard: Add whitelist to guard 27406/head
Ernesto Puerta [Fri, 5 Apr 2019 16:22:30 +0000 (18:22 +0200)]
mgr/dashboard: Add whitelist to guard

After PR https://github.com/ceph/ceph/pull/26572, when RGW is not
  configured, accessing /rgw drop-down (daemons, users or buckets)
  results in nothing apparently happening (not even an error).

  Under the curtains, what is happening is that the ModuleStatusGuard
  has redirected the route to the rgw/501, but as this route is now
  under parent rgw route handler, which sets CanActivateChild guards,
  this results in a new ModuleStatusGuard invokation, a subsequent
  failure and a new redirection to rgw/501.

  Several approaches could be taken here:
  - Remove error pages from lazy-loaded modules. Probably it does not
  make sense to have a 501 page per component.
  - Add some whitelist to avoid this kind of loop (e.g.: 501, or any
      error page).
  - Set a max number of redirections (cautionary measure).

Fixes: https://tracker.ceph.com/issues/39125
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
6 years agomgr/rook: Support other system namespaces 27290/head
Sebastian Wagner [Mon, 1 Apr 2019 13:25:33 +0000 (15:25 +0200)]
mgr/rook: Support other system namespaces

Fixes http://tracker.ceph.com/issues/38799

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agotest: Add includefile for arrays 27455/head
Willem Jan Withagen [Tue, 9 Apr 2019 09:24:49 +0000 (11:24 +0200)]
test: Add includefile for arrays

Otherwise Clang will complain on FreeBSD:
```
/home/jenkins/workspace/ceph-master/src/test/test_weighted_shuffle.cc:9:23: error: implicit instantiation of undefined template 'std::__1::array<char, 5>'
  std::array<char, 5> choices{'a', 'b', 'c', 'd', 'e'};
                      ^
/usr/include/c++/v1/__tuple:223:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
/home/jenkins/workspace/ceph-master/src/test/test_weighted_shuffle.cc:10:22: error: implicit instantiation of undefined template 'std::__1::array<int, 5>'
  std::array<int, 5> weights{100, 50, 25, 10, 1};
                     ^
/usr/include/c++/v1/__tuple:223:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
```

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agocrimson/mon: implement AuthServer methods 27452/head
Kefu Chai [Tue, 9 Apr 2019 06:36:45 +0000 (14:36 +0800)]
crimson/mon: implement AuthServer methods

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/auth: move dummy impl of AuthServer to DummyAuth
Kefu Chai [Tue, 9 Apr 2019 06:35:24 +0000 (14:35 +0800)]
crimson/auth: move dummy impl of AuthServer to DummyAuth

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27416 from tchaikov/wip-crimson-auth
Kefu Chai [Tue, 9 Apr 2019 03:39:28 +0000 (11:39 +0800)]
Merge pull request #27416 from tchaikov/wip-crimson-auth

crimson: update osd when peer gets authenticated

Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agocrimson: update osd when peer gets authenticated 27416/head
Kefu Chai [Sat, 6 Apr 2019 13:00:59 +0000 (21:00 +0800)]
crimson: update osd when peer gets authenticated

* common/auth_handler.h: add an abstract class of AuthHandler, the one who is interested in
  an authenticated peer should implement this class
* mon/MonClient: let mon::Client implement AuthServer, as it has access the keyring. it
  will update the registered AuthHandler if the client (peer) is
  authenticated.
* osd: implement AuthHandler class. we will keep track of the connected
  sessions along their caps in a follow-up change.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27426 from tchaikov/wip-crimson-setup-msgr
Kefu Chai [Tue, 9 Apr 2019 03:31:19 +0000 (11:31 +0800)]
Merge pull request #27426 from tchaikov/wip-crimson-setup-msgr

crimson/osd: consolidate the code to initialize msgrs

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #27286 from tchaikov/wip-strncpy-with-nul
Kefu Chai [Tue, 9 Apr 2019 03:30:05 +0000 (11:30 +0800)]
Merge pull request #27286 from tchaikov/wip-strncpy-with-nul

osdc/Objecter: always add `\0' after strncpy()

Reviewed-by: David Zafman <dzafman@redhat.com>
6 years agoMerge pull request #27429 from cyx1231st/wip-seastar-msgr-perf2
Kefu Chai [Tue, 9 Apr 2019 03:27:52 +0000 (11:27 +0800)]
Merge pull request #27429 from cyx1231st/wip-seastar-msgr-perf2

test/crimson: include writes in perf_crimson/async_server

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agotest/crimson: wrap perf parameters as structured data 27429/head
Yingxin Cheng [Mon, 8 Apr 2019 08:49:46 +0000 (16:49 +0800)]
test/crimson: wrap perf parameters as structured data

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agotest/crimson: perf_crimson/async_server write test support
Yingxin Cheng [Thu, 4 Apr 2019 13:18:00 +0000 (21:18 +0800)]
test/crimson: perf_crimson/async_server write test support

Allow server to have write/send workload with specified block size.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agoMerge pull request #27422 from iotcg/doc_pg
Xie Xingguo [Tue, 9 Apr 2019 00:58:41 +0000 (08:58 +0800)]
Merge pull request #27422 from iotcg/doc_pg

doc: fix parameter to set pg autoscale mode

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #27427 into master
Patrick Donnelly [Tue, 9 Apr 2019 00:09:45 +0000 (17:09 -0700)]
Merge PR #27427 into master

* refs/pull/27427/head:
cephfs-shell: Use colorama module instead of colorize

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #27369 into master
Patrick Donnelly [Mon, 8 Apr 2019 23:16:06 +0000 (16:16 -0700)]
Merge PR #27369 into master

* refs/pull/27369/head:
docs: Add note to execute cephfs-shell

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #27256 into master
Patrick Donnelly [Mon, 8 Apr 2019 23:13:00 +0000 (16:13 -0700)]
Merge PR #27256 into master

* refs/pull/27256/head:
mds: drop reconnect message from non-existent session

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #27214 into master
Patrick Donnelly [Mon, 8 Apr 2019 23:11:51 +0000 (16:11 -0700)]
Merge PR #27214 into master

* refs/pull/27214/head:
mds/server: check directory split after rename.

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #27415 into master
Patrick Donnelly [Mon, 8 Apr 2019 22:41:48 +0000 (15:41 -0700)]
Merge PR #27415 into master

* refs/pull/27415/head:
qa: decouple session map test from simple msgr
msg/async: move connection ref
msg/async: dec active connections when marked down

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #27414 into master
Patrick Donnelly [Mon, 8 Apr 2019 22:21:42 +0000 (15:21 -0700)]
Merge PR #27414 into master

* refs/pull/27414/head:
msg/async: resolve gcc warning

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoqa: decouple session map test from simple msgr 27415/head
Patrick Donnelly [Fri, 5 Apr 2019 23:06:22 +0000 (16:06 -0700)]
qa: decouple session map test from simple msgr

Instead of looking at the number of threads (used by the simple messenger) to
judge the coming and going of connections, use the (async) messenger perf
counters.

Plus some other minor improvements.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomsg/async: move connection ref
Patrick Donnelly [Fri, 5 Apr 2019 23:05:42 +0000 (16:05 -0700)]
msg/async: move connection ref

Trivial optimization.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomsg/async: dec active connections when marked down
Patrick Donnelly [Fri, 5 Apr 2019 23:04:14 +0000 (16:04 -0700)]
msg/async: dec active connections when marked down

Otherwise, tests can't tell when a connection is stopped until it's eventually
"lazily" deleted. This should be safe since the perf counter is manipulating an
atomic value.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agodoc: add doc for blacklisting older CephFS clients 27412/head
Patrick Donnelly [Fri, 5 Apr 2019 21:11:11 +0000 (14:11 -0700)]
doc: add doc for blacklisting older CephFS clients

Fixes: http://tracker.ceph.com/issues/39130
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agolibrbd: force a copyup object map update if migration completes 27357/head
Jason Dillaman [Mon, 8 Apr 2019 17:42:16 +0000 (13:42 -0400)]
librbd: force a copyup object map update if migration completes

If a live-migration copyup was in-progress when the copyup completes,
force the object map to be updated.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: cleaned up snap/parent lock release in read-from-parent path
Jason Dillaman [Thu, 4 Apr 2019 15:23:58 +0000 (11:23 -0400)]
librbd: cleaned up snap/parent lock release in read-from-parent path

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agotest/librbd: initial unit test for copyup state machine
Jason Dillaman [Tue, 2 Apr 2019 18:10:42 +0000 (14:10 -0400)]
test/librbd: initial unit test for copyup state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: copyup should restart delayed ops against the same object
Jason Dillaman [Thu, 4 Apr 2019 01:35:40 +0000 (21:35 -0400)]
librbd: copyup should restart delayed ops against the same object

This avoids the potential for a race condition where an in-flight
copyup is removed from the in-flight copyup list and a subsequent
IO against the same object causes a second in-flight copyup.

Fixes: http://tracker.ceph.com/issues/39021
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: merge copyup object map update states
Jason Dillaman [Tue, 2 Apr 2019 15:51:36 +0000 (11:51 -0400)]
librbd: merge copyup object map update states

The object map HEAD and HEAD/snapshot update states have been
simplified and merged into a single state. This also fixes
several potential race conditions and an issue where CoR might
incorrectly mark the HEAD object has exists+dirty.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: refactor copyup state machine to match current code style
Jason Dillaman [Fri, 29 Mar 2019 18:17:15 +0000 (14:17 -0400)]
librbd: refactor copyup state machine to match current code style

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: properly hold snap/parent locks during IO
Jason Dillaman [Fri, 29 Mar 2019 17:23:37 +0000 (13:23 -0400)]
librbd: properly hold snap/parent locks during IO

The ImageCtx::parent pointer was dereferenced without holding the lock
which could lead to a crash. The ImageCtx::migration_info structure
was also dereferenced without holding a lock.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: empty IO requests should complete in new context
Jason Dillaman [Tue, 2 Apr 2019 19:33:00 +0000 (15:33 -0400)]
librbd: empty IO requests should complete in new context

This will avoid the possibility of a lock being held by the caller
and having the IO immediately complete back to the calling state
machine.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: deep-copy object copy should register an in-flight op
Jason Dillaman [Mon, 1 Apr 2019 18:48:47 +0000 (14:48 -0400)]
librbd: deep-copy object copy should register an in-flight op

When handling live migrations, the source image is the parent
image of the destination image. To prevent the parent image from
being closed while a request is in-flight, the object copy
state machine now registers an async operation with the source
image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: deep-copy object copy should delay computing object existence
Jason Dillaman [Fri, 29 Mar 2019 20:33:21 +0000 (16:33 -0400)]
librbd: deep-copy object copy should delay computing object existence

This prevent a potential recursive lock on the destination image's
snap_lock.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge PR #27281 into master
Patrick Donnelly [Mon, 8 Apr 2019 16:35:43 +0000 (09:35 -0700)]
Merge PR #27281 into master

* refs/pull/27281/head:
script/ceph-release-notes: alternate merge commit format

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
6 years agoMerge pull request #26782 from iotcg/master
Kefu Chai [Mon, 8 Apr 2019 16:32:46 +0000 (00:32 +0800)]
Merge pull request #26782 from iotcg/master

vstart.sh: fix CEPH_PORT check and cleanups

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #27437 into master
Patrick Donnelly [Mon, 8 Apr 2019 16:26:01 +0000 (09:26 -0700)]
Merge PR #27437 into master

* refs/pull/27437/head:
vstart: add an alias for cephfs-shell to vstart_environment.sh

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #27419 into master
Sage Weil [Mon, 8 Apr 2019 15:17:50 +0000 (10:17 -0500)]
Merge PR #27419 into master

* refs/pull/27419/head:
common: add --log-early command line option

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27091 from yuvalif/s2_pubsub_api_new
Yuval Lifshitz [Mon, 8 Apr 2019 14:31:40 +0000 (17:31 +0300)]
Merge pull request #27091 from yuvalif/s2_pubsub_api_new

S3 compatible pubsub API

6 years agoMerge PR #27374 into master
Sage Weil [Mon, 8 Apr 2019 14:25:14 +0000 (09:25 -0500)]
Merge PR #27374 into master

* refs/pull/27374/head:
mgr/volume: set cephfs metadata bias at 4x
mgr/volume: default to 16 PGs (min) for metadata pool

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #27349 into master
Sage Weil [Mon, 8 Apr 2019 14:24:26 +0000 (09:24 -0500)]
Merge PR #27349 into master

* refs/pull/27349/head:
qa/distros/supported/ubuntu_latest: 16.04 -> 18.04
qa/distros/supported/centos_latest: 7.5 -> 7.6
qa/distros: add centos 7.6

Reviewed-by: David Galloway <dgallowa@redhat.com>
6 years agoMerge PR #27386 into master
Sage Weil [Mon, 8 Apr 2019 14:24:09 +0000 (09:24 -0500)]
Merge PR #27386 into master

* refs/pull/27386/head:
os/filestore/FileJournal: note EIO events
os/filestore: make note of EIO errors when we see them
os/filestore: note devname for later use
global/signal_handler: avoid core dump on EIO
os/bluestore/KernelDevice: note EIO metadata on aio EIO
global: add hook to annotate crash report with EIO information

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge PR #27337 into master
Sage Weil [Mon, 8 Apr 2019 14:13:37 +0000 (09:13 -0500)]
Merge PR #27337 into master

* refs/pull/27337/head:
msg/async: add timeout for connections which are not yet ready
msg: rename ms_tcp_read_timeout to ms_connection_idle_timeout

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agovstart: add an alias for cephfs-shell to vstart_environment.sh 27437/head
Jeff Layton [Mon, 8 Apr 2019 14:00:03 +0000 (10:00 -0400)]
vstart: add an alias for cephfs-shell to vstart_environment.sh

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agoMerge pull request #27341 from liewegas/wip-learn-addr-from-peer
Kefu Chai [Mon, 8 Apr 2019 11:53:09 +0000 (19:53 +0800)]
Merge pull request #27341 from liewegas/wip-learn-addr-from-peer

msg/async/ProtocolV[12]: add ms_learn_addr_from_peer

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #27340 from tchaikov/wip-cmt-more-chatty
Kefu Chai [Mon, 8 Apr 2019 11:50:01 +0000 (19:50 +0800)]
Merge pull request #27340 from tchaikov/wip-cmt-more-chatty

ceph-monstore-tool: print out caps when rebuilding monstore

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #27352 from liewegas/wip-deferred-log-start
Kefu Chai [Mon, 8 Apr 2019 11:49:11 +0000 (19:49 +0800)]
Merge pull request #27352 from liewegas/wip-deferred-log-start

common: start logging for non-global_init users

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27324 from batrick/async-msgr-clear
Kefu Chai [Mon, 8 Apr 2019 11:48:08 +0000 (19:48 +0800)]
Merge pull request #27324 from batrick/async-msgr-clear

msg/async: use faster clear method to delete containers

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #26806 from xiexingguo/wip-repair-eio-rep
Kefu Chai [Mon, 8 Apr 2019 11:46:36 +0000 (19:46 +0800)]
Merge pull request #26806 from xiexingguo/wip-repair-eio-rep

osd: automatically repair replicated replica on pulling error

Reviewed-by: David Zafman <dzafman@redhat.com>
6 years agomgr/rook: Fix creation of bluestore OSDs: 27289/head
Sebastian Wagner [Mon, 1 Apr 2019 13:22:58 +0000 (15:22 +0200)]
mgr/rook: Fix creation of bluestore OSDs:

See https://rook.io/docs/rook/v0.9/ceph-cluster-crd.html
    Storage Configuration: Specific devices

Fixes http://tracker.ceph.com/issues/39062

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agodocs: Add note to execute cephfs-shell 27369/head
Varsha Rao [Thu, 4 Apr 2019 09:35:39 +0000 (15:05 +0530)]
docs: Add note to execute cephfs-shell

Signed-off-by: Varsha Rao <varao@redhat.com>
6 years agodoc/mgr/orchestrator_cli: Rook orch supports mon update 27431/head
Sebastian Wagner [Mon, 8 Apr 2019 09:24:16 +0000 (11:24 +0200)]
doc/mgr/orchestrator_cli: Rook orch supports mon update

Fixes: http://tracker.ceph.com/issues/39137
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agocephfs-shell: Use colorama module instead of colorize 27427/head
Varsha Rao [Mon, 8 Apr 2019 07:38:12 +0000 (13:08 +0530)]
cephfs-shell: Use colorama module instead of colorize

Remove references to colorize attributes. As in cmd2 module, colorize attribute
is deleted. Instead use colorama module.

Fixes: https://tracker.ceph.com/issues/38996
Signed-off-by: Varsha Rao <varao@redhat.com>
6 years agocrimson/osd: consolidate the code to initialize msgrs 27426/head
Kefu Chai [Mon, 8 Apr 2019 05:48:02 +0000 (13:48 +0800)]
crimson/osd: consolidate the code to initialize msgrs

no need to repeat them in difference places. we should just ready them
in main.cc where they are created.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27417 from tchaikov/wip-rpm-python36-el7
Kefu Chai [Mon, 8 Apr 2019 07:32:05 +0000 (15:32 +0800)]
Merge pull request #27417 from tchaikov/wip-rpm-python36-el7

rpm: use python 3.6 as the default python3

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
6 years agovstart.sh: add space between option and arg in cut command 26782/head
Changcheng Liu [Wed, 6 Mar 2019 08:22:52 +0000 (16:22 +0800)]
vstart.sh: add space between option and arg in cut command

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
6 years agovstart.sh: improve readability of ceph-conf for default op:lookup
Changcheng Liu [Wed, 6 Mar 2019 08:19:46 +0000 (16:19 +0800)]
vstart.sh: improve readability of ceph-conf for default op:lookup

The default operation os ceph-conf is --lookup option.
Add it obviously to enhance its readiness.

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
6 years agovstart.sh: set init-ceph under CEPH_BIN directly
Changcheng Liu [Wed, 6 Mar 2019 08:17:11 +0000 (16:17 +0800)]
vstart.sh: set init-ceph under CEPH_BIN directly

$CEPH_BUILD_DIR/bin/init-ceph is equal to
$CEPH_BIN/init-ceph

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
6 years agovstart.sh: align add/minus shell var usage
Changcheng Liu [Thu, 7 Mar 2019 08:45:57 +0000 (16:45 +0800)]
vstart.sh: align add/minus shell var usage

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
6 years agovstart.sh: fix typo when getting ipv4 address
Changcheng Liu [Wed, 6 Mar 2019 08:14:25 +0000 (16:14 +0800)]
vstart.sh: fix typo when getting ipv4 address

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
6 years agovstart.sh: fix ceph random port check
Changcheng Liu [Wed, 6 Mar 2019 08:11:31 +0000 (16:11 +0800)]
vstart.sh: fix ceph random port check

The regular expression should check the port first, then
check "LISTEN" item. "LISTEN" is not after the port item.

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agodoc: fix parameter to set pg autoscale mode 27422/head
Changcheng Liu [Mon, 8 Apr 2019 02:40:47 +0000 (10:40 +0800)]
doc: fix parameter to set pg autoscale mode

osd_pool_default_pg_autoscale_mode is the right parameter to
set placement-group autoscale mode.

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
6 years agorpm: use python 3.6 as the default python3 27417/head
Kefu Chai [Sun, 7 Apr 2019 00:43:59 +0000 (08:43 +0800)]
rpm: use python 3.6 as the default python3

some of our centos7 jenkins builders are failing to build ceph master and
nautilus branches. because EPEL7 recently switched from python3.4 to
python3.6 as the native python3. see
https://lists.fedoraproject.org/archives/list/epel-announce@lists.fedoraproject.org/message/EGUMKAIMPK2UD5VSHXM53BH2MBDGDWMO/

and one of our BuildRequires, cmake3,
was offered by EPEL7. it also followed the python3.6 switch-over to
rebuild against python3.6. as a result, the cmake3-data-3.13.4-2.el7
started to depend on /usr/bin/python3.6, which is in turn offered by
python36 package. after installing python36 as a dependency of the
updated cmake3. but in cmake, we originally checks for the latest
python3 interpreter if WITH_PYTHON3 is enabled, that's why these
builders which happen to install these updated packages started to fail
when detecting the existence of python3.6 related build dependencies.

as a fix, in d1e83082,
python%{python3_pkgversion}-{devel,setuptools,Cython} are listed as
BuildRequires to reflect this change in EPEL7. before d1e83082, we
hardwired them to python34-*.

but as following analysis puts, there are cases where `yum-builddep`
is inconsistent with `rpmbuild`. as `yum-builddep` changes the how
`python3_pkgversion` and `python3_version` macros are expanded:

- none of the packages installed by `yum-builddep` installs the python3
  related rpm macros, so the system stays with whatever python3 it was
  using. in this case, `rpmbuild` won't complain, as the
  `python3_pkgversion` and `python_version` are consistent before and
  after `yum-builddep`.
- system has python3.4 installed before `yum-builddep`. but
  `yum-builddep` installed python3.6 and also the updated
  `python-rpm-macros` packages, which points `python3_version` and
  `python3_pkgversion` to 3.6 and 36 respectively. in this case,
  `rpmbuild` will complain, because when we run `yum-builddep`,
  `python3_version` was still "3.4".
- system does not have python3 installed before `yum-builddep`. so
  it was using python34 for preparing the "BuildRequires". but some
  of the packages installed by `yum-builddep` installs python36, and
  also the updated `python-rpm-macros` packages, which points
  `python3_version` and `python3_pkgversion` to 3.6 and 36 respectively.
  in this case, `rpmbuild` will complain, because the python36 related
  dependencies are missing. what the system has is python34
  dependencies.
- system does not have python3 installed before `yum-builddep`. so
  it was using python34 for preparing the "BuildRequires". but some
  of the packages installed by `yum-builddep` installs python34, and
  also the updated `python-rpm-macros` packages, which points
  `python3_version` and `python3_pkgversion` to 3.4 and 34 respectively.
  in this case, `rpmbuild` won't complain, as the
  `python3_pkgversion` and `python_version` are also consistent before and
  after `yum-builddep`.

as we cannot tell if the system has python3 or what the python3 version
the system has before `yum-builddep`, so what we can do is to ensure
`rpmbuild` has what it needs to build Ceph. so let's just stick with
python3.6.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomsg/async: add timeout for connections which are not yet ready 27337/head
xie xingguo [Sat, 2 Mar 2019 08:23:12 +0000 (16:23 +0800)]
msg/async: add timeout for connections which are not yet ready

There could be various corner cases that may cause an async
connection stuck in the connecting stage (e.g., by manually
creating some loop back connections on the switches of our test cluster,
we can almost 100% reproduce http://tracker.ceph.com/issues/37499).

In 61b9432ef9a3847eceb96f8d5a854567c49bbf61 I try to employ the
existing keep_alive mechanism to get those stuck connections out of the
trap but it does not work if the corresponding connection
is not yet ready, since we always require the underlying connection to be
**ready** in order to send out a keep_alive message.

Fix by making a more general connecting timeout strategy.
If a connecting process can not be finished within a specific interval,
then we simply cut it off and retry.

Fixes: http://tracker.ceph.com/issues/37499
Fixes: http://tracker.ceph.com/issues/38493
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoos/filestore/FileJournal: note EIO events 27386/head
Sage Weil [Thu, 4 Apr 2019 20:49:11 +0000 (15:49 -0500)]
os/filestore/FileJournal: note EIO events

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/filestore: make note of EIO errors when we see them
Sage Weil [Thu, 4 Apr 2019 20:48:40 +0000 (15:48 -0500)]
os/filestore: make note of EIO errors when we see them

This is imprecise, since we can't (easily) map an EIO back to a specific
part of the device, or even (easily) tell whether it was a read or write
error.  It's enough to mark a crash dump as an EIO event, though, and to
include the name of the (primary) filestore device.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/filestore: note devname for later use
Sage Weil [Thu, 4 Apr 2019 20:09:15 +0000 (15:09 -0500)]
os/filestore: note devname for later use

This will generally happen early, before we see an EIO error and need it.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoglobal/signal_handler: avoid core dump on EIO
Sage Weil [Thu, 4 Apr 2019 19:51:21 +0000 (14:51 -0500)]
global/signal_handler: avoid core dump on EIO

Generating a core dump is overkill if we hit an EIO error from the
hardware.  Exit with an error code instead.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/bluestore/KernelDevice: note EIO metadata on aio EIO
Sage Weil [Thu, 4 Apr 2019 19:47:17 +0000 (14:47 -0500)]
os/bluestore/KernelDevice: note EIO metadata on aio EIO

Note that we only do this if we're about to induce a crash.  If we can
pass EIO up the stack, it's up to the upper layer to handle it or trigger
its own crash if it can't.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoglobal: add hook to annotate crash report with EIO information
Sage Weil [Thu, 4 Apr 2019 19:45:52 +0000 (14:45 -0500)]
global: add hook to annotate crash report with EIO information

If the global g_eio* fields are populated, include them in the crash
report, similar to how we populate assertion metadata.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocommon: add --log-early command line option 27419/head
Sage Weil [Sun, 7 Apr 2019 18:54:59 +0000 (13:54 -0500)]
common: add --log-early command line option

Sometime it is important and useful to see the logs from the bootstrap
phase where we are getting the initial configs from the monitors.  Add
a command-line option --log-early to do that.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #27407 from tchaikov/wip-rpm-python3-el7
Yuri Weinstein [Sat, 6 Apr 2019 15:57:57 +0000 (08:57 -0700)]
Merge pull request #27407 from tchaikov/wip-rpm-python3-el7

rpm: use python3.4 on RHEL7 by default

6 years agocrimson/auth: implement AuthServer methods
Kefu Chai [Sat, 6 Apr 2019 12:59:42 +0000 (20:59 +0800)]
crimson/auth: implement AuthServer methods

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoauth/AuthClient: cleanup forward declaration
Kefu Chai [Sat, 6 Apr 2019 12:57:43 +0000 (20:57 +0800)]
auth/AuthClient: cleanup forward declaration

* remove unused one
* add missing ones
* add missing "#include"

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/auth: remove unused AuthServer::get_supported_con_modes()
Kefu Chai [Sat, 6 Apr 2019 08:33:54 +0000 (16:33 +0800)]
crimson/auth: remove unused AuthServer::get_supported_con_modes()

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