]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoDecayCounter: remove unnecessary delta member
Patrick Donnelly [Fri, 8 Jun 2018 22:02:17 +0000 (15:02 -0700)]
DecayCounter: remove unnecessary delta member

We can just add/sub to val directly (especially now that decay can be called on
a const DecayCounter).

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: use monotonic time for DecayCounter
Patrick Donnelly [Fri, 8 Jun 2018 03:40:33 +0000 (20:40 -0700)]
mds: use monotonic time for DecayCounter

This commit has a few side-effects:
- Decaying the DecayCounter is more accurate, we do not need to "skip" decaying
  the counter if it's been less than a second since the last decay. The time
  delta is now at the granularity of the monotonic clock.
- Any check of the DecayCounter results in updating the current value, even
  const checks.
- DecayRate is now established when the DecayCounter is created. There's no longer
  a need to pass the DecayRate whenever interacting with the counter.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #22357 into master
Patrick Donnelly [Fri, 15 Jun 2018 14:02:02 +0000 (07:02 -0700)]
Merge PR #22357 into master

* refs/pull/22357/head:
common/DecayCounter: set last_decay to current time when decoding decay counter

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #22289 into master
Patrick Donnelly [Fri, 15 Jun 2018 14:01:57 +0000 (07:01 -0700)]
Merge PR #22289 into master

* refs/pull/22289/head:
mds: put Capability in map container

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #22266 into master
Patrick Donnelly [Fri, 15 Jun 2018 14:01:52 +0000 (07:01 -0700)]
Merge PR #22266 into master

* refs/pull/22266/head:
client:  update inode fields according to issued caps

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #22234 into master
Patrick Donnelly [Fri, 15 Jun 2018 14:01:48 +0000 (07:01 -0700)]
Merge PR #22234 into master

* refs/pull/22234/head:
mds: add magic to header of open file table

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #22390 from votdev/rgw_metadata_self
Orit Wasserman [Fri, 15 Jun 2018 09:21:41 +0000 (12:21 +0300)]
Merge pull request #22390 from votdev/rgw_metadata_self

rgw: Get the user metadata of the user used to sign the request

7 years agoMerge pull request #22459 from p-na/grafana-token-auth
Lenz Grimmer [Fri, 15 Jun 2018 07:44:46 +0000 (09:44 +0200)]
Merge pull request #22459 from p-na/grafana-token-auth

mgr/dashboard: Add token authentication to Grafana proxy

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22014 from Devp00l/wip-task-wrapper
Lenz Grimmer [Fri, 15 Jun 2018 07:40:17 +0000 (09:40 +0200)]
Merge pull request #22014 from Devp00l/wip-task-wrapper

mgr/dashboard: Task wrapper service

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22524 from tchaikov/wip-history-les-bound
Kefu Chai [Fri, 15 Jun 2018 02:08:20 +0000 (10:08 +0800)]
Merge pull request #22524 from tchaikov/wip-history-les-bound

osd/PG: unset history_les_bound if local-les is used

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
7 years agoMerge pull request #22472 from majianpeng/bluestore-misc-cleanup
Kefu Chai [Fri, 15 Jun 2018 02:07:12 +0000 (10:07 +0800)]
Merge pull request #22472 from majianpeng/bluestore-misc-cleanup

os/bluestore: misc cleanup

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22538 from alimaredia/wip-vstart-cmake-cls-opt
Kefu Chai [Fri, 15 Jun 2018 01:24:19 +0000 (09:24 +0800)]
Merge pull request #22538 from alimaredia/wip-vstart-cmake-cls-opt

cmake: Add cls_opt for vstart target

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: Add cls_opt for vstart target 22538/head
Ali Maredia [Thu, 14 Jun 2018 18:40:07 +0000 (14:40 -0400)]
cmake: Add cls_opt for vstart target

Adding a dependency on cls_opt for the radosgw so
that when the vstart target is made, `radosgw-admin
mfa` commands work.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
7 years agoMerge PR #22554 into master
Sage Weil [Thu, 14 Jun 2018 18:04:56 +0000 (13:04 -0500)]
Merge PR #22554 into master

* refs/pull/22554/head:
qa/standalone/ceph-helpers.sh: Fixing comment for wait_for_health()
tests: Protecting rados bench against endless loop
qa/standalone/ceph-helpers.sh: Defining custom timeout for wait_for_clean()

