]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomon/OSDMonitor: move pool created check into caller
Sage Weil [Sun, 15 Apr 2018 21:15:40 +0000 (16:15 -0500)]
mon/OSDMonitor: move pool created check into caller

This makes for less confusing debug output.  Speaking from experience.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: adjust pgp_num_target down along with pg_num_target as needed
Sage Weil [Tue, 10 Apr 2018 16:16:42 +0000 (11:16 -0500)]
mon/OSDMonitor: adjust pgp_num_target down along with pg_num_target as needed

If the user asks to reduce pg_num, reduce pg_num_target too at the same
time.

Don't completely hide pgp_num yet (by increasing it when pg_num_target
increases).

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: add mon_osd_max_initial_pgs to cap initial pool pgs
Sage Weil [Mon, 9 Apr 2018 12:20:05 +0000 (07:20 -0500)]
mon/OSDMonitor: add mon_osd_max_initial_pgs to cap initial pool pgs

Configure how many initial PGs we create a pool with.  If the user wants
more than this then we do subsequent splits.

Default to 1024, so that pool creation works in the usual way for most users,
but does some splitting for very large pools/clusters.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/OSDMap: set pg[p]_num_target in build_simple*() methods
Sage Weil [Tue, 10 Apr 2018 14:32:58 +0000 (09:32 -0500)]
osd/OSDMap: set pg[p]_num_target in build_simple*() methods

These are only used by unit tests and osdmaptool as far as I can tell.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/PGMap: adjust SMALLER_PGP_NUM warning to use *_target values
Sage Weil [Sun, 8 Apr 2018 18:30:41 +0000 (13:30 -0500)]
mon/PGMap: adjust SMALLER_PGP_NUM warning to use *_target values

If the cluster is failing to converge on the target values that is a
separate problem.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: set CREATING flag for force-create-pg
Sage Weil [Sat, 7 Apr 2018 19:35:36 +0000 (14:35 -0500)]
mon/OSDMonitor: set CREATING flag for force-create-pg

In order to recreate a lost PG, we need to set the CREATING flag for the
pool.  This prevents pg_num from changing in future OSDMap epochs until
*after* the PG has successfully been instantiated.

Note that a pg_num change in *this* epoch is fine; the recreated PG will
instantiate in *this* epoch, which is /after/ the split a pg_num in this
epoch would describe.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: start sending new-style pg_create2 messages
Sage Weil [Fri, 6 Apr 2018 15:26:10 +0000 (10:26 -0500)]
mon/OSDMonitor: start sending new-style pg_create2 messages

The new sharded wq implementation cannot handle a resent mon create
message and a split child already existing.  This a side effect of the
new pg create path instantiating the PG at the pool create epoch osdmap
and letting it roll forward through splits; the mon may be resending a
create for a pg that was already created elsewhere and split elsewhere,
such that one of those split children has peered back onto this same OSD.
When we roll forward our re-created empty parent it may split and find the
child already exists, crashing.

This is no longer a concern because the mgr-based controller for pg_num
will not split PGs until after the initial PGs are all created.  (We
know this because the pool has the CREATED flag set.)

The old-style path had it's own problem
http://tracker.ceph.com/issues/22165.  We would build the history and
instantiate the pg in the latest osdmap epoch, ignoring any split children
that should have been created between teh pool create epoch and the
current epoch.  Since we're now taking the new path, that is no longer
a problem.

Fixes: http://tracker.ceph.com/issues/22165
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: set last_force_resend_prenautilus for pg_num_pending changes
Sage Weil [Fri, 6 Apr 2018 16:26:26 +0000 (11:26 -0500)]
mon/OSDMonitor: set last_force_resend_prenautilus for pg_num_pending changes

This will force pre-nautilus clients to resend ops when we are adjusting
pg_num_pending.  This is a big hammer: for nautilus+ clients, we only have
an interval change for the affected PGs (the two PGs that are about to
merge), whereas this compat hack will do an op resend for the whole pool.
However, it is better than requiring all clients be upgraded to nautilus in
order to do PG merges.

Note that we already do the same thing for pre-luminous clients both for
splits, so we've already inflicted similar pain the past (and, to my
knowledge, have not seen any negative feedback or fallout from that).

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd: ignore pg creates when pool FLAG_CREATING is not set
Sage Weil [Sat, 7 Apr 2018 18:54:49 +0000 (13:54 -0500)]
osd: ignore pg creates when pool FLAG_CREATING is not set

