]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agorgw/radosgw-admin: allow negative values for --max-size
Nick Erdmann [Wed, 12 Sep 2018 13:56:41 +0000 (15:56 +0200)]
rgw/radosgw-admin: allow negative values for --max-size

Fix regression in e664488e.

Signed-off-by: Nick Erdmann <n@nirf.de>
6 years agoMerge pull request #24055 from sebastian-philipp/kubejacker-opensuse-mimic
John Spray [Wed, 12 Sep 2018 10:25:44 +0000 (11:25 +0100)]
Merge pull request #24055 from sebastian-philipp/kubejacker-opensuse-mimic

script/kubejacker: Add openSUSE based images

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoscript/kubejacker: Add openSUSE based images 24055/head
Sebastian Wagner [Wed, 12 Sep 2018 08:32:53 +0000 (10:32 +0200)]
script/kubejacker: Add openSUSE based images

* Added executable bit of `kubejacker.sh`.
* Reduced the number of `RUN` commands
* Added zypper commands for SUSE.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #23941 from trociny/wip-23445
Jason Dillaman [Wed, 12 Sep 2018 00:49:28 +0000 (20:49 -0400)]
Merge pull request #23941 from trociny/wip-23445

librbd: flatten operation should use object map

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #22675 from nuyhah/fix_block_name_prefix
Jason Dillaman [Wed, 12 Sep 2018 00:48:23 +0000 (20:48 -0400)]
Merge pull request #22675 from nuyhah/fix_block_name_prefix

librbd: block_name_prefix is not created randomly

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23790 from iridescent-rsy/myfix
Jason Dillaman [Wed, 12 Sep 2018 00:48:08 +0000 (20:48 -0400)]
Merge pull request #23790 from iridescent-rsy/myfix

librbd: remove template declaration of a non-template function

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23853 from zy751713126/add_protect_snapshot_list
Jason Dillaman [Wed, 12 Sep 2018 00:47:52 +0000 (20:47 -0400)]
Merge pull request #23853 from zy751713126/add_protect_snapshot_list

rbd: add protected in snap list

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #24009 from trociny/wip-test-migration-other-pool
Jason Dillaman [Wed, 12 Sep 2018 00:46:02 +0000 (20:46 -0400)]
Merge pull request #24009 from trociny/wip-test-migration-other-pool

test/librbd: migration tests did not delete additional pool

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: block_name_prefix is not created randomly 22675/head
hyun-ha [Fri, 22 Jun 2018 16:10:20 +0000 (01:10 +0900)]
librbd: block_name_prefix is not created randomly

fixes: http://tracker.ceph.com/issues/24634
Signed-off-by: hyun ha hyun.ha@navercorp.com
6 years agoMerge pull request #23702 from Rubab-Syed/rgw-orchestrator-rook
John Spray [Tue, 11 Sep 2018 18:36:26 +0000 (19:36 +0100)]
Merge pull request #23702 from Rubab-Syed/rgw-orchestrator-rook

mgr/orchestrator: Add RGW service support

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoMerge PR #23908 into master
Patrick Donnelly [Tue, 11 Sep 2018 18:27:23 +0000 (11:27 -0700)]
Merge PR #23908 into master

* refs/pull/23908/head:
client: retry remount on dcache invalidation failure

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #23691 into master
Patrick Donnelly [Tue, 11 Sep 2018 18:26:31 +0000 (11:26 -0700)]
Merge PR #23691 into master

* refs/pull/23691/head:
client:two ceph-fuse client, one can not list out files created by another.

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #23323 into master
Patrick Donnelly [Tue, 11 Sep 2018 18:24:50 +0000 (11:24 -0700)]
Merge PR #23323 into master

* refs/pull/23323/head:
client: set f_files to the total number of files in the filesystem

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23314 into master
Patrick Donnelly [Tue, 11 Sep 2018 18:22:40 +0000 (11:22 -0700)]
Merge PR #23314 into master

* refs/pull/23314/head:
mds: include session uptime when diplaying session list
mds: track average uptime of sessions

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #23954 from zy751713126/clear_snap_limit
Jason Dillaman [Tue, 11 Sep 2018 18:22:14 +0000 (14:22 -0400)]
Merge pull request #23954 from zy751713126/clear_snap_limit

rbd: simplified code to remove do_clear_limit function

6 years agoMerge PR #23198 into master
Patrick Donnelly [Tue, 11 Sep 2018 18:15:44 +0000 (11:15 -0700)]
Merge PR #23198 into master

