]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
ceph-ci.git
6 years agorgw: move a lot of cls_user utility methods into svc_user
Yehuda Sadeh [Thu, 30 May 2019 22:45:27 +0000 (15:45 -0700)]
rgw: move a lot of cls_user utility methods into svc_user

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: svc: new bucket index service
Yehuda Sadeh [Tue, 28 May 2019 23:04:28 +0000 (16:04 -0700)]
rgw: svc: new bucket index service

Currently only specialized and incomplete rados version.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: svc_rados: keep ioctx on the pool
Yehuda Sadeh [Tue, 28 May 2019 22:51:36 +0000 (15:51 -0700)]
rgw: svc_rados: keep ioctx on the pool

and rgw_rados_ref now holds Pool and not IoCtx directly.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: adding missing files
Yehuda Sadeh [Mon, 13 May 2019 18:24:49 +0000 (11:24 -0700)]
rgw: adding missing files

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: more refactoring work
Yehuda Sadeh [Sat, 11 May 2019 00:25:05 +0000 (17:25 -0700)]
rgw: more refactoring work

a lot went into this, geting closer to have both user and bucket stuff
adapted to the new system. Will need to create a new bucket index service
to deal with its management (init, stat, etc.).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: svc.user_rados: split svc.user
Yehuda Sadeh [Fri, 10 May 2019 22:10:16 +0000 (15:10 -0700)]
rgw: svc.user_rados: split svc.user

Need to have rados specific implementation: use of cls_user

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: meta listing: adapt to new system
Yehuda Sadeh [Thu, 9 May 2019 00:35:08 +0000 (17:35 -0700)]
rgw: meta listing: adapt to new system

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: rgw_bucket: move more code into ctl
Yehuda Sadeh [Wed, 8 May 2019 02:03:29 +0000 (19:03 -0700)]
rgw: rgw_bucket: move more code into ctl

Also some work on the handlers list operations (which can now be done
through the meta backend).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: svc.sysobj: implement paged object listing
Yehuda Sadeh [Wed, 8 May 2019 01:57:14 +0000 (18:57 -0700)]
rgw: svc.sysobj: implement paged object listing

This was missing. Also modify svc_sys_obj.h to avoid direct reference
to svc_sys_obj_core.h, other than what's needed for using ceph::static_ptr --
which we use to avoid extra allocation.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: ctl.bucket: move [un]link bucket into ctl
Yehuda Sadeh [Mon, 6 May 2019 21:03:28 +0000 (14:03 -0700)]
rgw: ctl.bucket: move [un]link bucket into ctl

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: more work towards updated bucket meta interfaces
Yehuda Sadeh [Sat, 4 May 2019 01:14:08 +0000 (18:14 -0700)]
rgw: more work towards updated bucket meta interfaces

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: use optional method params
Yehuda Sadeh [Sat, 4 May 2019 01:12:40 +0000 (18:12 -0700)]
rgw: use optional method params

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: ctl.bucket: implement bucket ctl utilities
Yehuda Sadeh [Thu, 2 May 2019 21:56:58 +0000 (14:56 -0700)]
rgw: ctl.bucket: implement bucket ctl utilities

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: svc.bucket: reimplement
Yehuda Sadeh [Mon, 29 Apr 2019 22:53:54 +0000 (15:53 -0700)]
rgw: svc.bucket: reimplement

Have svc.bucket do only the low level storage functionality. Next
will need to have helpers that use these (similar to what was done
for users).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: meta_be: provide a backend handler
Yehuda Sadeh [Sat, 27 Apr 2019 02:51:10 +0000 (19:51 -0700)]
rgw: meta_be: provide a backend handler

RGW_MetaBackend_Handler can create a backend context. It is created
for each backend user (meta handler).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: svc_user adjustments
Yehuda Sadeh [Fri, 26 Apr 2019 19:38:48 +0000 (12:38 -0700)]
rgw: svc_user adjustments

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: rgw_user api adjustments
Yehuda Sadeh [Fri, 26 Apr 2019 19:27:04 +0000 (12:27 -0700)]
rgw: rgw_user api adjustments

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: trivial cleanups
Yehuda Sadeh [Fri, 26 Apr 2019 18:30:43 +0000 (11:30 -0700)]
rgw: trivial cleanups

