]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoMerge pull request #20739 from Jeegn-Chen/wip-reject-sse-mpcp
Yuri Weinstein [Tue, 13 Mar 2018 14:54:34 +0000 (07:54 -0700)]
Merge pull request #20739 from Jeegn-Chen/wip-reject-sse-mpcp

rgw: reject encrypted object COPY before supported

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20811 from tspmelo/fix-table-details
Lenz Grimmer [Tue, 13 Mar 2018 12:03:00 +0000 (13:03 +0100)]
Merge pull request #20811 from tspmelo/fix-table-details

mgr/dashboard_v2: fix and improve table details

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #20757 from tspmelo/wip-chart-tooltip
Lenz Grimmer [Tue, 13 Mar 2018 11:45:18 +0000 (12:45 +0100)]
Merge pull request #20757 from tspmelo/wip-chart-tooltip

mgr/dashboard_v2: Improve charts tooltips

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
7 years agoMerge pull request #20830 from Songweibin/wip-cleanup
Xie Xingguo [Tue, 13 Mar 2018 07:06:00 +0000 (15:06 +0800)]
Merge pull request #20830 from Songweibin/wip-cleanup

osd: two cleanups

Reviewed-by: Luo Kexue <luo.kexue@zte.com.cn>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #20838 from badone/test_dump_pgstate_history-check-for-empty-output
Xie Xingguo [Tue, 13 Mar 2018 07:04:07 +0000 (15:04 +0800)]
Merge pull request #20838 from badone/test_dump_pgstate_history-check-for-empty-output

tests: Check for empty output in test_dump_pgstate_history

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20839 from guzhongyan/tree-from-cleanup
Xie Xingguo [Tue, 13 Mar 2018 07:03:31 +0000 (15:03 +0800)]
Merge pull request #20839 from guzhongyan/tree-from-cleanup

mon/OSDMonitor: clean up cmd 'osd tree-from'

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20831 from zhsj/fix-spelling
Kefu Chai [Tue, 13 Mar 2018 00:29:29 +0000 (08:29 +0800)]
Merge pull request #20831 from zhsj/fix-spelling

misc: fix various spelling errors

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: iliul <liul.stone@gmail.com>
7 years agoMerge pull request #20777 from wjwithagen/wjw-mgr_dashboard_test
John Spray [Mon, 12 Mar 2018 23:33:07 +0000 (23:33 +0000)]
Merge pull request #20777 from wjwithagen/wjw-mgr_dashboard_test

test: only test dashboard_v2 when it is enabled

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20849 from ceph/wip-cv-env-flags
Andrew Schoen [Mon, 12 Mar 2018 18:38:10 +0000 (19:38 +0100)]
Merge pull request #20849 from ceph/wip-cv-env-flags

ceph-volume tests add optional flags for vagrant

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph-volume tests add optional flags for vagrant 20849/head
Alfredo Deza [Mon, 12 Mar 2018 14:06:47 +0000 (10:06 -0400)]
ceph-volume tests add optional flags for vagrant

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #20827 from jdurgin/wip-pg-log-trim-errors
Josh Durgin [Mon, 12 Mar 2018 16:00:57 +0000 (12:00 -0400)]
Merge pull request #20827 from jdurgin/wip-pg-log-trim-errors

osd: treat successful and erroroneous writes the same for log trimming

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomgr/dashboard_v2: fix and improve table details 20811/head
Tiago Melo [Thu, 8 Mar 2018 15:37:47 +0000 (15:37 +0000)]
mgr/dashboard_v2: fix and improve table details

There was a problem with the current implementation of the table details, when
compiled in production mode, where the method that created the details element
would throw an exception.

Besides fixing that, this commit also improves the way we define the details.
Now instead of sending the component name, through the 'detailsComponent' attr,
we need to get the current selection via 'updateSelection' attr and declare the
detail component inside the cdTable and add the cdTableDetail attr to that
element.

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard_v2: improve health page charts tooltips 20757/head
Tiago Melo [Thu, 1 Mar 2018 14:48:22 +0000 (14:48 +0000)]
mgr/dashboard_v2: improve health page charts tooltips