* refs/pull/23198/head:
mds: optimize acquiring locks
mds: reduce memory fragments of EMetaBlob
mds: optimize memory allocation in CInode::encode_inodestat
mds: convert MDSCacheObject::ref_map to flat_map

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23199 into master
Patrick Donnelly [Tue, 11 Sep 2018 17:56:22 +0000 (10:56 -0700)]
Merge PR #23199 into master

* refs/pull/23199/head:
script: backport-create-issue: optionally take list of issue numbers

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23728 into master
Patrick Donnelly [Tue, 11 Sep 2018 17:44:04 +0000 (10:44 -0700)]
Merge PR #23728 into master

* refs/pull/23728/head:
doc: suppored features of kernel client

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23824 into master
Patrick Donnelly [Tue, 11 Sep 2018 17:14:20 +0000 (10:14 -0700)]
Merge PR #23824 into master

* refs/pull/23824/head:
doc/cephfs: add notes on application best practices

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoscript: backport-create-issue: optionally take list of issue numbers 23199/head
Nathan Cutler [Tue, 24 Jul 2018 08:11:35 +0000 (10:11 +0200)]
script: backport-create-issue: optionally take list of issue numbers

Make the script optionally take a comma-separated list of issue numbers.
(Could be just one issue.)

Before this patch, backport-create-issue script insisted on looping over all
issues in Pending Backport status. This was cumbersome in cases when only
one issue (or a couple issues) needed to be processed.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #21379 from pritha-srivastava/wip-rgw-user-policy
Matt Benjamin [Tue, 11 Sep 2018 16:10:28 +0000 (12:10 -0400)]
Merge pull request #21379 from pritha-srivastava/wip-rgw-user-policy

rgw: User Policy

6 years agoMerge pull request #23497 from noahdesu/insights
John Spray [Tue, 11 Sep 2018 14:56:10 +0000 (15:56 +0100)]
Merge pull request #23497 from noahdesu/insights

mgr/insights: insights reporting module

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #23146 from jcsp/wip-progress
John Spray [Tue, 11 Sep 2018 14:37:51 +0000 (15:37 +0100)]
Merge pull request #23146 from jcsp/wip-progress

mgr/progress: improve+test OSD out handling

Reviewed-by: Noah Watkins <nwatkins@redhat.com>
6 years agoMerge pull request #23897 from votdev/improve_delete_modal
Lenz Grimmer [Tue, 11 Sep 2018 14:37:15 +0000 (16:37 +0200)]
Merge pull request #23897 from votdev/improve_delete_modal

mgr/dashboard: Make deletion dialog more touch device friendly

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #24016 from votdev/bug_35907
Lenz Grimmer [Tue, 11 Sep 2018 14:28:16 +0000 (16:28 +0200)]
Merge pull request #24016 from votdev/bug_35907

mgr/dashboard: Progress bar does not stop in TableKeyValueComponent

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge PR #22987 into master
Sage Weil [Tue, 11 Sep 2018 14:27:51 +0000 (09:27 -0500)]
Merge PR #22987 into master

* refs/pull/22987/head:
common,rgw: rename sha1_digest_t
osd: decrement old chunk's reference count if the chunk has a reference.
src/test: add a unit test
osd: using fingerprint OID if fingerprint is set
osd: add flag interfaces in chunk_info_t
common/buffer.cc: add sha1 fingerprint
osd: add fingerprint property
mon: add a command to set fingerprint algorithm

6 years agoMerge PR #24006 into master
Sage Weil [Tue, 11 Sep 2018 14:27:34 +0000 (09:27 -0500)]
Merge PR #24006 into master

* refs/pull/24006/head:
osd/OSD: clear ping_history on heartbeat_reset
mon/OSDMonitor: share new maps with even non-active osds

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #24010 into master
Sage Weil [Tue, 11 Sep 2018 14:27:17 +0000 (09:27 -0500)]
Merge PR #24010 into master

* refs/pull/24010/head:
osd/OSD: kick right merge source
mgr/DaemonServer: split should respect inflight creating pgs

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23464 from wido/influx-optimize
John Spray [Tue, 11 Sep 2018 14:16:12 +0000 (15:16 +0100)]
Merge pull request #23464 from wido/influx-optimize

mgr/influx: Use Queue to store points which need to be written

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #24019 from alfredodeza/wip-rm34535
Andrew Schoen [Tue, 11 Sep 2018 14:09:27 +0000 (09:09 -0500)]
Merge pull request #24019 from alfredodeza/wip-rm34535

ceph-volume  batch carve out lvs for bluestore

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agodoc: suppored features of kernel client 23728/head
Yan, Zheng [Fri, 24 Aug 2018 09:30:18 +0000 (17:30 +0800)]
doc: suppored features of kernel client