in rgw_user.cc

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: consolidate some higher level apis into ctl structure
Yehuda Sadeh [Fri, 26 Apr 2019 01:06:05 +0000 (18:06 -0700)]
rgw: consolidate some higher level apis into ctl structure

Similar to svc, just for higher level apis.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: more refactoring work
Yehuda Sadeh [Thu, 25 Apr 2019 23:32:44 +0000 (16:32 -0700)]
rgw: more refactoring work

notable changes are around user metadata. Create an api that uses
the service interface (that requires backend context) and use it
for higher level functions. Still a lot to do.

Following rebase, started modifying the internal meta apis to deal
with optional_yield param. Passing it from top level metadata handlers
and from ctls, all the way down to the services. However, since following
commit will introduce many more changes, this was only done for the
user apis.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: more meta backend work
Yehuda Sadeh [Fri, 5 Apr 2019 00:05:33 +0000 (17:05 -0700)]
rgw: more meta backend work

and a lot of compilation fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: meta put: revise
Yehuda Sadeh [Thu, 28 Mar 2019 16:22:40 +0000 (09:22 -0700)]
rgw: meta put: revise

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: bucket and user meta: implement higher level service utils
Yehuda Sadeh [Tue, 26 Mar 2019 07:27:13 +0000 (00:27 -0700)]
rgw: bucket and user meta: implement higher level service utils

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: meta_be_sobj interface changes and adapt otp, bucket meta handlers
Yehuda Sadeh [Wed, 20 Mar 2019 14:28:48 +0000 (07:28 -0700)]
rgw: meta_be_sobj interface changes and adapt otp, bucket meta handlers

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: start adapting otp metadata handler
Yehuda Sadeh [Sat, 16 Mar 2019 02:01:51 +0000 (19:01 -0700)]
rgw: start adapting otp metadata handler

and other changes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: move service_module init into svc.sync_modules
Yehuda Sadeh [Sat, 16 Mar 2019 00:38:45 +0000 (17:38 -0700)]
rgw: move service_module init into svc.sync_modules

So that it could be used now in svc.bucket without needing store.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: more progress with meta restructure
Yehuda Sadeh [Fri, 15 Mar 2019 23:31:20 +0000 (16:31 -0700)]
rgw: more progress with meta restructure

Getting closer, but not there yet

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: initial meta manager refactoring
Yehuda Sadeh [Fri, 8 Mar 2019 04:42:14 +0000 (20:42 -0800)]
rgw: initial meta manager refactoring

I didn't intend for it to be such a big commit, and it's not
even compiling yet. This changes the structure of how
the metadata manager and handlers work.
The idea is to be able to relatively easily hook in different
meta backends (or same backends with different handling -- such
as the otp).
Added new services for meta, meta backend, and meta backend sysobj
implementation.
The meta backend service is responsible for the final data storage,
and updating the meta log (log might be split later on, but at the
moment it keeping it together for simplicity).
The handlers themselves are the ones responsible for reading or
modifying the metadata. This means that they need to call the
meta backend service instead of calling the utility functions.
The utility functions need to call the handlers, and not the other
way around. Handlers can have utility methods to assist.

Left to do: get everything actually compiling and implemented. The
structure is there, now need to fill in the gaps.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: svc bucket: set bucket instance info
Yehuda Sadeh [Tue, 5 Mar 2019 20:07:24 +0000 (12:07 -0800)]
rgw: svc bucket: set bucket instance info

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: move helper code out of rgw_rados.cc
Yehuda Sadeh [Fri, 1 Mar 2019 23:50:20 +0000 (15:50 -0800)]
rgw: move helper code out of rgw_rados.cc

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: header cleanup
Yehuda Sadeh [Wed, 13 Feb 2019 00:31:47 +0000 (16:31 -0800)]
rgw: header cleanup