Extracted the charts into a new component and it is now using a new tooltip.

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard_v2: improve tooltip of cephfsChart
Tiago Melo [Tue, 6 Mar 2018 18:53:14 +0000 (18:53 +0000)]
mgr/dashboard_v2: improve tooltip of cephfsChart

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard_v2: extract cephfs chart into a component
Tiago Melo [Wed, 28 Feb 2018 18:45:49 +0000 (18:45 +0000)]
mgr/dashboard_v2: extract cephfs chart into a component

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard_v2: improve tooltip of cdSparkline
Tiago Melo [Wed, 28 Feb 2018 17:53:55 +0000 (17:53 +0000)]
mgr/dashboard_v2: improve tooltip of cdSparkline

Added a new scss and class for the tooltip.

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #20444 from cbodley/wip-qa-ssl
Casey Bodley [Mon, 12 Mar 2018 14:32:55 +0000 (10:32 -0400)]
Merge pull request #20444 from cbodley/wip-qa-ssl

qa/rgw: verify suite tests civetweb with ssl

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #20823 from rjfd/wip-dashboard-pools
Lenz Grimmer [Mon, 12 Mar 2018 13:11:21 +0000 (14:11 +0100)]
Merge pull request #20823 from rjfd/wip-dashboard-pools

mgr/dashboard_v2: Pool controller

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard: support test task as CLI arg in rub-backend-api-tests.sh 20823/head
Ricardo Dias [Fri, 9 Mar 2018 16:44:56 +0000 (16:44 +0000)]
mgr/dashboard: support test task as CLI arg in rub-backend-api-tests.sh

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: Pool controller implementation and tests
Ricardo Dias [Fri, 9 Mar 2018 16:44:34 +0000 (16:44 +0000)]
mgr/dashboard: Pool controller implementation and tests

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoMerge pull request #20821 from tspmelo/fix-configuration-page
Kefu Chai [Mon, 12 Mar 2018 10:46:09 +0000 (18:46 +0800)]
Merge pull request #20821 from tspmelo/fix-configuration-page

mgr/dashboard_v2: fix cluster configuration page

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
7 years agoMerge pull request #20806 from Devp00l/table-column-toggle
Lenz Grimmer [Mon, 12 Mar 2018 10:25:21 +0000 (11:25 +0100)]
Merge pull request #20806 from Devp00l/table-column-toggle

mgr/dashboard_v2: Add toggle able columns

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
7 years agoMerge pull request #20797 from rjfd/wip-dashboard-log-requests
Lenz Grimmer [Mon, 12 Mar 2018 10:23:05 +0000 (11:23 +0100)]
Merge pull request #20797 from rjfd/wip-dashboard-log-requests

mgr/dashboard: HTTP request logging

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agoMerge pull request #20765 from sebastian-philipp/dashboard_v2-no-detail_route
Lenz Grimmer [Mon, 12 Mar 2018 10:16:52 +0000 (11:16 +0100)]
Merge pull request #20765 from sebastian-philipp/dashboard_v2-no-detail_route

mgr/dashboard_v2: Removed unused `tools.detail_route()`

Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agoMerge pull request #20772 from votdev/fix_osd_details
Lenz Grimmer [Mon, 12 Mar 2018 10:12:41 +0000 (11:12 +0100)]
Merge pull request #20772 from votdev/fix_osd_details

mgr/dashboard v2: Don't show details if multiple OSDs are selected

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
7 years agoqa/workunits/mon/crush_ops.sh: test osd tree-from 20839/head
Gu Zhongyan [Mon, 12 Mar 2018 09:08:34 +0000 (17:08 +0800)]
qa/workunits/mon/crush_ops.sh: test osd tree-from

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
7 years agomon/OSDMonitor: clean up cmd 'osd tree-from'
Gu Zhongyan [Mon, 12 Mar 2018 03:41:32 +0000 (11:41 +0800)]
mon/OSDMonitor: clean up cmd 'osd tree-from'
Handle 'bucket not exist' and 'not a bucket' case

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
7 years agorgw: reject encrypted object COPY before supported 20739/head
Jeegn Chen [Tue, 6 Mar 2018 05:20:07 +0000 (13:20 +0800)]
rgw: reject encrypted object COPY before supported