Reviewed-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agoMerge pull request #22491 from tchaikov/wip-seastar-msgr
Kefu Chai [Thu, 14 Jun 2018 15:24:42 +0000 (23:24 +0800)]
Merge pull request #22491 from tchaikov/wip-seastar-msgr

crimson: port messenger to seastar

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #22547 from tchaikov/wip-spdk
Kefu Chai [Thu, 14 Jun 2018 15:23:01 +0000 (23:23 +0800)]
Merge pull request #22547 from tchaikov/wip-spdk

spdk: update to latest spdk-18.05 branch

Tested-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agomgr/dashboard: Executing messages for tasks 22014/head
Stephan Müller [Mon, 4 Jun 2018 14:27:16 +0000 (16:27 +0200)]
mgr/dashboard: Executing messages for tasks

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Use task wrapper in RBD list
Stephan Müller [Wed, 30 May 2018 13:22:31 +0000 (15:22 +0200)]
mgr/dashboard: Use task wrapper in RBD list

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Use task wrapper in RBD form
Stephan Müller [Wed, 30 May 2018 11:46:29 +0000 (13:46 +0200)]
mgr/dashboard: Use task wrapper in RBD form

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Task wrapper service
Stephan Müller [Tue, 15 May 2018 14:45:25 +0000 (16:45 +0200)]
mgr/dashboard: Task wrapper service

Has a method to wrap an API call into a task.

Fixes: https://tracker.ceph.com/issues/24134
Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agoMerge pull request #22303 from ricardoasmarques/wip-help-menu
Lenz Grimmer [Thu, 14 Jun 2018 13:56:39 +0000 (15:56 +0200)]
Merge pull request #22303 from ricardoasmarques/wip-help-menu

mgr/dashboard: Add help menu entry

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agomgr/dashboard/cleanup: Remove unnecessary parentheses 22459/head
Patrick Nawracay [Thu, 7 Jun 2018 16:09:42 +0000 (18:09 +0200)]
mgr/dashboard/cleanup: Remove unnecessary parentheses

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
7 years agomgr/dashboard: Add token authentication to Grafana proxy
Patrick Nawracay [Fri, 18 May 2018 07:38:20 +0000 (09:38 +0200)]
mgr/dashboard: Add token authentication to Grafana proxy

Enables token authentication for the Grafana proxy as additional option
to username/password authentication. The authentication method has to be
set, too.

    $ ceph dashboard set-grafana-api-token <token>    # default: ''
    $ ceph dashboard set-grafana-api-auth-method <method>  # default: ''

Possible values for the authentication method are 'password' and
'token'.

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
7 years agoMerge pull request #21460 from s0nea/wip-dashboard-config-options
Lenz Grimmer [Thu, 14 Jun 2018 10:59:47 +0000 (12:59 +0200)]
Merge pull request #21460 from s0nea/wip-dashboard-config-options

mgr/dashboard: Config options integration (read-only) depends on #22422

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
7 years agoMerge pull request #22557 from tchaikov/wip-rbd-ggate
Kefu Chai [Thu, 14 Jun 2018 09:17:31 +0000 (17:17 +0800)]
Merge pull request #22557 from tchaikov/wip-rbd-ggate

rbd-ggate: tag "level" with need_dynamic

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agoqa/standalone/ceph-helpers.sh: Fixing comment for wait_for_health() 22554/head
Erwan Velu [Wed, 13 Jun 2018 12:59:02 +0000 (14:59 +0200)]
qa/standalone/ceph-helpers.sh: Fixing comment for wait_for_health()

wait_for_health doesn't check if the cluster is making progress. So
let's adjust the comment accordingly.

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agotests: Protecting rados bench against endless loop
Erwan Velu [Wed, 13 Jun 2018 12:48:35 +0000 (14:48 +0200)]
tests: Protecting rados bench against endless loop

If the cluster dies during the rados bench, the maximum running time is
no more considered and all emitted aios are pending.

rados bench never quits and the global testing timeout (3600 sec : 1
hour) have to be reach to get a failure.

This situation is dramatic for a background test or a CI run as it locks
the whole job for too long for an event that will never occurs.

This ideal solution would be having 'rados bench' considering a failure
once the timeout is reached when aios are pending.

A possible workaround here is to put use the system command 'timeout'
before calling rados bench and fail if rados didn't completed on time.