move implementation out of header.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: use bucket service for get_bucket_info
Yehuda Sadeh [Tue, 12 Feb 2019 20:38:06 +0000 (12:38 -0800)]
rgw: use bucket service for get_bucket_info

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: svc_bucket: initial work
Yehuda Sadeh [Tue, 12 Feb 2019 00:26:39 +0000 (16:26 -0800)]
rgw: svc_bucket: initial work

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: no need to pass in RGWRados to rgw_get_system_obj()
Yehuda Sadeh [Mon, 11 Feb 2019 23:34:21 +0000 (15:34 -0800)]
rgw: no need to pass in RGWRados to rgw_get_system_obj()

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: move admin socket cache code into svc_sys_obj_cache
Yehuda Sadeh [Mon, 11 Feb 2019 18:11:18 +0000 (10:11 -0800)]
rgw: move admin socket cache code into svc_sys_obj_cache

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: move rgw_compression_info_from_attrset() to a better home
Yehuda Sadeh [Sat, 9 Feb 2019 00:32:28 +0000 (16:32 -0800)]
rgw: move rgw_compression_info_from_attrset() to a better home

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: svc_cls: replace svc_mfa with a more generic svc_cls
Yehuda Sadeh [Thu, 7 Feb 2019 20:53:56 +0000 (12:53 -0800)]
rgw: svc_cls: replace svc_mfa with a more generic svc_cls

Consolidate objclass util services.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: switch to using svc.mfa
Yehuda Sadeh [Thu, 7 Feb 2019 01:21:16 +0000 (17:21 -0800)]
rgw: switch to using svc.mfa

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: svc/mfa: new service for mfa functionality
Yehuda Sadeh [Thu, 7 Feb 2019 00:01:48 +0000 (16:01 -0800)]
rgw: svc/mfa: new service for mfa functionality

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: move manifest code around, initial tier separation
Yehuda Sadeh [Wed, 6 Feb 2019 04:04:04 +0000 (20:04 -0800)]
rgw: move manifest code around, initial tier separation

cascading changes, and minor improvements.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: more headers cleanup
Yehuda Sadeh [Wed, 13 Feb 2019 03:32:36 +0000 (19:32 -0800)]
rgw: more headers cleanup

Dependency reduction

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: object expirer: move code around
Yehuda Sadeh [Fri, 8 Feb 2019 00:17:29 +0000 (16:17 -0800)]
rgw: object expirer: move code around

move code out of RGWRados, refactor a bit to use rados svc.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: more headers cleanups
Yehuda Sadeh [Wed, 13 Feb 2019 01:14:03 +0000 (17:14 -0800)]
rgw: more headers cleanups

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: header cleanup: remove code from rgw_rados.h
Yehuda Sadeh [Wed, 13 Feb 2019 00:32:06 +0000 (16:32 -0800)]
rgw: header cleanup: remove code from rgw_rados.h

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge PR #29374 into master
Patrick Donnelly [Mon, 29 Jul 2019 17:37:15 +0000 (10:37 -0700)]
Merge PR #29374 into master

* refs/pull/29374/head:
cephfs-shell: Fix flake8 line too long error
cephfs-shell: Fix flake8 line break after binary operator error
cephfs-shell: Fix flake8 continuation line over-indented for hanging indent error
cephfs-shell: Fix flake8 missing whitespace around arithmetic operator error
cephfs-shell: Fix multiple spaces after ':' flake8 error

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #27780 from theanalyst/cls-timeindex-denc
Casey Bodley [Mon, 29 Jul 2019 15:37:15 +0000 (11:37 -0400)]
Merge pull request #27780 from theanalyst/cls-timeindex-denc

cls: add timeindex types to ceph-dencoder

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #29182 from dcasier/mgr-dashboard-ganesha-fix-cephfs-name
Ricardo Dias [Mon, 29 Jul 2019 15:03:06 +0000 (16:03 +0100)]
Merge pull request #29182 from dcasier/mgr-dashboard-ganesha-fix-cephfs-name

mgr/dashboard: ganesha: Specify the name of the filesystem (create_path)

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #29138 from Reperator/dashboard-pw-hash
Ricardo Marques [Mon, 29 Jul 2019 14:29:41 +0000 (15:29 +0100)]
Merge pull request #29138 from Reperator/dashboard-pw-hash

mgr/dashboard: support setting password hashes

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agocephfs-shell: Fix flake8 line too long error
Varsha Rao [Mon, 29 Jul 2019 11:41:37 +0000 (17:11 +0530)]
cephfs-shell: Fix flake8 line too long error

