]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agocephfs-shell: Change type of d_name to bytes array 27531/head
Varsha Rao [Thu, 11 Apr 2019 07:07:46 +0000 (12:37 +0530)]
cephfs-shell: Change type of d_name to bytes array

By reverting commit 5106582 'd_name' is always a bytes array. This produces
type error wherever 'd_name' is used with 'str' type. In such cases decode it.

Fixes: https://tracker.ceph.com/issues/39060
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit d0db22a6a51d34433fa4a2d3a423373a5684f75d)

6 years agocephfs-shell: Fix hidden files and directories list by ls command
Varsha Rao [Fri, 29 Mar 2019 09:43:18 +0000 (15:13 +0530)]
cephfs-shell: Fix hidden files and directories list by ls command

'ls -a' command should only list the hidden files and directories. This patch
fixes such listing by any other 'ls' commands.

Fixes: https://tracker.ceph.com/issues/38804
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit 67b670b74a0af34aace38e3a8ae99980f4012605)

6 years agoMerge pull request #27329 from pdvian/wip-38921-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 14:52:22 +0000 (07:52 -0700)]
Merge pull request #27329 from pdvian/wip-38921-nautilus

nautilus: rgw: don't crash on missing /etc/mime.types

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27331 from pdvian/wip-38923-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 14:51:56 +0000 (07:51 -0700)]
Merge pull request #27331 from pdvian/wip-38923-nautilus

nautilus: rgw: Fix S3 compatibility bug when CORS is not found

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27306 from pdvian/wip-38909-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 14:49:56 +0000 (07:49 -0700)]
Merge pull request #27306 from pdvian/wip-38909-nautilus

nautilus: rgw: fix read not exists null version return wrong

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27355 from pdvian/wip-38926-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 14:48:59 +0000 (07:48 -0700)]
Merge pull request #27355 from pdvian/wip-38926-nautilus

nautilus: rgw: Adding tcp_nodelay option to Beast

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27423 from pdvian/wip-38961-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 14:48:18 +0000 (07:48 -0700)]
Merge pull request #27423 from pdvian/wip-38961-nautilus

nautilus: librbd: look for pool metadata in default namespace

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #27390 from pdvian/wip-38957-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 14:47:21 +0000 (07:47 -0700)]
Merge pull request #27390 from pdvian/wip-38957-nautilus

nautilus: mgr/devicehealth: Fix python 3 incompatiblity

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge PR #27387 into nautilus
Sage Weil [Wed, 10 Apr 2019 21:49:17 +0000 (16:49 -0500)]
Merge PR #27387 into nautilus

* refs/pull/27387/head:
mgr/pg_autoscaler: apply bias to pg_num selection
mgr/pg_autoscaler: include pg_autoscale_bias in autoscale-status table
osd/osd_types,mon: add pg_autoscale_bias pool property

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #27399 into nautilus
Sage Weil [Wed, 10 Apr 2019 21:48:57 +0000 (16:48 -0500)]
Merge PR #27399 into nautilus

* refs/pull/27399/head:
mon/MonmapMonitor: clean up empty created stamp in monmap

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #27402 into nautilus
Sage Weil [Wed, 10 Apr 2019 21:48:41 +0000 (16:48 -0500)]
Merge PR #27402 into nautilus

* refs/pull/27402/head:
OSD: OSDMapRef access by multiple threads is unsafe

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #27440 into nautilus
Sage Weil [Wed, 10 Apr 2019 21:48:16 +0000 (16:48 -0500)]
Merge PR #27440 into nautilus

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

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge PR #27487 into nautilus
Sage Weil [Wed, 10 Apr 2019 15:28:35 +0000 (10:28 -0500)]
Merge PR #27487 into nautilus

* refs/pull/27487/head:
doc/orchestrator: Fix broken bullet points

6 years agodoc/orchestrator: Fix broken bullet points 27487/head
Sebastian Wagner [Fri, 22 Mar 2019 13:11:05 +0000 (14:11 +0100)]
doc/orchestrator: Fix broken bullet points

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit b175010dcd6c977be944d4929f1e48713e18a6f4)

6 years agoMerge pull request #27388 from liewegas/wip-deferred-log-start-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 23:49:55 +0000 (16:49 -0700)]
Merge pull request #27388 from liewegas/wip-deferred-log-start-nautilus

nautilus: common: fix deferred log starting

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #27449 from ricardoasmarques/wip-39108-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 23:49:04 +0000 (16:49 -0700)]
Merge pull request #27449 from ricardoasmarques/wip-39108-nautilus

nautilus: mgr/dashboard: Typo in "CephFS Name" field on NFS form