To avoid side effects, this patch is doubling rados timeout. If rados
didn't completed after twice the expected time, it have to fail to avoid
locking the whole testing job.

Please find below the way it worked on a real test case.
We can see no IO after t>2 but despite timeout=4 the bench continue.
Thanks to this patch, the bench is stopped at t=8 and return 1.

5: /home/erwan/ceph/src/test/smoke.sh:55: TEST_multimon:  timeout 8 rados -p foo bench 4 write -b 4096 --no-cleanup
5: hints = 1
5: Maintaining 16 concurrent writes of 4096 bytes to objects of size 4096 for up to 4 seconds or 0 objects
5: Object prefix: benchmark_data_mr-meeseeks_184960
5:   sec Cur ops   started  finished  avg MB/s  cur MB/s last lat(s)  avg lat(s)
5:     0       0         0         0         0         0           -           0
5:     1      16      1144      1128   4.40538   4.40625  0.00412965   0.0141116
5:     2      16      2147      2131   4.16134   3.91797  0.00985654   0.0109079
5:     3      16      2147      2131   2.77424         0           -   0.0109079
5:     4      16      2147      2131    2.0807         0           -   0.0109079
5:     5      16      2147      2131   1.66456         0           -   0.0109079
5:     6      16      2147      2131   1.38714         0           -   0.0109079
5:     7      16      2147      2131   1.18897         0           -   0.0109079
5: /home/erwan/ceph/src/test/smoke.sh:55: TEST_multimon:  return 1
5: /home/erwan/ceph/src/test/smoke.sh:18: run:  return 1

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agoqa/standalone/ceph-helpers.sh: Defining custom timeout for wait_for_clean()
Erwan Velu [Wed, 13 Jun 2018 12:25:04 +0000 (14:25 +0200)]
qa/standalone/ceph-helpers.sh: Defining custom timeout for wait_for_clean()

The wait_for_clean() is using the default timeout aka 300sec = 5mn.

wait_for_clean() is trying to find a clean status within that timeout
_or_ reset its counter if any progress got made in between loops.

In a case where the cluster is sane, the recovery should be made in
shorter than 5mn but it the cluster died, waiting for 5mn for nothing is
unefficient.

This patch is about defining a custom timeout for a wait_for_clean() not
to wait much more that 1m30 (90sec). If no progress is made in that
period, there is very few chance this will read the a valid state
anyhow.

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agoMerge pull request #22526 from Devp00l/wip-new-validators
Lenz Grimmer [Thu, 14 Jun 2018 09:05:26 +0000 (11:05 +0200)]
Merge pull request #22526 from Devp00l/wip-new-validators

mgr/dashboard: Added new validators

Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agorbd-ggate: tag "level" with need_dynamic 22557/head
Kefu Chai [Thu, 14 Jun 2018 02:39:51 +0000 (10:39 +0800)]
rbd-ggate: tag "level" with need_dynamic

otherwise compiler will fail to figure out the right should_gather()
variant to use.
see also 1a3e9357

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: update BuildSPDK for spdk-18.05 22547/head
Kefu Chai [Thu, 14 Jun 2018 01:32:08 +0000 (09:32 +0800)]
cmake: update BuildSPDK for spdk-18.05

in spdk v18.05, libuuid is linked by libspdk_util.a, in which,
it is used by lib/util/uuid.c. and libspdk_vol.a uses the wrapper
function exposed by libspdk_util.a, so update the CMakefile script to
reflect the change.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agospdk: update to latest spdk-18.05 branch
Kefu Chai [Wed, 13 Jun 2018 13:35:24 +0000 (21:35 +0800)]
spdk: update to latest spdk-18.05 branch

also bump dpdk to to spdk-18.05 branch. this should fix the build
failure on Fedora 28

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22500 from thinkercui/bugfix
Josh Durgin [Wed, 13 Jun 2018 20:57:57 +0000 (16:57 -0400)]
Merge pull request #22500 from thinkercui/bugfix

osd: fix memory leak in EC fast and error read

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #21969 from zhongyimao/interlock_fast-diff/object-map
Jason Dillaman [Wed, 13 Jun 2018 20:22:04 +0000 (16:22 -0400)]
Merge pull request #21969 from zhongyimao/interlock_fast-diff/object-map