Current implementation does not follow S3 spec and even
may result in data corruption silently when copying
multipart objects accorss pools. So reject COPY operations
on encrypted objects before it is fully functional.

Fixes: http://tracker.ceph.com/issues/23232
Signed-off-by: Jeegn Chen <jeegnchen@gmail.com>
7 years agoMerge pull request #20809 from idryomov/wip-librbd-discard-create-truncate
Jason Dillaman [Sun, 11 Mar 2018 01:30:45 +0000 (20:30 -0500)]
Merge pull request #20809 from idryomov/wip-librbd-discard-create-truncate

librbd: create+truncate for whole-object layered discards

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20243 from ceph/wip-cd-volume-entry
vasukulkarni [Sat, 10 Mar 2018 16:13:48 +0000 (08:13 -0800)]
Merge pull request #20243 from ceph/wip-cd-volume-entry

qa/tests: add openstack volume info + lvs for ceph-volume

7 years agomisc: fix various spelling errors 20831/head
Shengjing Zhu [Sat, 10 Mar 2018 14:36:31 +0000 (22:36 +0800)]
misc: fix various spelling errors

Signed-off-by: Shengjing Zhu <i@zhsj.me>
7 years agoMerge pull request #20826 from liewegas/wip-fix-mstart-config
Jason Dillaman [Sat, 10 Mar 2018 13:21:30 +0000 (08:21 -0500)]
Merge pull request #20826 from liewegas/wip-fix-mstart-config

vstart.sh: fix mstart variables

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoosd: direct use of 'shard' without repeated calls 20830/head
songweibin [Sat, 10 Mar 2018 08:30:20 +0000 (16:30 +0800)]
osd: direct use of 'shard' without repeated calls

Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agoosd: drop unused header in OSD.cc
songweibin [Sat, 10 Mar 2018 04:31:00 +0000 (12:31 +0800)]
osd: drop unused header in OSD.cc

Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agoMerge pull request #20819 from ygtzf/wip-install-deps
Kefu Chai [Sat, 10 Mar 2018 01:32:00 +0000 (09:32 +0800)]
Merge pull request #20819 from ygtzf/wip-install-deps

install-deps.sh: fix an error condition expression

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20419 from tchaikov/wip-22748
Kefu Chai [Sat, 10 Mar 2018 01:19:27 +0000 (09:19 +0800)]
Merge pull request #20419 from tchaikov/wip-22748

common/config: add units to options

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoPrimaryLogPG: only trim up to osd_pg_log_trim_max entries at once 20827/head
Josh Durgin [Thu, 8 Mar 2018 03:31:59 +0000 (22:31 -0500)]
PrimaryLogPG: only trim up to osd_pg_log_trim_max entries at once

This prevents the fix for http://tracker.ceph.com/issues/22050 or
potential future bugs from causing too much latency by trimming too
many log entries at once.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
7 years agovstart.sh: use proper variables for ceph.conf and dev dir 20826/head
Sage Weil [Fri, 9 Mar 2018 23:00:43 +0000 (17:00 -0600)]
vstart.sh: use proper variables for ceph.conf and dev dir

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoPG, PrimaryLogPG: trim log and rollback info for error log entries
Josh Durgin [Thu, 8 Mar 2018 03:09:19 +0000 (22:09 -0500)]
PG, PrimaryLogPG: trim log and rollback info for error log entries

Regular updates piggyback some osd state for this purpose with
MOSDRepOp[Reply]. Do the same thing for pure log entry updates (write
errors and lost/revert additions) via MOSDPGUpdateLogMissing[Reply].

Fixes: http://tracker.ceph.com/issues/22050
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
7 years agoqa/rgw: verify suite tests civetweb with ssl 20444/head
Casey Bodley [Tue, 13 Feb 2018 18:43:46 +0000 (13:43 -0500)]
qa/rgw: verify suite tests civetweb with ssl

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa/rgw: loop over clients instead of config keys
Casey Bodley [Mon, 5 Mar 2018 20:22:53 +0000 (15:22 -0500)]
qa/rgw: loop over clients instead of config keys