Reviewed-by:  Tiago Melo <tmelo@suse.com>

6 years agoMerge pull request #27460 from ricardoasmarques/wip-39114-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 23:48:16 +0000 (16:48 -0700)]
Merge pull request #27460 from ricardoasmarques/wip-39114-nautilus

nautilus: mgr/dashboard: Error on iSCSI disk diff

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #27125 from smithfarm/wip-38863-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 14:38:56 +0000 (07:38 -0700)]
Merge pull request #27125 from smithfarm/wip-38863-nautilus

nautilus: build/ops: ceph-mgr-diskprediction-local requires numpy and scipy on SUSE, but these packages do not exist on SUSE

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27208 from pdvian/wip-38773-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 14:38:23 +0000 (07:38 -0700)]
Merge pull request #27208 from pdvian/wip-38773-nautilus

nautilus: rgw: nfs: skip empty (non-POSIX) path segments

Reviewed-by: Adam Emerson <aemerson@redhat.com>
6 years agoMerge pull request #27232 from pdvian/wip-38774-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 14:37:45 +0000 (07:37 -0700)]
Merge pull request #27232 from pdvian/wip-38774-nautilus

nautilus: rgw: nfs: svc-enable RGWLib

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27239 from smithfarm/wip-38956-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 14:37:16 +0000 (07:37 -0700)]
Merge pull request #27239 from smithfarm/wip-38956-nautilus

nautilus: backport krbd discard qa fixes to stable branches

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
6 years agoMerge pull request #27127 from smithfarm/wip-38862-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 14:36:39 +0000 (07:36 -0700)]
Merge pull request #27127 from smithfarm/wip-38862-nautilus

nautilus: build/ops: Running ceph under Pacemaker control not supported by SUSE Linux Enterprise

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Fix iSCSI disk diff calculation 27460/head
Ricardo Marques [Fri, 29 Mar 2019 13:33:19 +0000 (13:33 +0000)]
mgr/dashboard: Fix iSCSI disk diff calculation

The separator is now a '/' instead of '.'

Fixes: https://tracker.ceph.com/issues/39109
Signed-off-by: Ricardo Marques <rimarques@suse.com>
(cherry picked from commit 78595acff63817f793e4ec013ed85f4a9f4d612d)

6 years agoMerge pull request #27394 from s0nea/wip-39124-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 02:09:13 +0000 (19:09 -0700)]
Merge pull request #27394 from s0nea/wip-39124-nautilus

nautilus: mgr/dashboard: update vstart to use new ssl_server_port

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
6 years agoMerge pull request #27398 from Devp00l/wip-39041-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 02:08:29 +0000 (19:08 -0700)]
Merge pull request #27398 from Devp00l/wip-39041-nautilus

nautilus: mgr/dashboard: FixtureHelper

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #27405 from Devp00l/wip-39058-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 02:07:54 +0000 (19:07 -0700)]
Merge pull request #27405 from Devp00l/wip-39058-nautilus

nautilus: mgr/dashboard: Back button component

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
6 years agomgr/dashboard: Fix typo in NFS form 27449/head
Tiago Melo [Thu, 28 Mar 2019 14:27:51 +0000 (13:27 -0100)]
mgr/dashboard: Fix typo in NFS form

Fixes: http://tracker.ceph.com/issues/39067
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit 6c5ed447161b9815671c3237610464262764f146)

6 years agoMerge pull request #27283 from pdvian/wip-38878-nautilus
Yuri Weinstein [Mon, 8 Apr 2019 16:38:35 +0000 (09:38 -0700)]
Merge pull request #27283 from pdvian/wip-38878-nautilus

nautilus: mgr/dashboard: Add date range and log search functionality

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #27389 from ricardoasmarques/wip-38984-nautilus
Yuri Weinstein [Mon, 8 Apr 2019 16:38:07 +0000 (09:38 -0700)]
Merge pull request #27389 from ricardoasmarques/wip-38984-nautilus

nautilus: mgr/dashboard: PreventDefault isn't working on 400 errors

Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #27393 from s0nea/wip-39001-nautilus
Yuri Weinstein [Mon, 8 Apr 2019 16:37:10 +0000 (09:37 -0700)]
Merge pull request #27393 from s0nea/wip-39001-nautilus

nautilus: mgr/dashboard: Add separate option to config SSL port

Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #27395 from Devp00l/wip-issue-38960
Yuri Weinstein [Mon, 8 Apr 2019 16:36:34 +0000 (09:36 -0700)]
Merge pull request #27395 from Devp00l/wip-issue-38960