We only process mon-initiated PG creates while the pool is is CREATING
mode.  This ensures that we will not have any racing split or merge
operations.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr: do not adjust pg_num until FLAG_CREATING removed from pool
Sage Weil [Sat, 7 Apr 2018 02:53:35 +0000 (21:53 -0500)]
mgr: do not adjust pg_num until FLAG_CREATING removed from pool

This is more reliable than looking at PG states because the PG may have
gone active and sent a notification to the mon (pg created!) and mgr
(new state!) but the mon may not have persisted that information yet.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: add FLAG_CREATING on upgrade if pools still creating
Sage Weil [Fri, 13 Apr 2018 15:26:48 +0000 (10:26 -0500)]
mon/OSDMonitor: add FLAG_CREATING on upgrade if pools still creating

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: prevent FLAG_CREATING from getting set pre-nautilus
Sage Weil [Fri, 13 Apr 2018 15:26:38 +0000 (10:26 -0500)]
mon/OSDMonitor: prevent FLAG_CREATING from getting set pre-nautilus

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: disallow pg_num changes while CREATING flag is set
Sage Weil [Sat, 7 Apr 2018 19:18:52 +0000 (14:18 -0500)]
mon/OSDMonitor: disallow pg_num changes while CREATING flag is set

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: set POOL_CREATING flag until initial pool pgs are created
Sage Weil [Sat, 7 Apr 2018 02:39:14 +0000 (21:39 -0500)]
mon/OSDMonitor: set POOL_CREATING flag until initial pool pgs are created

Set the flag when the pool is created, and clear it when the initial set
of PGs have been created by the mon.  Move the update_creating_pgs()
block so that we can process the pgid removal from the creating list and
the pool flag removal in the same epoch; otherwise we might remove the
pgid but have no cluster activity to roll over another osdmap epoch to
allow the pool flag to be removed.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/osd_types: add pg_pool_t FLAG_POOL_CREATING
Sage Weil [Sat, 7 Apr 2018 02:38:26 +0000 (21:38 -0500)]
osd/osd_types: add pg_pool_t FLAG_POOL_CREATING

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/osd_types: introduce last_force_resend_prenautilus
Sage Weil [Fri, 6 Apr 2018 16:24:02 +0000 (11:24 -0500)]
osd/osd_types: introduce last_force_resend_prenautilus

