]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoMerge pull request #21081 from majianpeng/rbd-remove-unused-func
Kefu Chai [Thu, 29 Mar 2018 00:58:27 +0000 (08:58 +0800)]
Merge pull request #21081 from majianpeng/rbd-remove-unused-func

osdc: remove unused function.

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #20040 from liewegas/wip-snapmapper
Kefu Chai [Thu, 29 Mar 2018 00:29:19 +0000 (08:29 +0800)]
Merge pull request #20040 from liewegas/wip-snapmapper

osd: make snapmapper warn+clean up instead of assert

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21071 from mkoderer/vstart-fix
Kefu Chai [Wed, 28 Mar 2018 12:31:43 +0000 (20:31 +0800)]
Merge pull request #21071 from mkoderer/vstart-fix

vstart.sh: Fix help text in vstart.sh

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20961 from smithfarm/wip-dashboard-rst
Lenz Grimmer [Wed, 28 Mar 2018 12:31:25 +0000 (14:31 +0200)]
Merge pull request #20961 from smithfarm/wip-dashboard-rst

doc: mgr/dashboard.rst: mention ceph.conf and ceph mgr services

Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agoosdc: remove unused function. 21081/head
Jianpeng Ma [Wed, 28 Mar 2018 12:17:12 +0000 (20:17 +0800)]
osdc: remove unused function.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agovstart.sh: Fix help text 21071/head
Marc Koderer [Tue, 27 Mar 2018 15:38:14 +0000 (17:38 +0200)]
vstart.sh: Fix help text

Signed-off-by: Marc Koderer <marc.koderer@sap.com>
7 years agoMerge pull request #21077 from Ashid6/master
Kefu Chai [Wed, 28 Mar 2018 11:04:29 +0000 (19:04 +0800)]
Merge pull request #21077 from Ashid6/master

doc: typo fix

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20660 from Leeshine/wip-mon-op-tracker
Kefu Chai [Wed, 28 Mar 2018 11:02:35 +0000 (19:02 +0800)]
Merge pull request #20660 from Leeshine/wip-mon-op-tracker

mon,mgr: make  osd_metric more popular and report slow ops to mgr

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21057 from tchaikov/wip-22114
Kefu Chai [Wed, 28 Mar 2018 11:01:58 +0000 (19:01 +0800)]
Merge pull request #21057 from tchaikov/wip-22114

mon: mark mgr reports as no_reply

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
7 years agodoc: typo fix 21077/head
Ashita Dashottar [Tue, 27 Mar 2018 22:42:33 +0000 (04:12 +0530)]
doc: typo fix

Signed-off-by: Ashita Dashottar <AshitaDashottar6@gmail.com>
7 years agodoc: mgr/dashboard.rst: adjust TCP port wording 20961/head
Nathan Cutler [Wed, 28 Mar 2018 09:01:03 +0000 (11:01 +0200)]
doc: mgr/dashboard.rst: adjust TCP port wording

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #20976 from sebastian-philipp/dashboard-restcontroller-default-get
Ricardo Dias [Wed, 28 Mar 2018 07:37:04 +0000 (08:37 +0100)]
Merge pull request #20976 from sebastian-philipp/dashboard-restcontroller-default-get

mgr/dashboard: Fix objects named `default` are inaccessible

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
7 years agoMerge pull request #20870 from rjfd/wip-dashboard-tasks
Ricardo Dias [Wed, 28 Mar 2018 07:27:51 +0000 (08:27 +0100)]
Merge pull request #20870 from rjfd/wip-dashboard-tasks

mgr/dashboard: asynchronous task support

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #20884 from zouaiguo/wip_for_mgr_rbd_info
Ricardo Dias [Wed, 28 Mar 2018 07:22:52 +0000 (08:22 +0100)]
Merge pull request #20884 from zouaiguo/wip_for_mgr_rbd_info