Fixes: http://tracker.ceph.com/issues/27209
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
6 years agoMerge pull request #23957 from tchaikov/wip-crimson-logging
Kefu Chai [Tue, 11 Sep 2018 13:18:17 +0000 (21:18 +0800)]
Merge pull request #23957 from tchaikov/wip-crimson-logging

common,auth,crimson: add logging to crimson

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Liu-Chunmei <chunmei.liu@intel.com>
6 years agoMerge pull request #23992 from badone/wip-librados-client-unique-ptr-compile-error
Kefu Chai [Tue, 11 Sep 2018 12:27:36 +0000 (20:27 +0800)]
Merge pull request #23992 from badone/wip-librados-client-unique-ptr-compile-error

librados: Include memory for unique_ptr definition

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23723 from xiexingguo/wip-list-missing
Kefu Chai [Tue, 11 Sep 2018 12:25:21 +0000 (20:25 +0800)]
Merge pull request #23723 from xiexingguo/wip-list-missing

osd/PrimaryLogPG: rename list_missing -> list_unfound command

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23921 from croit/fix-35544
Kefu Chai [Tue, 11 Sep 2018 12:23:56 +0000 (20:23 +0800)]
Merge pull request #23921 from croit/fix-35544

osd/OSDMap: add osd status to utilization dumper

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23488 from xiaomanh/master
Kefu Chai [Tue, 11 Sep 2018 12:23:27 +0000 (20:23 +0800)]
Merge pull request #23488 from xiaomanh/master

tools: correct the description of Allowed options in osdomap tool

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Make deletion dialog more touch device friendly 23897/head
Volker Theile [Mon, 3 Sep 2018 14:29:29 +0000 (16:29 +0200)]
mgr/dashboard: Make deletion dialog more touch device friendly

* Refactor deletion dialog
* Add directives.module.ts to be able to use 'autofocus' in deletion dialog

Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoqa: add task for progress module 23146/head
John Spray [Fri, 20 Jul 2018 17:30:16 +0000 (13:30 -0400)]
qa: add task for progress module

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agoqa: add 4th OSD to mgr test cluster
John Spray [Fri, 20 Jul 2018 17:28:38 +0000 (13:28 -0400)]
qa: add 4th OSD to mgr test cluster

This is useful for testing progress module.

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agoqa: add tests for progress module
John Spray [Fri, 20 Jul 2018 12:22:31 +0000 (08:22 -0400)]
qa: add tests for progress module

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agomgr/progress: no progress event on unmoved pgs
John Spray [Tue, 24 Jul 2018 22:40:41 +0000 (18:40 -0400)]
mgr/progress: no progress event on unmoved pgs

PGs may not be moved on osd out, if there is no suitable
location for them to move to.  In this situation
it doesn't make sense to have a progress event, as the
health warnings adequately communicate the situation.

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agomgr/progress: fix PgRecoveryEvent completion cases
John Spray [Fri, 20 Jul 2018 12:22:23 +0000 (08:22 -0400)]
mgr/progress: fix PgRecoveryEvent completion cases

The event was previously not getting moved to the completed
list.  There are a couple more cases too:
 - When some pgs go away (a pool is removed) during the event
 - When the OSD comes back in after going out

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agomgr: expose osdmap pg_to_up_acting_osds
John Spray [Mon, 9 Oct 2017 16:08:38 +0000 (17:08 +0100)]
mgr: expose osdmap pg_to_up_acting_osds

It's not efficient to have python calling this
O(pg_num) times to find the pgs for an OSD, but
I'm just shooting for something functional for now.

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #23910 from votdev/improve_autofocus_directive
Lenz Grimmer [Tue, 11 Sep 2018 09:56:56 +0000 (11:56 +0200)]
Merge pull request #23910 from votdev/improve_autofocus_directive

mgr/dashboard: Refactor autofocus directive

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agorbd: add protected in snap list 23853/head
zhengyin [Sun, 2 Sep 2018 13:44:32 +0000 (09:44 -0400)]
rbd: add protected in snap list

Signed-off-by: Zheng Yin <zhengyin@cmss.chinamobile.com>
6 years agoMerge pull request #23752 from ifed01/wip-ifed-fix-garbage-test
Kefu Chai [Tue, 11 Sep 2018 09:10:37 +0000 (17:10 +0800)]
Merge pull request #23752 from ifed01/wip-ifed-fix-garbage-test

os/tests: fix garbageCollection test case from store_test suite.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24021 from libingyang-zte/master
Xie Xingguo [Tue, 11 Sep 2018 08:47:48 +0000 (16:47 +0800)]
Merge pull request #24021 from libingyang-zte/master

