]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agodoc: add Pending Release Notes entry on public access config 30033/head
Abhishek Lekshmanan [Tue, 4 Feb 2020 16:28:46 +0000 (17:28 +0100)]
doc: add Pending Release Notes entry on public access config

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: move public access conf to perm_state_base
Abhishek Lekshmanan [Wed, 29 Jan 2020 18:18:24 +0000 (19:18 +0100)]
rgw: move public access conf to perm_state_base

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agotest: rgw_iam_policy update tests with new Get Actions
Abhishek Lekshmanan [Tue, 10 Dec 2019 16:56:45 +0000 (17:56 +0100)]
test: rgw_iam_policy update tests with new Get Actions

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: iam_policy: add all the actions to actpairs map
Abhishek Lekshmanan [Tue, 10 Dec 2019 16:56:22 +0000 (17:56 +0100)]
rgw: iam_policy: add all the actions to actpairs map

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: public access: drop unused function
Abhishek Lekshmanan [Tue, 3 Dec 2019 17:58:29 +0000 (18:58 +0100)]
rgw: public access: drop unused function

Also cleanup the comment to mention why we've deviated from the spec here

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: rename ACL & policy IsPublic to is_public
Abhishek Lekshmanan [Wed, 16 Oct 2019 11:38:10 +0000 (13:38 +0200)]
rgw: rename ACL & policy IsPublic to is_public

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: PublicAccessConfiguration -> PublicAccessBlockConfiguration
Abhishek Lekshmanan [Wed, 16 Oct 2019 11:22:09 +0000 (13:22 +0200)]
rgw: PublicAccessConfiguration -> PublicAccessBlockConfiguration

also drop iam namespace

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw_op: get_public_access_from_attr indent fixes
Abhishek Lekshmanan [Wed, 16 Oct 2019 10:58:08 +0000 (12:58 +0200)]
rgw_op: get_public_access_from_attr indent fixes

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw_rest_s3: use formatter->dump_bool
Abhishek Lekshmanan [Wed, 16 Oct 2019 10:56:14 +0000 (12:56 +0200)]
rgw_rest_s3: use formatter->dump_bool

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agopublic_access: reuse formatter->dump_bool
Abhishek Lekshmanan [Wed, 16 Oct 2019 10:01:56 +0000 (12:01 +0200)]
public_access: reuse formatter->dump_bool

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: Fix IgnorePublicACLs for bucket ACLs
Abhishek Lekshmanan [Tue, 8 Oct 2019 13:18:35 +0000 (15:18 +0200)]
rgw: Fix IgnorePublicACLs for bucket ACLs

Currently Bucket ACLs with IgnorePublicACLs were broken this should fix that

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agodrop redundant bucket policy status in rgw_common
Abhishek Lekshmanan [Wed, 29 Jan 2020 12:06:21 +0000 (13:06 +0100)]
drop redundant bucket policy status in rgw_common

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: implement IgnorePublicACLs
Abhishek Lekshmanan [Wed, 29 Jan 2020 11:56:33 +0000 (12:56 +0100)]
rgw: implement IgnorePublicACLs

This allows for ignoring bucket/object acls that are configured to be public

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: move PublicAccessConfiguration to req_state
Abhishek Lekshmanan [Wed, 2 Oct 2019 09:57:36 +0000 (11:57 +0200)]
rgw: move PublicAccessConfiguration to req_state

This allows for evaluation of more complex use cases where IgnorePublicACLs and
the like are set which need to be evaluated for GET/HEAD requests as well

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: op: Get Policy Status checks if there is a policy first
Abhishek Lekshmanan [Tue, 24 Sep 2019 15:14:52 +0000 (17:14 +0200)]
rgw: op: Get Policy Status checks if there is a policy first