https://tracker.ceph.com/issues/40992
Signed-off-by: Varsha Rao <varao@redhat.com>
6 years agocephfs-shell: Fix flake8 line break after binary operator error
Varsha Rao [Mon, 29 Jul 2019 06:28:47 +0000 (11:58 +0530)]
cephfs-shell: Fix flake8 line break after binary operator error

Fixes: https://tracker.ceph.com/issues/40992
Signed-off-by: Varsha Rao <varao@redhat.com>
6 years agocephfs-shell: Fix flake8 continuation line over-indented for hanging indent error
Varsha Rao [Mon, 29 Jul 2019 06:20:31 +0000 (11:50 +0530)]
cephfs-shell: Fix flake8 continuation line over-indented for hanging indent error

Fixes: https://tracker.ceph.com/issues/40992
Signed-off-by: Varsha Rao <varao@redhat.com>
6 years agocephfs-shell: Fix flake8 missing whitespace around arithmetic operator error
Varsha Rao [Mon, 29 Jul 2019 06:13:51 +0000 (11:43 +0530)]
cephfs-shell: Fix flake8 missing whitespace around arithmetic operator error

Fixes: https://tracker.ceph.com/issues/40992
Signed-off-by: Varsha Rao <varao@redhat.com>
6 years agocephfs-shell: Fix multiple spaces after ':' flake8 error
Varsha Rao [Mon, 29 Jul 2019 06:07:29 +0000 (11:37 +0530)]
cephfs-shell: Fix multiple spaces after ':' flake8 error

Fixes: https://tracker.ceph.com/issues/40992
Signed-off-by: Varsha Rao <varao@redhat.com>
6 years agoMerge pull request #29272 from votdev/issue_40925
Ricardo Marques [Mon, 29 Jul 2019 10:24:11 +0000 (11:24 +0100)]
Merge pull request #29272 from votdev/issue_40925

mgr/dashboard: Various UI issues related to CephFS

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #29216 from rafaelquint/configtest
Ricardo Marques [Mon, 29 Jul 2019 10:09:04 +0000 (11:09 +0100)]
Merge pull request #29216 from rafaelquint/configtest

mgr/dashboard: E2E test to verify Configuration editing functionality

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #29324 from adk3798/typepages
Ricardo Marques [Mon, 29 Jul 2019 10:01:16 +0000 (11:01 +0100)]
Merge pull request #29324 from adk3798/typepages

mgr/dashboard: Explicitly type page variables

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
6 years agoMerge pull request #29371 from bk201/wip-40971
Ricardo Dias [Mon, 29 Jul 2019 09:52:56 +0000 (10:52 +0100)]
Merge pull request #29371 from bk201/wip-40971

mgr/dashboard: fix MDS counter chart is not displayed

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #29341 from zhangbingyi1/master
Kefu Chai [Mon, 29 Jul 2019 03:54:39 +0000 (11:54 +0800)]
Merge pull request #29341 from zhangbingyi1/master

test/librados: avoid residual crush rule after test case execution

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: fix MDS counter chart is not displayed
Kiefer Chang [Fri, 26 Jul 2019 10:05:52 +0000 (18:05 +0800)]
mgr/dashboard: fix MDS counter chart is not displayed

Unit of timetamp for performance counters is changed to nanoseconds [1].
Adapt this for CephFS MDS performance counters in backend.

[1]: https://github.com/ceph/ceph/pull/28882

Fixes: https://tracker.ceph.com/issues/40971
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
6 years agotest/librados: avoid residual crush rule after test case execution
root [Fri, 26 Jul 2019 03:43:54 +0000 (11:43 +0800)]
test/librados: avoid residual crush rule after test case execution
Fixes: http://tracker.ceph.com/issues/40970
Signed-off-by: Bingyi Zhang <zhangbingyi@umcloud.com>
6 years agoMerge pull request #29348 from myoungwon/fix-wrong-class
Kefu Chai [Sun, 28 Jul 2019 14:52:40 +0000 (22:52 +0800)]
Merge pull request #29348 from myoungwon/fix-wrong-class

osd: fix wrong arguments when dropping refcount

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #29345 from majianpeng/bluestore-flush-waiter
Kefu Chai [Sun, 28 Jul 2019 14:51:00 +0000 (22:51 +0800)]
Merge pull request #29345 from majianpeng/bluestore-flush-waiter