rbd: interlock object-map/fast-diff features together

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #22304 from vshankar/wip-scheduled-rebalancer
Jason Dillaman [Wed, 13 Jun 2018 20:21:12 +0000 (16:21 -0400)]
Merge pull request #22304 from vshankar/wip-scheduled-rebalancer

rbd-mirror: schedule rebalancer to level-load instances

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/crimson: add test_alien_echo 22491/head
Kefu Chai [Tue, 6 Mar 2018 12:38:03 +0000 (20:38 +0800)]
test/crimson: add test_alien_echo

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocrimson/thread: add a condition var impl
Kefu Chai [Thu, 7 Jun 2018 12:22:32 +0000 (20:22 +0800)]
crimson/thread: add a condition var impl

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocrimson: add throttler
Kefu Chai [Sat, 26 May 2018 05:44:23 +0000 (13:44 +0800)]
crimson: add throttler

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/Throttle: extract ThrottleInterface
Kefu Chai [Sat, 26 May 2018 05:35:26 +0000 (13:35 +0800)]
common/Throttle: extract ThrottleInterface

the Message classes are shared by OSD and other components of Ceph,
and the throttle in Policy class is different in seastar and
non-seastar world. we will have different implementations for the
seastar applications and non-seastar apps, to consolidate these
two implementations, we need to introduce a common interface for
them.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocrimson/net: use std::map for tracking connections
Kefu Chai [Wed, 13 Jun 2018 03:05:26 +0000 (11:05 +0800)]
crimson/net: use std::map for tracking connections

* s/list/map/ for better lookup performance.
* and connection management related changes

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocrimson/net: support the lossless connection and auth
Kefu Chai [Fri, 25 May 2018 06:40:54 +0000 (14:40 +0800)]
crimson/net: support the lossless connection and auth

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomgr/dashboard: add config options to documentation page 21460/head
Tatjana Dehler [Wed, 23 May 2018 14:35:51 +0000 (16:35 +0200)]
mgr/dashboard: add config options to documentation page

This commit adds the config options stored by the MON database to the
configuration documentation page.
One can filter for these config options by setting the 'Source' filter
to 'mon' on the configuration documentation page.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
7 years agomgr/dashboard: fix typo - remove unnecessary blank
Tatjana Dehler [Wed, 18 Apr 2018 14:39:06 +0000 (16:39 +0200)]
mgr/dashboard: fix typo - remove unnecessary blank

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
7 years agotest: add rbd-mirror image map rebalancer unit test 22304/head
Venky Shankar [Sat, 2 Jun 2018 14:55:22 +0000 (10:55 -0400)]
test: add rbd-mirror image map rebalancer unit test

Signed-off-by: Venky Shankar <vshankar@redhat.com>
Fixes: http://tracker.ceph.com/issues/24161
7 years agorbd-mirror: schedule rebalancer to level-load instances
Venky Shankar [Tue, 29 May 2018 05:45:40 +0000 (01:45 -0400)]
rbd-mirror: schedule rebalancer to level-load instances

Policy implementation takes care of evenly balancing images
across rbd mirror instances. This is done when images are
added to the map and/or instances are added or removed with
the exception of image removal -- removing images does not
reshuffle other (mapped) images which can result in some of
the instances under loaded (in worst case, if one removes
images which all map to a particular instance, that instance
would remain idle until more images are added or a shuffle is
triggered).

We could possibly trigger map shuffle when images are removed,
but that would change the interface between Policy and ImageMap
class (in the form of changes to Policy::remove_images()). Also,
policy (and its implementations) would have to do more work when
the above class method is invoked.

Therefore, an interval based rebalancer is added to ImageMap for
periodic rebalancing of images only if the following conditions
are met:

    - policy has been idle for a configured time duration
    - no scheduled or in-transit operations

Signed-off-by: Venky Shankar <vshankar@redhat.com>
7 years agorbd-mirror: fix state transition table for disassociation
Venky Shankar [Mon, 4 Jun 2018 09:34:58 +0000 (05:34 -0400)]
rbd-mirror: fix state transition table for disassociation

The final state transition when disassociating (removing) images
does not purge the image state map for a given image. This can
also result in uneven balance of images across instances as the
policy implementation relies on this structure to figure out
total number of images tracked.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
7 years agorbd-mirror: fix state comparison in Policy::is_state_scheduled()
Venky Shankar [Mon, 28 May 2018 04:53:30 +0000 (00:53 -0400)]
rbd-mirror: fix state comparison in Policy::is_state_scheduled()