mgr/dashboard: add image id to mgr rbd info instead of block_name_prefix

Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agomgr: summarize mon metrics in MMgrReport and sent it 20660/head
lvshanchun [Tue, 13 Mar 2018 06:43:22 +0000 (14:43 +0800)]
mgr: summarize mon metrics in MMgrReport and sent it

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years agomon: send health_metrics to mgr
lvshanchun [Tue, 13 Mar 2018 06:42:17 +0000 (14:42 +0800)]
mon: send health_metrics to mgr

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years agomgr,osd: make osd_metric more popular
lvshanchun [Tue, 13 Mar 2018 06:41:14 +0000 (14:41 +0800)]
mgr,osd: make osd_metric more popular

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years agomon: add admin command to dump historic/slow ops
lvshanchun [Tue, 13 Mar 2018 06:37:31 +0000 (14:37 +0800)]
mon: add admin command to dump historic/slow ops

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years ago[mgr/dashboard] add image id to rbd info instead of block_name_prefix 20884/head
zouaiguo [Tue, 13 Mar 2018 09:30:16 +0000 (17:30 +0800)]
[mgr/dashboard] add image id to rbd info instead of block_name_prefix

when create images use data_pool parameter, such as:
rbd create -p pool1 -s 1G --data-pool pool2  image1

then get image info from mgr use request http://192.7.7.36:7000/rbd_pool_data/pool1
we got the response:
[{"parent_name": "", "parent_pool": 18446744073709551615, "name": "image1", "num_objs": 256, "block_name_prefix": "rbd_data.14.f561643c986", "obj_size": 4194304, "features": 189, "features_name": "fast-diff, layering, exclusive-lock, deep-flatten, object-map, data-pool", "order": 22, "size": 1073741824}]