we only run radosgw instances on clients that are specified directly in
the rgw task - this list omits entries that are brought in via overrides

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa/rgw: s3test task overrides REQUESTS_CA_BUNDLE to use system certs
Casey Bodley [Thu, 15 Feb 2018 15:40:35 +0000 (10:40 -0500)]
qa/rgw: s3test task overrides REQUESTS_CA_BUNDLE to use system certs

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa/rgw: s3test task conditionally sets is_secure
Casey Bodley [Tue, 13 Feb 2018 18:42:31 +0000 (13:42 -0500)]
qa/rgw: s3test task conditionally sets is_secure

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa/rgw: ragweed task conditionally sets is_secure
Casey Bodley [Mon, 5 Mar 2018 15:33:45 +0000 (10:33 -0500)]
qa/rgw: ragweed task conditionally sets is_secure

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa/rgw: swift task conditionally sets auth_ssl
Casey Bodley [Wed, 14 Feb 2018 19:03:48 +0000 (14:03 -0500)]
qa/rgw: swift task conditionally sets auth_ssl

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa/rgw: add ssl certificate option for rgw frontend config
Casey Bodley [Tue, 13 Feb 2018 18:26:09 +0000 (13:26 -0500)]
qa/rgw: add ssl certificate option for rgw frontend config

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa/rgw: add class for rgw endpoints
Casey Bodley [Wed, 21 Feb 2018 16:19:48 +0000 (11:19 -0500)]
qa/rgw: add class for rgw endpoints

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa: add task to generate ssl certificates
Casey Bodley [Mon, 12 Feb 2018 16:10:21 +0000 (11:10 -0500)]
qa: add task to generate ssl certificates

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20805 from Devp00l/refresh-rotate
Kefu Chai [Fri, 9 Mar 2018 17:55:44 +0000 (01:55 +0800)]
Merge pull request #20805 from Devp00l/refresh-rotate

mgr/dashboard_v2: Rotate the refresh icon on load

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #20788 from xiexingguo/wip-balancer-04
Kefu Chai [Fri, 9 Mar 2018 17:53:26 +0000 (01:53 +0800)]
Merge pull request #20788 from xiexingguo/wip-balancer-04

pybind/mgr/balancer: two more fixes

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #20791 from guzhongyan/fix-pycmd
Kefu Chai [Fri, 9 Mar 2018 17:52:34 +0000 (01:52 +0800)]
Merge pull request #20791 from guzhongyan/fix-pycmd

pybind/ceph_argparse: accept flexible req

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomgr/dashboard: refactor pool info retrieval to service class
Ricardo Dias [Fri, 9 Mar 2018 16:43:04 +0000 (16:43 +0000)]
mgr/dashboard: refactor pool info retrieval to service class

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard_v2: Add toggle able columns 20806/head
Stephan Müller [Mon, 5 Mar 2018 15:04:04 +0000 (16:04 +0100)]
mgr/dashboard_v2: Add toggle able columns

It's now possible to toggle columns on and off in the data table.

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agoMerge pull request #20787 from ceph/wip-rm23260
Alfredo Deza [Fri, 9 Mar 2018 13:08:56 +0000 (08:08 -0500)]
Merge pull request #20787 from ceph/wip-rm23260

ceph-volume fix filestore OSD creation after mon-config changes

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #20813 from smithfarm/wip-make-dist-suse
Nathan Cutler [Fri, 9 Mar 2018 12:26:47 +0000 (13:26 +0100)]
Merge pull request #20813 from smithfarm/wip-make-dist-suse

Revert "make-dist: add OBS-specific release suffix on SUSE"

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20682 from dillaman/wip-22960
Mykola Golub [Fri, 9 Mar 2018 12:11:08 +0000 (14:11 +0200)]
Merge pull request #20682 from dillaman/wip-22960

librbd: abstract hard-coded journal and cache hooks on IO path

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20815 from capri1989/get-packages-luminous-update
Alfredo Deza [Fri, 9 Mar 2018 12:03:04 +0000 (07:03 -0500)]
Merge pull request #20815 from capri1989/get-packages-luminous-update

doc: Updated the get-packages.rst to luminous

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agomgr/dashboard_v2: fix cluster configuration page 20821/head
Tiago Melo [Wed, 7 Mar 2018 17:28:59 +0000 (17:28 +0000)]
mgr/dashboard_v2: fix cluster configuration page

