]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agoOn new uid check, return EEXIST.
Shilpa Jagannath [Tue, 30 Jul 2019 08:14:26 +0000 (13:44 +0530)]
On new uid check, return EEXIST.

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
6 years agoFixed line wrap
Shilpa Jagannath [Fri, 26 Jul 2019 05:28:01 +0000 (10:58 +0530)]
Fixed line wrap

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
6 years agoUpdated help.t with user rename command
Shilpa Jagannath [Fri, 26 Jul 2019 04:43:26 +0000 (10:13 +0530)]
Updated help.t with user rename command

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
6 years agoAdded user rename test
Shilpa Jagannath [Fri, 19 Jul 2019 10:51:29 +0000 (16:21 +0530)]
Added user rename test

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
6 years agoMinor fixes.
Shilpa Jagannath [Fri, 19 Jul 2019 09:31:08 +0000 (15:01 +0530)]
Minor fixes.

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
6 years agoModified rgw_store_user_info() checks to suit user rename.
Shilpa Jagannath [Mon, 15 Jul 2019 11:59:12 +0000 (17:29 +0530)]
Modified rgw_store_user_info() checks to suit user rename.
Added a helper function to modify bucket acl.
Rebased onto master.

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
6 years agoCreate new user before deleting existing user. Migrate buckets one at a time.
Shilpa Jagannath [Thu, 11 Jul 2019 13:42:56 +0000 (19:12 +0530)]
Create new user before deleting existing user. Migrate buckets one at a time.

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
6 years agoThis commit deals with renaming user. Under the hood, the attributes of an
Shilpa Jagannath [Wed, 19 Jun 2019 09:34:03 +0000 (15:04 +0530)]
This commit deals with renaming user. Under the hood, the attributes of an
existing user are moved under the new user namespace specified by "--new-uid".
It calls bucket link and bucket chown to link the buckets and objects to the new
user namespace. Access and secret keys of the user(and the subusers) are preserved.

Usage: "radosgw-admin user rename --uid=<> --new-uid=<>"

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
6 years agoDocumentation for 'bucket chown'
Shilpa Jagannath [Tue, 11 Jun 2019 06:05:55 +0000 (11:35 +0530)]
Documentation for 'bucket chown'

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
6 years agoSet object ACLS to reflect bucket owner supporting bucket unlink/link.
Shilpa Jagannath [Tue, 9 Apr 2019 10:08:25 +0000 (15:38 +0530)]
Set object ACLS to reflect bucket owner supporting bucket unlink/link.

Provides command line tool to update the acl on object
of a bucket after bucket unlink/link.
"radosgw-admin bucket chown --bucket <bucket>"

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
6 years agorgw: bucket link: master rebase adaptions.
Marcus Watts [Fri, 7 Dec 2018 09:42:37 +0000 (04:42 -0500)]
rgw: bucket link: master rebase adaptions.

The previous few commits for rgw_bucket.cc could originally be applied
one at a time resulting in a complete buildable copy of ceph at each step.
Recent independent changes to rgw_bucket.cc have affected the same logic,
so the original commits no longer build.  This commit resyncs things
with master such that the result will build.

I'm preserving the intermediate commits for now, since that's what was
originally backported to jewel, If this causes problems, these commits
should be squashed together; except for backport purposes the intermediate
versions have no other value.

One other change here: omit logic that copied "VERSION_ATTR" to the
new container object.  This should already be provided for elsewhere.

Fixes: http://tracker.ceph.com/issues/35885
Signed-off-by: Marcus Watts <mwatts@redhat.com>
6 years agorgw: bucket link: "bucket move" documentation changes
Marcus Watts [Sat, 8 Sep 2018 08:48:17 +0000 (04:48 -0400)]
rgw: bucket link: "bucket move" documentation changes

Improve and add to documentation for "bucket move" functionality;
including use moving to multi-tenancy and further deprecating bucket-id
which is no longer necessary.

Fixes: http://tracker.ceph.com/issues/35885
Signed-off-by: Marcus Watts <mwatts@redhat.com>
6 years agorgw: bucket link: "bucket move"; handle bucket names too.
Marcus Watts [Sat, 8 Sep 2018 01:26:46 +0000 (21:26 -0400)]
rgw: bucket link: "bucket move"; handle bucket names too.