Signed-off-by: Venky Shankar <vshankar@redhat.com>
7 years agorbd-mirror: remove unneeded instance_ids parameter
Venky Shankar [Fri, 25 May 2018 10:48:10 +0000 (06:48 -0400)]
rbd-mirror: remove unneeded instance_ids parameter

Signed-off-by: Venky Shankar <vshankar@redhat.com>
7 years agoMerge pull request #22284 from tspmelo/wip-unit-test-api
Lenz Grimmer [Wed, 13 Jun 2018 10:20:18 +0000 (12:20 +0200)]
Merge pull request #22284 from tspmelo/wip-unit-test-api

mgr/dashboard: Add unit test for frontend api services

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22422 from Devp00l/wip-stringify-array-objects
Lenz Grimmer [Wed, 13 Jun 2018 08:55:15 +0000 (10:55 +0200)]
Merge pull request #22422 from Devp00l/wip-stringify-array-objects

mgr/dashboard: Stringify object[] in KV-table

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Krah <skrah@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agocrimson: add poor man's md_config_t
Kefu Chai [Sat, 26 May 2018 11:25:56 +0000 (19:25 +0800)]
crimson: add poor man's md_config_t

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agosrc/msg: extract Policy into its own header
Kefu Chai [Tue, 13 Mar 2018 02:28:55 +0000 (10:28 +0800)]
src/msg: extract Policy into its own header

and templaterize it. as we need to share Policy between seastar app and
non-seastar apps. and the Throttle interface for seastar is different
from that for non-seastar, so we should templaterize the Policy and
PolicySet.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomsg: SocketConnection use consumption_result_type
Kefu Chai [Tue, 2 Jan 2018 08:03:30 +0000 (16:03 +0800)]
msg: SocketConnection use consumption_result_type

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomsg: SocketConnection reads message tags
Casey Bodley [Fri, 27 Oct 2017 03:55:05 +0000 (23:55 -0400)]
msg: SocketConnection reads message tags

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agomsg: start on SocketConnection negotiation
Casey Bodley [Sat, 21 Oct 2017 20:34:12 +0000 (16:34 -0400)]
msg: start on SocketConnection negotiation

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agotest: add unit test for seastar messenger
Casey Bodley [Sat, 21 Oct 2017 20:59:30 +0000 (16:59 -0400)]
test: add unit test for seastar messenger

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agomsg: add seastar SocketMessenger
Casey Bodley [Sat, 21 Oct 2017 20:58:41 +0000 (16:58 -0400)]
msg: add seastar SocketMessenger

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agomsg: add seastar SocketConnection
Casey Bodley [Sat, 21 Oct 2017 20:22:45 +0000 (16:22 -0400)]
msg: add seastar SocketConnection

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agomsg: add seastar messenger error code framework
Casey Bodley [Sun, 22 Oct 2017 07:29:08 +0000 (03:29 -0400)]
msg: add seastar messenger error code framework

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agomsg: initial seastar messenger interfaces
Casey Bodley [Sat, 21 Oct 2017 16:29:37 +0000 (12:29 -0400)]
msg: initial seastar messenger interfaces

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #22531 from yuriw/wip-yuriw-crontab
Yuri Weinstein [Tue, 12 Jun 2018 19:58:43 +0000 (12:58 -0700)]
Merge pull request #22531 from yuriw/wip-yuriw-crontab

qa/tests: removed all jewel runs and reduced runs on ovh

7 years agoMerge PR #22527 into master
Sage Weil [Tue, 12 Jun 2018 18:21:31 +0000 (13:21 -0500)]
Merge PR #22527 into master