before evaluating its public nature

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw_op: reuse function to get public access conf
Abhishek Lekshmanan [Tue, 24 Sep 2019 14:51:20 +0000 (16:51 +0200)]
rgw_op: reuse function to get public access conf

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: honor PublicAccessBlockConfiguration for put object
Abhishek Lekshmanan [Tue, 24 Sep 2019 14:40:41 +0000 (16:40 +0200)]
rgw: honor PublicAccessBlockConfiguration for put object

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: block public access for Policies
Abhishek Lekshmanan [Tue, 17 Sep 2019 12:07:00 +0000 (14:07 +0200)]
rgw: block public access for Policies

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: enforce BlockPublicPolicy on put bucket policy
Abhishek Lekshmanan [Thu, 12 Sep 2019 12:56:06 +0000 (14:56 +0200)]
rgw: enforce BlockPublicPolicy on put bucket policy

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: public_access: rename the getters to reflect what the conf actually does
Abhishek Lekshmanan [Thu, 12 Sep 2019 12:55:17 +0000 (14:55 +0200)]
rgw: public_access: rename the getters to reflect what the conf actually does

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw_op: use ldpp_dout version wherever logs are required
Abhishek Lekshmanan [Thu, 12 Sep 2019 09:57:34 +0000 (11:57 +0200)]
rgw_op: use ldpp_dout version wherever logs are required

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: move IsPublic to RGWAccessControlPolicy class
Abhishek Lekshmanan [Tue, 10 Sep 2019 13:26:41 +0000 (15:26 +0200)]
rgw: move IsPublic to RGWAccessControlPolicy class

This helps reusing when evaluating for PutACLs and Put Policy

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: implement get/put/delete public access block for buckets
Abhishek Lekshmanan [Wed, 29 Jan 2020 10:29:43 +0000 (11:29 +0100)]
rgw: implement get/put/delete public access block for buckets

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agoadd RGWPublicAccess for configuring public access settings for a resource
Abhishek Lekshmanan [Mon, 2 Sep 2019 11:26:14 +0000 (13:26 +0200)]
add RGWPublicAccess for configuring public access settings for a resource

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: both princ and nonprinc will not coexist in a single statement
Abhishek Lekshmanan [Fri, 30 Aug 2019 09:35:34 +0000 (11:35 +0200)]
rgw: both princ and nonprinc will not coexist in a single statement

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: initial implementation of a public policy tester
Abhishek Lekshmanan [Thu, 29 Aug 2019 18:06:59 +0000 (20:06 +0200)]
rgw: initial implementation of a public policy tester

doesn't cover all the cases involving a nonprinc user yet

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: s3: implement GetBucketPolicyStatus API
Abhishek Lekshmanan [Wed, 29 Jan 2020 10:26:21 +0000 (11:26 +0100)]
rgw: s3: implement GetBucketPolicyStatus API

This API returns whether the Bucket Policies/ACLs are public. There are a couple
of caveats:
- AWS currently returns PolicyNotFound error in case a bucket policy doesn't
exist, though a non existant bucket policy would mean the default ACLs apply
where the bucket is private, so error return here seems like an error
- the API spec mentions TRUE and FALSE as the response IsPublic element value,
however in practice both boto/aws clients and AWS S3 return/expect a lowercase
response.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
Conflicts:
src/rgw/rgw_rest_s3.h
merge conflict after zipper rework, dropped a spurious newline in rgw_rest_s3.h
after get_obj_op decl.
src/rgw/rgw_common.h
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h:
merge conflict after bucket replication merge, trivial conflicts

5 years agorgw: acl: drop unused function & make get_group_perm const
Abhishek Lekshmanan [Tue, 27 Aug 2019 14:13:43 +0000 (16:13 +0200)]
rgw: acl: drop unused function & make get_group_perm const

Drop the unused RGWAccessControlPolicy::get_group_perm, make the ACL
get_group_perm as a const member function

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agoMerge pull request #32859 from liewegas/wip-cephadm-services
Sebastian Wagner [Mon, 3 Feb 2020 13:27:38 +0000 (14:27 +0100)]
Merge pull request #32859 from liewegas/wip-cephadm-services

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #33030 from smithfarm/wip-luminous-12.2.13-release-notes
Abhishek L [Mon, 3 Feb 2020 12:32:50 +0000 (13:32 +0100)]
Merge pull request #33030 from smithfarm/wip-luminous-12.2.13-release-notes