This is the remainder of bucket move function.  Implement bucket "rename"
- use string passed in via '--bucket-new-name' to optinally override
the resultant bucket name when doing bucket link.  This is basically
a slight generalization of changing the tenant of a bucket; the same
operations are required for either.

Further refinements included here are minor improvements to associated
error messages.

This does not change any "tail placement" information in any objects
contained in the bucket.  The bucket name is encoded there, along with
the bucket id, but neither appears to be used, and the existing reshard
logic which changes bucket ids also does not appear to alter that.

Fixes: http://tracker.ceph.com/issues/35885
Signed-off-by: Marcus Watts <mwatts@redhat.com>
6 years agorgw: bucket link: base "bucket move" (tenant id only)
Marcus Watts [Mon, 27 Aug 2018 23:30:28 +0000 (19:30 -0400)]
rgw: bucket link: base "bucket move" (tenant id only)

This is the base or primitive "bucket move" function.  It handles rewriting
the endpoint and info rados objects for the rgw bucket, plus deleting
the original rados objects that are no longer correct.  It doesn't
handle changing the bucket name; that's in a future commit.  Some of
the changes here will get overwritten by that commit.

Fixes: http://tracker.ceph.com/issues/35885
Signed-off-by: Marcus Watts <mwatts@redhat.com>
6 years agorearrange / simplify RGWBucket::link logic - start bucket move support
Marcus Watts [Mon, 27 Aug 2018 20:39:37 +0000 (16:39 -0400)]
rearrange / simplify RGWBucket::link logic - start bucket move support

The existing RGWBucket::link logic changed things incrementally in
order to relink a bucket.  When doing a "bucket move", this is no longer
a good idea - bucket objects must be written to new names which don't
exist, so it is better to create then wholly out of in-memory data.

Also, add != for rgw_bucket - inverse of existing of ==, provides
another option to arrange code to make it more readable.

Fixes: http://tracker.ceph.com/issues/35885
Signed-off-by: Marcus Watts <mwatts@redhat.com>
6 years agorgw: bucket link: use data from bucket_info to rewrite bucket_endpoint.
Marcus Watts [Sat, 25 Aug 2018 09:48:41 +0000 (05:48 -0400)]
rgw: bucket link: use data from bucket_info to rewrite bucket_endpoint.

The bucket link command was doing a fetch of the entrypoint late
in the link process.  This makes it harder to do "bucket move"
functionality, because then it would need to know the old
bucket late in the process.  The bucketinfo structure has
all the data elements necessary to recreate the endpoint,
so the changes here arrange to just use that data.

In order to write the object it's also necessary to propagate
xattrs.  The only xattr that seems to be present on the endpoint
is "ceph.objclass.version", so that's what this copies out.
It appears that attribute may be set set separately by cls,
so I'm not sure this is actually necessary.  However, the
old code would have written it, so this code preserves
that behavior.

Fixes: http://tracker.ceph.com/issues/35885
Signed-off-by: Marcus Watts <mwatts@redhat.com>
6 years agorgw: bucket link: simplify use of get bucket info.
Marcus Watts [Thu, 23 Aug 2018 17:03:15 +0000 (13:03 -0400)]
rgw: bucket link: simplify use of get bucket info.

The bucket link command was doing an extra bucket
get info call because it needed attributes.  Revised
::init so that attributes could optionally be requested,
and eliminate now unnecessary call.

Fixes: http://tracker.ceph.com/issues/35885
Signed-off-by: Marcus Watts <mwatts@redhat.com>
6 years agorgw: bucket link: Add ability to name bucket w/ different tenant.
Marcus Watts [Tue, 21 Aug 2018 22:09:33 +0000 (18:09 -0400)]
rgw: bucket link: Add ability to name bucket w/ different tenant.

This is not a complete fix; but it makes it possible for the
bucket link command to correctly find and attempt to link a bucket
to a user with a different tenant.  The reason this is not a complete
fix is that with just this change, the resulting bucket is "broken";
a duplicate endpoint but 0 length contents is created, and
the info entry is not correctly moved.