doc: Fix Spelling Error of Radosgw

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agodoc: Fix Spelling Error of Radosgw 24021/head
李丙洋 10208981 [Tue, 11 Sep 2018 02:11:22 +0000 (10:11 +0800)]
doc: Fix Spelling Error of Radosgw

Signed-off-by: Li Bingyang <li.bingyang1@zte.com.cn>
6 years agoqa/tasks/mgr: whitelist insights test health checks 23497/head
Noah Watkins [Mon, 10 Sep 2018 22:02:49 +0000 (15:02 -0700)]
qa/tasks/mgr: whitelist insights test health checks

these drive health history tracking tests.

Signed-off-by: Noah Watkins <nwatkins@redhat.com>
6 years agoMerge pull request #23602 from smanjara/wip-test-netem
vasukulkarni [Mon, 10 Sep 2018 16:57:10 +0000 (09:57 -0700)]
Merge pull request #23602 from smanjara/wip-test-netem

qa: Task to emulate network delay and packet drop between two given h…

6 years agomgr/dashboard: Progress bar does not stop in TableKeyValueComponent 24016/head
Volker Theile [Mon, 10 Sep 2018 15:27:58 +0000 (17:27 +0200)]
mgr/dashboard: Progress bar does not stop in TableKeyValueComponent

Fixes: https://tracker.ceph.com/issues/35907
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoceph-volume tests.util verify Disk objects don't change state with divisions 24019/head
Alfredo Deza [Mon, 10 Sep 2018 16:28:57 +0000 (12:28 -0400)]
ceph-volume tests.util verify Disk objects don't change state with divisions

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.disk fix an issue where Disk objects would mutate on div operations
Alfredo Deza [Mon, 10 Sep 2018 16:18:49 +0000 (12:18 -0400)]
ceph-volume util.disk fix an issue where Disk objects would mutate on div operations

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.prepare add a helper to get block.db sizes from ceph.conf
Alfredo Deza [Mon, 10 Sep 2018 16:09:50 +0000 (12:09 -0400)]
ceph-volume util.prepare add a helper to get block.db sizes from ceph.conf

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm.batch.bluestore add TODOs for custom fast/slow devices
Alfredo Deza [Mon, 10 Sep 2018 16:09:15 +0000 (12:09 -0400)]
ceph-volume lvm.batch.bluestore add TODOs for custom fast/slow devices

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years ago-f ceph-volume lvm.batch.bluestore validation and reporting with VG reuse
Alfredo Deza [Mon, 10 Sep 2018 16:08:35 +0000 (12:08 -0400)]
-f  ceph-volume lvm.batch.bluestore validation and reporting with VG reuse

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agodoc/cephfs: add notes on application best practices 23824/head
John Spray [Thu, 30 Aug 2018 13:21:16 +0000 (14:21 +0100)]
doc/cephfs: add notes on application best practices

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #23997 from batrick/multimds-qa-broken-symlink
Sage Weil [Mon, 10 Sep 2018 14:26:12 +0000 (09:26 -0500)]
Merge pull request #23997 from batrick/multimds-qa-broken-symlink

qa: fix symlink

6 years agoMerge PR #23965 into master
Sage Weil [Mon, 10 Sep 2018 14:23:32 +0000 (09:23 -0500)]
Merge PR #23965 into master

* refs/pull/23965/head:
doc/dev/msgr2: better formatting
doc/dev/msgr2: clarify padding alignment
doc/dev/msgr2: tweak message flow handshake
doc/dev/msgr2: remove stream concept, streamline auth

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoceph-volume lvm.batch fix error reporting, Device objects aren't strings
Alfredo Deza [Fri, 7 Sep 2018 18:11:33 +0000 (14:11 -0400)]
ceph-volume lvm.batch fix error reporting, Device objects aren't strings

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm.batch.bluestore validation and reporting with VG reuse
Alfredo Deza [Fri, 7 Sep 2018 18:06:13 +0000 (14:06 -0400)]
ceph-volume lvm.batch.bluestore validation and reporting with VG reuse

Reworks the bluestore validation and reporting to account for reusable
VGs from fast devices, and adds validation calls to ensure the new way
to calculate this process will work.

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm.batch.filestore capture SizeAllocationErrors
Alfredo Deza [Fri, 7 Sep 2018 18:04:58 +0000 (14:04 -0400)]
ceph-volume lvm.batch.filestore capture SizeAllocationErrors

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm.batch make sure data devices don't have existing LVs on bluestore
Alfredo Deza [Thu, 6 Sep 2018 17:03:58 +0000 (13:03 -0400)]
ceph-volume lvm.batch make sure data devices don't have existing LVs on bluestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agolibrbd: flatten operation should use object map 23941/head
Mykola Golub [Wed, 5 Sep 2018 17:24:00 +0000 (20:24 +0300)]
librbd: flatten operation should use object map

