]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agomgr/dashboard: Remove unused RBD "configuration" endpoint 30815/head
Ricardo Marques [Wed, 9 Oct 2019 16:19:37 +0000 (17:19 +0100)]
mgr/dashboard: Remove unused RBD "configuration" endpoint

Signed-off-by: Ricardo Marques <rimarques@suse.com>
5 years agoMerge pull request #30736 from tchaikov/wip-crimson/osd/cleanups
Kefu Chai [Mon, 7 Oct 2019 09:38:47 +0000 (17:38 +0800)]
Merge pull request #30736 from tchaikov/wip-crimson/osd/cleanups

crimson/osd: cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agomgr/dashboard: Unify Tasks and Notifications into a sidebar (#29706)
Lenz Grimmer [Mon, 7 Oct 2019 08:55:27 +0000 (08:55 +0000)]
mgr/dashboard: Unify Tasks and Notifications into a sidebar (#29706)

mgr/dashboard: Unify Tasks and Notifications into a sidebar

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #30720 from rhcs-dashboard/fix-constraints-backend-api-tests
Lenz Grimmer [Mon, 7 Oct 2019 08:48:14 +0000 (08:48 +0000)]
Merge pull request #30720 from rhcs-dashboard/fix-constraints-backend-api-tests

mgr/dashboard: fix missing constraints file in backend API tests

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge pull request #30711 from dillaman/wip-41938
Mykola Golub [Mon, 7 Oct 2019 08:30:02 +0000 (11:30 +0300)]
Merge pull request #30711 from dillaman/wip-41938

librbd: v1 clones are restricted to the same namespace

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #30656 from tchaikov/wip-install-deps-for-el8
Kefu Chai [Mon, 7 Oct 2019 08:06:30 +0000 (16:06 +0800)]
Merge pull request #30656 from tchaikov/wip-install-deps-for-el8

install-deps.sh: enable PowerTool repo for EL8

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #30693 from rzarzynski/wip-msg-fix-comments-std_set
Kefu Chai [Mon, 7 Oct 2019 07:15:42 +0000 (15:15 +0800)]
Merge pull request #30693 from rzarzynski/wip-msg-fix-comments-std_set

msg: fix comments in Messenger.h after the set -> std::set switch.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30719 from pdvian/wip-fix-sign-compare-warning
Kefu Chai [Mon, 7 Oct 2019 05:25:03 +0000 (13:25 +0800)]
Merge pull request #30719 from pdvian/wip-fix-sign-compare-warning

client/Client : Fix sign compare compiler warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoclient/Client : Fix sign compare compiler warning 30719/head
Prashant D [Fri, 4 Oct 2019 13:00:56 +0000 (09:00 -0400)]
client/Client : Fix sign compare compiler warning

introduced by 394720ca6b7

Signed-off-by: Prashant D <pdhange@redhat.com>
5 years agoMerge pull request #29783 from scarvalhojr/ssevault
Ali Maredia [Mon, 7 Oct 2019 02:33:36 +0000 (22:33 -0400)]
Merge pull request #29783 from scarvalhojr/ssevault

rgw: add SSE-KMS with Vault using token auth

5 years agoMerge PR #30217 into master
Sage Weil [Sun, 6 Oct 2019 14:08:28 +0000 (09:08 -0500)]
Merge PR #30217 into master

* refs/pull/30217/head:
crimson: common/admin_socket kludge so that it builds
mon/MonClient: fix sending mon command to a specific rank
src/.gitignore: ignore .tox
mon/MonClient: interpret numeric mon target name as rank
mgr,mgr/MgrClient: use fsid to signal mon-mgr vs cli MCommands
qa/workunits/cephtool: fix errpr checks for 'ceph daemon' commands
common/ceph_context: make 'config unset' idempotent
qa/tasks/dump_stuck: mon.a, not mon.0
qa/suites/rados/singleton/all/admin-socket: fix test
common/config: EPERM setting config option after startup
qa/workunits/cephtool/test.sh: fix tell output error check
common/admin_socket: pass Formatter from generic infrastructure
common/admin_socket: pass ostream to call() for error output
os/bluestore: fix asok hook return value
rgw: fix asok return value
common/ceph_context: return error code from asok commands
test/pybind/test_rados: fix accidental mon tell test
mon: print entity_name along with caps to debug log
PendingReleaseNotes: notes about asok changes
mgr/MgrClient: empty target string for 'tell' means active mgr
common/admin_socket: report error code as part of output string
osd: change trigger_[deep_]scrub tommands to a pg tell command
osd: remove old command workqueue, threadpool
osd: drop MMonCommand handling
osdc/Objecter: resend OSD tell commands on EAGAIN
osd: route tell commands to asok; migrate commands
osd: use unique_ptr<Formatter> for asok_command
common/ceph_context: add generic asok 'injectargs'
common/admin_socket: allow dup prefixes
common/admin_socket: refactor with sync and async execute_command variants
common/admin_socket: pass input bufferlist
osd: transition to call_async() for asok
common/admin_socket: support alternative call_async()
mon/MonClient: send tell commands out of band via MCommand
mon: accept tell commands via MCommand and send them to asok handler
common/admin_socket: return int from hook call()
mgr/DaemonServer: route MCommand (for octopus+) to asok commands
do not use 'ceph tell mgr'
pybind/ceph_argparse: disambiguate mgr tell and CLI commands
ceph: make 'ceph tell mgr.*' send to the active mgr
ceph: send 'ceph tell mgr.X' to the right mgr
librados: add rados_mgr_command_target
mgr/MgrClient: add start_command variant that takes a target
common/admin_socket: drop unregister_command(); use per-hook variant
common/admin_socket: drop explicit prefix arg to register_command
common/admin_socket: simplify command routing
common/admin_socket: add ability to process MCommand via asok queue
common/admin_socket: pass cmdvec to execute_command
common/admin_socket: use pipe for general wakeup
include/compat: add flags arg to pipe_cloexec
common/admin_socket: drop unused args

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #30715 into master
Sage Weil [Sun, 6 Oct 2019 14:05:27 +0000 (09:05 -0500)]
Merge PR #30715 into master

* refs/pull/30715/head:
osd/PrimaryLogPG: skip obcs that don't exist during backfill scan_range

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #30721 into master
Sage Weil [Sun, 6 Oct 2019 13:58:32 +0000 (08:58 -0500)]
Merge PR #30721 into master

* refs/pull/30721/head:
osd/PeeringState: base lease support checks on features, not require_osd_release

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: ignore returned futures 30736/head
Kefu Chai [Sun, 6 Oct 2019 09:19:05 +0000 (17:19 +0800)]
crimson/osd: ignore returned futures

the peering events are handled in the background, we need to make sure
the these continuations won't outlive the PG before destroying it
though.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: should return ostream in operator<<()
Kefu Chai [Sun, 6 Oct 2019 09:11:56 +0000 (17:11 +0800)]
crimson/osd: should return ostream in operator<<()

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: #include necessary header file
Kefu Chai [Sun, 6 Oct 2019 09:10:46 +0000 (17:10 +0800)]
crimson/osd: #include necessary header file

for using `seastar::sleep()`, we need to include sleep.hh

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #29035 into master
Sage Weil [Sat, 5 Oct 2019 01:42:07 +0000 (20:42 -0500)]
Merge PR #29035 into master

* refs/pull/29035/head:
mgr/pg_autoscaler: changes made reflect jdurgin's request
mgr/pg_autoscaler: current pg_num compared to distance between the last initial_pg_num
mgr/progress & mgr/pg_autoscaler: changes reflect liewegas' comment
mgr/pg_autoscaler: get rid of white space
mgr/progress: change threshold value to origin
mgr/progress: cleaning up for pg_autoscaler
mgr/progress: Added Pg Autoscaler Event

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge PR #30679 into master
Sage Weil [Sat, 5 Oct 2019 01:41:51 +0000 (20:41 -0500)]
Merge PR #30679 into master

* refs/pull/30679/head:
common/safe_io: pass mode to safe_io; use 0600, not 0644
kv/RocksDBStore: tell rocksdb to set mode to 0600, not 0644

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #30712 into master
Sage Weil [Sat, 5 Oct 2019 01:41:28 +0000 (20:41 -0500)]
Merge PR #30712 into master

* refs/pull/30712/head:
osd: set affinity for *all* threads

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #30716 into master
Sage Weil [Sat, 5 Oct 2019 01:41:15 +0000 (20:41 -0500)]
Merge PR #30716 into master

* refs/pull/30716/head:
osd/PrimaryLogPG: fix warning

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #30714 from dzafman/wip-41743
David Zafman [Sat, 5 Oct 2019 01:28:48 +0000 (18:28 -0700)]
Merge pull request #30714 from dzafman/wip-41743

test: Ignore OSD_SLOW_PING_TIME* if injecting socket failures

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #29781 into master
Sage Weil [Fri, 4 Oct 2019 21:01:08 +0000 (16:01 -0500)]
Merge PR #29781 into master

* refs/pull/29781/head:
telemetry/tables.txt: drop stack_weak_sig column
telemetry/tables.txt: drop drop tables lines
telemetry/server/tables.txt: add device_report table
telemetry: misc scripts

Reviewed-by: Dan Mick <dmick@redhat.com>
5 years agotelemetry/tables.txt: drop stack_weak_sig column 29781/head
sage@newdream.net [Fri, 4 Oct 2019 20:51:47 +0000 (20:51 +0000)]
telemetry/tables.txt: drop stack_weak_sig column

Signed-off-by: sage@newdream.net <sage@telemetry.ceph.com>
5 years agotelemetry/tables.txt: drop drop tables lines
sage@newdream.net [Fri, 4 Oct 2019 20:50:36 +0000 (20:50 +0000)]
telemetry/tables.txt: drop drop tables lines

Signed-off-by: sage@newdream.net <sage@telemetry.ceph.com>
5 years agotelemetry/server/tables.txt: add device_report table
user.email [Fri, 4 Oct 2019 20:20:40 +0000 (20:20 +0000)]
telemetry/server/tables.txt: add device_report table

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agotelemetry: misc scripts
Sage Weil [Tue, 20 Aug 2019 22:23:39 +0000 (22:23 +0000)]
telemetry: misc scripts

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agolibrbd: v1 clones are restricted to the same namespace 30711/head
Jason Dillaman [Thu, 3 Oct 2019 14:03:44 +0000 (10:03 -0400)]
librbd: v1 clones are restricted to the same namespace

Therefore the v1 parent spec should not attempt to populate the
namespace.

Fixes: https://tracker.ceph.com/issues/41938
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agorgw: add SSE-KMS with Vault using token auth 29783/head
Sergio de Carvalho [Fri, 4 Oct 2019 14:55:51 +0000 (15:55 +0100)]
rgw: add SSE-KMS with Vault using token auth

Clarify supported secret engine in the Vault documentation.

Signed-off-by: Andrea Baglioni <andrea.baglioni@workday.com>
Signed-off-by: Sergio de Carvalho <sergio.carvalho@workday.com>
5 years agoosd/PeeringState: base lease support checks on features, not require_osd_release 30721/head
Sage Weil [Fri, 4 Oct 2019 14:49:36 +0000 (09:49 -0500)]
osd/PeeringState: base lease support checks on features, not require_osd_release

The require_osd_release value will change at an arbitrary point in time,
midway through a peering interval.  That can leave us in a state where
we are midway through an interval and suddenly enforcing checks on leases
we don't have.

In contrast, the upacting features change at an interval boundary, which
lets us adjust our behavior for the whole interval.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocrimson: common/admin_socket kludge so that it builds 30217/head
Sage Weil [Thu, 3 Oct 2019 12:43:01 +0000 (07:43 -0500)]
crimson: common/admin_socket kludge so that it builds

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon/MonClient: fix sending mon command to a specific rank
Sage Weil [Wed, 2 Oct 2019 22:33:03 +0000 (17:33 -0500)]
mon/MonClient: fix sending mon command to a specific rank

The target_name check was triggering when target_name was empty (and
target_rank >= 0).

Fixes 4ef0502da5e

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agosrc/.gitignore: ignore .tox
Sage Weil [Tue, 1 Oct 2019 13:23:19 +0000 (08:23 -0500)]
src/.gitignore: ignore .tox

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon/MonClient: interpret numeric mon target name as rank
Sage Weil [Mon, 30 Sep 2019 15:58:40 +0000 (10:58 -0500)]
mon/MonClient: interpret numeric mon target name as rank

This allows us to behave when a rank is passed to mon_command(..., target=),
which will call rados_mon_command_target() -> MonClient::start_mon_command
with a (string) target name.

We could make an integer variant of rados_mon_command_target, and do the
int vs string differentiation in python, but this is much easier.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr,mgr/MgrClient: use fsid to signal mon-mgr vs cli MCommands
Sage Weil [Fri, 27 Sep 2019 21:01:44 +0000 (16:01 -0500)]
mgr,mgr/MgrClient: use fsid to signal mon-mgr vs cli MCommands

We can't use the feature bit for the MCommand connection to tell whether
it is a tell or CLI command because new clients may have to send CLI
commands via MCommand for old clusters, and they don't always know whether
this mgr is new or old yet.

Prior to octopus, MCommand contained a mon/mgr CLI command, and did not
have the fsid field set.  Start populating the fsid field, and use this
to signal whether a client is a new MgrClient that knows MCommand vs
MMgrCommand.  If we get an MCommand with the fsid set, that means it is
a tell command; otherwise, it's an old client sending a CLI command.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/workunits/cephtool: fix errpr checks for 'ceph daemon' commands
Sage Weil [Tue, 24 Sep 2019 18:34:21 +0000 (13:34 -0500)]
qa/workunits/cephtool: fix errpr checks for 'ceph daemon' commands

Error output has changed slightly.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocommon/ceph_context: make 'config unset' idempotent
Sage Weil [Sun, 22 Sep 2019 18:39:15 +0000 (13:39 -0500)]
common/ceph_context: make 'config unset' idempotent

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/tasks/dump_stuck: mon.a, not mon.0
Sage Weil [Sun, 22 Sep 2019 18:35:27 +0000 (13:35 -0500)]
qa/tasks/dump_stuck: mon.a, not mon.0

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/rados/singleton/all/admin-socket: fix test
Sage Weil [Sun, 22 Sep 2019 18:32:37 +0000 (13:32 -0500)]
qa/suites/rados/singleton/all/admin-socket: fix test

We can't set the filestore setting because filestore isn't active and so
the option isn't observed, so it isn't changeable.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocommon/config: EPERM setting config option after startup
Sage Weil [Sun, 22 Sep 2019 18:29:18 +0000 (13:29 -0500)]
common/config: EPERM setting config option after startup

Not sure why ENOSYS was chosen before...

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/workunits/cephtool/test.sh: fix tell output error check
Sage Weil [Fri, 20 Sep 2019 19:51:26 +0000 (14:51 -0500)]
qa/workunits/cephtool/test.sh: fix tell output error check

It goes to stderr instead of stdout now.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocommon/admin_socket: pass Formatter from generic infrastructure
Sage Weil [Thu, 19 Sep 2019 16:11:55 +0000 (11:11 -0500)]
common/admin_socket: pass Formatter from generic infrastructure

The implementation can choose to either use the provided Formatter, or
put something directly into outbl.  The implementation may choose to
flush the formatter to the output buffer|stream, or let the caller do it
for them (usually the latter).

Lots of fiddling/cleanup in the implementations to make this build,
including dropping the (seeminlyg unused?) ostream& output mode for
the librbd asok implementations.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocommon/admin_socket: pass ostream to call() for error output
Sage Weil [Fri, 13 Sep 2019 19:13:50 +0000 (14:13 -0500)]
common/admin_socket: pass ostream to call() for error output

This separates the error stream from the output stream for the synchronous
hook.

This patch includes misc cleanup in the various implementations to make
use of the new stream for errors.

Add a test to unittest_context to ensure we're getting the error stream.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoos/bluestore: fix asok hook return value
Sage Weil [Fri, 13 Sep 2019 15:22:14 +0000 (10:22 -0500)]
os/bluestore: fix asok hook return value

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agorgw: fix asok return value
Sage Weil [Fri, 13 Sep 2019 15:21:35 +0000 (10:21 -0500)]
rgw: fix asok return value

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocommon/ceph_context: return error code from asok commands
Sage Weil [Fri, 13 Sep 2019 13:45:13 +0000 (08:45 -0500)]
common/ceph_context: return error code from asok commands

Several of these commands (config set, injectargs, etc.) can return errors.
Do so.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotest/pybind/test_rados: fix accidental mon tell test
Sage Weil [Wed, 11 Sep 2019 15:47:03 +0000 (10:47 -0500)]
test/pybind/test_rados: fix accidental mon tell test

This test assumed 'mon dump' (a CLI command) would work when targetted at
a specific mon (i.e., a tell command).

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon: print entity_name along with caps to debug log
Sage Weil [Wed, 11 Sep 2019 15:43:03 +0000 (10:43 -0500)]
mon: print entity_name along with caps to debug log

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoPendingReleaseNotes: notes about asok changes
Sage Weil [Tue, 10 Sep 2019 22:31:14 +0000 (17:31 -0500)]
PendingReleaseNotes: notes about asok changes

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/MgrClient: empty target string for 'tell' means active mgr
Sage Weil [Tue, 10 Sep 2019 18:51:25 +0000 (13:51 -0500)]
mgr/MgrClient: empty target string for 'tell' means active mgr

This lets the caller say "tell the active mgr", whoever it may be.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocommon/admin_socket: report error code as part of output string
Sage Weil [Tue, 10 Sep 2019 15:21:39 +0000 (10:21 -0500)]
common/admin_socket: report error code as part of output string

This isn't ideal, but it's better than nothing.

Net behavior change here is that calling an non-existant command now
succeeds with an error message instead of exiting with an error code
and no informative output.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd: change trigger_[deep_]scrub tommands to a pg tell command
Sage Weil [Tue, 10 Sep 2019 15:14:41 +0000 (10:14 -0500)]
osd: change trigger_[deep_]scrub tommands to a pg tell command

This is cleaner.  All users are currently standalone tests; updated.

It also means that *all* commands that have a name=pgid arg are pg tell
commands.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd: remove old command workqueue, threadpool
Sage Weil [Tue, 10 Sep 2019 03:09:50 +0000 (22:09 -0500)]
osd: remove old command workqueue, threadpool

These are now sent to the asok handler.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd: drop MMonCommand handling
Sage Weil [Tue, 10 Sep 2019 03:08:15 +0000 (22:08 -0500)]
osd: drop MMonCommand handling

Nothing sends these.. or has in a very very long time, AFAICS.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosdc/Objecter: resend OSD tell commands on EAGAIN
Sage Weil [Tue, 10 Sep 2019 21:41:18 +0000 (16:41 -0500)]
osdc/Objecter: resend OSD tell commands on EAGAIN

Request map *and* resend.  We don't have map epoch info about when the
reply was sent, and the OSD isn't ordering with respect to epochs anyway.
So, resend now, just in case we already saw a map change, or because we
were suffering from a peering vs command race on the OSD side, and then
also request a new map from the mon, in case we are missing a map update.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd: route tell commands to asok; migrate commands
Sage Weil [Tue, 10 Sep 2019 03:07:03 +0000 (22:07 -0500)]
osd: route tell commands to asok; migrate commands

- move items from _do_command to asok_command in OSD.cc
- update PG::do_command to take a std::function on_finish
- sprinkle in some osd_lock locking (_do_command implicitly locks osd_lock,
  asok_command() does not; most commands don't need it)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd: use unique_ptr<Formatter> for asok_command
Sage Weil [Mon, 9 Sep 2019 19:55:13 +0000 (14:55 -0500)]
osd: use unique_ptr<Formatter> for asok_command

Simpify lifecycle.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocommon/ceph_context: add generic asok 'injectargs'
Sage Weil [Tue, 10 Sep 2019 12:06:11 +0000 (07:06 -0500)]
common/ceph_context: add generic asok 'injectargs'

Lots of scripts and users expect this, even though 'config set' is
generally nicer to use.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/dashboard: fix missing constraints file in backend API tests 30720/head
Alfonso Martínez [Fri, 4 Oct 2019 14:04:42 +0000 (16:04 +0200)]
mgr/dashboard: fix missing constraints file in backend API tests

Signed-off-by: Alfonso Martínez <almartin@redhat.com>
5 years agomgr/dashboard: Unify Tasks and Notifications into a sidebar 29706/head
Tiago Melo [Thu, 8 Aug 2019 15:01:38 +0000 (15:01 +0000)]
mgr/dashboard: Unify Tasks and Notifications into a sidebar

Fixes: https://tracker.ceph.com/issues/37402
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #30583 from mika/mika/typos
Kefu Chai [Fri, 4 Oct 2019 08:06:20 +0000 (16:06 +0800)]
Merge pull request #30583 from mika/mika/typos

doc: fix typos

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #30614 from tchaikov/wip-no-more-osdmap-full
Kefu Chai [Fri, 4 Oct 2019 02:27:21 +0000 (10:27 +0800)]
Merge pull request #30614 from tchaikov/wip-no-more-osdmap-full

librados,osd,mon: remove traces of CEPH_OSDMAP_FULL

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoPendingReleaseNotes: document full/nearfull changes 30614/head
Kefu Chai [Mon, 30 Sep 2019 05:24:27 +0000 (13:24 +0800)]
PendingReleaseNotes: document full/nearfull changes

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30635 from tchaikov/wip-42079
Kefu Chai [Fri, 4 Oct 2019 02:18:55 +0000 (10:18 +0800)]
Merge pull request #30635 from tchaikov/wip-42079

mgr: use a struct for DaemonKey

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #30699 from neha-ojha/wip-more-recovery-tests
Neha Ojha [Thu, 3 Oct 2019 23:11:55 +0000 (16:11 -0700)]
Merge pull request #30699 from neha-ojha/wip-more-recovery-tests

qa/suites/rados/thrash: increase async and partial recovery test coverage

Reviewed-by: Xie Xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #30482 from pcuzner/k8sevents-remote-support
Boris Ranto [Thu, 3 Oct 2019 21:13:47 +0000 (23:13 +0200)]
Merge pull request #30482 from pcuzner/k8sevents-remote-support

mgr/k8sevents: Add support for remote kubernetes

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/k8sevents: Add support for remote kubernetes 30482/head
Paul Cuzner [Fri, 20 Sep 2019 04:55:06 +0000 (16:55 +1200)]
mgr/k8sevents: Add support for remote kubernetes

The initial implementation sent events to the
kubernetes cluster Ceph is running under managed
by rook-ceph. This patch extends this support to
include sending events to an external kubernetes
cluster, that may just be consuming ceph resources

Additional docs added to help people use the
module, either with or without rook-ceph.

It also address a bug where the module was loaded
outside of a rook-ceph environment.

Fixes: https://tracker.ceph.com/issues/41737
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
5 years agoosd/PrimaryLogPG: fix warning 30716/head
Sage Weil [Thu, 3 Oct 2019 18:34:39 +0000 (13:34 -0500)]
osd/PrimaryLogPG: fix warning

Introduced by 6c1071295917818d6dcbb76fb3ca1bed9aa96226

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #30692 into master
Sage Weil [Thu, 3 Oct 2019 18:32:35 +0000 (13:32 -0500)]
Merge PR #30692 into master

* refs/pull/30692/head:
osd/PeeringState: disable read lease until require_osd_release >= octopus

Reviewed-by: Samuel Just <sjust@redhat.com>
5 years agoqa/suites/rados: add more-async-partial-recovery.yaml in the thrash suite 30699/head
Neha Ojha [Wed, 2 Oct 2019 18:04:25 +0000 (11:04 -0700)]
qa/suites/rados: add more-async-partial-recovery.yaml in the thrash suite

This will increase both async and partial recovery.

Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoqa/suites/rados: add more-partial-recovery.yaml in the thrash suite
Neha Ojha [Wed, 2 Oct 2019 17:59:34 +0000 (10:59 -0700)]
qa/suites/rados: add more-partial-recovery.yaml in the thrash suite

Increasing osd_object_clean_region_max_num_intervals to track more
clean regions, resulting in more partial recovery.

Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoqa/suites/rados: add more-async-recovery.yaml in the thrash suite
Neha Ojha [Tue, 1 Oct 2019 21:21:31 +0000 (14:21 -0700)]
qa/suites/rados: add more-async-recovery.yaml in the thrash suite

Reducing osd_async_recovery_min_cost to 1 should allow more
asynchronous recovery to happen.

Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoosd/PrimaryLogPG: skip obcs that don't exist during backfill scan_range 30715/head
Sage Weil [Thu, 3 Oct 2019 18:00:45 +0000 (13:00 -0500)]
osd/PrimaryLogPG: skip obcs that don't exist during backfill scan_range

We already skip objects we encounter that we do getattr() on and get
ENOENT, but sometimes the object is in our obc cache with exists=false.
Skip those too.

Fixes: https://tracker.ceph.com/issues/42177
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #30709 into master
Sage Weil [Thu, 3 Oct 2019 17:28:10 +0000 (12:28 -0500)]
Merge PR #30709 into master

* refs/pull/30709/head:
msg/async: rename outcoming_bl -> outgoing_bl in AsyncConnection.

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agotest: Ignore OSD_SLOW_PING_TIME* if injecting socket failures 30714/head
David Zafman [Thu, 3 Oct 2019 16:09:10 +0000 (09:09 -0700)]
test: Ignore OSD_SLOW_PING_TIME* if injecting socket failures

Fixes: https://tracker.ceph.com/issues/41743
Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agoosd: set affinity for *all* threads 30712/head
Sage Weil [Thu, 3 Oct 2019 15:04:19 +0000 (10:04 -0500)]
osd: set affinity for *all* threads

It turns out schedule_setaffinity(2) only sets the current *thread*'s
affinity, not the entire process.  Look in /proc to identify all of our
children and map those, too.

Note that this doesn't seem to affect the numa_preferred_nid value in
/proc/$pid/[task/$tid/]sched... at least not immediately.  That value does
seem to change for some threads after some load is applied.

Fixes: https://tracker.ceph.com/issues/42054
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomsg/async: rename outcoming_bl -> outgoing_bl in AsyncConnection. 30709/head
Radoslaw Zarzynski [Thu, 3 Oct 2019 13:39:15 +0000 (15:39 +0200)]
msg/async: rename outcoming_bl -> outgoing_bl in AsyncConnection.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge PR #29711 into master
Patrick Donnelly [Thu, 3 Oct 2019 12:51:46 +0000 (05:51 -0700)]
Merge PR #29711 into master

* refs/pull/29711/head:
doc: Update documentation for LazyIO

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge PR #30473 into master
Patrick Donnelly [Thu, 3 Oct 2019 12:00:20 +0000 (05:00 -0700)]
Merge PR #30473 into master

* refs/pull/30473/head:
doc: Fix FUSE expansion

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30251 into master
Patrick Donnelly [Thu, 3 Oct 2019 08:35:53 +0000 (01:35 -0700)]
Merge PR #30251 into master

* refs/pull/30251/head:
doc: Update requirements for using CephFS

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Douglas Fuller <dfuller@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agodoc: Update requirements for using CephFS 30251/head
Varsha Rao [Mon, 9 Sep 2019 08:39:15 +0000 (14:09 +0530)]
doc: Update requirements for using CephFS

Fixes: https://tracker.ceph.com/issues/41470
Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoMerge pull request #30654 from ajarr/fix-42096
Jos Collin [Thu, 3 Oct 2019 06:41:43 +0000 (12:11 +0530)]
Merge pull request #30654 from ajarr/fix-42096

mgr/volumes: fix incorrect snapshot path creation

Reviewed-by: Jos Collin <jcollin@redhat.com>
5 years agoMerge PR #30627 into master
Sage Weil [Wed, 2 Oct 2019 20:46:15 +0000 (15:46 -0500)]
Merge PR #30627 into master

* refs/pull/30627/head:
qa/suites/rados/verify: whitelist MON_DOWN when using valgrind
qa/suits/rados/basic/tasks/rados_api_tests: pgs can go degraded

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agorgw: add SSE-KMS with Vault using token auth
Sergio de Carvalho [Wed, 2 Oct 2019 16:28:06 +0000 (17:28 +0100)]
rgw: add SSE-KMS with Vault using token auth

Minor fix to config documentation.

Signed-off-by: Andrea Baglioni <andrea.baglioni@workday.com>
Signed-off-by: Sergio de Carvalho <sergio.carvalho@workday.com>
5 years agorgw: add SSE-KMS with Vault using token auth
Andrea Baglioni [Mon, 9 Sep 2019 13:12:24 +0000 (14:12 +0100)]
rgw: add SSE-KMS with Vault using token auth

Restructure SSE-KMS tests which now has 3 scenarios for each KMS
backend: Barbican, Vault, and testing (keys stored in ceph.conf).

Signed-off-by: Andrea Baglioni <andrea.baglioni@workday.com>
Signed-off-by: Sergio de Carvalho <sergio.carvalho@workday.com>
5 years agoMerge PR #30640 into master
Sage Weil [Wed, 2 Oct 2019 14:50:53 +0000 (09:50 -0500)]
Merge PR #30640 into master

* refs/pull/30640/head:
osd/PrimaryLogPG: remove unused reply creation path
osd/PrimaryLogPG: include op_returns in dup replies
osd/PrimaryLog: drop unused reply_ctx() variant
osd/PrimaryLogPG: remove dead already_ack()

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge PR #30596 into master
Sage Weil [Wed, 2 Oct 2019 14:34:18 +0000 (09:34 -0500)]
Merge PR #30596 into master

* refs/pull/30596/head:
qa/suites/rados/singleton/all/ec-lost-unfound: no rbd pool

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agomsg: fix comments in Messenger.h after the set -> std::set switch. 30693/head
Radoslaw Zarzynski [Wed, 2 Oct 2019 11:06:25 +0000 (13:06 +0200)]
msg: fix comments in Messenger.h after the set -> std::set switch.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #30675 from idryomov/wip-set-kernel-secret
Ilya Dryomov [Wed, 2 Oct 2019 14:16:45 +0000 (16:16 +0200)]
Merge pull request #30675 from idryomov/wip-set-kernel-secret

common/secret.c: don't pass uninitialized stack data to the kernel

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoosd/PeeringState: disable read lease until require_osd_release >= octopus 30692/head
Sage Weil [Wed, 2 Oct 2019 13:58:32 +0000 (08:58 -0500)]
osd/PeeringState: disable read lease until require_osd_release >= octopus

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/dashboard: Update npm packages (#30439)
Lenz Grimmer [Wed, 2 Oct 2019 12:55:04 +0000 (12:55 +0000)]
mgr/dashboard: Update npm packages (#30439)

mgr/dashboard: Update npm packages

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge PR #30626 into master
Patrick Donnelly [Wed, 2 Oct 2019 12:15:02 +0000 (05:15 -0700)]
Merge PR #30626 into master

* refs/pull/30626/head:
doc: document recover_session= option in mount.ceph manpage
doc: update documents on using kcephfs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30542 into master
Patrick Donnelly [Wed, 2 Oct 2019 11:09:22 +0000 (04:09 -0700)]
Merge PR #30542 into master

* refs/pull/30542/head:
doc: cleanup CephFS Landing Page

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agomgr/dashboard: Show smartctl summary in OSD tab (#30378)
Lenz Grimmer [Wed, 2 Oct 2019 09:22:44 +0000 (09:22 +0000)]
mgr/dashboard: Show smartctl summary in OSD tab (#30378)

mgr/dashboard: Show smartctl summary in OSD tab

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #29922 from smithfarm/wip-41524
Nathan Cutler [Wed, 2 Oct 2019 08:42:04 +0000 (10:42 +0200)]
Merge pull request #29922 from smithfarm/wip-41524

cmake: set empty RPATH for some test executables

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
5 years agoMerge PR #30416 into master
Patrick Donnelly [Wed, 2 Oct 2019 04:23:57 +0000 (21:23 -0700)]
Merge PR #30416 into master

* refs/pull/30416/head:
client: add procession of SEEK_HOLE and SEEK_DATA in lseek.

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #30653 from tchaikov/wip-os/drop-kinetic
Kefu Chai [Wed, 2 Oct 2019 02:16:58 +0000 (10:16 +0800)]
Merge pull request #30653 from tchaikov/wip-os/drop-kinetic

os: remove KineticStore

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agocommon/safe_io: pass mode to safe_io; use 0600, not 0644 30679/head
Sage Weil [Tue, 1 Oct 2019 22:48:11 +0000 (17:48 -0500)]
common/safe_io: pass mode to safe_io; use 0600, not 0644

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agokv/RocksDBStore: tell rocksdb to set mode to 0600, not 0644
Sage Weil [Tue, 1 Oct 2019 22:45:01 +0000 (17:45 -0500)]
kv/RocksDBStore: tell rocksdb to set mode to 0600, not 0644

We don't want other users on the system to be able to read the rocksdb
database.

Fixes: https://tracker.ceph.com/issues/42114
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocommon/admin_socket: allow dup prefixes
Sage Weil [Tue, 10 Sep 2019 15:10:12 +0000 (10:10 -0500)]
common/admin_socket: allow dup prefixes

Allow multiple commands to register with the same prefix (but different
commands description strings).

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocommon/admin_socket: refactor with sync and async execute_command variants
Sage Weil [Tue, 10 Sep 2019 21:39:37 +0000 (16:39 -0500)]
common/admin_socket: refactor with sync and async execute_command variants

Signed-off-by: Sage Weil <sage@redhat.com>