Fixes: http://tracker.ceph.com/issues/35885
Signed-off-by: Marcus Watts <mwatts@redhat.com>
6 years agoAdd "--bucket-new-name" option to radosgw-admin.
Marcus Watts [Sat, 4 Aug 2018 04:42:38 +0000 (00:42 -0400)]
Add "--bucket-new-name" option to radosgw-admin.

This just adds the command line option and related bits.

Underlying functionality will be a later commit.

Fixes: http://tracker.ceph.com/issues/35885
Signed-off-by: Marcus Watts <mwatts@redhat.com>
6 years agoAdd several types to ceph-dencoder.
Marcus Watts [Fri, 3 Aug 2018 03:49:30 +0000 (23:49 -0400)]
Add several types to ceph-dencoder.

Add types: RGWBucketEntryPoint obj_version rgw_user
These are structures that are visible as data at rest
inside of rados when a bucket is made via radosgw.

RGWBucketEntryPoint is the contents of a rados
object with names that may be either "<bucket-name>"
or "<tenant>/<bucket-name>"

rgw_user is a structure contained inside of RGWBucketEntryPoint
and other structures.

obj_version is visible as the xattr "ceph.objclass.version"
on rados objects in ".rgw.meta" that contain ".bucket.meta."

Fixes: http://tracker.ceph.com/issues/35885
Signed-off-by: Marcus Watts <mwatts@redhat.com>
6 years agorgw: making implicit_tenants backwards compatible.
Marcus Watts [Wed, 30 May 2018 20:37:31 +0000 (16:37 -0400)]
rgw: making implicit_tenants backwards compatible.

In jewel, "rgw keystone implicit tenants" only applied to swift. As of
luminous), this option applies to s3 also.
Sites that used this feature with jewel now have outstanding data that
depends on the old behavior.

The fix here is to expand "rgw keystone implicit tenants" so that it
can be set to any of "none", "all", "s3" or "swift" (also 0=false=none,
1=true=all).  When set to "s3" or "swift", the actual id lookup
is also partitioned.

Formerly "rgw keystone implicit tenants" was a legacy opt.
This change converts it to the new style of option,
including support for dynamically changing it.

Fixes: http://tracker.ceph.com/issues/24348
Signed-off-by: Marcus Watts <mwatts@redhat.com>
6 years agoMerge pull request #28915 from sebastian-philipp/python-common-package-2
Sebastian Wagner [Tue, 30 Jul 2019 07:31:34 +0000 (09:31 +0200)]
Merge pull request #28915 from sebastian-philipp/python-common-package-2

python-common:  Python common package

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Tim Serong <tserong@suse.com>
6 years agoMerge pull request #27336 from SUSE/wip-orchestrator-deepsea-iscsi-ganesha
Sebastian Wagner [Tue, 30 Jul 2019 07:13:25 +0000 (09:13 +0200)]
Merge pull request #27336 from SUSE/wip-orchestrator-deepsea-iscsi-ganesha

mgr/deepsea: return ganesha and iscsi endpoint URLs

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #29387 from ceph/wip-ceph-volume-tests-no-dashboard
Jan Fajerski [Tue, 30 Jul 2019 06:23:59 +0000 (08:23 +0200)]
Merge pull request #29387 from ceph/wip-ceph-volume-tests-no-dashboard

ceph-volume: when testing disable the dashboard

6 years agoMerge pull request #29347 from smithfarm/wip-40974
Kefu Chai [Tue, 30 Jul 2019 04:46:37 +0000 (12:46 +0800)]
Merge pull request #29347 from smithfarm/wip-40974

rpm: improve ceph-mgr plugin package summaries

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #29346 from smithfarm/wip-40973
Kefu Chai [Tue, 30 Jul 2019 04:44:32 +0000 (12:44 +0800)]
Merge pull request #29346 from smithfarm/wip-40973

rpm: fdupes in SUSE builds to conform with packaging guidelines

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #29367 from tchaikov/wip-doc-crush-rule
Kefu Chai [Tue, 30 Jul 2019 01:28:08 +0000 (09:28 +0800)]
Merge pull request #29367 from tchaikov/wip-doc-crush-rule