If the object is known to exist in the image, the copy-up operation
can be skipped for that object.

Fixes: http://tracker.ceph.com/issues/23445
Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agolibrbd: add object_may_not_exist helper
Mykola Golub [Fri, 7 Sep 2018 11:20:00 +0000 (14:20 +0300)]
librbd: add object_may_not_exist helper

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #21271 from cbodley/wip-rgw-beast-async
Casey Bodley [Mon, 10 Sep 2018 13:05:57 +0000 (09:05 -0400)]
Merge pull request #21271 from cbodley/wip-rgw-beast-async

rgw: beast frontend reworks pause/stop and yields during body io

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoMerge PR #23845 into master
Sage Weil [Mon, 10 Sep 2018 12:45:58 +0000 (07:45 -0500)]
Merge PR #23845 into master

* refs/pull/23845/head:
osd/OSDMap: include age in up and in counts for ceph status
mon/OSDMonitor: set new_last_{up,in}_change
osd/OSDMap: store last_up_change and last_in_change
mgr/MgrMap: include mgr age in map printer
mon/MgrMap: track active_changed timestamp
mon: include mon quorum age in status
include/utime: add utimespan_str helper

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoMerge PR #23949 into master
Sage Weil [Mon, 10 Sep 2018 12:41:44 +0000 (07:41 -0500)]
Merge PR #23949 into master

* refs/pull/23949/head:
mon/OSDMonitor: invalidate max_failed_since on cancel_report

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #23968 into master
Sage Weil [Mon, 10 Sep 2018 12:41:25 +0000 (07:41 -0500)]
Merge PR #23968 into master

* refs/pull/23968/head:
dout: add basic prefix providers
dout: add DoutPrefixPipe for composing prefix providers

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #23971 into master
Sage Weil [Mon, 10 Sep 2018 12:41:03 +0000 (07:41 -0500)]
Merge PR #23971 into master

* refs/pull/23971/head:
cls/numops: fix cls_numops.cc log add to mul

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge PR #23975 into master
Sage Weil [Mon, 10 Sep 2018 12:40:37 +0000 (07:40 -0500)]
Merge PR #23975 into master

* refs/pull/23975/head:
common/buffer.cc: add create_small_page_aligned to avoid mem waste when apply for small mem in big page size(e.g. 64k) OS

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #23939 from votdev/bug_35685
Lenz Grimmer [Mon, 10 Sep 2018 12:29:24 +0000 (14:29 +0200)]
Merge pull request #23939 from votdev/bug_35685

mgr/dashboard: Fix bug in user form when changing password

Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoosd/OSD: kick right merge source 24010/head
xie xingguo [Mon, 10 Sep 2018 12:01:24 +0000 (20:01 +0800)]
osd/OSD: kick right merge source

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agotest/librbd: migration tests did not delete additional pool 24009/head
Mykola Golub [Mon, 10 Sep 2018 11:33:53 +0000 (14:33 +0300)]
test/librbd: migration tests did not delete additional pool

Instead of creating an additional pool on every migration test
that needs it, create a pool on the test case setup and reuse.

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #23839 from trociny/wip-migration-commit-race
Jason Dillaman [Mon, 10 Sep 2018 11:27:24 +0000 (07:27 -0400)]
Merge pull request #23839 from trociny/wip-migration-commit-race

librbd: fix potential live migration after commit issues due to not refreshed image header

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoosd/OSD: clear ping_history on heartbeat_reset 24006/head
xie xingguo [Mon, 10 Sep 2018 02:15:23 +0000 (10:15 +0800)]
osd/OSD: clear ping_history on heartbeat_reset

Because the old connections are gone, and hence we should not
leave behind a long list of obsolete ping_history there, which
is misleading...

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agomon/OSDMonitor: share new maps with even non-active osds
xie xingguo [Mon, 10 Sep 2018 07:15:17 +0000 (15:15 +0800)]
mon/OSDMonitor: share new maps with even non-active osds

OSDs may not be aware of their deadness and trapped at
an obsolete map in which they were still marked as up:

```
host        osd     down_at     stuck_at
ceph-03     9       e712        e711
ceph-03     13      e700        e699
ceph-03     28      e697        e696
ceph-03     48      e697        e696
ceph-03     52      e707        e704
ceph-03     61      e710        e708
ceph-03     73      e712        e710
ceph-03     77      e708        e707

ceph-05     12      e711        e710
ceph-05     21      e703        e702
ceph-05     24      e700        e699
ceph-05     29      e703        e699
ceph-05     41      e711        e710
ceph-05     53      e711        e710
ceph-05     72      e712        e711

```