* refs/pull/22527/head:
test/encoding/types.h: Adjusting src/messages entries
test/encoding/types.h: Adjusting src/cls entries
test/encoding/types.h: Adjusting src/rgw entries
test/encoding/types.h: Adjusting src/rbd_replay entries
test/encoding/types.h: Adjusting src/mds entries
test/encoding/types.h: Adjusting src/mon entries
test/encoding/types.h: Adjusting src/os entries
test/encoding/types.h: Adjusting src/osd entries
test/encoding/types.h: Adjusting src/common entries
test/encoding/types.h: Adjusting src/test/encoding entries
test/encoding/types.h: Adjusting src/include/ entries

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoqa/tests: removed all jewel runs and reduced runs on ovh 22531/head
Yuri Weinstein [Tue, 12 Jun 2018 16:49:09 +0000 (09:49 -0700)]
qa/tests: removed all jewel runs and reduced runs on ovh

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agotest/encoding/types.h: Adjusting src/messages entries 22527/head
Erwan Velu [Mon, 11 Jun 2018 14:24:35 +0000 (16:24 +0200)]
test/encoding/types.h: Adjusting src/messages entries

This patch is about:
- Adding the missing headers from src/messages
- Adding the missing types from the existing headers
- Adding blank lines to keep includes and types in a visual block.
  That is much easier to read and keep the same visual as the rest of the file.

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agotest/encoding/types.h: Adjusting src/cls entries
Erwan Velu [Mon, 11 Jun 2018 14:22:05 +0000 (16:22 +0200)]
test/encoding/types.h: Adjusting src/cls entries

This patch is about:
- Adding the missing headers from src/cls
- Adding the missing types from the existing headers
- Ordering types to get them in the file's order (that's easier to update)

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agotest/encoding/types.h: Adjusting src/rgw entries
Erwan Velu [Mon, 11 Jun 2018 14:20:01 +0000 (16:20 +0200)]
test/encoding/types.h: Adjusting src/rgw entries

This patch is about:
- Adding the missing headers from src/rgw
- Adding the missing types from the existing headers
- Ordering types to get them in the file's order (that's easier to update)

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agotest/encoding/types.h: Adjusting src/rbd_replay entries
Erwan Velu [Mon, 11 Jun 2018 14:17:08 +0000 (16:17 +0200)]
test/encoding/types.h: Adjusting src/rbd_replay entries

This patch is about removing a simple typo.
The semi-colong isn't necessary here.

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agotest/encoding/types.h: Adjusting src/mds entries
Erwan Velu [Mon, 11 Jun 2018 14:09:53 +0000 (16:09 +0200)]
test/encoding/types.h: Adjusting src/mds entries

This patch is about:
- Adding the missing headers from src/mds
- Adding the missing types from the existing headers
- Adding blank lines to keep includes and types in a visual block.
  That is much easier to read and keep the same visual as the rest of the file.

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agotest/encoding/types.h: Adjusting src/mon entries
Erwan Velu [Mon, 11 Jun 2018 14:07:03 +0000 (16:07 +0200)]
test/encoding/types.h: Adjusting src/mon entries

This patch is about:
- Adding the missing types from the existing headers
- Ordering types to get them in the file's order (that's easier to update)

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agotest/encoding/types.h: Adjusting src/os entries
Erwan Velu [Mon, 11 Jun 2018 14:04:08 +0000 (16:04 +0200)]
test/encoding/types.h: Adjusting src/os entries

This patch is about:
- Adding the missing headers from src/os
- Adding the missing types from the existing headers
- Ordering types to get them in the file's order (that's easier to update)

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agotest/encoding/types.h: Adjusting src/osd entries
Erwan Velu [Mon, 11 Jun 2018 14:01:12 +0000 (16:01 +0200)]
test/encoding/types.h: Adjusting src/osd entries

This patch is about:
- Adding the missing headers from src/osd
- Adding the missing types from the existing headers
- Ordering types to get them in the file's order (that's easier to update)
- Moving crush entries avoid let all the osd entries in a collocated place

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agomgr/dashboard: Add validateIf validator 22526/head
Stephan Müller [Tue, 12 Jun 2018 10:16:50 +0000 (12:16 +0200)]
mgr/dashboard: Add validateIf validator

Validate form control if condition is true with given validators

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Add custom validator
Stephan Müller [Tue, 12 Jun 2018 10:14:59 +0000 (12:14 +0200)]
mgr/dashboard: Add custom validator