doc/rados/operations: crush_rule is a name

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #29368 from tchaikov/wip-40618
Kefu Chai [Tue, 30 Jul 2019 01:27:29 +0000 (09:27 +0800)]
Merge pull request #29368 from tchaikov/wip-40618

qa/tasks/mgr/test_progress.py: s/ev/new_event/

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #28804 into master
Patrick Donnelly [Mon, 29 Jul 2019 21:53:28 +0000 (14:53 -0700)]
Merge PR #28804 into master

* refs/pull/28804/head:
mds: delay exporting directory whose pin value exceeds max rank id

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #29339 into master
Patrick Donnelly [Mon, 29 Jul 2019 21:49:17 +0000 (14:49 -0700)]
Merge PR #29339 into master

* refs/pull/29339/head:
client: don't report any vxattrs to listxattr

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
6 years agoMerge PR #29304 into master
Patrick Donnelly [Mon, 29 Jul 2019 21:47:03 +0000 (14:47 -0700)]
Merge PR #29304 into master

* refs/pull/29304/head:
cephfs: avoid map been inserted by mistake

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #29321 into master
Patrick Donnelly [Mon, 29 Jul 2019 21:45:44 +0000 (14:45 -0700)]
Merge PR #29321 into master

* refs/pull/29321/head:
Client: unlink dentry for inode with llref=0

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoceph-volume: when testing disable the dashboard 29387/head
Andrew Schoen [Mon, 29 Jul 2019 20:25:19 +0000 (15:25 -0500)]
ceph-volume: when testing disable the dashboard

ceph-ansible has started enabling the dashboard by
default as of https://github.com/ceph/ceph-ansible/pull/4268

Disabling the dashboard gets us around needing to run
the grafana_server role which is required for the dashboard
and not needed for ceph-volume functional tests.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge PR #29338 into master
Patrick Donnelly [Mon, 29 Jul 2019 20:10:02 +0000 (13:10 -0700)]
Merge PR #29338 into master

* refs/pull/29338/head:
qa: ignore expected MDS_CLIENT_LATE_RELEASE warning

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #28825 into master
Patrick Donnelly [Mon, 29 Jul 2019 20:08:29 +0000 (13:08 -0700)]
Merge PR #28825 into master

* refs/pull/28825/head:
qa: wait for kernel client death
qa: use hard_reset to reboot kclient

Reviewed-by: David Galloway <dgallowa@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 29374/head
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 29371/head
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 29341/head
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 agoqa/tasks/mgr/test_progress.py: s/ev/new_event/ 29368/head
Kefu Chai [Sun, 28 Jul 2019 11:15:46 +0000 (19:15 +0800)]
qa/tasks/mgr/test_progress.py: s/ev/new_event/

as a follow-up fix for 5604ba4e

Fixes: http://tracker.ceph.com/issues/40618
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agodoc/rados/operations: crush_rule is a name 29367/head
Kefu Chai [Sat, 27 Jul 2019 13:35:37 +0000 (21:35 +0800)]
doc/rados/operations: crush_rule is a name

like
```
ceph osd pool set <pool-name> crush_rule <rule-name>
```
where `<rule-name>` is a string instead of a number.

Signed-off-by: Kefu Chai <kchai@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 agoqa: wait for kernel client death 28825/head
Patrick Donnelly [Thu, 25 Jul 2019 23:01:39 +0000 (16:01 -0700)]
qa: wait for kernel client death

After sending the reboot command, we need to wait briefly for it to be
rebooted so that the kernel client doesn't voluntarily give up its Fb
cap.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoqa: use hard_reset to reboot kclient
Patrick Donnelly [Mon, 1 Jul 2019 18:21:13 +0000 (11:21 -0700)]
qa: use hard_reset to reboot kclient

power_off may allow the mounts to gracefully unmount. We don't want this if the
kclient is stuck or we desire the client to "disappear" and come back.