In https://github.com/ceph/ceph/pull/23958 an OSD will ping monitor
periodically now if it is stuck at __wait_for_healthy__. But in the
above case OSDs are still considering themselves as __active__ and
hence should miss that fixer.

Since these OSDs might be still able to contact with monitors (
otherwise there is no way for them to be marked up again) and send
beacons contiguously, we can simply get them out of the trap by
sharing some new maps with them.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: runsisi <runsisi@zte.com.cn>
6 years agomgr/dashboard: Refactor autofocus directive 23910/head
Volker Theile [Tue, 4 Sep 2018 10:03:09 +0000 (12:03 +0200)]
mgr/dashboard: Refactor autofocus directive

Refactor the autofocus directive and add some unit tests.

Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agomgr/dashboard: Unable to edit user when making an accidental change to the password... 23939/head
Volker Theile [Wed, 5 Sep 2018 12:03:26 +0000 (14:03 +0200)]
mgr/dashboard: Unable to edit user when making an accidental change to the password field

Fixes: https://tracker.ceph.com/issues/35685
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agomgr/DaemonServer: split should respect inflight creating pgs
xie xingguo [Mon, 10 Sep 2018 08:52:05 +0000 (16:52 +0800)]
mgr/DaemonServer: split should respect inflight creating pgs

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #23993 from badone/wip-fedora-build-Cython3-error
Kefu Chai [Mon, 10 Sep 2018 08:46:26 +0000 (16:46 +0800)]
Merge pull request #23993 from badone/wip-fedora-build-Cython3-error

rpm: Fix Fedora error "No matching package to install: 'Cython3'"

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23833 from falcon78921/wip-docs-34539
Kefu Chai [Mon, 10 Sep 2018 07:13:20 +0000 (15:13 +0800)]
Merge pull request #23833 from falcon78921/wip-docs-34539

doc/rados: fixed hit set type link

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24000 from libingyang-zte/master
Xie Xingguo [Mon, 10 Sep 2018 02:56:01 +0000 (10:56 +0800)]
Merge pull request #24000 from libingyang-zte/master

doc: Fix Spelling Error of Radosgw

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agodoc: fixed hit set type link 23833/head
James McClune [Fri, 31 Aug 2018 03:28:24 +0000 (23:28 -0400)]
doc: fixed hit set type link

Fixed reference link for hit set type value. Restructured wording in description.
Fixes: https://tracker.ceph.com/issues/34539
Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>
6 years agodoc: Fix Spelling Error of Radosgw 24000/head
李丙洋 10208981 [Mon, 10 Sep 2018 01:21:27 +0000 (09:21 +0800)]
doc: Fix Spelling Error of Radosgw

Signed-off-by: Li Bingyang <li.bingyang1@zte.com.cn>
6 years agoqa: fix symlink 23997/head
Patrick Donnelly [Sun, 9 Sep 2018 02:19:30 +0000 (19:19 -0700)]
qa: fix symlink

Introduced-by: 6ac1882dc49bc714390d81e582d5febc9bb5e549
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #23895 from xiexingguo/wip-more-async-fixes
Xie Xingguo [Sat, 8 Sep 2018 01:51:04 +0000 (09:51 +0800)]
Merge pull request #23895 from xiexingguo/wip-more-async-fixes

osd/PrimaryLogPG: update missing_loc more carefully

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #23958 from xiexingguo/wip-heartbeat-stuck
Xie Xingguo [Sat, 8 Sep 2018 01:49:27 +0000 (09:49 +0800)]
Merge pull request #23958 from xiexingguo/wip-heartbeat-stuck

osd/OSD: ping monitor if we are stuck at __waiting_for_healthy__

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: invalidate max_failed_since on cancel_report 23949/head
xie xingguo [Thu, 6 Sep 2018 02:44:26 +0000 (10:44 +0800)]
mon/OSDMonitor: invalidate max_failed_since on cancel_report

max_failed_since might reference the very failure-report which is to be
cancelled. We can simply invalidate it here to make **get_failed_since()**
recalculate if necessary.

Fixes: http://tracker.ceph.com/issues/35860
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge PR #23449 into master
Sage Weil [Sat, 8 Sep 2018 00:34:00 +0000 (19:34 -0500)]
Merge PR #23449 into master

* refs/pull/23449/head:
osd/OSDMap: cleanup: s/tmpmap/nextmap/
qa/standalone/osd/osd-backfill-stats: fixes
osd/OSDMap: clean out pg_temp mappings that exceed pool size
mon/OSDMonitor: clean temps and upmaps in encode_pending, efficiently
osd/OSDMapMapping: do not crash if acting > pool size

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #23984 into master
Patrick Donnelly [Fri, 7 Sep 2018 22:35:55 +0000 (15:35 -0700)]
Merge PR #23984 into master