doc: release notes for Luminous v12.2.13

Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
5 years agoMerge pull request #33031 from smithfarm/wip-nautilus-14.2.7-release-notes
Abhishek L [Mon, 3 Feb 2020 12:32:05 +0000 (13:32 +0100)]
Merge pull request #33031 from smithfarm/wip-nautilus-14.2.7-release-notes

doc: release notes for Nautilus 14.2.7

Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
5 years agoMerge pull request #33038 from tchaikov/wip-librados-reinterpret-cast
Kefu Chai [Mon, 3 Feb 2020 11:58:13 +0000 (19:58 +0800)]
Merge pull request #33038 from tchaikov/wip-librados-reinterpret-cast

librados: prefer reinterpret_cast over c-style cast

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
5 years agoMerge pull request #32933 from DimStar77/obs-mini
Kefu Chai [Mon, 3 Feb 2020 11:45:07 +0000 (19:45 +0800)]
Merge pull request #32933 from DimStar77/obs-mini

ceph.spec.in: Use pkgconfig() style BuildRequires for udev/libudev-devel

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #32553 from tspmelo/wip-ts-strict
Lenz Grimmer [Mon, 3 Feb 2020 11:33:33 +0000 (11:33 +0000)]
Merge pull request #32553 from tspmelo/wip-ts-strict

mgr/dashboard: Enable compiler options used by Angular --strict flag

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agolibrados: prefer reinterpret_cast over c-style cast 33038/head
Kefu Chai [Mon, 3 Feb 2020 10:15:30 +0000 (18:15 +0800)]
librados: prefer reinterpret_cast over c-style cast

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33016 from tchaikov/wip-do-cmake
Kefu Chai [Mon, 3 Feb 2020 09:15:16 +0000 (17:15 +0800)]
Merge pull request #33016 from tchaikov/wip-do-cmake

do_cmake.sh: bail out if something goes wrong

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge PR #32570 into master
Patrick Donnelly [Sun, 2 Feb 2020 14:56:50 +0000 (06:56 -0800)]
Merge PR #32570 into master

* refs/pull/32570/head:
cephfs-shell: Add tests for setxattr, getxattr and listxattr
cephfs-shell: Add listxattr command
cephfs-shell: Add getxattr command
cephfs-shell: Add setxattr command
doc: Update about extended attributes

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #31633 into master
Patrick Donnelly [Sun, 2 Feb 2020 14:52:23 +0000 (06:52 -0800)]
Merge PR #31633 into master

* refs/pull/31633/head:
cephfs-shell: Instead of assert use stat for tests in rmdir
cephfs-shell: Add function for common rmdir test code
cephfs-shell: Add rmdir test for non empty directory
cephfs-shell: Add rmdir -p test for non empty directory
cephfs-shell: Add rmdir -p test for non existing dir
cephfs-shell: Add rmdir -p test to delete all dirs in given path
cephfs-shell: Add rmdir -p test for root directory with empty directories
cephfs-shell: Add rmdir test for valid file
cephfs-shell: Add rmdir test for invalid directory
cephfs-shell: Add rmdir test for valid directory
cephfs-shell: Fix rmdir '-p' issues

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #32986 into master
Sage Weil [Sat, 1 Feb 2020 16:47:56 +0000 (10:47 -0600)]
Merge PR #32986 into master

* refs/pull/32986/head:
qa/tasks/ceph_manager: fix movement of cot exports with cephadm

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agodoc: release notes for Nautilus 14.2.7 33031/head
Nathan Cutler [Sat, 1 Feb 2020 11:12:56 +0000 (12:12 +0100)]
doc: release notes for Nautilus 14.2.7

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agodoc: release notes for Luminous v12.2.13 33030/head
Nathan Cutler [Sat, 1 Feb 2020 10:54:38 +0000 (11:54 +0100)]
doc: release notes for Luminous v12.2.13

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #32030 from vshankar/wip-mgr-volumes-clone
Ramana Raja [Sat, 1 Feb 2020 07:47:51 +0000 (13:17 +0530)]
Merge pull request #32030 from vshankar/wip-mgr-volumes-clone

mgr/volumes: clone from snapshot

5 years agoMerge PR #33014 into master
Sage Weil [Sat, 1 Feb 2020 05:28:44 +0000 (23:28 -0600)]
Merge PR #33014 into master