Configuration level 'develop' was changed to 'dev' in
1717d4c578be108d5b2c651305941974b2201b0f.
Because of this all the dev configurations were not showing.

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: HTTP request logging 20797/head
Ricardo Dias [Thu, 8 Mar 2018 12:27:08 +0000 (12:27 +0000)]
mgr/dashboard: HTTP request logging

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard v2: Don't show details if multiple OSDs are selected 20772/head
Volker Theile [Fri, 9 Mar 2018 10:32:43 +0000 (11:32 +0100)]
mgr/dashboard v2: Don't show details if multiple OSDs are selected

Signed-off-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #20747 from votdev/add_required_directive
Ricardo Dias [Fri, 9 Mar 2018 09:47:26 +0000 (09:47 +0000)]
Merge pull request #20747 from votdev/add_required_directive

mgr/dashboard v2: Add CSS class for required form fields

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoinstall-deps.sh: fix an error condition expression 20819/head
Yao Guotao [Fri, 9 Mar 2018 09:46:27 +0000 (04:46 -0500)]
install-deps.sh: fix an error condition expression

Signed-off-by: Yao Guotao <yaoguot@gmail.com>
7 years agolibrbd: create+truncate for whole-object layered discards 20809/head
Ilya Dryomov [Thu, 8 Mar 2018 16:26:27 +0000 (17:26 +0100)]
librbd: create+truncate for whole-object layered discards

A whole-object layered discard is implemented as a truncate rather
than a delete: a dummy object is needed to prevent the CoW machinery
from kicking in.  However, a truncate on a non-existent object is
a no-op.  If the object doesn't exist in HEAD, a discard request is
effectively ignored -- parent blocks are still seen afterwards.

A non-exclusive create on an existing object is also a no-op, so the
fix is to do a compound create+truncate instead.

Fixes: http://tracker.ceph.com/issues/23285
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agomgr/dashboard_v2: Refactored `RESTControllerTest`: 20765/head
Sebastian Wagner [Fri, 9 Mar 2018 09:01:54 +0000 (10:01 +0100)]
mgr/dashboard_v2: Refactored `RESTControllerTest`:

* Made `RESTControllerTest` inherent from `ControllerTestCase`
* Refactored `ControllerTestCase`
* Simplified all tests that inherent from  `ControllerTestCase`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard_v2: Removed unused `tools.detail_route()`
Sebastian Wagner [Fri, 9 Mar 2018 09:00:39 +0000 (10:00 +0100)]
mgr/dashboard_v2: Removed unused `tools.detail_route()`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agoUpdated the get-packages.rst to luminous 20815/head
Kai Wagner [Fri, 9 Mar 2018 06:50:45 +0000 (07:50 +0100)]
Updated the get-packages.rst to luminous

Signed-off-by: Kai Wagner <kwagner@suse.com>
7 years agocommon/options: consolidate Option::to_str() with operator<< 20419/head
Kefu Chai [Wed, 7 Mar 2018 16:46:06 +0000 (00:46 +0800)]
common/options: consolidate Option::to_str() with operator<<

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotest: add a simple test for conf_get() and conf_set()
Kefu Chai [Tue, 6 Mar 2018 03:10:14 +0000 (11:10 +0800)]
test: add a simple test for conf_get() and conf_set()

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/options,mon: switch some option to TYPE_SECS
Kefu Chai [Tue, 13 Feb 2018 08:37:00 +0000 (16:37 +0800)]
common/options,mon: switch some option to TYPE_SECS

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/config: specialize the settings for time duration
Kefu Chai [Tue, 13 Feb 2018 08:36:35 +0000 (16:36 +0800)]
common/config: specialize the settings for time duration