Previously, we renamed the old last_force_resend to
last_force_resend_preluminous and created a new last_force_resend for
luminous+.  This allowed us to force preluminous clients to resend ops
(because they didn't understand the new pg split => new interval rule)
without affecting luminous clients.

Do the same rename again, adding a last_force_resend_prenautilus (luminous
or mimic).

Adjust the OSD code accordingly so it matches the behavior we'll see from
a luminous client.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/PGLog: merge_from helper
Sage Weil [Fri, 13 Apr 2018 22:16:41 +0000 (17:16 -0500)]
osd/PGLog: merge_from helper

When merging two logs, we throw out all of the actual log entries.
However, we need to convert them to dup ops as appropriate, and merge
those together.  Reuse the trim code to do this.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd: no cache agent or snap trimming during premerge
Sage Weil [Fri, 20 Apr 2018 03:12:19 +0000 (22:12 -0500)]
osd: no cache agent or snap trimming during premerge

The PG is quiesced; not background activity.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd: notify mon when pending PGs are ready to merge
Sage Weil [Sat, 17 Feb 2018 17:38:57 +0000 (11:38 -0600)]
osd: notify mon when pending PGs are ready to merge

When a PG is in the pending merge state it is >= pg_num_pending and <
pg_num.  When this happens quiesce IO, peer, wait for activate to commit,
and then notify the mon that we are idle and safe to merge.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr: add simple controller to adjust pg[p]_num_actual
Sage Weil [Fri, 6 Apr 2018 15:26:10 +0000 (10:26 -0500)]
mgr: add simple controller to adjust pg[p]_num_actual

This is a pretty trivial controller.  It adds some constraints that were
obviously not there before when the user could set these values to anything
they wanted, but does not implement all of the "nice" stepping that we'll
eventually want.  That can come later.

Splits:
- throttle pg_num increases, currently using the same config option
(mon_osd_max_creating_pgs) that we used to throttle pg creation
- do not increase pg_num until the initial pg creation has completed.

Merges:
- wait until the source and target pgs for merge are active and clean
before doing a merge.

Adjust pgp_num all at once for now.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: MOSDPGReadyToMerge to complete a pg_num change
Sage Weil [Fri, 16 Feb 2018 03:26:48 +0000 (21:26 -0600)]
mon/OSDMonitor: MOSDPGReadyToMerge to complete a pg_num change

This message allows pg_num to be decremented (once the final PGs are
ready).

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: allow pg_num to adjusted up or down via pg[p]_num_target
Sage Weil [Fri, 16 Feb 2018 03:25:32 +0000 (21:25 -0600)]
mon/OSDMonitor: allow pg_num to adjusted up or down via pg[p]_num_target

The CLI now sets the *_target values, imposing only the subset of constraints that
the user needs to be concerned with.

new "pg_num_actual" and "pgp_num_actual" properties/commands are added that allow
the underlying raw values to be adjusted.  For the merge case, this sets
pg_num_pending instead of pg_num so that the OSDs can go through the
merge prep process.

A controller (in a future commit) will make pg[p]_num converge to pg[p]_num_target.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/osd_types: make pg merge an interval boundary
Sage Weil [Fri, 16 Feb 2018 03:24:17 +0000 (21:24 -0600)]
osd/osd_types: make pg merge an interval boundary

Both the merge itself *and* the pending merge are interval transitions.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/osd_types: add pg_t::is_merge() method
Sage Weil [Fri, 16 Feb 2018 03:13:27 +0000 (21:13 -0600)]
osd/osd_types: add pg_t::is_merge() method

This checks if we are a merge *source*, and if so, who the parent (target)
will be.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/osd_types: add pg_num_pending to pg_pool_t
Sage Weil [Fri, 16 Feb 2018 03:12:47 +0000 (21:12 -0600)]
osd/osd_types: add pg_num_pending to pg_pool_t

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd: allow multiple threads to block on wait_min_pg_epoch
Sage Weil [Mon, 9 Jul 2018 21:06:57 +0000 (16:06 -0500)]
osd: allow multiple threads to block on wait_min_pg_epoch

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd: restructure advance_pg() call mechanism
Sage Weil [Mon, 26 Feb 2018 22:23:51 +0000 (16:23 -0600)]
osd: restructure advance_pg() call mechanism

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/PGMap: prune merged pgs
Sage Weil [Wed, 28 Feb 2018 17:52:41 +0000 (11:52 -0600)]
mon/PGMap: prune merged pgs

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/PGMap: track pgs by state for each pool
Sage Weil [Fri, 6 Apr 2018 15:26:35 +0000 (10:26 -0500)]
mon/PGMap: track pgs by state for each pool

We had this globally, but it's useful to have the per-pool breakdowns.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/SnapMapper: allow split_bits to decrease (merge)
Sage Weil [Tue, 3 Apr 2018 21:09:17 +0000 (16:09 -0500)]
osd/SnapMapper: allow split_bits to decrease (merge)

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/bluestore: fix osr_drain before merge
Sage Weil [Mon, 9 Jul 2018 22:22:58 +0000 (17:22 -0500)]
os/bluestore: fix osr_drain before merge

We need to make sure the deferred writes on the source collection finish
before the merge so that ops ordered via the final target sequencer will
occur after those writes.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/bluestore: allow reuse of osr from existing collection
Sage Weil [Sun, 8 Jul 2018 19:24:49 +0000 (14:24 -0500)]
os/bluestore: allow reuse of osr from existing collection

We try to attach an old osr at prepare_new_collection time, but that
happens before a transaction is submitted, and we might have a
transaction that removes and then recreates a collection.

Move the logic to _osr_attach and extend it to include reusing an osr
in use by a collection already in coll_map.  Also adjust the
_osr_register_zombie method to behave if the osr is already there, which
can happen with a remove, create, remove+create transaction sequence.

Fixes: https://tracker.ceph.com/issues/25180
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/filestore: (re)implement merge
Sage Weil [Sat, 4 Aug 2018 18:51:05 +0000 (13:51 -0500)]
os/filestore: (re)implement merge

Merging is a bit different then splitting, because the two collections
may already be hashed at different levels.  Since lookup etc rely on the
idea that the object is always at the deepest level of hashing, if you
merge collections with different levels that share some common bit prefix
then some objects will end up higher up the hierarchy even though deeper
hashed directories exist.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/filestore: add _merge_collections post-check
Sage Weil [Mon, 25 Jun 2018 18:08:21 +0000 (13:08 -0500)]
os/filestore: add _merge_collections post-check

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos: implement merge_collection
Sage Weil [Fri, 16 Feb 2018 19:12:59 +0000 (13:12 -0600)]
os: implement merge_collection

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/ObjectStore: add merge_collection operation to Transaction
Sage Weil [Fri, 16 Feb 2018 04:43:18 +0000 (22:43 -0600)]
os/ObjectStore: add merge_collection operation to Transaction

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23634 from cbodley/wip-21154
Casey Bodley [Fri, 7 Sep 2018 15:05:20 +0000 (11:05 -0400)]
Merge pull request #23634 from cbodley/wip-21154

rgw: RGWRadosGetOmapKeysCR takes result by shared_ptr

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: RGWRadosGetOmapKeysCR takes result by shared_ptr 23634/head
Casey Bodley [Fri, 17 Aug 2018 17:15:49 +0000 (13:15 -0400)]
rgw: RGWRadosGetOmapKeysCR takes result by shared_ptr

Fixes: http://tracker.ceph.com/issues/21154
Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23920 from cbodley/wip-rgw-cr-rados-fixes
Casey Bodley [Fri, 7 Sep 2018 13:30:29 +0000 (09:30 -0400)]
Merge pull request #23920 from cbodley/wip-rgw-cr-rados-fixes

rgw multisite: async rados requests don't access coroutine memory

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #23959 from rubenk/doc-remove-unknown-option-from-manpage
Kefu Chai [Fri, 7 Sep 2018 11:12:12 +0000 (19:12 +0800)]
Merge pull request #23959 from rubenk/doc-remove-unknown-option-from-manpage

doc: remove deprecated 'scrubq' from ceph(8)

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23931 from cyx1231st/wip-msgr-test
Kefu Chai [Fri, 7 Sep 2018 06:43:47 +0000 (14:43 +0800)]
Merge pull request #23931 from cyx1231st/wip-msgr-test

tests: fix to check server_conn in MessengerTest.NameAddrTest

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agotests: fix to check server_conn in MessengerTest.NameAddrTest 23931/head
Yingxin [Wed, 5 Sep 2018 15:14:09 +0000 (23:14 +0800)]
tests: fix to check server_conn in MessengerTest.NameAddrTest

Signed-off-by: Yingxin <yingxin.cheng@intel.com>
6 years agoMerge pull request #23944 from ceph/wip-s3a-update-mirror
vasukulkarni [Thu, 6 Sep 2018 21:44:29 +0000 (14:44 -0700)]
Merge pull request #23944 from ceph/wip-s3a-update-mirror

qa/tasks: update mirror link for maven

6 years agoMerge pull request #23963 from alfredodeza/wip-rm35535
Andrew Schoen [Thu, 6 Sep 2018 20:29:33 +0000 (15:29 -0500)]
Merge pull request #23963 from alfredodeza/wip-rm35535

ceph-volume:  batch tests for mixed-type of devices

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume lvm.batch use 'ceph' as the cluster name with filestore 23963/head
Alfredo Deza [Thu, 6 Sep 2018 19:19:01 +0000 (15:19 -0400)]
ceph-volume lvm.batch use 'ceph' as the cluster name with filestore

Custom cluster names are currently broken on ceph-volume, should get
addressed with http://tracker.ceph.com/issues/27210 which is out of
scope for these changes

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests/functional update filestore xenial test vars
Alfredo Deza [Thu, 6 Sep 2018 15:23:30 +0000 (11:23 -0400)]
ceph-volume tests/functional update filestore xenial test vars

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests/functional update bluestore xenial test vars
Alfredo Deza [Thu, 6 Sep 2018 15:23:20 +0000 (11:23 -0400)]
ceph-volume tests/functional update bluestore xenial test vars

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests/functional update filestore centos7 test vars
Alfredo Deza [Thu, 6 Sep 2018 15:18:20 +0000 (11:18 -0400)]
ceph-volume tests/functional update filestore centos7 test vars

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests/functional update bluestore centos7 test vars
Alfredo Deza [Thu, 6 Sep 2018 15:18:05 +0000 (11:18 -0400)]
ceph-volume tests/functional update bluestore centos7 test vars

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm.api use double -f flags when calling pvremove
Alfredo Deza [Thu, 6 Sep 2018 14:55:31 +0000 (10:55 -0400)]
ceph-volume lvm.api use double -f flags when calling pvremove

Fairly destructive, just like everything else when zapping a device.
This is required in the case of double UUIDs detected, something that
surfaced when testing with a loop device to create an nvme (the loop
device ends up with the same UUID as the nvme).

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests/functional remove duplicate test playbooks
Alfredo Deza [Thu, 6 Sep 2018 14:26:05 +0000 (10:26 -0400)]
ceph-volume tests/functional remove duplicate test playbooks

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests/functional setup playbook for nvme devices
Alfredo Deza [Thu, 6 Sep 2018 13:38:00 +0000 (09:38 -0400)]
ceph-volume tests/functional setup playbook for nvme devices

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests/functional single (test) playbook to zap and redeploy batch operations
Alfredo Deza [Thu, 6 Sep 2018 13:34:11 +0000 (09:34 -0400)]
ceph-volume tests/functional single (test) playbook to zap and redeploy batch operations

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests/functional create a noop playbook to allow symlinking always to...
Alfredo Deza [Thu, 6 Sep 2018 13:33:21 +0000 (09:33 -0400)]
ceph-volume tests/functional create a noop playbook to allow symlinking always to setup.yml

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests/functional add mixed-type scenarios to tox.ini
Alfredo Deza [Thu, 6 Sep 2018 13:32:00 +0000 (09:32 -0400)]
ceph-volume tests/functional add mixed-type scenarios to tox.ini

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge PR #23673 into master
Patrick Donnelly [Thu, 6 Sep 2018 17:57:32 +0000 (10:57 -0700)]
Merge PR #23673 into master

* refs/pull/23673/head:
qa: automate distro/kernel matrix for kclient

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Tested-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoceph-volume tests/functional add CentOS7 bluestore mixed-type scenarios
Alfredo Deza [Wed, 5 Sep 2018 12:17:54 +0000 (08:17 -0400)]
ceph-volume tests/functional add CentOS7 bluestore mixed-type scenarios

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests/functional add CentOS7 filestore mixed-type scenarios
Alfredo Deza [Wed, 5 Sep 2018 12:17:38 +0000 (08:17 -0400)]
ceph-volume tests/functional add CentOS7 filestore mixed-type scenarios

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoqa: automate distro/kernel matrix for kclient 23673/head
Patrick Donnelly [Tue, 21 Aug 2018 04:07:33 +0000 (21:07 -0700)]
qa: automate distro/kernel matrix for kclient

It's no longer necessary to pass `-k testing` to teuthology-suite. We're also
now regularly testing RHEL 7.5 kernel in upstream testing.

This work is prep for eventually integrating kclient into fs.

Fixes: http://tracker.ceph.com/issues/26995
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agodoc: remove deprecated 'scrubq' from ceph(8) 23959/head
Ruben Kerkhof [Thu, 6 Sep 2018 12:17:23 +0000 (14:17 +0200)]
doc: remove deprecated 'scrubq' from ceph(8)

The option was removed in a30cbe9adea34782be8699c010d4281d245feb6b

Fixes: http://tracker.ceph.com/issues/35813
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
6 years agoMerge pull request #23846 from liewegas/wip-mgr-config-fixes
Kefu Chai [Thu, 6 Sep 2018 13:58:52 +0000 (21:58 +0800)]
Merge pull request #23846 from liewegas/wip-mgr-config-fixes

mon: fix mgr module config option handling

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23836 from sepia-liu/wip-cephfuse-doc
huanwen ren [Thu, 6 Sep 2018 10:50:57 +0000 (18:50 +0800)]
Merge pull request #23836 from sepia-liu/wip-cephfuse-doc

doc/cephfs: fixup add/remove mds docs

6 years agoMerge pull request #23911 from votdev/cleanup
Lenz Grimmer [Thu, 6 Sep 2018 09:04:22 +0000 (11:04 +0200)]
Merge pull request #23911 from votdev/cleanup

mgr/dashboard: Remove useless code

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23948 from libingyang-zte/master
Xie Xingguo [Thu, 6 Sep 2018 04:10:20 +0000 (12:10 +0800)]
Merge pull request #23948 from libingyang-zte/master

doc: Fix Spelling Error of Radosgw

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #23947 from tchaikov/wip-test-msgr-include
Kefu Chai [Thu, 6 Sep 2018 02:00:47 +0000 (10:00 +0800)]
Merge pull request #23947 from tchaikov/wip-test-msgr-include

test/msgr: add missing #include

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23926 from Gangbiao/lgb-devel
Xie Xingguo [Thu, 6 Sep 2018 01:30:25 +0000 (09:30 +0800)]
Merge pull request #23926 from Gangbiao/lgb-devel

doc: Document correction

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agodoc: Fix Spelling Error of Radosgw 23948/head
李丙洋 10208981 [Thu, 6 Sep 2018 00:43:06 +0000 (08:43 +0800)]
doc: Fix Spelling Error of Radosgw

Signed-off-by: Li Bingyang <li.bingyang1@zte.com.cn>
6 years agoMerge pull request #23850 from liewegas/wip-22544
Kefu Chai [Thu, 6 Sep 2018 00:33:31 +0000 (08:33 +0800)]
Merge pull request #23850 from liewegas/wip-22544

osdc/Objecter: fix split vs reconnect race

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agoMerge pull request #23557 from liewegas/wip-cmd-getval
Kefu Chai [Thu, 6 Sep 2018 00:31:55 +0000 (08:31 +0800)]
Merge pull request #23557 from liewegas/wip-cmd-getval

common/cmdparse: cmd_getval_throws -> cmd_getval

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agotest/msgr: add missing #include 23947/head
Kefu Chai [Thu, 6 Sep 2018 00:23:08 +0000 (08:23 +0800)]
test/msgr: add missing #include

it's a regression introduced by #23930

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/tasks: update mirror link for maven, the original mirror no longer exists 23944/head
Vasu Kulkarni [Thu, 6 Sep 2018 00:08:24 +0000 (17:08 -0700)]
qa/tasks: update mirror link for maven, the original mirror no longer exists

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoMerge PR #23851 into master
Patrick Donnelly [Wed, 5 Sep 2018 23:39:47 +0000 (16:39 -0700)]
Merge PR #23851 into master

* refs/pull/23851/head:
mds: print is_laggy message once

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #23890 into master
Patrick Donnelly [Wed, 5 Sep 2018 23:39:41 +0000 (16:39 -0700)]
Merge PR #23890 into master

* refs/pull/23890/head:
msg: lower verbosity on normal event

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agomds: print is_laggy message once 23851/head
Patrick Donnelly [Sun, 2 Sep 2018 01:47:18 +0000 (18:47 -0700)]
mds: print is_laggy message once

Beacon::is_laggy gets called frequently which causes the debug log to get
spammed with messages.

Steps to reproduce:
- setup vstart cluster
- start IO from client (e.g. `cp -av /usr /mnt`)
- find connection to mon by the mds
  $ ss -tnp | grep ceph-mds
    ...
    ESTAB      0      0      127.0.0.1:58988              127.0.0.1:40928               users:(("ceph-mds",pid=13095,fd=37))
- block the connection using iptables on the MDS node:
  $ sudo iptables -I INPUT -p tcp --sport 58988 --dport 40928 -j DROP
- verify MDS log using:
  $ tail -f mds.a.log | grep beacon
    ...
    2018-09-05 19:21:05.672 7f2908a9d700  1 mds.beacon.a is_laggy 19.8876 > 15 since last acked beacon
    2018-09-05 19:21:05.672 7f2908a9d700  1 mds.beacon.a is_laggy 19.8876 > 15 since last acked beacon
    2018-09-05 19:21:05.672 7f2908a9d700  1 mds.beacon.a is_laggy 19.8876 > 15 since last acked beacon
    2018-09-05 19:21:05.672 7f2908a9d700  1 mds.beacon.a is_laggy 19.8876 > 15 since last acked beacon
    2018-09-05 19:21:05.784 7f2905a97700  5 mds.beacon.a Sending beacon up:active seq 114
    2018-09-05 19:21:05.784 7f2905a97700  1 -- 127.0.0.1:6813/2277776624 --> 127.0.0.1:40929/0 -- mdsbeacon(14162/a up:active seq 114 v7) v7 -- 0x7d1e7e2a80 con 0
    2018-09-05 19:21:05.784 7f2905a97700 20 mds.beacon.a sender thread waiting interval 4s

Fixes: http://tracker.ceph.com/issues/35250
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #23645 from jcsp/wip-mgr-unknown-error
Noah Watkins [Wed, 5 Sep 2018 23:02:34 +0000 (16:02 -0700)]
Merge pull request #23645 from jcsp/wip-mgr-unknown-error

mgr: replace "Unknown error" string on always_on

Reviewed-by: Noah Watkins <nwatkins@redhat.com>
6 years agoMerge pull request #23942 from trociny/wip-rados-rmpool
Jason Dillaman [Wed, 5 Sep 2018 21:33:57 +0000 (17:33 -0400)]
Merge pull request #23942 from trociny/wip-rados-rmpool

qa/workunits/rbd: replace usage of 'rados rmpool'

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoqa/workunits/rbd: replace usage of 'rados rmpool' 23942/head
Mykola Golub [Wed, 5 Sep 2018 19:52:20 +0000 (22:52 +0300)]
qa/workunits/rbd: replace usage of 'rados rmpool'

This command was dropped.

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge PR #23907 into master
Patrick Donnelly [Wed, 5 Sep 2018 16:41:23 +0000 (09:41 -0700)]
Merge PR #23907 into master

* refs/pull/23907/head:
doc: Fix Spelling Error of Cephfs Shell

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge pull request #23930 from tchaikov/wip-include-cleanup
Kefu Chai [Wed, 5 Sep 2018 15:47:32 +0000 (23:47 +0800)]
Merge pull request #23930 from tchaikov/wip-include-cleanup

common,mon: add implicit `#include` headers

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23909 from theanalyst/doc/releases/12.2.8
Sage Weil [Wed, 5 Sep 2018 15:43:26 +0000 (10:43 -0500)]
Merge pull request #23909 from theanalyst/doc/releases/12.2.8

doc: release notes for 12.2.8 luminous

6 years agodoc: release notes for 12.2.8 luminous 23909/head
Abhishek Lekshmanan [Tue, 4 Sep 2018 11:15:11 +0000 (13:15 +0200)]
doc: release notes for 12.2.8 luminous

- Add a special note for upgrades from earlier releases
- Add a notable section mentioning the scrub and rgw options

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoMerge pull request #23852 from tchaikov/wip-cmake-cleanup
Kefu Chai [Wed, 5 Sep 2018 14:28:37 +0000 (22:28 +0800)]
Merge pull request #23852 from tchaikov/wip-cmake-cleanup

cmake: link compressor plugins against lib the modern way

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23925 from cfanz/wip-fix-data-sync-report
Casey Bodley [Wed, 5 Sep 2018 14:20:22 +0000 (10:20 -0400)]
Merge pull request #23925 from cfanz/wip-fix-data-sync-report

rgw-admin: fix data sync report for master zone

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23626 from Liuchang0812/rgw-put-cors-compatible
Casey Bodley [Wed, 5 Sep 2018 13:20:18 +0000 (09:20 -0400)]
Merge pull request #23626 from Liuchang0812/rgw-put-cors-compatible

rgw: return err_malformed_xml when MaxAgeSeconds is an invalid integer

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23835 from Songweibin/wip-import-34536
Jason Dillaman [Wed, 5 Sep 2018 13:15:34 +0000 (09:15 -0400)]
Merge pull request #23835 from Songweibin/wip-import-34536

rbd: fix error import when the input is a pipe

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23815 from shun-s/fix-acquire-lock-latency
Jason Dillaman [Wed, 5 Sep 2018 13:14:59 +0000 (09:14 -0400)]
Merge pull request #23815 from shun-s/fix-acquire-lock-latency

librbd: fix possible unnecessary latency when requeue request

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23935 from LenzGr/bug-35686-missing-tooltip
Ricardo Marques [Wed, 5 Sep 2018 12:59:53 +0000 (13:59 +0100)]
Merge pull request #23935 from LenzGr/bug-35686-missing-tooltip

mgr/dashboard: Added missing tooltip to settings icon

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23409 from ricardoasmarques/wip-role-management
Lenz Grimmer [Wed, 5 Sep 2018 12:57:17 +0000 (14:57 +0200)]
Merge pull request #23409 from ricardoasmarques/wip-role-management

mgr/dashboard: Role management from the UI

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23938 from dillaman/wip-qa-rbd-mkpool
Mykola Golub [Wed, 5 Sep 2018 12:42:38 +0000 (15:42 +0300)]
Merge pull request #23938 from dillaman/wip-qa-rbd-mkpool

qa/workunits/rbd: replace usage of 'rados mkpool'

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoqa/workunits/rbd: replace usage of 'rados mkpool' 23938/head
Jason Dillaman [Wed, 5 Sep 2018 12:17:39 +0000 (08:17 -0400)]
qa/workunits/rbd: replace usage of 'rados mkpool'

This command was dropped under commit 2c26fb0fe1, so use
'ceph osd pool create' instead.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agomgr/dashboard: Role management from the UI 23409/head
Ricardo Marques [Mon, 30 Jul 2018 13:27:31 +0000 (14:27 +0100)]
mgr/dashboard: Role management from the UI

Fixes: https://tracker.ceph.com/issues/24447
Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #23937 from tchaikov/wip-crimson-test-denc
Kefu Chai [Wed, 5 Sep 2018 12:11:02 +0000 (20:11 +0800)]
Merge pull request #23937 from tchaikov/wip-crimson-test-denc

test/crimson: do not use unit.cc as the driver of unittest_seastar_denc

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agotest/crimson: do not use unit.cc as the driver of unittest_seastar_denc 23937/head
Kefu Chai [Wed, 5 Sep 2018 11:06:40 +0000 (19:06 +0800)]
test/crimson: do not use unit.cc as the driver of unittest_seastar_denc

as unit.cc initializes the CephContext and all of Ceph's infratructure,
which is not necessary for the denc test. also, seastar's builtin allocator
only pre-allocates 32 << 20 bytes. it's enough for the denc test, but
not necessarily enough for create CephContext and its friends. an option is
to use seastar's app template to initialize the memory allocator properly.
another option is to avoid initializing CephContext in this test.

the latter is simpler.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Added missing tooltip to settings icon 23935/head
Lenz Grimmer [Wed, 5 Sep 2018 10:12:53 +0000 (12:12 +0200)]
mgr/dashboard: Added missing tooltip to settings icon

Fixes: https://tracker.ceph.com/issues/35686
Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
6 years agoMerge pull request #23797 from votdev/fix_user_notifications
Lenz Grimmer [Wed, 5 Sep 2018 08:46:18 +0000 (10:46 +0200)]
Merge pull request #23797 from votdev/fix_user_notifications

mgr/dashboard: Fix notifications in user list and form

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agomon/MonClient.h: include necessary header 23930/head
Kefu Chai [Mon, 3 Sep 2018 13:29:34 +0000 (21:29 +0800)]
mon/MonClient.h: include necessary header

MonClient references LockPolicy, so it should include
common/lock_policy.h .

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/TrackedOp.h: include spinlock.h as this header uses it
Kefu Chai [Mon, 3 Sep 2018 09:12:56 +0000 (17:12 +0800)]
common/TrackedOp.h: include spinlock.h as this header uses it

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon,crush,mds,messages,osd: add missing #include
Kefu Chai [Fri, 31 Aug 2018 13:17:48 +0000 (21:17 +0800)]
common,crush,mds,messages,osd: add missing #include

they rely on dout.h to do this, but they should not.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23816 from cyx1231st/wip-seastar-msgr-fix
Kefu Chai [Wed, 5 Sep 2018 07:45:28 +0000 (15:45 +0800)]
Merge pull request #23816 from cyx1231st/wip-seastar-msgr-fix

crimson/net: miscellaneous fixes to seastar-msgr

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agomgr/dashboard: Fix notifications in user list 23797/head
Volker Theile [Thu, 30 Aug 2018 13:27:14 +0000 (15:27 +0200)]
mgr/dashboard: Fix notifications in user list

The notification message title and text were inverted.

Signed-off-by: Volker Theile <vtheile@suse.com>