nautilus: mgr/dashboard: Fixes tooltip behavior

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agocommon: add --log-early command line option 27388/head
Sage Weil [Sun, 7 Apr 2019 18:54:59 +0000 (13:54 -0500)]
common: add --log-early command line option

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

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 933d5084cb66f299a7bf60f0a2a6382c0bd3cb2f)

6 years agoos/filestore/FileJournal: note EIO events 27440/head
Sage Weil [Thu, 4 Apr 2019 20:49:11 +0000 (15:49 -0500)]
os/filestore/FileJournal: note EIO events

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 614fb4631a8909d97ea82ae657361017816b6a65)

6 years agoos/filestore: make note of EIO errors when we see them
Sage Weil [Thu, 4 Apr 2019 20:48:40 +0000 (15:48 -0500)]
os/filestore: make note of EIO errors when we see them

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

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 8827250d5ae2ba5dc18c28d11c986c80d888489a)

6 years agoos/filestore: note devname for later use
Sage Weil [Thu, 4 Apr 2019 20:09:15 +0000 (15:09 -0500)]
os/filestore: note devname for later use

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

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit cef94b72b2f66346b51759ce07afed072e25582f)

6 years agoglobal/signal_handler: avoid core dump on EIO
Sage Weil [Thu, 4 Apr 2019 19:51:21 +0000 (14:51 -0500)]
global/signal_handler: avoid core dump on EIO

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

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit e3464df47b2e83ee160362a897adc1191a922ce9)

6 years agoos/bluestore/KernelDevice: note EIO metadata on aio EIO
Sage Weil [Thu, 4 Apr 2019 19:47:17 +0000 (14:47 -0500)]
os/bluestore/KernelDevice: note EIO metadata on aio EIO

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

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 145333576c49eb591af7aef954d4039dcde471e4)

6 years agoglobal: add hook to annotate crash report with EIO information
Sage Weil [Thu, 4 Apr 2019 19:45:52 +0000 (14:45 -0500)]
global: add hook to annotate crash report with EIO information

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

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 7f9df6158dca9da40cff3e9f18009169044312b4)

6 years agolibrbd: look for pool metadata in default namespace 27423/head
Mykola Golub [Mon, 25 Mar 2019 06:54:46 +0000 (06:54 +0000)]
librbd: look for pool metadata in default namespace

when applying pool level config overrides

Fixes: https://tracker.ceph.com/issues/38928
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 1729f149375420058c6628eb079cdc0c5ae92899)

6 years agoMerge pull request #27128 from smithfarm/wip-38865-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 20:05:59 +0000 (13:05 -0700)]
Merge pull request #27128 from smithfarm/wip-38865-nautilus

nautilus: ceph-mgr:  ImportError: Interpreter change detected - this module can only be loaded into one interprer per process.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27227 from pdvian/wip-38855-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 20:05:29 +0000 (13:05 -0700)]
Merge pull request #27227 from pdvian/wip-38855-nautilus

nautilus: mgr/balancer: Python 3 compatibility fix

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #27302 from pdvian/wip-38906-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 20:04:29 +0000 (13:04 -0700)]
Merge pull request #27302 from pdvian/wip-38906-nautilus

nautilus: osd/PGLog.h: print olog_can_rollback_to before deciding to rollback

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #27319 from sebastian-philipp/wip-39083-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 20:03:48 +0000 (13:03 -0700)]
Merge pull request #27319 from sebastian-philipp/wip-39083-nautilus

nautilus: mgr/deepsea: use ceph_volume output in get_inventory()

Reviewed-by: Tim Serong <tserong@suse.com>
6 years agoMerge pull request #27346 from liewegas/wip-cluster-log-to-file-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 20:03:04 +0000 (13:03 -0700)]
Merge pull request #27346 from liewegas/wip-cluster-log-to-file-nautilus

nautilus: mon: add cluster log to file option

6 years agoMerge pull request #27347 from liewegas/wip-ok-to-stop-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 20:02:09 +0000 (13:02 -0700)]
Merge pull request #27347 from liewegas/wip-ok-to-stop-nautilus

nautilus: mon: ok-to-stop commands for mon and mds

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27361 from s0nea/wip-38864-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 16:55:08 +0000 (09:55 -0700)]
Merge pull request #27361 from s0nea/wip-38864-nautilus

nautilus: mgr/dashboard: Fix env vars of `run-tox.sh`

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #27363 from s0nea/wip-39002-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 16:54:25 +0000 (09:54 -0700)]
Merge pull request #27363 from s0nea/wip-39002-nautilus

nautilus:  mgr/dashboard: Filter iSCSI target images based on required features

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #27368 from s0nea/wip-39104-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 16:53:17 +0000 (09:53 -0700)]
Merge pull request #27368 from s0nea/wip-39104-nautilus