os/bluestore: avoid unnecessary notify.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge pull request #29126 from xiexingguo/wip-clamp-ratio-to-0
Kefu Chai [Sun, 28 Jul 2019 14:49:54 +0000 (22:49 +0800)]
Merge pull request #29126 from xiexingguo/wip-clamp-ratio-to-0

mgr/progress: clamp pg recovery ratio to 0

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28012 from rouming/bootstrap-after-setuid
Kefu Chai [Sun, 28 Jul 2019 14:36:45 +0000 (22:36 +0800)]
Merge pull request #28012 from rouming/bootstrap-after-setuid

global/global_init: do first transport connection after setuid()

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27985 from ifed01/wip-ifed-slow-omaps
Kefu Chai [Sun, 28 Jul 2019 14:35:56 +0000 (22:35 +0800)]
Merge pull request #27985 from ifed01/wip-ifed-slow-omaps

tools/ceph-objectstore-tool: introduce list-slow-omap command.

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #29238 into master
Sage Weil [Sat, 27 Jul 2019 13:00:38 +0000 (08:00 -0500)]
Merge PR #29238 into master

* refs/pull/29238/head:
os/bluestore: it's better to erase spanning blob only once

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge PR #29239 into master
Sage Weil [Sat, 27 Jul 2019 13:00:16 +0000 (08:00 -0500)]
Merge PR #29239 into master

* refs/pull/29239/head:
qa/tasks/ceph_manager.py: always use self.logger

Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agoMerge PR #29305 into master
Sage Weil [Sat, 27 Jul 2019 12:59:58 +0000 (07:59 -0500)]
Merge PR #29305 into master

* refs/pull/29305/head:
mgr: Reduce logging noise when handling commands

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #29307 into master
Sage Weil [Sat, 27 Jul 2019 12:59:45 +0000 (07:59 -0500)]
Merge PR #29307 into master

* refs/pull/29307/head:
monmaptool: added --addv option to usage description

Reviewed-by: João Eduardo Luís <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #29316 into master
Sage Weil [Sat, 27 Jul 2019 12:59:30 +0000 (07:59 -0500)]
Merge PR #29316 into master

* refs/pull/29316/head:
common,tools: make sure the destination buffer can handle the size of the string
src/tools: initialize variables before the goto statement
src/mount: check before dereference buf
src/crush: check before dereference out2
src/test: s/strcpy/strncpy

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #29358 into master
Sage Weil [Sat, 27 Jul 2019 12:59:17 +0000 (07:59 -0500)]
Merge PR #29358 into master

* refs/pull/29358/head:
mgr/telemetry: salt osd ids too

Reviewed-by: Dan Mick <dmick@redhat.com>
6 years agoMerge pull request #29054 from dillaman/wip-40621
Mykola Golub [Sat, 27 Jul 2019 06:32:35 +0000 (09:32 +0300)]
Merge pull request #29054 from dillaman/wip-40621

mgr/rbd_support: support scheduling long-running background operations

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #29361 from tchaikov/wip-qa-osd-pause
Kefu Chai [Sat, 27 Jul 2019 02:26:43 +0000 (10:26 +0800)]
Merge pull request #29361 from tchaikov/wip-qa-osd-pause

qa: fixes

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #28685 into master
Patrick Donnelly [Fri, 26 Jul 2019 22:18:13 +0000 (15:18 -0700)]
Merge PR #28685 into master

* refs/pull/28685/head:
client: more precise CEPH_CLIENT_CAPS_PENDING_CAPSNAP
client: unify kicking cap flushes and kicking snapcap flushes
client: define helper function that sends flushsnap message
client: cleanup tracking of early kicked flushing caps

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28793 into master
Patrick Donnelly [Fri, 26 Jul 2019 22:15:19 +0000 (15:15 -0700)]
Merge PR #28793 into master

* refs/pull/28793/head:
qa/cephfs: make run_shell() accept args as str too
qa/vstart_runner.py: ignores when source and destination are same
test_cephfs_shell: add a test for cd with arguments
test_cephfs_shell: add a test for cd with no arguments
test_cephfs_shell: group test methods
test_cephfs_shell: add a new method to return script output
test_cephfs_shell: allow running CephFS shell script
cephfs-shell: cd with no args shouldn't print an error message

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #29064 into master
Patrick Donnelly [Fri, 26 Jul 2019 22:13:59 +0000 (15:13 -0700)]
Merge PR #29064 into master