* refs/pull/33014/head:
mgr/dashboard: pass a list of drive_group to create_osds

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #32973 into master
Sage Weil [Sat, 1 Feb 2020 03:26:46 +0000 (21:26 -0600)]
Merge PR #32973 into master

* refs/pull/32973/head:
mgr/insights: make 'insights prune-health-history 0' zap current state

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge PR #32987 into master
Sage Weil [Fri, 31 Jan 2020 23:40:23 +0000 (17:40 -0600)]
Merge PR #32987 into master

* refs/pull/32987/head:
qa/tasks/ceph_manager: make fix_pgp_num behave when no pool is found

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #32989 into master
Sage Weil [Fri, 31 Jan 2020 23:40:13 +0000 (17:40 -0600)]
Merge PR #32989 into master

* refs/pull/32989/head:
qa/tasks/ceph_manager: add --log-early to raw_cluster_cmd

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #32830 into master
Sage Weil [Fri, 31 Jan 2020 23:31:44 +0000 (17:31 -0600)]
Merge PR #32830 into master

* refs/pull/32830/head:
global: ensure CEPH_ARGS is decoded before early arg processing

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32806 into master
Sage Weil [Fri, 31 Jan 2020 23:31:31 +0000 (17:31 -0600)]
Merge PR #32806 into master

* refs/pull/32806/head:
common/bl: fix accessibility of bptr's _off and _len fields.
common/bl: drop get_raw() from the public buffer::ptr interface.
common: drop sharing of buffer::raw outside bufferlist.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/ceph_manager: fix movement of cot exports with cephadm 32986/head
Sage Weil [Thu, 30 Jan 2020 13:39:32 +0000 (07:39 -0600)]
qa/tasks/ceph_manager: fix movement of cot exports with cephadm

I think this will finally work...

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33017 from linuxbox2/wip-rgw-beastc
Matt Benjamin [Fri, 31 Jan 2020 16:55:35 +0000 (11:55 -0500)]
Merge pull request #33017 from linuxbox2/wip-rgw-beastc

rgw: improve beast

5 years agoMerge pull request #33010 from tchaikov/wip-cmd-getval
Kefu Chai [Fri, 31 Jan 2020 16:26:39 +0000 (00:26 +0800)]
Merge pull request #33010 from tchaikov/wip-cmd-getval

src/: drop cct from cmd_getval()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agodo_cmake.sh: bail out if something goes wrong 33016/head
Kefu Chai [Fri, 31 Jan 2020 16:13:32 +0000 (00:13 +0800)]
do_cmake.sh: bail out if something goes wrong

so we can be aware if some updated submodule reference is missing in our
repo

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/dashboard: pass a list of drive_group to create_osds 33014/head
Kefu Chai [Fri, 31 Jan 2020 15:42:49 +0000 (23:42 +0800)]
mgr/dashboard: pass a list of drive_group to create_osds