Fixes: http://tracker.ceph.com/issues/37681
Depends-on: https://github.com/ceph/teuthology/pull/1296
Signed-off-by: Patrick Donnelly <pdonnell@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 agoqa: ignore expected MDS_CLIENT_LATE_RELEASE warning 29338/head
Patrick Donnelly [Thu, 25 Jul 2019 22:16:50 +0000 (15:16 -0700)]
qa: ignore expected MDS_CLIENT_LATE_RELEASE warning

Fixes: http://tracker.ceph.com/issues/40968
Signed-off-by: Patrick Donnelly <pdonnell@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 29361/head
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 29359/head
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 29358/head
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 29324/head
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 29305/head
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 29054/head
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 agorpm: improve ceph-mgr plugin package summaries 29347/head
Nathan Cutler [Fri, 26 Jul 2019 11:01:05 +0000 (13:01 +0200)]
rpm: improve ceph-mgr plugin package summaries

Fixes: http://tracker.ceph.com/issues/40974
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agorpm: fdupes in SUSE builds to conform with packaging guidelines 29346/head
Nathan Cutler [Fri, 26 Jul 2019 10:42:09 +0000 (12:42 +0200)]
rpm: fdupes in SUSE builds to conform with packaging guidelines

Quoting from https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros

"%fdupes is generally safe for use on /bin, /lib*, /usr (= %_prefix) and /sbin.
Do note however that files with same content but different ownership, when
hardlinked, will get the ownership of any of its content siblings."

Fixes: http://tracker.ceph.com/issues/40973
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agoosd: fix wrong arguments when dropping refcount 29348/head
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 agocmake/modules/Distutils: do not add ${name}-clone if already added 28915/head
Kefu Chai [Fri, 26 Jul 2019 07:35:59 +0000 (15:35 +0800)]
cmake/modules/Distutils: do not add ${name}-clone if already added

if `distutils_install_module("foo" ...)` is called mutiple times with
different python version, `foo-clone` will be added multiple times as a
custom target. which is not allowed:

add_custom_target cannot create target "foo-clone" because another
target with the same name already exists.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoceph.spec, debian: Add python-common to ceph-common
Sebastian Wagner [Wed, 10 Jul 2019 12:07:44 +0000 (14:07 +0200)]
ceph.spec, debian: Add python-common to ceph-common

Co-authored-by: Tim Serong <tserong@suse.com>
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoclient: don't report any vxattrs to listxattr 29339/head
Jeff Layton [Thu, 25 Jul 2019 19:54:58 +0000 (15:54 -0400)]
client: don't report any vxattrs to listxattr

The convention with kernel filesystems is to not report vxattrs when
listxattr is called. Doing this can throw a wrench to archiving tools
that will attempt to restore files with xattrs intact, only to find
that some of them can't be stored.

Remove the code that prints out vxattrs in listxattr. With this we
also don't need the "hidden" flag in the vxattr definitions.

Also fix up the existing testcases to account for the change in
behavior.

Fixes: https://tracker.ceph.com/issues/40965
Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agocmake: Add python-common
Sebastian Wagner [Thu, 4 Jul 2019 12:26:08 +0000 (14:26 +0200)]
cmake: Add python-common

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Co-authored-by: Kefu Chai <kchai@redhat.com>
6 years agopython-common: Move Drive Group tests
Sebastian Wagner [Mon, 8 Jul 2019 08:52:33 +0000 (10:52 +0200)]
python-common: Move Drive Group tests

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agovstart: Add python-common
Sebastian Wagner [Thu, 4 Jul 2019 12:03:38 +0000 (14:03 +0200)]
vstart: Add python-common

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agopython-common: Fix imports
Sebastian Wagner [Mon, 8 Jul 2019 08:37:51 +0000 (10:37 +0200)]
python-common: Fix imports

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agopython-common: Reference it in the docs
Sebastian Wagner [Mon, 8 Jul 2019 08:29:58 +0000 (10:29 +0200)]
python-common: Reference it in the docs

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agopython-common: Initialize package structure
Sebastian Wagner [Mon, 8 Jul 2019 08:25:07 +0000 (10:25 +0200)]
python-common: Initialize package structure

This package is supposed to contain common Python code usable by all modules and tools.

It is also supposed to contain code to deploy ceph clutsers.

Signed-off-by: Sebastian Wagner <sebastian.wagner@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>