because of the ADL, boost::detail::variant::printer is not able to find
operator<<(ostream&, chrono::seconds) even the latter is defined. so we
need to define our own printer. and print_value() function, so it can be
used out of the compilation unit.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/options: switch some cephfs settings to TYPE_SIZE
Kefu Chai [Tue, 13 Feb 2018 08:04:09 +0000 (16:04 +0800)]
common/options: switch some cephfs settings to TYPE_SIZE

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/options: switch some rbd settings to TYPE_SIZE
Kefu Chai [Tue, 13 Feb 2018 08:03:58 +0000 (16:03 +0800)]
common/options: switch some rbd settings to TYPE_SIZE

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/options: switch some rgw options to TYPE_SIZE
Kefu Chai [Tue, 13 Feb 2018 08:03:08 +0000 (16:03 +0800)]
common/options: switch some rgw options to TYPE_SIZE

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/options: switch some osd settings to TYPE_SIZE
Kefu Chai [Tue, 13 Feb 2018 08:02:31 +0000 (16:02 +0800)]
common/options: switch some osd settings to TYPE_SIZE

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/options: switch some mon options to TYPE_SIZE
Kefu Chai [Tue, 13 Feb 2018 08:01:15 +0000 (16:01 +0800)]
common/options: switch some mon options to TYPE_SIZE

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/config: specialize the settings for size
Kefu Chai [Tue, 13 Feb 2018 07:56:47 +0000 (15:56 +0800)]
common/config: specialize the settings for size

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotests: Check for empty output in test_dump_pgstate_history 20838/head
Brad Hubbard [Fri, 9 Mar 2018 04:35:36 +0000 (14:35 +1000)]
tests: Check for empty output in test_dump_pgstate_history

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
7 years agoMerge pull request #20745 from Liuchang0812/jsonify-pool-get
Kefu Chai [Fri, 9 Mar 2018 04:02:49 +0000 (12:02 +0800)]
Merge pull request #20745 from Liuchang0812/jsonify-pool-get

mon: invalid JSON returned when querying pool parameters

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20775 from tspmelo/fix-iscsi-unit-test
Kefu Chai [Fri, 9 Mar 2018 04:02:20 +0000 (12:02 +0800)]
Merge pull request #20775 from tspmelo/fix-iscsi-unit-test

mgr/dashboard_v2: add mocked service provider for TcmuIscsiService

Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agopybind/ceph_argparse: accept flexible req 20791/head
Gu Zhongyan [Fri, 9 Mar 2018 01:53:56 +0000 (09:53 +0800)]
pybind/ceph_argparse: accept flexible req
True and true both acceptable

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
7 years agoMerge pull request #20778 from p-na/wip-mgr-fix-dashboard-backend-tests
Kefu Chai [Fri, 9 Mar 2018 02:24:00 +0000 (10:24 +0800)]
Merge pull request #20778 from p-na/wip-mgr-fix-dashboard-backend-tests

mgr/dashboard: Fix backend tests for newer CherryPy versions

Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agoMerge pull request #20782 from sebastian-philipp/dashboard_v2_fix_config_options_endpoint
Kefu Chai [Fri, 9 Mar 2018 02:20:58 +0000 (10:20 +0800)]
Merge pull request #20782 from sebastian-philipp/dashboard_v2_fix_config_options_endpoint

mgr/dashboard_v2: Fix test_cluster_configuration test

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20786 from dzafman/wip-zafman-log-trim
Josh Durgin [Fri, 9 Mar 2018 00:42:31 +0000 (16:42 -0800)]
Merge pull request #20786 from dzafman/wip-zafman-log-trim

tools/ceph-objectstore-tool: command to trim the pg log

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoRevert "make-dist: add OBS-specific release suffix on SUSE" 20813/head
Nathan Cutler [Fri, 9 Mar 2018 00:42:02 +0000 (01:42 +0100)]
Revert "make-dist: add OBS-specific release suffix on SUSE"

This reverts commit ca6c92b3ec2f715cf247e9c1009d315d9de9c55a.

The OBS-specific suffix potentially causes trouble when building outside of
OBS. Also, the OBS build process already includes a spec-file munging step
where this can be done.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agotools: Add pg log trim command to ceph-objectstore-tool 20786/head
Josh Durgin [Tue, 6 Mar 2018 01:04:10 +0000 (20:04 -0500)]
tools: Add pg log trim command to ceph-objectstore-tool

Add test script that verifies the command in qa/standalone/osd

Fixes: http://tracker.ceph.com/issues/23242
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #20769 from oritwas/wip-rgw-20448
Yuri Weinstein [Thu, 8 Mar 2018 21:25:36 +0000 (13:25 -0800)]
Merge pull request #20769 from oritwas/wip-rgw-20448