nautilus: dashboard: NFS: failed to disable NFSv3 in export create

Reviewed-by:  Tiago Melo <tmelo@suse.com>

6 years agoMerge pull request #27370 from s0nea/wip-39105-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 16:52:50 +0000 (09:52 -0700)]
Merge pull request #27370 from s0nea/wip-39105-nautilus

nautilus: mgr/dashboard: Cannot submit NFS export form when NFSv4 is not selected

Reviewed-by:  Tiago Melo <tmelo@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #27371 from s0nea/wip-39106-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 16:51:50 +0000 (09:51 -0700)]
Merge pull request #27371 from s0nea/wip-39106-nautilus

nautilus: mgr/dashboard: NFS Squash field should be required

Reviewed-by:  Tiago Melo <tmelo@suse.com>

6 years agoMerge pull request #27372 from s0nea/wip-39107-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 16:51:22 +0000 (09:51 -0700)]
Merge pull request #27372 from s0nea/wip-39107-nautilus

nautilus: mgr/dashboard: Error creating NFS export without UDP

Reviewed-by:  Tiago Melo <tmelo@suse.com>

6 years agomgr/dashboard: Update messages.xlf 27405/head
Stephan Müller [Mon, 25 Mar 2019 16:29:02 +0000 (17:29 +0100)]
mgr/dashboard: Update messages.xlf

Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit 0e05674509e339fc336052a92fec87f06a411f63)

6 years agomgr/dashboard: Back button component
Stephan Müller [Fri, 8 Mar 2019 15:32:13 +0000 (16:32 +0100)]
mgr/dashboard: Back button component

Fixes: https://tracker.ceph.com/issues/38937
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit ad960f1aa7c08b56b691fc1c8ad0348f7ede1f1b)

6 years agoOSD: OSDMapRef access by multiple threads is unsafe 27402/head
Sage Weil [Fri, 5 Apr 2019 13:59:23 +0000 (08:59 -0500)]
OSD: OSDMapRef access by multiple threads is unsafe

we update OSD::osdmap in OSD::_committed_osd_maps() which is executed
by objectstore's finisher thread. while PG::sched_scrub() is called
by OSD's sharded work queue's worker thread.and we push the osdmap
updates down to PGs OSD::consume_map() which is in turn called by
OSD::_committed_osd_maps() where osdmap is updated. so it does not big
deal if we are checking a stale CEPH_OSDMAP_NODEEP_SCRUB flag.
also this flag will be updated with the latest osdmap very soon.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Zengran Zhang <zhangzengran@sangfor.com.cn>
(cherry picked from commit 454c4cbae6b3363b80f52c7db5b6b7a5f3affd1a)

# Conflicts:
# src/osd/OSD.cc
 - trivial conflict from adjacent code in OSDService::shutdown()

6 years agomon/MonmapMonitor: clean up empty created stamp in monmap 27399/head
Sage Weil [Tue, 2 Apr 2019 21:50:08 +0000 (16:50 -0500)]
mon/MonmapMonitor: clean up empty created stamp in monmap

Some old clusters have an empty created timestamp.  This is mostly
harmless, but it is confusing/wrong, and it does currently break the
telemetry module with errors like

 ValueError: time data '0.000000' does not match format '%Y-%m-%d %H:%M:%S.%f'

from 'ceph telemetry show'.

If we detect an empty created stamp, look at old monmap and use the oldest
modified stamp we can find.

Fixes: http://tracker.ceph.com/issues/39085
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 3046d17f61d1fa11fe2f35f7cfe9428312a78593)

6 years agotest/librados_test_stub: ensure the log flusher thread is started
Jason Dillaman [Tue, 2 Apr 2019 20:34:56 +0000 (16:34 -0400)]
test/librados_test_stub: ensure the log flusher thread is started

Recent changes merged in cd6a5b9c40779956629803f222c365bdb291a169
resulted in the logger flusher thread never being started for
librados_test_stub-derived unit tests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 4a8a0ac63175afecfd22df9252d2b556420ff846)

6 years agomgr/dashboard: FixtureHelper 27398/head
Stephan Müller [Wed, 13 Feb 2019 13:22:27 +0000 (14:22 +0100)]
mgr/dashboard: FixtureHelper

Fixes: https://tracker.ceph.com/issues/38933
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit ef1d17ddbd2a88e3956888bc98568794500eeba6)

6 years agomgr/dashboard: Fixes tooltip behavior 27395/head
Stephan Müller [Wed, 20 Feb 2019 11:26:44 +0000 (12:26 +0100)]
mgr/dashboard: Fixes tooltip behavior