notice:
since block_name_prefix is deprecated,
from block_name_prefix we can not get image id(the real id is ''f561643c9869')
we need add image id to rbd info instead block_name_prefix

Python 2.7.5 (default, Jun 17 2014, 18:11:42)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rados
>>> import rbd
>>> RADOS_NAME = 'client.admin'
>>> cluster_name="ceph"
>>> cluster_handle = rados.Rados(name=RADOS_NAME, clustername=cluster_name, conffile='')
>>> cluster_handle.connect()
>>> ioctx = cluster_handle.open_ioctx("pool1")
>>> image_inst = rbd.Image(ioctx, "image1")
>>> image_inst.stat()
{'parent_name': '', 'parent_pool': 18446744073709551615L, 'num_objs': 256L, 'block_name_prefix': u'rbd_data.14.f561643c986', 'obj_size': 4194304L, 'order': 22, 'size': 1073741824L}
>>> image_inst.id()
u'f561643c9869'

after fix:

[root@tfg36 site-packages]# curl http://192.7.7.36:7000/rbd_pool_data/pool1
[{"parent_name": "", "parent_pool": 18446744073709551615, "name": "image1", "num_objs": 256, "block_name_prefix": "rbd_data.14.f561643c986", "obj_size": 4194304, "features": 189, "id": "f561643c9869", "features_name": "fast-diff, layering, exclusive-lock, deep-flatten, object-map, data-pool", "order": 22, "size": 1073741824}]

Signed-off-by: zouaiguo <zou.aiguo@zte.com.cn>
7 years agoMerge pull request #21064 from Songweibin/wip-spell-error
Kefu Chai [Wed, 28 Mar 2018 02:03:05 +0000 (10:03 +0800)]
Merge pull request #21064 from Songweibin/wip-spell-error

osd: correct several spell errors in comments

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21051 from neha-ojha/wip-doc-async-recovery
Josh Durgin [Wed, 28 Mar 2018 00:55:20 +0000 (17:55 -0700)]
Merge pull request #21051 from neha-ojha/wip-doc-async-recovery

doc: dev description of async recovery

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #21023 from Liuchang0812/delete-asok-directories
Kefu Chai [Wed, 28 Mar 2018 00:38:50 +0000 (08:38 +0800)]
Merge pull request #21023 from Liuchang0812/delete-asok-directories

test: delete asok directories correctly

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21052 from zhsj/fix-distro-detect-test
Kefu Chai [Wed, 28 Mar 2018 00:30:06 +0000 (08:30 +0800)]
Merge pull request #21052 from zhsj/fix-distro-detect-test

test: remove distro_version assert in distro detect test

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agodoc: dev description of async recovery 21051/head
Neha Ojha [Mon, 26 Mar 2018 22:08:12 +0000 (15:08 -0700)]
doc: dev description of async recovery

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
Signed-off-by: Neha Ojha <nojha@redhat.com>
7 years agoMerge PR #20798 into master
Patrick Donnelly [Tue, 27 Mar 2018 21:54:47 +0000 (14:54 -0700)]
Merge PR #20798 into master

* refs/pull/20798/head:
ceph-fuse: trim ceph-fuse -V output

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20828 into master
Patrick Donnelly [Tue, 27 Mar 2018 21:54:40 +0000 (14:54 -0700)]
Merge PR #20828 into master

* refs/pull/20828/head:
client: cleanup ::_read return

Reviewed-by: Jeff Layton <jlayton@redhat.com>
7 years agoMerge PR #20854 into master
Patrick Donnelly [Tue, 27 Mar 2018 21:54:34 +0000 (14:54 -0700)]
Merge PR #20854 into master

* refs/pull/20854/head:
client: add ctime/btime to Inode dump

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: huanwen ren <ren.huanwen@zte.com.cn>
7 years agoMerge PR #20908 into master
Patrick Donnelly [Tue, 27 Mar 2018 21:54:27 +0000 (14:54 -0700)]
Merge PR #20908 into master

* refs/pull/20908/head:
ceph-fuse: Fix Segmentation fault --localize-reads

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20913 into master
Patrick Donnelly [Tue, 27 Mar 2018 21:54:21 +0000 (14:54 -0700)]
Merge PR #20913 into master

* refs/pull/20913/head:
client: add ceph_ll_sync_inode

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #20997 into master
Patrick Donnelly [Tue, 27 Mar 2018 21:54:15 +0000 (14:54 -0700)]
Merge PR #20997 into master

* refs/pull/20997/head:
client: fix Client::_read return

7 years agoMerge PR #21012 into master
Patrick Donnelly [Tue, 27 Mar 2018 21:46:56 +0000 (14:46 -0700)]
Merge PR #21012 into master

* refs/pull/21012/head:
Document the new '$' suite file

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agodoc: mgr/dashboard.rst: mgr initial modules can take a list
Nathan Cutler [Tue, 27 Mar 2018 19:42:43 +0000 (21:42 +0200)]
doc: mgr/dashboard.rst: mgr initial modules can take a list

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agodoc: mgr/dashboard.rst: mention ceph.conf and ceph mgr services
Nathan Cutler [Mon, 19 Mar 2018 13:21:14 +0000 (14:21 +0100)]
doc: mgr/dashboard.rst: mention ceph.conf and ceph mgr services

Also break down the "Configuration" section into three separate sub-sections
for clarity.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #21070 from ceph/wip-cv-vagrant-reload
Alfredo Deza [Tue, 27 Mar 2018 17:31:55 +0000 (13:31 -0400)]
Merge pull request #21070 from ceph/wip-cv-vagrant-reload

ceph-volume improve robustness when reloading vms in tests

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #20494 from wido/influx-time-fixes
John Spray [Tue, 27 Mar 2018 16:45:19 +0000 (17:45 +0100)]
Merge pull request #20494 from wido/influx-time-fixes

mgr/influx: Various time fixes

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #21063 from guzhongyan/bs-cleanup
Kefu Chai [Tue, 27 Mar 2018 16:31:25 +0000 (00:31 +0800)]
Merge pull request #21063 from guzhongyan/bs-cleanup

os/bluestore: remove unused variable.

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
7 years agoMerge pull request #21043 from wido/zabbix-osd-numpgs
Kefu Chai [Tue, 27 Mar 2018 14:59:22 +0000 (22:59 +0800)]
Merge pull request #21043 from wido/zabbix-osd-numpgs

mgr/zabbix: Send max, min and avg PGs of OSDs to Zabbix

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #21037 from guzhongyan/bf-format
Kefu Chai [Tue, 27 Mar 2018 14:56:57 +0000 (22:56 +0800)]
Merge pull request #21037 from guzhongyan/bf-format

os/bluestore: fix some code formatting

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #20951 from tchaikov/wip-FTBFS-bluestore-armhf
Kefu Chai [Tue, 27 Mar 2018 14:55:41 +0000 (22:55 +0800)]
Merge pull request #20951 from tchaikov/wip-FTBFS-bluestore-armhf

bluestore: fix build on armhf

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21034 from rzarzynski/wip-bs-reorder-bluefs_extent_t
Kefu Chai [Tue, 27 Mar 2018 14:54:59 +0000 (22:54 +0800)]
Merge pull request #21034 from rzarzynski/wip-bs-reorder-bluefs_extent_t

os/bluestore: reorder members of bluefs_extent_t for space efficiency

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #20900 from ifed01/wip-ifed-fix-interals-in-repair
Kefu Chai [Tue, 27 Mar 2018 14:53:54 +0000 (22:53 +0800)]
Merge pull request #20900 from ifed01/wip-ifed-fix-interals-in-repair

os/bluestore: bluestore repair should use interval_set::union_insert

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20774 from rishabh-d-dave/fix-tilde-expansion
Kefu Chai [Tue, 27 Mar 2018 14:44:33 +0000 (22:44 +0800)]
Merge pull request #20774 from rishabh-d-dave/fix-tilde-expansion

config: expand tilde for ~/.ceph/$cluster.conf

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20558 from chardan/jfw-wip-show_compression_methods-22420
Kefu Chai [Tue, 27 Mar 2018 14:43:23 +0000 (22:43 +0800)]
Merge pull request #20558 from chardan/jfw-wip-show_compression_methods-22420

osd,compressor: Expose compression algorithms via MOSDBoot.

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20314 from ovh/bp-librados-nntk
Kefu Chai [Tue, 27 Mar 2018 14:41:04 +0000 (22:41 +0800)]
Merge pull request #20314 from ovh/bp-librados-nntk

librados: extend C API for so it accepts keys with NUL chars

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoceph-volume tests create a retry script for vagrant reload 21070/head
Alfredo Deza [Tue, 27 Mar 2018 13:50:28 +0000 (09:50 -0400)]
ceph-volume tests create a retry script for vagrant reload

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests use a reload script in simple functional tests
Alfredo Deza [Tue, 27 Mar 2018 13:49:52 +0000 (09:49 -0400)]
ceph-volume tests use a reload script in simple functional tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests use a reload script in lvm functional tests
Alfredo Deza [Tue, 27 Mar 2018 13:49:36 +0000 (09:49 -0400)]
ceph-volume tests use a reload script in lvm functional tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agomgr/dashboard: Fix objects named `default` are inaccessible 20976/head
Sebastian Wagner [Tue, 27 Mar 2018 13:08:31 +0000 (15:08 +0200)]
mgr/dashboard: Fix objects named `default` are inaccessible

These two calls to `default()` are identical: `vpath` and
params` are both empty:

$ curl 'http://localhost/api/cp_path/'

and

$ curl 'http://localhost/api/cp_path/default'

But we need to dinstinguish them. To fix this, we need
to add the missing `default`

We now require that all exposed controllers have a @ApiController
decorator.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard: Use `@ApiController` for PerfCounters
Sebastian Wagner [Tue, 27 Mar 2018 13:06:18 +0000 (15:06 +0200)]
mgr/dashboard: Use `@ApiController` for PerfCounters

The next commit will require that all controllers
have a `@ApiController` decorator.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard: task manager unit tests implementation 20870/head
Ricardo Dias [Mon, 12 Mar 2018 17:09:27 +0000 (17:09 +0000)]
mgr/dashboard: task manager unit tests implementation

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: add task manager usage instructions to HACKING.rst
Ricardo Dias [Fri, 9 Mar 2018 09:50:49 +0000 (09:50 +0000)]
mgr/dashboard: add task manager usage instructions to HACKING.rst

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: added tasks info to summary controller
Ricardo Dias [Thu, 8 Mar 2018 13:49:17 +0000 (13:49 +0000)]
mgr/dashboard: added tasks info to summary controller

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: async tasks controller
Ricardo Dias [Thu, 8 Mar 2018 13:48:40 +0000 (13:48 +0000)]
mgr/dashboard: async tasks controller

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: Asynchronous tasks implementation
Ricardo Dias [Thu, 8 Mar 2018 13:47:47 +0000 (13:47 +0000)]
mgr/dashboard: Asynchronous tasks implementation

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomon: mark mgr reports and osd_failure as no_reply 21057/head
Kefu Chai [Tue, 27 Mar 2018 09:45:30 +0000 (17:45 +0800)]
mon: mark mgr reports and osd_failure as no_reply

see also: #20517

Fixes: http://tracker.ceph.com/issues/22114
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomgr/dashboard: implemented NotificationQueue listener removal
Ricardo Dias [Wed, 21 Mar 2018 14:44:22 +0000 (14:44 +0000)]
mgr/dashboard: implemented NotificationQueue listener removal

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: fix NotificationQueue waiting loop
Ricardo Dias [Tue, 20 Mar 2018 15:44:49 +0000 (15:44 +0000)]
mgr/dashboard: fix NotificationQueue waiting loop

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: Support for handler priorities in NotificationQueue
Ricardo Dias [Tue, 13 Mar 2018 08:38:36 +0000 (08:38 +0000)]
mgr/dashboard: Support for handler priorities in NotificationQueue

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: privatize NotificationQueue methods
Ricardo Dias [Thu, 8 Mar 2018 13:50:34 +0000 (13:50 +0000)]
mgr/dashboard: privatize NotificationQueue methods

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoosd: correct several spell errors in comments 21064/head
songweibin [Tue, 27 Mar 2018 11:50:36 +0000 (19:50 +0800)]
osd: correct several spell errors in comments

Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agoos/bluestore: remove unused variable. 21063/head
Gu Zhongyan [Tue, 27 Mar 2018 11:00:47 +0000 (19:00 +0800)]
os/bluestore: remove unused variable.

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
7 years agoMerge pull request #21005 from rjfd/wip-mgr-fix-error-handling
Ricardo Dias [Tue, 27 Mar 2018 10:32:06 +0000 (11:32 +0100)]
Merge pull request #21005 from rjfd/wip-mgr-fix-error-handling

mgr: fixes python error handling

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Tim Serong <tserong@suse.com>
7 years agoMerge pull request #21024 from s0nea/wip-dashboard-return-features-list
Lenz Grimmer [Tue, 27 Mar 2018 09:45:54 +0000 (11:45 +0200)]
Merge pull request #21024 from s0nea/wip-dashboard-return-features-list

mgr/dashboard: Convert the RBD feature names to a list of strings

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
7 years agoMerge pull request #21004 from s0nea/wip-dashboard-skip-datapool-testcase
Lenz Grimmer [Tue, 27 Mar 2018 09:43:18 +0000 (11:43 +0200)]
Merge pull request #21004 from s0nea/wip-dashboard-skip-datapool-testcase

mgr/dashboard: skip data pool testcase for none-bluestore clusters

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agoMerge pull request #20873 from sebastian-philipp/dashboard_v2-simple-html-debug
Lenz Grimmer [Tue, 27 Mar 2018 09:31:07 +0000 (11:31 +0200)]
Merge pull request #20873 from sebastian-philipp/dashboard_v2-simple-html-debug

mgr/dashboard: Add minimalistic browsable API

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #21047 from rjfd/wip-mgr-smart-fix-py3
Ricardo Dias [Tue, 27 Mar 2018 09:06:14 +0000 (10:06 +0100)]
Merge pull request #21047 from rjfd/wip-mgr-smart-fix-py3

mgr/smart: fix python3 module loading

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
7 years agotest: remove distro_version assert in distro detect test 21052/head
Shengjing Zhu [Tue, 27 Mar 2018 05:09:57 +0000 (13:09 +0800)]
test: remove distro_version assert in distro detect test

VERSION_ID is optional in /etc/os-release, we removed the error
log in #17787, and the test also needs to be fixed.

Signed-off-by: Shengjing Zhu <zhsj@umcloud.com>
7 years agoMerge pull request #21027 from cbodley/wip-qa-swift-force-branch
Casey Bodley [Mon, 26 Mar 2018 18:27:46 +0000 (14:27 -0400)]
Merge pull request #21027 from cbodley/wip-qa-swift-force-branch

qa/tasks/swift: add support for the "force-branch" configurable.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
7 years agomgr/dashboard: New API tests for `perf_couters` 20873/head
Sebastian Wagner [Thu, 22 Mar 2018 13:00:22 +0000 (14:00 +0100)]
mgr/dashboard: New API tests  for `perf_couters`

Added OSD and MDS tests.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard: Add minimalistic browsable API
Sebastian Wagner [Mon, 26 Mar 2018 15:16:37 +0000 (17:16 +0200)]
mgr/dashboard: Add minimalistic browsable API

Also provides a simple HTML form to POST
data to a `RESTController`'s `create()` method.

Also added ENABLE_BROWSABLE_API setting to the dashboard

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard: Renamed `types` as it clashes with std lib
Sebastian Wagner [Mon, 26 Mar 2018 15:16:16 +0000 (17:16 +0200)]
mgr/dashboard: Renamed `types` as it clashes with std lib

This will lead to a name clash, when importing `types`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/smart: fix python3 module loading 21047/head
Ricardo Dias [Mon, 26 Mar 2018 14:56:01 +0000 (15:56 +0100)]
mgr/smart: fix python3 module loading

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr: fixes python error handling 21005/head
Ricardo Dias [Thu, 22 Mar 2018 12:07:24 +0000 (12:07 +0000)]
mgr: fixes python error handling

The current `handle_pyerror` function implementation relies in the
`traceback.format_exception_only` python function to format the
exception object. The problem is that this python function might also
raise an exception. This commit fixes it by enclosing that python
function call in try...catch block.

Fixes: http://tracker.ceph.com/issues/23406
Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoMerge pull request #19439 from chardan/jfw-wip-14363-normalize-rm
Nathan Cutler [Mon, 26 Mar 2018 13:35:40 +0000 (15:35 +0200)]
Merge pull request #19439 from chardan/jfw-wip-14363-normalize-rm

rgw, mon: normalize delete/remove in admin console (cleanup 22444)

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
7 years agoMerge pull request #21011 from tspmelo/wip-submit-btn
Lenz Grimmer [Mon, 26 Mar 2018 12:54:51 +0000 (14:54 +0200)]
Merge pull request #21011 from tspmelo/wip-submit-btn

mgr/dashboard: Add submit button component

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #21032 from simransinghal/fixtypo
Jos Collin [Mon, 26 Mar 2018 11:52:38 +0000 (17:22 +0530)]
Merge pull request #21032 from simransinghal/fixtypo

rgw: Fix typo in comment

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #21020 from trociny/wip-vstart-no-mon-config
Kefu Chai [Mon, 26 Mar 2018 11:33:56 +0000 (19:33 +0800)]
Merge pull request #21020 from trociny/wip-vstart-no-mon-config

stop.sh: use --no-mon-config when trying to unmap rbd devices

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomgr/zabbix: Send max, min and avg PGs of OSDs to Zabbix 21043/head
Wido den Hollander [Mon, 26 Mar 2018 11:27:27 +0000 (13:27 +0200)]
mgr/zabbix: Send max, min and avg PGs of OSDs to Zabbix

We already send the max, min and avg fill ratio of OSDs but
knowing the OSD with the highest amount of PGs is also useful.

This allows admins to create a trigger should it happen that there
is a OSD with too many PGs.

This could happen if a lot of OSDs fail and PGs start to move filling
up one or more OSDs with many PGs.

As PGs eat CPU and Memory people usually like to watch out for these
situations.

Signed-off-by: Wido den Hollander <wido@42on.com>
7 years agoMerge pull request #21036 from xiexingguo/wip-wrong-tip
Xie Xingguo [Mon, 26 Mar 2018 10:13:51 +0000 (18:13 +0800)]
Merge pull request #21036 from xiexingguo/wip-wrong-tip

os/bluestore: s/bluefs_total/bluefs_free/

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
7 years agoMerge pull request #21007 from rjfd/wip-dashboard-fix-py3
Ricardo Dias [Mon, 26 Mar 2018 09:59:17 +0000 (10:59 +0100)]
Merge pull request #21007 from rjfd/wip-dashboard-fix-py3

mgr/dashboard: fix dashboard python 3 support

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agoMerge pull request #21006 from rjfd/wip-dashboard-fix-auth-py3
Ricardo Dias [Mon, 26 Mar 2018 09:58:27 +0000 (10:58 +0100)]
Merge pull request #21006 from rjfd/wip-dashboard-fix-auth-py3

mgr/dashboard: fixed password generation in Auth controller

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #20865 from sebastian-philipp/dashboard_v2_pool-create
Ricardo Dias [Mon, 26 Mar 2018 09:07:15 +0000 (10:07 +0100)]
Merge pull request #20865 from sebastian-philipp/dashboard_v2_pool-create

mgr/dashboard: Add Pool-create to the backend

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: convert RBD features to a list of strings 21024/head
Tatjana Dehler [Fri, 23 Mar 2018 11:23:43 +0000 (12:23 +0100)]
mgr/dashboard: convert RBD features to a list of strings

Until now the API returns the features provided by an RBD as one comma
separated string. It's more usable for the frontend to receive a list
of strings instead.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
7 years agoos/bluestore: fix some code formatting 21037/head
Gu Zhongyan [Mon, 26 Mar 2018 07:24:58 +0000 (15:24 +0800)]
os/bluestore: fix some code formatting

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
7 years agoos/bluestore: s/bluefs_total/bluefs_free/ 21036/head
xie xingguo [Mon, 26 Mar 2018 02:33:24 +0000 (10:33 +0800)]
os/bluestore: s/bluefs_total/bluefs_free/

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoos/bluestore: reorder members of bluefs_extent_t to make it smaller. 21034/head
Radoslaw Zarzynski [Sat, 24 Mar 2018 11:45:51 +0000 (12:45 +0100)]
os/bluestore: reorder members of bluefs_extent_t to make it smaller.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agosrc: Fix typo 21032/head
simransinghal [Sun, 25 Mar 2018 13:15:49 +0000 (18:45 +0530)]
src: Fix typo

Replace "dont" with "don't". "Dont" is not same as "Do not" or "Don't".

Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
7 years agoMerge pull request #21002 from smithfarm/wip-23437
Nathan Cutler [Fri, 23 Mar 2018 22:29:11 +0000 (23:29 +0100)]
Merge pull request #21002 from smithfarm/wip-23437

build/ops: setup-virtualenv.sh: do not hardcode python binary

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Add submit button component 21011/head
Tiago Melo [Fri, 23 Mar 2018 16:40:29 +0000 (16:40 +0000)]
mgr/dashboard: Add submit button component

This component is to be used inside a form.

It will render a submit button with the given label.
The button will disabled itself and show a loading icon when the user clicks it,
usually initiating a request to the server, and it will stay in that state
until the request is finished.

To indicate that the request failed, returning the button to the enable state,
you need to insert an error in the form with the 'cdSubmitButton' key.

It will also check if the form is valid, when clicking the button, and will
focus on the first invalid input.

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agoqa/tasks/swift: add support for the "force-branch" configurable. 21027/head
Radoslaw Zarzynski [Fri, 7 Jul 2017 16:44:50 +0000 (12:44 -0400)]
qa/tasks/swift: add support for the "force-branch" configurable.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #21013 from dzafman/wip-remove-bc
Nathan Cutler [Fri, 23 Mar 2018 16:28:02 +0000 (17:28 +0100)]
Merge pull request #21013 from dzafman/wip-remove-bc

test: Replace bc command with printf command

Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agomgr/dashboard: Add Teuthology test for `/api/pool/_info` 20865/head
Sebastian Wagner [Thu, 22 Mar 2018 11:08:18 +0000 (12:08 +0100)]
mgr/dashboard: Add Teuthology test for `/api/pool/_info`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard: Minor tweak to `DashboardTestCase._request`
Sebastian Wagner [Tue, 20 Mar 2018 16:13:11 +0000 (17:13 +0100)]
mgr/dashboard: Minor tweak to `DashboardTestCase._request`

Don't fall through silently.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard: Change `crush_rule` serialization of Pools from id to name
Sebastian Wagner [Wed, 21 Mar 2018 13:53:28 +0000 (14:53 +0100)]
mgr/dashboard: Change `crush_rule` serialization of Pools from id to name

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard: Add `pool/_info` api endpoint to fill the create-pool dialog
Sebastian Wagner [Wed, 21 Mar 2018 13:52:14 +0000 (14:52 +0100)]
mgr/dashboard: Add `pool/_info` api endpoint to fill the create-pool dialog

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard: Add create() to Pool controller
Sebastian Wagner [Wed, 21 Mar 2018 16:15:29 +0000 (17:15 +0100)]
mgr/dashboard: Add create() to Pool controller

Also:

* Added tests.
* Renamed `DashboardTest` to `PoolTest`.
* Added `delete()`.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard: Changed `@RESTController.args_from_json`
Sebastian Wagner [Wed, 21 Mar 2018 16:13:51 +0000 (17:13 +0100)]
mgr/dashboard: Changed `@RESTController.args_from_json`

It now allows any keyword arguments. This is needed for ECP
and Pool creation.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard: Refactor `send_command` into CephService
Sebastian Wagner [Tue, 13 Mar 2018 15:40:26 +0000 (16:40 +0100)]
mgr/dashboard: Refactor `send_command` into CephService

* `CephService.send_command` is much easier to use.
* Refactored `CephFSClients.get` and `Dashboard.load_bufer`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agoMerge pull request #21008 from trociny/wip-23430
Ricardo Dias [Fri, 23 Mar 2018 14:59:58 +0000 (14:59 +0000)]
Merge pull request #21008 from trociny/wip-23430

vstart: set osd_pool_default_erasure_code_profile in initial ceph.conf

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
7 years agoMerge pull request #20981 from cbodley/wip-qa-fix-ssl
Yuri Weinstein [Fri, 23 Mar 2018 13:55:10 +0000 (06:55 -0700)]
Merge pull request #20981 from cbodley/wip-qa-fix-ssl

qa: fix overrides for openssl_keys task

Reviewed-by: Yuri Weinstein <yweins@redhat.com>