* refs/pull/29064/head:
mds: execute PurgeQueue on_error handler in finisher

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #29302 into master
Patrick Donnelly [Fri, 26 Jul 2019 22:13:08 +0000 (15:13 -0700)]
Merge PR #29302 into master

* refs/pull/29302/head:
cephfs: fix a memory leak

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #29066 into master
Patrick Donnelly [Fri, 26 Jul 2019 22:12:19 +0000 (15:12 -0700)]
Merge PR #29066 into master

* refs/pull/29066/head:
mds: Move inline functions with loops or switch statements to CInode.cc
mds: Reorganize class members in CInode header

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #29336 into master
Patrick Donnelly [Fri, 26 Jul 2019 22:09:14 +0000 (15:09 -0700)]
Merge PR #29336 into master

* refs/pull/29336/head:
qa: wait for MDS to come back after removing it

Reviewed-by: Jos Collin <jcollin@redhat.com>
6 years agoMerge pull request #29359 from jmunhoz/wip-msite-az-tests
Casey Bodley [Fri, 26 Jul 2019 19:29:55 +0000 (15:29 -0400)]
Merge pull request #29359 from jmunhoz/wip-msite-az-tests

rgw: az: add archive zone tests

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agomgr/dashboard/qa: add more fields to report
Kefu Chai [Fri, 26 Jul 2019 17:50:30 +0000 (01:50 +0800)]
mgr/dashboard/qa: add more fields to report

to be in sync with #28847

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/suites/rados/rest/mgr-restful: whitelist OSDMAP_FLAGS
Kefu Chai [Fri, 26 Jul 2019 17:22:52 +0000 (01:22 +0800)]
qa/suites/rados/rest/mgr-restful: whitelist OSDMAP_FLAGS

`rest/test-restful.sh` calls `test_mgr_rest_api.py`, which in turn
calls

```
    ('patch',  '/config/osd', {'pause': True}),
```

and rest module translates it to `ceph osd set key=pause`

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agorgw: az: add archive zone tests
Javier M. Mellid [Fri, 26 Jul 2019 15:33:03 +0000 (17:33 +0200)]
rgw: az: add archive zone tests

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
6 years agomgr/telemetry: salt osd ids too
Sage Weil [Fri, 26 Jul 2019 15:17:22 +0000 (10:17 -0500)]
mgr/telemetry: salt osd ids too

Better to fully obfuscate here.

This has a nice side-effect of assigning entity names that are *globally*
unique across the full telemetry data set, since the salts are unique and
sha1 is (sufficiently) collision-free.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #29330 into master
Sage Weil [Fri, 26 Jul 2019 12:32:30 +0000 (07:32 -0500)]
Merge PR #29330 into master

* refs/pull/29330/head:
mgr/telemetry: obscure entity_name with a salt

Reviewed-by: Dan Mick <dmick@redhat.com>
6 years agomgr/dashboard: Explicitly type page variables
Adam King [Thu, 25 Jul 2019 15:11:47 +0000 (11:11 -0400)]
mgr/dashboard: Explicitly type page variables

Explicitly gives a type to page variables.
Helps make better use of Typescript's static type checking.
Undoes mistake from #29070.

Fixes: https://tracker.ceph.com/issues/40961
Signed-off-by: Adam King <adking@redhat.com>
Signed-off-by: Rafael Quintero <rquinter@redhat.com>
6 years agomgr: Reduce logging noise when handling commands
Sebastian Wagner [Thu, 25 Jul 2019 09:22:12 +0000 (11:22 +0200)]
mgr: Reduce logging noise when handling commands

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #29237 from adk3798/usertest
Ricardo Marques [Fri, 26 Jul 2019 11:53:04 +0000 (12:53 +0100)]
Merge pull request #29237 from adk3798/usertest

mgr/dashboard: RGW user E2E Tests

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #29192 from ceph/dependabot/npm_and_yarn/src/pybind/mgr/dashboard...
Ricardo Marques [Fri, 26 Jul 2019 11:41:33 +0000 (12:41 +0100)]
Merge pull request #29192 from ceph/dependabot/npm_and_yarn/src/pybind/mgr/dashboard/frontend/lodash-4.17.13