The problem was that the tool tip element was added to the current parent
element which caused the CSS to make the last
button in a button group look like the fore last button as a rectangle
but the last element should have a rounded corner.

Fixes: https://tracker.ceph.com/issues/38932
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit 4b23b78)

6 years agomgr/dashboard: udpate vstart to use new ssl port 27394/head
Ernesto Puerta [Fri, 29 Mar 2019 13:06:25 +0000 (14:06 +0100)]
mgr/dashboard: udpate vstart to use new ssl port

Fixes: https://tracker.ceph.com/issues/39030
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit 5792c0377a0495030de1a7a8cd5e10f46e91358d)

6 years agomgr/dashboard: Add separate option to config SSL port 27393/head
Volker Theile [Tue, 12 Mar 2019 13:12:55 +0000 (14:12 +0100)]
mgr/dashboard: Add separate option to config SSL port

There is a need to introduce this new config option because the MgrModule::get_module_option() and MgrModule::get_localized_module_option() method will be refactored soon and will not support the default parameter anymore. Instead the default value must be configured in the MODULE_OPTIONS. Currently we misuse the server_port depending on if SSL is enabled or not.

Fixes: https://tracker.ceph.com/issues/38331
Signed-off-by: Volker Theile <vtheile@suse.com>
(cherry picked from commit 86f47f6bfda6c2d45c97801a522a200225abc3d4)

6 years agomgr/devicehealth: Fix python 3 incompatiblity 27390/head
Marius Schiffer [Mon, 25 Mar 2019 22:18:01 +0000 (23:18 +0100)]
mgr/devicehealth: Fix python 3 incompatiblity
Fixes: http://tracker.ceph.com/issues/38939
Signed-off-by: Marius Schiffer <marius@mschiffer.de>
(cherry picked from commit 4817a621fc3a4e6750863ee8d72fb3a16ba04dd2)

6 years agomgr/dashboard: Make preventDefault work with 400 errors 27389/head
Stephan Müller [Thu, 21 Feb 2019 10:53:46 +0000 (11:53 +0100)]
mgr/dashboard: Make preventDefault work with 400 errors

The problem was that, if a error with the status code 400 was
received by the error interceptor the "timeoutId" was not tracked,
therefor "preventDefault" didn't prevent anything as "timeoutId"
was undefined.

Fixes: https://tracker.ceph.com/issues/38418
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit 5aa984cc6c5a737e2dfcc7806f0fe48d1b41d1c5)

6 years agocommon/common_init: start log from common_init_finish (if not yet started)
Sage Weil [Wed, 3 Apr 2019 19:54:55 +0000 (14:54 -0500)]
common/common_init: start log from common_init_finish (if not yet started)

This captures any non-global_init users who created their cct but haven't
started up the log thread yet.  As long as common_init_finish() happens
after we have all of our config options (from the mon config or whatever),
we will log (or not log) to the right location(s).

Fixes a regression in cd6a5b9c40779956629803f222c365bdb291a169

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 30e49ae28b7a9cce6b489e1c866b35ac6ec8b70d)

6 years agolibcephfs: common_init_finish after getting monmap and config
Sage Weil [Wed, 3 Apr 2019 19:47:42 +0000 (14:47 -0500)]
libcephfs: common_init_finish after getting monmap and config

This is how librados behaves.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 16dd435939a1532ad489ffcc230359ccf9c8898f)

6 years agomgr/pg_autoscaler: apply bias to pg_num selection 27387/head
Sage Weil [Mon, 25 Mar 2019 11:39:28 +0000 (06:39 -0500)]
mgr/pg_autoscaler: apply bias to pg_num selection

This is a relatively naive way to apply the bias: we just multiply it
to whatever we would have chosen.  A more clever approach would be to
factor this into the overall cluster-wide PG budget, so that biasing one
pool's PGs up would put downward pressure on other pools.  That is
significantly more complicated, however, and (I think) not worth the
effort.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit e7ad0eeaaa3a73b5b78764d86eb634ca7072afd1)

6 years agomgr/pg_autoscaler: include pg_autoscale_bias in autoscale-status table
Sage Weil [Mon, 25 Mar 2019 11:29:53 +0000 (06:29 -0500)]
mgr/pg_autoscaler: include pg_autoscale_bias in autoscale-status table

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit f1d3be6ac7a9e5092a5a610ac3f5a59c74e25bc7)

6 years agoosd/osd_types,mon: add pg_autoscale_bias pool property
Sage Weil [Sat, 23 Mar 2019 09:44:15 +0000 (04:44 -0500)]
osd/osd_types,mon: add pg_autoscale_bias pool property

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit f845fa17af0c83e1c09b2086b53176354c2bce3f)