Custom validation by passing a name for the error and a function as
error condition.

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Make validator spec file prettier
Stephan Müller [Tue, 12 Jun 2018 10:02:10 +0000 (12:02 +0200)]
mgr/dashboard: Make validator spec file prettier

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Add unit test for frontend api services 22284/head
Tiago Melo [Sun, 10 Jun 2018 00:42:35 +0000 (01:42 +0100)]
mgr/dashboard: Add unit test for frontend api services

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Prettier KV-table 22422/head
Stephan Müller [Tue, 5 Jun 2018 14:15:36 +0000 (16:15 +0200)]
mgr/dashboard: Prettier KV-table

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Stringify object[] in KV-table
Stephan Müller [Tue, 5 Jun 2018 14:11:12 +0000 (16:11 +0200)]
mgr/dashboard: Stringify object[] in KV-table

The problem was that object[] weren't handled in the key value table
before. Now they will be stringified to prevent an output like
'[Object object]'.

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agoMerge pull request #22082 from tspmelo/wip-angular-6
Lenz Grimmer [Tue, 12 Jun 2018 13:32:58 +0000 (15:32 +0200)]
Merge pull request #22082 from tspmelo/wip-angular-6

mgr/dashboard: Update Angular to version 6

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge PR #21825 into master
Sage Weil [Tue, 12 Jun 2018 13:31:16 +0000 (08:31 -0500)]
Merge PR #21825 into master

* refs/pull/21825/head:
os/bluestore: rename new bitmap allocator class to BitmapAllocator.
os/bluestore: perform allocations aligned with min_length  in new bitmap allocator
test/objectstore/unitetest_fastbmap_allocator: replace ASSERT_TRUE with
os/bluestore: respect min_length as allocation granularity for new
os/bluestore: cosmetic new allocator internal method rename.
os/bluestore: properly respect min_length when analysing partially free
os/bluestore: cosmetic cleanup in new bitmap allocator.
os/bluestore: more verbose logging in new bitmap allocator
os/bluestore: default to bitmap allocator for bluestore/bluefs
os/bluestore: remove original bitmap allocator
os/bluestore: align BitMap allocator's init_rm_free/init_add_free parameters with min_alloc_size
os/bluestore: fix improper access to a BitmapFastAllocator::last_pos
test/allocator: move bluestore allocator's benchmarks to a standalone UT
os/bluestore: add new bitmap allocator
test/allocator: get rid off bitmap allocator specifics and introduce new
test/fio: dump mempool on job completion

Reviewed-by: Varada Kari <varadaraja.kari@flipkart.com>
7 years agoMerge pull request #22504 from tspmelo/wip-table-filtered-numbers
Lenz Grimmer [Tue, 12 Jun 2018 13:30:17 +0000 (15:30 +0200)]
Merge pull request #22504 from tspmelo/wip-table-filtered-numbers

mgr/dashboard: Add filtered rows number in table footer

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge PR #22423 into master
Sage Weil [Tue, 12 Jun 2018 13:27:17 +0000 (08:27 -0500)]
Merge PR #22423 into master

* refs/pull/22423/head:
common/blkdev: fix non-linux build for get_device_id
common/blkdev: do not include vendor in fallback mode
mgr: allow open-ended life expectancy
mgr: use prettified durations for life expectancy
common/ceph_time: very lame timespan_str() helper
mgr: "predicted failure" -> "life expectancy", and as a range
mgr: detailed output for 'ceph device ...'
mgr/DaemonState: skip blank device_ids
osd: skip blank device ids
mgr: track and report device names too
mgr/ActivePyModule: expose 'devices' to python modules
mgr: move dump/print to DeviceState
mgr: implement 'device {set,rm}-predicted-failure' commands
mgr: load persistent device metadata on mgr stat
include/utime: add parse() method
mgr: tolerate racing config-key change during load_store()
mgr: implement 'device {ls,ls-by-daemon,ls-by-host,info}' commands
mgr/DaemonState: populate DeviceState structures
mgr: parse out devids from daemon metadata
common/blkdev: add modelines
osd: include device_ids in metadata
common/blkdev: add get_device_id() helper.

Reviewed-by: Erwan Velu <erwan@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agogithubmap: update contributors
Sage Weil [Tue, 12 Jun 2018 13:27:16 +0000 (08:27 -0500)]
githubmap: update contributors

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22522 from tchaikov/wip-githubmap
Sage Weil [Tue, 12 Jun 2018 13:06:10 +0000 (08:06 -0500)]
Merge pull request #22522 from tchaikov/wip-githubmap

githubmap: update contributors

7 years agotest/encoding/types.h: Adjusting src/common entries
Erwan Velu [Mon, 11 Jun 2018 13:52:03 +0000 (15:52 +0200)]
test/encoding/types.h: Adjusting src/common entries