build(deps): bump lodash from 4.17.11 to 4.17.13 in /src/pybind/mgr/dashboard/frontend

Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agopybind/mgr: don't log exception when cannot find RBD task by id
Jason Dillaman [Fri, 26 Jul 2019 11:01:59 +0000 (07:01 -0400)]
pybind/mgr: don't log exception when cannot find RBD task by id

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoosd: fix wrong arguments when dropping refcount
myoungwon oh [Fri, 26 Jul 2019 10:40:31 +0000 (19:40 +0900)]
osd: fix wrong arguments when dropping refcount

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
6 years agoMerge pull request #29198 from rhcs-dashboard/e2e-ci
Ricardo Marques [Fri, 26 Jul 2019 10:22:00 +0000 (11:22 +0100)]
Merge pull request #29198 from rhcs-dashboard/e2e-ci

mgr/dashboard: run e2e tests against prod build (jenkins job)

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #29280 from rhcs-dashboard/bucket-tests
Ricardo Marques [Fri, 26 Jul 2019 09:39:14 +0000 (10:39 +0100)]
Merge pull request #29280 from rhcs-dashboard/bucket-tests

mgr/dashboard: RGW bucket creation when no placement target received

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agomgr/dashboard: Various UI issues related to CephFS
Volker Theile [Wed, 24 Jul 2019 13:26:03 +0000 (15:26 +0200)]
mgr/dashboard: Various UI issues related to CephFS

* Check if data is accessible, otherwise set grafanaId to undefined.
* Catch errors in 'Clients' tab and stop loading spinner. Display ViewCacheStatus Exception.
* Render the 'Enabled' column using the checkIcon cell template as other lists do.

Fixes: https://tracker.ceph.com/issues/40925
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoos/bluestore: avoid unnecessary notify.
Jianpeng Ma [Mon, 22 Jul 2019 14:02:41 +0000 (22:02 +0800)]
os/bluestore: avoid unnecessary notify.

Add parameter count waiting list for Onode::flush to avoid unnecessary
notify.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agocommon,tools: make sure the destination buffer can handle the size of the string
songweibin [Thu, 25 Jul 2019 11:44:08 +0000 (19:44 +0800)]
common,tools: make sure the destination buffer can handle the size of the string

fix klocwork issues:
Width is not specified for 's' conversion specifier.
This can result in an overflow of the buffer
provided in argument 3 of a call to 'sscanf'

Signed-off-by: songweibin <song.weibin@zte.com.cn>
6 years agosrc/tools: initialize variables before the goto statement
songweibin [Thu, 25 Jul 2019 11:12:05 +0000 (19:12 +0800)]
src/tools: initialize variables before the goto statement

CID 172143 (#15 of 15): Branch past initialization (PW.BRANCH_PAST_INITIALIZATION)
1. branch_past_initialization:
2. name_at_decl_position: variable "oid" (declared at line 220)
3. name_at_decl_position: variable "exkeys" (declared at line 241)
4. name_at_decl_position: variable "exvals" (declared at line 242)
5. name_at_decl_position: variable "safe" (declared at line 278)

Signed-off-by: songweibin <song.weibin@zte.com.cn>
6 years agosrc/mount: check before dereference buf
songweibin [Thu, 25 Jul 2019 11:05:33 +0000 (19:05 +0800)]
src/mount: check before dereference buf

CID 180671 (#1 of 1): Dereference null return value (NULL_RETURNS)

Signed-off-by: songweibin <song.weibin@zte.com.cn>
6 years agosrc/crush: check before dereference out2
songweibin [Thu, 25 Jul 2019 10:55:39 +0000 (18:55 +0800)]
src/crush: check before dereference out2

CID 174874 (#2 of 2): Dereference after null check (FORWARD_NULL)
30. var_deref_op: Dereference null pointer out2.

Signed-off-by: songweibin <song.weibin@zte.com.cn>
6 years agoMerge pull request #29264 from rjfd/wip-dashboard-fix-qa-rbd
Kefu Chai [Fri, 26 Jul 2019 06:25:35 +0000 (14:25 +0800)]
Merge pull request #29264 from rjfd/wip-dashboard-fix-qa-rbd

mgr/dashboard: qa: fix RBD test when matching error strings

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>