6 years agoMerge pull request #27258 from pdvian/wip-38861-nautilus
Yuri Weinstein [Thu, 4 Apr 2019 19:47:12 +0000 (12:47 -0700)]
Merge pull request #27258 from pdvian/wip-38861-nautilus

nautilus: backport krbd discard qa fixes to nautilus

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
6 years agoMerge pull request #27287 from s0nea/wip-39052-nautilus
Yuri Weinstein [Thu, 4 Apr 2019 19:46:35 +0000 (12:46 -0700)]
Merge pull request #27287 from s0nea/wip-39052-nautilus

nautilus: mgr/dashboard add polish language

Reviewed-by: Sebastian Krah <skrah@suse.com>
6 years agoMerge pull request #27382 from tchaikov/nautilus-multi-python3
Kefu Chai [Thu, 4 Apr 2019 16:26:55 +0000 (00:26 +0800)]
Merge pull request #27382 from tchaikov/nautilus-multi-python3

nautilus: rpm,cmake: use specified python3 version if any

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
6 years agorpm: pass %{python3_version} to cmake 27382/head
Kefu Chai [Thu, 4 Apr 2019 04:07:25 +0000 (12:07 +0800)]
rpm: pass %{python3_version} to cmake

to force cmake to use the python3 and python3 modules for building
python3 bindings

on the debian side, it's okay to continue using "-DWITH_PYTHON3=ON", as

- cmake does normalize "ON" to 3
- debian's cmake extension lives on /usr/lib/python3/dist-packages/
  not in a specific /usr/lib/python3.x/dist-packages directory

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 7681a38ce51743a19ec5679d49b362f04e271ddb)

6 years agocmake: check for libpython of the same version of interpreter
Kefu Chai [Thu, 4 Apr 2019 03:44:56 +0000 (11:44 +0800)]
cmake: check for libpython of the same version of interpreter

actually cython or python3-cython's dependencies should take care of it.
but we should at least get it right on our side if we check it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit c961e002d22ab7ceec20f1019f8c558ec9fcce6c)

6 years agocmake: use specified python3 version if any
Kefu Chai [Thu, 4 Apr 2019 03:37:00 +0000 (11:37 +0800)]
cmake: use specified python3 version if any

use might have multiple python3 installed, some of them has/have all
dependencies installed and is good enough for building Ceph. we should
not always use the latest python installed in the system and complain that
there is missing dependencies, even if user has installed all the
python3 dependencies for the older python3.

put in other words, if user only installs cython module for python3.4, but
she has both python3.6 and python3.4 in her system. we should not force
her to uninstall python3.6 for installing Ceph.

this change also aligns with MGR_PYTHON_VERSION. i am not applying the
same change to WITH_PYTHON2, because python2 is already stablized. and distros
are not likely to release new python2 releases.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit d8c13e86048b7aac458f3eda101f9778e3d45dcf)

6 years agomgr/dashboard: Fix deletion of NFS transports properties 27372/head
Tiago Melo [Wed, 3 Apr 2019 18:52:07 +0000 (18:52 +0000)]
mgr/dashboard: Fix deletion of NFS transports properties

Fixes: http://tracker.ceph.com/issues/39090
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit a304f5db9f1ccf66dfac5d7ba00bc710660770cf)

6 years agomgr/dashboard: Fix NFS squash default value 27371/head
Tiago Melo [Mon, 1 Apr 2019 14:50:44 +0000 (14:50 +0000)]
mgr/dashboard: Fix NFS squash default value

Fixes: http://tracker.ceph.com/issues/39064
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit 0084299273bd3702b55038d02523a7ad3a1f49cc)

6 years agomgr/dashboard: Fix NFS pseudo validation 27370/head
Tiago Melo [Mon, 1 Apr 2019 14:13:37 +0000 (14:13 +0000)]
mgr/dashboard: Fix NFS pseudo validation

Fixes: http://tracker.ceph.com/issues/39063
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit 4139d4b58e37b29f7d84e641ce0c9fd0ee346b8f)

6 years agomgr/dashboard: Fix deletion of NFS protocol properties 27368/head
Tiago Melo [Thu, 28 Mar 2019 14:02:29 +0000 (13:02 -0100)]
mgr/dashboard: Fix deletion of NFS protocol properties

Fixes: http://tracker.ceph.com/issues/38997
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit f47791e32a2fbd6d2114c33d90f16086ba6b5af9)

6 years agomgr/dashboard: iscsi: feature names in error messages 27363/head
Ricardo Marques [Mon, 25 Mar 2019 22:24:24 +0000 (22:24 +0000)]
mgr/dashboard: iscsi: feature names in error messages