rgw: fix crash with rgw_run_sync_thread false

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
7 years agoceph-volume tests verify that mkfs filestore uses default flags 20787/head
Alfredo Deza [Wed, 7 Mar 2018 16:57:32 +0000 (11:57 -0500)]
ceph-volume tests verify that mkfs filestore uses default flags

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm.prepare pass the cephx_secret for mkfs in filestore
Alfredo Deza [Wed, 7 Mar 2018 16:57:07 +0000 (11:57 -0500)]
ceph-volume lvm.prepare pass the cephx_secret for mkfs in filestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume util.prepare use keyfile from stdin for mkfs in filestore
Alfredo Deza [Wed, 7 Mar 2018 16:56:45 +0000 (11:56 -0500)]
ceph-volume util.prepare use keyfile from stdin for mkfs in filestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #20590 from hitoshikamei/rbd-bench
Jason Dillaman [Thu, 8 Mar 2018 19:01:57 +0000 (14:01 -0500)]
Merge pull request #20590 from hitoshikamei/rbd-bench

rbd: fix thread_offsets calculation of rbd bench

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20689 from Songweibin/wip-23038
Jason Dillaman [Thu, 8 Mar 2018 19:00:59 +0000 (14:00 -0500)]
Merge pull request #20689 from Songweibin/wip-23038

rbd/test: add snap protection test for ex/import

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20697 from Songweibin/wip-trash-rm
Jason Dillaman [Thu, 8 Mar 2018 19:00:27 +0000 (14:00 -0500)]
Merge pull request #20697 from Songweibin/wip-trash-rm

rbd: allow trash rm/purge when pool quota is full used

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20795 from Songweibin/wip-fix-trash
Jason Dillaman [Thu, 8 Mar 2018 18:59:27 +0000 (13:59 -0500)]
Merge pull request #20795 from Songweibin/wip-fix-trash

rbd: pool_percent_used should not divided by 100

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20759 from dzafman/wip-cleanup
David Zafman [Thu, 8 Mar 2018 18:45:38 +0000 (10:45 -0800)]
Merge pull request #20759 from dzafman/wip-cleanup

test: Make clearer by moving code out of loop

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #20801 from theanalyst/dashboard-build-typo
Lenz Grimmer [Thu, 8 Mar 2018 17:27:38 +0000 (18:27 +0100)]
Merge pull request #20801 from theanalyst/dashboard-build-typo

cmake: typo fix when npm is not found

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agotest/librbd: expect_object_may_exist(..., false) in DiscardRemoveTruncate
Ilya Dryomov [Thu, 8 Mar 2018 16:19:26 +0000 (17:19 +0100)]
test/librbd: expect_object_may_exist(..., false) in DiscardRemoveTruncate

This is !is_no_op_for_nonexistent_object() test -- NONEXISTENT case is
the interesting one.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agotest/librbd: clone with parent features in DiscardRemoveTruncate
Ilya Dryomov [Thu, 8 Mar 2018 16:15:55 +0000 (17:15 +0100)]
test/librbd: clone with parent features in DiscardRemoveTruncate

... otherwise object map expectations aren't actually set.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agomgr/dashboard v2: Add CSS class for required form fields 20747/head
Volker Theile [Tue, 6 Mar 2018 13:31:14 +0000 (14:31 +0100)]
mgr/dashboard v2: Add CSS class for required form fields

Signed-off-by: Volker Theile <vtheile@suse.com>
7 years agodashboard: cmake: typo fix when npm is not found 20801/head
Abhishek Lekshmanan [Thu, 8 Mar 2018 14:49:24 +0000 (15:49 +0100)]
dashboard: cmake: typo fix when npm is not found

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoMerge pull request #20390 from theanalyst/rgw/openssl-init
Yuri Weinstein [Thu, 8 Mar 2018 15:34:29 +0000 (07:34 -0800)]
Merge pull request #20390 from theanalyst/rgw/openssl-init

rgw: setup locks for libopenssl

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Jesse Williamson <jwilliamson@suse.de>
Reviewed-by: Marcus Watts <mwatts@redhat.com>