as orchestrator backends expect a list of drive_groups.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/dashboard: Unable to remove an iSCSI gateway that is alrea… (#32984)
Lenz Grimmer [Fri, 31 Jan 2020 15:52:51 +0000 (15:52 +0000)]
mgr/dashboard: Unable to remove an iSCSI gateway that is alrea… (#32984)

mgr/dashboard: Unable to remove an iSCSI gateway that is already in use

Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agomgr/dashboard: Add Modified filter to Configuration table (#32923)
Lenz Grimmer [Fri, 31 Jan 2020 15:50:15 +0000 (15:50 +0000)]
mgr/dashboard: Add Modified filter to Configuration table (#32923)

mgr/dashboard: Add Modified filter to Configuration table

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
5 years agorgw: improve beast 33017/head
Or Friedmann [Wed, 15 Jan 2020 19:15:53 +0000 (21:15 +0200)]
rgw: improve beast

Avoid leaking connections that had partially-consumed
client data on unexpected disconnect.

Resolves CVE-2020-1700 (moderate impact flaw).

Fixes: https://tracker.ceph.com/issues/42531
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
5 years agoMerge branch 'octopus'
Sage Weil [Fri, 31 Jan 2020 14:55:49 +0000 (08:55 -0600)]
Merge branch 'octopus'

5 years agomgr/dashboard: Enable noImplicitAny TS compiler option 32553/head
Tiago Melo [Mon, 30 Dec 2019 13:13:59 +0000 (12:13 -0100)]
mgr/dashboard: Enable noImplicitAny TS compiler option

Fixes: https://tracker.ceph.com/issues/43525
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agomgr/dashboard: Enable noImplicitReturns TS compiler option
Tiago Melo [Fri, 20 Dec 2019 12:15:34 +0000 (11:15 -0100)]
mgr/dashboard: Enable noImplicitReturns TS compiler option

Fixes: https://tracker.ceph.com/issues/43525
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agomgr/dashboard: Enable noImplicitThis TS compiler option
Tiago Melo [Fri, 20 Dec 2019 01:20:11 +0000 (00:20 -0100)]
mgr/dashboard: Enable noImplicitThis TS compiler option

Fixes: https://tracker.ceph.com/issues/43525
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agomgr/dashboard: Enable noFallthroughCasesInSwitch TS compiler option
Tiago Melo [Thu, 19 Dec 2019 11:31:47 +0000 (10:31 -0100)]
mgr/dashboard: Enable noFallthroughCasesInSwitch TS compiler option

Fixes: https://tracker.ceph.com/issues/43525
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agomgr/dashboard: Move TS compile rules into tsconfig.json
Tiago Melo [Thu, 19 Dec 2019 01:47:39 +0000 (00:47 -0100)]
mgr/dashboard: Move TS compile rules into tsconfig.json

Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #32999 from liewegas/fix-found
Mike Perez [Fri, 31 Jan 2020 13:27:48 +0000 (05:27 -0800)]
Merge pull request #32999 from liewegas/fix-found

doc/foundation: fix amihan

5 years agomgr/cephadm: Don't duplicate cache entries in _create_daemon 32859/head
Sebastian Wagner [Fri, 31 Jan 2020 10:59:10 +0000 (11:59 +0100)]
mgr/cephadm: Don't duplicate cache entries in _create_daemon

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: test_cephadm: always set cluster fsid
Sebastian Wagner [Fri, 31 Jan 2020 10:47:55 +0000 (11:47 +0100)]
mgr/cephadm: test_cephadm: always set cluster fsid

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: less noisy pytest failue messages
Sebastian Wagner [Fri, 31 Jan 2020 10:31:14 +0000 (11:31 +0100)]
mgr/cephadm: less noisy pytest failue messages

Let's hide the `import pydevd` exception, as it doesn't provide any useful info

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agosrc/: drop cct from cmd_getval() 33010/head
Kefu Chai [Fri, 31 Jan 2020 10:59:39 +0000 (18:59 +0800)]
src/: drop cct from cmd_getval()

it's not used.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc: add mgr/volumes clone commands 32030/head
Venky Shankar [Fri, 24 Jan 2020 06:31:19 +0000 (12:01 +0530)]
doc: add mgr/volumes clone commands

Fixes: http://tracker.ceph.com/issues/24880
Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agotest: add subvolume clone tests
Venky Shankar [Mon, 2 Dec 2019 08:50:23 +0000 (03:50 -0500)]
test: add subvolume clone tests

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agomgr/volumes: allow force removal of incomplete failed clones
Venky Shankar [Wed, 15 Jan 2020 03:52:52 +0000 (22:52 -0500)]
mgr/volumes: allow force removal of incomplete failed clones

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agomgr/volumes: asynchronous cloner module
Venky Shankar [Wed, 4 Dec 2019 05:23:48 +0000 (00:23 -0500)]
mgr/volumes: asynchronous cloner module

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agomgr/volumes: purge thread uses new async interface
Venky Shankar [Wed, 4 Dec 2019 04:49:12 +0000 (23:49 -0500)]
mgr/volumes: purge thread uses new async interface

This also makes `_cancel_jobs()` thread safe, which was not the
case earlier (with `_cancel_purge_job()`) -- this also makes the
code simpler by sharing the lock betweent two condition variables.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agomgr/volumes: fetch oldest clone entry
Venky Shankar [Tue, 3 Dec 2019 06:47:20 +0000 (01:47 -0500)]
mgr/volumes: fetch oldest clone entry

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agomgr/volumes: add clone specific commands
Venky Shankar [Mon, 2 Dec 2019 08:11:45 +0000 (03:11 -0500)]
mgr/volumes: add clone specific commands

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agomgr/volumes: interface for fetching cloned subvolume status
Venky Shankar [Mon, 2 Dec 2019 08:10:36 +0000 (03:10 -0500)]
mgr/volumes: interface for fetching cloned subvolume status

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agomgr/volumes: add protect/unprotect and snap clone interface
Venky Shankar [Mon, 2 Dec 2019 08:08:45 +0000 (03:08 -0500)]
mgr/volumes: add protect/unprotect and snap clone interface

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agomgr/volumes: handle transient subvolume states
Venky Shankar [Mon, 2 Dec 2019 08:00:30 +0000 (03:00 -0500)]
mgr/volumes: handle transient subvolume states

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agomgr/volumes: interface for creating a cloned subvolume
Venky Shankar [Mon, 2 Dec 2019 07:56:48 +0000 (02:56 -0500)]
mgr/volumes: interface for creating a cloned subvolume

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agomgr/volumes: get/set property for subvolume mode/uid/gid
Venky Shankar [Thu, 16 Jan 2020 12:07:08 +0000 (07:07 -0500)]
mgr/volumes: get/set property for subvolume mode/uid/gid

This will be required when creating a clone as the clone would
inherit source subvolumes creation mode and uid/gid.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agomgr/volumes: module to track pending clone operations
Venky Shankar [Mon, 2 Dec 2019 06:56:25 +0000 (01:56 -0500)]
mgr/volumes: module to track pending clone operations

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agomgr/volumes: add operation state machine table
Venky Shankar [Mon, 2 Dec 2019 06:27:55 +0000 (01:27 -0500)]
mgr/volumes: add operation state machine table

... and fetch creation state from state machine table.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agoMerge pull request #33001 from tchaikov/wip-drop-dpdk-submodule
Kefu Chai [Fri, 31 Jan 2020 08:16:39 +0000 (16:16 +0800)]
Merge pull request #33001 from tchaikov/wip-drop-dpdk-submodule

dpdk: drop dpdk submodule

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #32814 from mty22/au_ceph_branch_correct_docs
Kefu Chai [Fri, 31 Jan 2020 07:22:40 +0000 (15:22 +0800)]
Merge pull request #32814 from mty22/au_ceph_branch_correct_docs

docs: Update au.ceph.com maintainers, update README.md.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agodpdk: drop dpdk submodule 33001/head
Kefu Chai [Mon, 7 May 2018 14:31:51 +0000 (22:31 +0800)]
dpdk: drop dpdk submodule

we are using spdk/dpdk for async msgr's dpdk backend since 01a9f178. so
no need to keep dpdk submodule anymore.

Fixes: http://tracker.ceph.com/issues/24032
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #32947 into master
Sage Weil [Fri, 31 Jan 2020 03:57:04 +0000 (21:57 -0600)]
Merge PR #32947 into master

* refs/pull/32947/head:
OSD: Allow 64-char hostname to be added as the "host" in CRUSH

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #32974 into master
Sage Weil [Fri, 31 Jan 2020 03:56:53 +0000 (21:56 -0600)]
Merge PR #32974 into master

* refs/pull/32974/head:
mon: dump json from 'sessions' asok/tell command

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #32976 into master
Sage Weil [Fri, 31 Jan 2020 03:56:43 +0000 (21:56 -0600)]
Merge PR #32976 into master

* refs/pull/32976/head:
cls_hello: fix typo

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #32981 into master
Sage Weil [Fri, 31 Jan 2020 03:56:18 +0000 (21:56 -0600)]
Merge PR #32981 into master

* refs/pull/32981/head:
mon: elector: return after triggering a new election

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #32988 into master
Sage Weil [Fri, 31 Jan 2020 03:56:05 +0000 (21:56 -0600)]
Merge PR #32988 into master

* refs/pull/32988/head:
qa/tasks/ceph: only re-request scrub on unscrubbed pgs

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agodoc/foundation: fix amihan 32999/head
Sage Weil [Thu, 30 Jan 2020 23:02:43 +0000 (17:02 -0600)]
doc/foundation: fix amihan

I misunderstood the status of their foundation membership.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #32992 from ceph/wip-revert-dpdk
David Galloway [Thu, 30 Jan 2020 19:20:29 +0000 (14:20 -0500)]
Merge pull request #32992 from ceph/wip-revert-dpdk

Revert "dpdk: drop dpdk submodule"

5 years agoRevert "dpdk: drop dpdk submodule" 32992/head
David Galloway [Thu, 30 Jan 2020 18:41:28 +0000 (13:41 -0500)]
Revert "dpdk: drop dpdk submodule"

This reverts commit cb8087dfac31b8490fefdfca28d389b7b9901ef8.

The seastar submodule's .gitmodules links to `../dpdk` which is no longer present after removing dpdk from ceph.git's .gitmodules.

```
<dwfreed> the ceph/seastar repo uses awful URLs for the submodules
<dwfreed> and those awful URLs are the real reason it's failing
<dwfreed> dgalloway: ^^^
<dwfreed> seastar's .gitmodules references repos in the parent directory, so that when it's checked out as a submodule of ceph, you don't download the repos twice (and git will probably also use references instead of duplicating the local .git); however, ceph doesn't have a submodule for dpdk anymore
<dwfreed> so seastar's referencing a dpdk repo that doesn't exist
<dgalloway> i think i follow.  so you're suggesting revert https://github.com/ceph/ceph/commit/cb8087dfac31b8490fefdfca28d389b7b9901ef8 ?
<dwfreed> yep
<dwfreed> that'd be one way to fix it
...
<joshd> dgalloway: I'd suggest revert for now, and let the crimson folks figure out the longer term fix when they're back
```

Signed-off-by: David Galloway <dgallowa@redhat.com>
5 years agomgr/insights: make 'insights prune-health-history 0' zap current state 32973/head
Sage Weil [Thu, 30 Jan 2020 17:40:48 +0000 (11:40 -0600)]
mgr/insights: make 'insights prune-health-history 0' zap current state

The self._health_slot value needs to be updated too if the current key
is removed.

Fixes: https://tracker.ceph.com/issues/43886
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: fix style of placeholder * services entry
Sage Weil [Mon, 27 Jan 2020 14:59:40 +0000 (08:59 -0600)]
mgr/cephadm: fix style of placeholder * services entry

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: prime cached service state with newly created services
Sage Weil [Mon, 27 Jan 2020 14:59:24 +0000 (08:59 -0600)]
mgr/cephadm: prime cached service state with newly created services

If we create a service, add the expected state to our cache, so that it
immediately appears in the get_services result.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: by default, return current service state
Sage Weil [Sat, 25 Jan 2020 16:40:08 +0000 (10:40 -0600)]
mgr/cephadm: by default, return current service state

In the normal case, return whatever state we currently have.

In the serve loop, refresh if the state is old.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32958 into master
Sage Weil [Thu, 30 Jan 2020 17:01:24 +0000 (11:01 -0600)]
Merge PR #32958 into master

* refs/pull/32958/head:
qa/suites/rados/singleton/all/lost-unfound*: whitelist SLOW_OPS

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #32789 into master
Sage Weil [Thu, 30 Jan 2020 16:42:45 +0000 (10:42 -0600)]
Merge PR #32789 into master

* refs/pull/32789/head:
test: fix unused assert's variable in ceph_test_osd_stale_read.cc

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #32961 into master
Sage Weil [Thu, 30 Jan 2020 16:42:17 +0000 (10:42 -0600)]
Merge PR #32961 into master

* refs/pull/32961/head:
qa/standalone/osd/osd-bench: debug bluestore

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #32968 into master
Sage Weil [Thu, 30 Jan 2020 16:42:05 +0000 (10:42 -0600)]
Merge PR #32968 into master

* refs/pull/32968/head:
qa/suites/rados/verify: debug monc = 20

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