Required/supported RBD features should be included in
the error messages.

Signed-off-by: Ricardo Marques <rimarques@suse.com>
(cherry picked from commit f570f8a19ddc656c6df911eece77f7ed23720680)

6 years agomgr/dashboard: Validate iSCSI images features
Ricardo Marques [Fri, 22 Mar 2019 18:53:29 +0000 (18:53 +0000)]
mgr/dashboard: Validate iSCSI images features

Will also filter the list of available images.

Fixes: https://tracker.ceph.com/issues/38074
Signed-off-by: Ricardo Marques <rimarques@suse.com>
(cherry picked from commit f272429e83aebb1e27cba1db3da6aeaf94506aa5)

6 years agomgr/dashboard: Fix env vars of `run-tox.sh` 27361/head
Patrick Nawracay [Fri, 15 Mar 2019 10:21:52 +0000 (10:21 +0000)]
mgr/dashboard: Fix env vars of `run-tox.sh`

Fixes: http://tracker.ceph.com/issues/38798
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
(cherry picked from commit 5dee0b6a87753d8b7ff295f9a29c6eb407d17ccd)

6 years agorgw: Adding tcp_nodelay option to Beast 27355/head
ofriedma [Sat, 16 Mar 2019 19:38:08 +0000 (21:38 +0200)]
rgw: Adding tcp_nodelay option to Beast

beast frontend option to set the TCP_NODELAY socket option to match the tcp_nodelay option in civetweb.

Fixes: https://tracker.ceph.com/issues/34308
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
(cherry picked from commit fb1bff7bce9937e832cff12b50ebb8d43b1d2bd4)

6 years agoMerge pull request #27191 from theanalyst/nautilus-scheduler-cmake
Yuri Weinstein [Wed, 3 Apr 2019 19:28:59 +0000 (12:28 -0700)]
Merge pull request #27191 from theanalyst/nautilus-scheduler-cmake

nautilus: rgw: build async scheduler only when beast is built

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27296 from theanalyst/nautilus-sse-c-fixes
Yuri Weinstein [Wed, 3 Apr 2019 19:26:29 +0000 (12:26 -0700)]
Merge pull request #27296 from theanalyst/nautilus-sse-c-fixes

nautilus: sse c fixes

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agomon/MonMap: add min_quorum_size() helper 27347/head
Sage Weil [Mon, 1 Apr 2019 15:20:46 +0000 (10:20 -0500)]
mon/MonMap: add min_quorum_size() helper

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit c143b9a3db4492e5a2ee7919b22581955fc2a119)

6 years agomon/MDSMonitor: add 'mds ok-to-stop' command
Sage Weil [Sat, 23 Mar 2019 21:49:33 +0000 (16:49 -0500)]
mon/MDSMonitor: add 'mds ok-to-stop' command

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit aa33a26e32d270286ee110f57cfcf63df63fa913)

6 years agomon: add 'mon ok-to-{stop,add-offline,rm}' commands
Sage Weil [Sat, 23 Mar 2019 20:52:04 +0000 (15:52 -0500)]
mon: add 'mon ok-to-{stop,add-offline,rm}' commands

Helpers to decide when it is safe to stop a mon, add a mon that is
not started, or remove a mon.  (Adding and start a mon would always
be safe, but it takes time to sync, so it's not really possible to do
quickly.)

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit cfba0acc01230423252f674d11929bf505dc1ec7)

6 years agoMerge PR #27314 into nautilus
Sage Weil [Wed, 3 Apr 2019 14:57:40 +0000 (09:57 -0500)]
Merge PR #27314 into nautilus

* refs/pull/27314/head:
mon: quiet devname log noise

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #27320 into nautilus
Sage Weil [Wed, 3 Apr 2019 14:56:58 +0000 (09:56 -0500)]
Merge PR #27320 into nautilus

* refs/pull/27320/head:
valgrind.supp: add clauses for uninitialised gcm.Xi in OpenSSL.
src/valgrind.supp: replace with the teuthology's whitelist.

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agomon/LogMonitor: add mon_cluster_log_to_file bool option 27346/head
Sage Weil [Wed, 3 Apr 2019 12:18:50 +0000 (07:18 -0500)]
mon/LogMonitor: add mon_cluster_log_to_file bool option

Allow cluster logging to a file to be disabled via a boolean.  Default
to true to avoid any change in behavior.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 978ac6e2f8e9fe4cc20410c6b45b1a164e22c4ea)

6 years agorgw: Fix S3 compatibility bug when CORS is not found 27331/head
Nick Janus [Wed, 22 Nov 2017 18:29:00 +0000 (13:29 -0500)]
rgw: Fix S3 compatibility bug when CORS is not found