* refs/pull/23984/head:
mon: test if gid exists in pending for prepare_beacon

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agoosd/OSDMap: cleanup: s/tmpmap/nextmap/ 23449/head
Sage Weil [Fri, 31 Aug 2018 15:54:43 +0000 (10:54 -0500)]
osd/OSDMap: cleanup: s/tmpmap/nextmap/

Be consistent with OSDMap.h

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa/standalone/osd/osd-backfill-stats: fixes
Sage Weil [Fri, 31 Aug 2018 15:52:04 +0000 (10:52 -0500)]
qa/standalone/osd/osd-backfill-stats: fixes

Grep from the primary's log, not every osd's log.

For the backfill_remapped task in particular, after the pg_temp change it
just so happens that the primary changes across the pool size change and
thus two different primaries do (some) backfill.  Fix that test to pass
the correct primary.

Other tests are unaffected as they do not (happen to) trigger a primary
change and already satisfied the (removed) check that only one OSD does
backfill.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/OSDMap: clean out pg_temp mappings that exceed pool size
Sage Weil [Mon, 6 Aug 2018 18:12:33 +0000 (13:12 -0500)]
osd/OSDMap: clean out pg_temp mappings that exceed pool size

If the pool size is reduced, we can end up with pg_temp mappings that are
too big.  This can trigger bad behavior elsewhere (e.g., OSDMapMapping,
which assumes that acting and up are always <= pool size).

Fixes: http://tracker.ceph.com/issues/26866
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: clean temps and upmaps in encode_pending, efficiently
Sage Weil [Mon, 6 Aug 2018 17:54:55 +0000 (12:54 -0500)]
mon/OSDMonitor: clean temps and upmaps in encode_pending, efficiently

- do not rebuild the next map when we already have it
- do this work in encode_pending, not create_pending, so we get bad
values before they are published.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/OSDMapMapping: do not crash if acting > pool size
Sage Weil [Mon, 6 Aug 2018 17:57:27 +0000 (12:57 -0500)]
osd/OSDMapMapping: do not crash if acting > pool size

Existing oversized pg_temp mappings (or some other bug) might make acting
exceed the pool size.  Avoid overrunning out buffer if that happens.

Note that the mapping won't be completely accurate in that case!

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon: test if gid exists in pending for prepare_beacon 23984/head
Patrick Donnelly [Fri, 7 Sep 2018 19:06:11 +0000 (12:06 -0700)]
mon: test if gid exists in pending for prepare_beacon

If it does not, send a null map. Bug introduced by
624efc64323f99b2e843f376879c1080276e036f which made preprocess_beacon only look
at the current fsmap (correctly). prepare_beacon relied on preprocess_beacon
doing that check on pending.

Running:

    while sleep 0.5; do bin/ceph mds fail 0; done

is sufficient to reproduce this bug. You will see:

    2018-09-07 15:33:30.350 7fffe36a8700  5 mon.a@0(leader).mds e69 preprocess_beacon mdsbeacon(24412/a up:reconnect seq 2 v69) v7 from mds.0 127.0.0.1:6813/2891525302 compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2}
    2018-09-07 15:33:30.350 7fffe36a8700 10 mon.a@0(leader).mds e69 preprocess_beacon: GID exists in map: 24412
    2018-09-07 15:33:30.350 7fffe36a8700  5 mon.a@0(leader).mds e69 _note_beacon mdsbeacon(24412/a up:reconnect seq 2 v69) v7 noting time
    2018-09-07 15:33:30.350 7fffe36a8700  7 mon.a@0(leader).mds e69 prepare_update mdsbeacon(24412/a up:reconnect seq 2 v69) v7
    2018-09-07 15:33:30.350 7fffe36a8700 12 mon.a@0(leader).mds e69 prepare_beacon mdsbeacon(24412/a up:reconnect seq 2 v69) v7 from mds.0 127.0.0.1:6813/2891525302
    2018-09-07 15:33:30.350 7fffe36a8700 15 mon.a@0(leader).mds e69 prepare_beacon got health from gid 24412 with 0 metrics.
    2018-09-07 15:33:30.350 7fffe36a8700  5 mon.a@0(leader).mds e69 mds_beacon mdsbeacon(24412/a up:reconnect seq 2 v69) v7 is not in fsmap (state up:reconnect)

in the mon leader log. The last line indicates the problem was safely handled.

Fixes: http://tracker.ceph.com/issues/35848
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #20469 into master
Sage Weil [Fri, 7 Sep 2018 20:55:21 +0000 (15:55 -0500)]
Merge PR #20469 into master