This patch is about:
- Moving some common/ entries to keep them in a collocated place, and in the file order : that's easier to update this way.

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agotest/encoding/types.h: Adjusting src/test/encoding entries
Erwan Velu [Mon, 11 Jun 2018 13:46:21 +0000 (15:46 +0200)]
test/encoding/types.h: Adjusting src/test/encoding entries

This patch is about :
- Moving encoding headers in a visual block (easier to update)

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agotest/encoding/types.h: Adjusting src/include/ entries
Erwan Velu [Mon, 11 Jun 2018 13:42:29 +0000 (15:42 +0200)]
test/encoding/types.h: Adjusting src/include/ entries

This patch is about
- Moving fs_types.h with the other src/include files, this is easier to update.

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agoos/bluestore: rename new bitmap allocator class to BitmapAllocator. 21825/head
Igor Fedotov [Tue, 12 Jun 2018 11:50:30 +0000 (14:50 +0300)]
os/bluestore: rename new bitmap allocator class to BitmapAllocator.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: perform allocations aligned with min_length in new bitmap allocator
Igor Fedotov [Fri, 1 Jun 2018 18:59:15 +0000 (21:59 +0300)]
os/bluestore: perform allocations aligned with min_length  in new bitmap allocator

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agotest/objectstore/unitetest_fastbmap_allocator: replace ASSERT_TRUE with
Igor Fedotov [Fri, 1 Jun 2018 13:35:04 +0000 (16:35 +0300)]
test/objectstore/unitetest_fastbmap_allocator: replace ASSERT_TRUE with
ASSERT_EQ

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: respect min_length as allocation granularity for new
Igor Fedotov [Thu, 31 May 2018 13:53:31 +0000 (16:53 +0300)]
os/bluestore: respect min_length as allocation granularity for new
bitmap allocator.
It was used a real minimum threshold before this fix which allowed e.g.
allocated extent length to be equal to min_length + 1.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: cosmetic new allocator internal method rename.
Igor Fedotov [Thu, 31 May 2018 11:28:28 +0000 (14:28 +0300)]
os/bluestore: cosmetic new allocator internal method rename.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: properly respect min_length when analysing partially free
Igor Fedotov [Thu, 31 May 2018 10:53:37 +0000 (13:53 +0300)]
os/bluestore: properly respect min_length when analysing partially free
slots in bitmap allocator.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: cosmetic cleanup in new bitmap allocator.
Igor Fedotov [Thu, 31 May 2018 10:34:21 +0000 (13:34 +0300)]
os/bluestore: cosmetic cleanup in new bitmap allocator.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: more verbose logging in new bitmap allocator
Igor Fedotov [Wed, 30 May 2018 12:24:05 +0000 (15:24 +0300)]
os/bluestore: more verbose logging in new bitmap allocator

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: default to bitmap allocator for bluestore/bluefs
Igor Fedotov [Fri, 18 May 2018 19:14:59 +0000 (22:14 +0300)]
os/bluestore: default to bitmap allocator for bluestore/bluefs

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: remove original bitmap allocator
Igor Fedotov [Mon, 14 May 2018 13:09:22 +0000 (16:09 +0300)]
os/bluestore: remove original bitmap allocator

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: align BitMap allocator's init_rm_free/init_add_free parameters with...
Igor Fedotov [Fri, 11 May 2018 21:26:49 +0000 (00:26 +0300)]
os/bluestore: align BitMap allocator's init_rm_free/init_add_free parameters with min_alloc_size

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: fix improper access to a BitmapFastAllocator::last_pos
Igor Fedotov [Thu, 10 May 2018 15:54:36 +0000 (18:54 +0300)]
os/bluestore: fix improper access to a BitmapFastAllocator::last_pos
from multiple threads.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agotest/allocator: move bluestore allocator's benchmarks to a standalone UT
Igor Fedotov [Fri, 4 May 2018 17:03:37 +0000 (20:03 +0300)]
test/allocator: move bluestore allocator's benchmarks to a standalone UT

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: add new bitmap allocator
Igor Fedotov [Thu, 3 May 2018 17:22:15 +0000 (20:22 +0300)]
os/bluestore: add new bitmap allocator

Signed-off-by: Igor Fedotov <ifedotov@suse.com>