Fixes: http://tracker.ceph.com/issues/37945
Signed-off-by: Nick Janus <nickjanus@gmail.com>
(cherry picked from commit baaf5d6a1d7232d904d9f8d39b52498fe8480453)

6 years agorgw: don't crash on missing /etc/mime.types 27329/head
Casey Bodley [Fri, 15 Mar 2019 20:47:19 +0000 (16:47 -0400)]
rgw: don't crash on missing /etc/mime.types

lack of mime types is not a fatal error. when a Content-Type header
is not provided in swift's PutObj, it uses this mime type mapping
to guess a content type based on the object's suffix

Fixes: http://tracker.ceph.com/issues/38328
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 89dc5a6df4503d70555bcd80af0e2f6ee896e28a)

6 years agovalgrind.supp: add clauses for uninitialised gcm.Xi in OpenSSL. 27320/head
Radoslaw Zarzynski [Mon, 25 Mar 2019 18:34:05 +0000 (19:34 +0100)]
valgrind.supp: add clauses for uninitialised gcm.Xi in OpenSSL.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit 35274eba7a90ffed05561737cb935bb3dc049c2d)

6 years agosrc/valgrind.supp: replace with the teuthology's whitelist.
Radoslaw Zarzynski [Fri, 29 Mar 2019 02:19:32 +0000 (03:19 +0100)]
src/valgrind.supp: replace with the teuthology's whitelist.

This change drops src/valgrind.supp file and transplates
the current teuthology's whitelist into qa/valgrind.supp.

This commit has sibiling in the teuthology repo dropping
the file there.

The rationale behind the entire change is duplication of these
files between two repos, their inconsistencies and confusion.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit d10ab9ebfdb4aa5ae285f1e2b89fd490584b0cb3)

6 years agoMerge pull request #27261 from s0nea/wip-38969-nautilus
Yuri Weinstein [Tue, 2 Apr 2019 15:41:47 +0000 (08:41 -0700)]
Merge pull request #27261 from s0nea/wip-38969-nautilus

nautilus: mgr: Configure Py root logger for Mgr modules

Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #27267 from s0nea/wip-38988-nautilus
Yuri Weinstein [Tue, 2 Apr 2019 15:40:38 +0000 (08:40 -0700)]
Merge pull request #27267 from s0nea/wip-38988-nautilus

nautilus: mgr/dashboard: Add refresh interval to the dashboard landing page

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Sebastian Krah <skrah@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
6 years agomgr/deepsea: use ceph_volume output in get_inventory() 27319/head
Tim Serong [Fri, 15 Mar 2019 04:52:23 +0000 (15:52 +1100)]
mgr/deepsea: use ceph_volume output in get_inventory()

DeepSea is being updated to use ceph_volume internally (see
https://github.com/SUSE/DeepSea/pull/1517).  Once this is done,
the mgr_orch.get_inventory runner will just be returning the
raw ceph_volume output, so this commit updates the DeepSea mgr
module to match.

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit b0f9c4b5101f92b9e68a6512a9c05bfd345baf2d)

6 years agomgr/deepsea: log salt job failures
Tim Serong [Thu, 14 Mar 2019 11:48:44 +0000 (22:48 +1100)]
mgr/deepsea: log salt job failures

If a request to salt succeeds, but the event comes back with some internal
failure (e.g.: an exception was thrown inside the salt runner), we need to
log this so the admin can find out what on earth went wrong.

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 78c3d65ca9092bdab51ae1e6b6beb3ee37e72938)

6 years agomgr/deepsea: use empty strings rather than None for option defaults
Tim Serong [Thu, 14 Mar 2019 10:10:38 +0000 (21:10 +1100)]
mgr/deepsea: use empty strings rather than None for option defaults

This makes the _config_valid() function work properly; the option
defaults are being strinified somewhere, so we need to use empty
strings rather than None (which becomes "None"), in order to check
if they're set or not.

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit e81f109bf93317b998d3ea31d64381d9f491a6ef)

6 years agomon: quiet devname log noise 27314/head
Sage Weil [Tue, 2 Apr 2019 13:49:01 +0000 (08:49 -0500)]
mon: quiet devname log noise

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 3221381d9fb924e397c3d031c7d4751490409bca)

6 years agoMerge PR #27167 into nautilus
Sage Weil [Tue, 2 Apr 2019 01:53:40 +0000 (20:53 -0500)]
Merge PR #27167 into nautilus

* refs/pull/27167/head:
mgr/diskprediction_cloud: Correct base64 encode translate table

Reviewed-by: Neha Ojha <nojha@redhat.com>