* refs/pull/20469/head:
osd/PG: remove warn on delete+merge race
osd: base project_pg_history on is_new_interval
osd: make project_pg_history handle concurrent osdmap publish
osd: handle pg delete vs merge race
osd/PG: do not purge strays in premerge state
doc/rados/operations/placement-groups: a few minor corrections
doc/man/8/ceph: drop enumeration of pg states
doc/dev/placement-groups: drop old 'splitting' reference
osd: wait for laggy pgs without osd_lock in handle_osd_map
osd: drain peering wq in start_boot, not _committed_maps
osd: kick split children
osd: no osd_lock for finish_splits
osd/osd_types: remove is_split assert
ceph-objectstore-tool: prevent import of pg that has since merged
qa/suites: test pg merging
qa/tasks/thrashosds: support merging pgs too
mon/OSDMonitor: mon_inject_pg_merge_bounce_probability
doc/rados/operations/placement-groups: update to describe pg_num reductions too
doc/rados/operations: remove reference to lpgs
osd: implement pg merge
osd/PG: implement merge_from
osdc/Objecter: resend ops on pg merge
osd: collect and record pg_num changes by pool
osd: make load_pgs remove message more accurate
osd/osd_types: pg_t: add is_merge_target()
osd/osd_types: pg_t::is_merge -> is_merge_source
osd/osd_types: adding or substracting invalid stats -> invalid stats
osd/PG: clear_ready_to_merge on_shutdown (or final merge source prep)
osd: debug pending_creates_from_osd cleanup, don't use cbegin
ceph-objectstore-tool: debug intervals update
mgr/ClusterState: discard pg updates for pgs >= pg_num
mon/OSDMonitor: fix long line
mon/OSDMonitor: move pool created check into caller
mon/OSDMonitor: adjust pgp_num_target down along with pg_num_target as needed
mon/OSDMonitor: add mon_osd_max_initial_pgs to cap initial pool pgs
osd/OSDMap: set pg[p]_num_target in build_simple*() methods
mon/PGMap: adjust SMALLER_PGP_NUM warning to use *_target values
mon/OSDMonitor: set CREATING flag for force-create-pg
mon/OSDMonitor: start sending new-style pg_create2 messages
mon/OSDMonitor: set last_force_resend_prenautilus for pg_num_pending changes
osd: ignore pg creates when pool FLAG_CREATING is not set
mgr: do not adjust pg_num until FLAG_CREATING removed from pool
mon/OSDMonitor: add FLAG_CREATING on upgrade if pools still creating
mon/OSDMonitor: prevent FLAG_CREATING from getting set pre-nautilus
mon/OSDMonitor: disallow pg_num changes while CREATING flag is set
mon/OSDMonitor: set POOL_CREATING flag until initial pool pgs are created
osd/osd_types: add pg_pool_t FLAG_POOL_CREATING
osd/osd_types: introduce last_force_resend_prenautilus
osd/PGLog: merge_from helper
osd: no cache agent or snap trimming during premerge
osd: notify mon when pending PGs are ready to merge
mgr: add simple controller to adjust pg[p]_num_actual
mon/OSDMonitor: MOSDPGReadyToMerge to complete a pg_num change
mon/OSDMonitor: allow pg_num to adjusted up or down via pg[p]_num_target
osd/osd_types: make pg merge an interval boundary
osd/osd_types: add pg_t::is_merge() method
osd/osd_types: add pg_num_pending to pg_pool_t
osd: allow multiple threads to block on wait_min_pg_epoch
osd: restructure advance_pg() call mechanism
mon/PGMap: prune merged pgs
mon/PGMap: track pgs by state for each pool
osd/SnapMapper: allow split_bits to decrease (merge)
os/bluestore: fix osr_drain before merge
os/bluestore: allow reuse of osr from existing collection
os/filestore: (re)implement merge
os/filestore: add _merge_collections post-check
os: implement merge_collection
os/ObjectStore: add merge_collection operation to Transaction

6 years agoMerge pull request #23894 from xiexingguo/wip-complete-to-2
Yuri Weinstein [Fri, 7 Sep 2018 20:03:28 +0000 (13:03 -0700)]
Merge pull request #23894 from xiexingguo/wip-complete-to-2

osd/PrimaryLogPG: avoid dereferencing invalid complete_to

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23976 from idryomov/wip-cram-git-clone
Ilya Dryomov [Fri, 7 Sep 2018 17:57:42 +0000 (19:57 +0200)]
Merge pull request #23976 from idryomov/wip-cram-git-clone

qa/tasks/cram: tasks now must live in the repository

Reviewed-by: Jason Dillaman <dillaman@redhat.com>