]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agocrimson: fix crimson pg coll usage error 33076/head
Chunmei Liu [Wed, 5 Feb 2020 00:42:21 +0000 (16:42 -0800)]
crimson: fix crimson pg coll usage error

coll in pg isn't initialized, should use coll_ref->get_cid() insead.

Signed-off-by: Chunmei Liu <chunmei.liu@intel.com>
5 years agoMerge pull request #33066 from gregsfortytwo/wip-specfile
Gregory Farnum [Tue, 4 Feb 2020 22:08:14 +0000 (14:08 -0800)]
Merge pull request #33066 from gregsfortytwo/wip-specfile

rpm: fix up a specfile syntax error

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoMerge pull request #30033 from theanalyst/rgw/public-buckets
Abhishek L [Tue, 4 Feb 2020 18:01:05 +0000 (19:01 +0100)]
Merge pull request #30033 from theanalyst/rgw/public-buckets

rgw: add PublicAccessBlock set of APIs on buckets

Reviewed-By: Casey Bodley <cbodley@redhat.com>
5 years agorpm: fix up a specfile syntax error 33066/head
Greg Farnum [Tue, 4 Feb 2020 17:10:17 +0000 (09:10 -0800)]
rpm: fix up a specfile syntax error

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
5 years agoMerge pull request #33049 from yuvalif/wip-yuval-fix-43768
Casey Bodley [Tue, 4 Feb 2020 16:44:46 +0000 (11:44 -0500)]
Merge pull request #33049 from yuvalif/wip-yuval-fix-43768

qa/rgw/pubsub: fix tests to sync from master

Reviewed-by: Casey Bodley <cbodley@redhat.com>
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 agoMerge pull request #32119 from joke-lee/rgw-sts-crash-duration-invalid
Abhishek L [Tue, 4 Feb 2020 16:24:12 +0000 (17:24 +0100)]
Merge pull request #32119 from joke-lee/rgw-sts-crash-duration-invalid

rgw: fix rgw crash when duration is invalid in sts request

5 years agoMerge pull request #31987 from linuxbox2/rgw-putacls-no-body
Abhishek L [Tue, 4 Feb 2020 16:22:35 +0000 (17:22 +0100)]
Merge pull request #31987 from linuxbox2/rgw-putacls-no-body

rgw: s3: don't require a body in S3 put-object-acl

5 years agoMerge pull request #30684 from theanalyst/rgw/qa/rgw-admin-user-stats
Abhishek L [Tue, 4 Feb 2020 16:21:25 +0000 (17:21 +0100)]
Merge pull request #30684 from theanalyst/rgw/qa/rgw-admin-user-stats

qa: radosgw_admin: validate a simple user stats output

Reviewed-By: Casey Bodley <cbodley@redhat.com>
5 years agoMerge PR #33048 into master
Sage Weil [Tue, 4 Feb 2020 13:08:22 +0000 (07:08 -0600)]
Merge PR #33048 into master

* refs/pull/33048/head:
cephadm: fix error handling in `command_check_host()`
cephadm: increase default retry_max value

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #32995 into master
Sage Weil [Tue, 4 Feb 2020 13:07:01 +0000 (07:07 -0600)]
Merge PR #32995 into master

* refs/pull/32995/head:
cephadm: add group 'disk' to privileged container
cephadm: adopt: disable ceph-volume unit on host
cephadm: refactor privileged arg handling
cephadm: chown block symlink targets
cephadm-adoption-corpus: add stud-mon.tgz
cephadm: adopt: rename leveldb *.ldb -> *.sst
cephadm: adopt: by default, pull first
cephadm: adopt: chown data content

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33020 into master
Sage Weil [Tue, 4 Feb 2020 03:28:40 +0000 (21:28 -0600)]
Merge PR #33020 into master

* refs/pull/33020/head:
osdc/Objecter: inline pool full check
osdc/Objecter: remove duplicated pause check code
osdc/Objecter: only pause if respects_full()
osdc/Objecter: move respects_full() to op_target_t

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #32831 into master
Sage Weil [Tue, 4 Feb 2020 03:28:19 +0000 (21:28 -0600)]
Merge PR #32831 into master

* refs/pull/32831/head:
common, include: drop the copy{_in} from bufferlist entirely.
os/bluestore: switch copy_in() users to bufferlist::iterator.
osdc: switch users of bufferlist::copy{_in} to iterators.
osd: switch users of bufferlist::copy{_in} to iterators.
rgw: switch copy{_in} users to bufferlist::iterator.
ec: switch users of bufferlist::copy{_in} to iterators.
cls/queue: switch users of bufferlist::copy{_in} to iterators.
client: switch users of bufferlist::copy{_in} to iterators.
*: switch trivial users of bufferlist::copy{_in} to iterators.
test/bl: switch copy{_in} users to bufferlist::iterator.
common, include: kill the bl::last_p member.
common: encode for std::list<T> doesn't use bl::copy_in() anymore.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #32531 from zdover23/wip-doc-landing-page-update
Josh Durgin [Mon, 3 Feb 2020 23:50:25 +0000 (15:50 -0800)]
Merge pull request #32531 from zdover23/wip-doc-landing-page-update

doc: Added the crisp getting started guide to index.rst

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agocephadm: add group 'disk' to privileged container 32995/head
Sage Weil [Mon, 3 Feb 2020 22:49:20 +0000 (16:49 -0600)]
cephadm: add group 'disk' to privileged container

This lets the osd read block devs that are group rw disk even after they
drop root privs.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32977 into master
Sage Weil [Mon, 3 Feb 2020 22:28:04 +0000 (16:28 -0600)]
Merge PR #32977 into master

* refs/pull/32977/head:
qa/workunits/cephadm/test_cephadm.sh: add missing monitoring tests
cephadm: simplify Monitoring.components structure
cephadm: add proper tox type for monitoring components

Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
5 years agoMerge PR #33012 into master
Sage Weil [Mon, 3 Feb 2020 22:27:51 +0000 (16:27 -0600)]
Merge PR #33012 into master

* refs/pull/33012/head:
mgr/cephadm: prefix daemon ids with hostname
cephadm: bootstrap: name mgr with $hostname.$random

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agocephadm: adopt: disable ceph-volume unit on host
Sage Weil [Fri, 31 Jan 2020 16:56:18 +0000 (10:56 -0600)]
cephadm: adopt: disable ceph-volume unit on host

This might be a simple or lvm unit.  Disable it so that the host doesn't
try to start this OSD after a reboot.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: refactor privileged arg handling
Sage Weil [Fri, 31 Jan 2020 15:19:13 +0000 (09:19 -0600)]
cephadm: refactor privileged arg handling

Pass a bool if we want a privileged container instead of explicitly
passing --privileged.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: fix error handling in `command_check_host()` 33048/head
Guillaume Abrioux [Mon, 3 Feb 2020 17:34:11 +0000 (18:34 +0100)]
cephadm: fix error handling in `command_check_host()`

`find_program()` raises `ValueError` when the executable hasn't been
found. It means we need to catch `ValueError` exception in
`command_check_host()` and raise `Error` instead of `RuntimeError` since
only `Error` is caught at the end.

Typical failure:

```
INFO:cephadm:/usr/bin/ceph:stderr Error ENOENT: New host mon1 failed check: ['INFO:cephadm:podman|docker (/bin/podman) is present', 'INFO:cephadm:systemctl is present', 'Traceback (most recent call last):', '  File "<stdin>", line 2820, in <module>', '  File "<stdin>", line 2434, in command_check_host', '  File "<stdin>", line 796, in find_program', 'ValueError: lvcreate not found']
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.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 agocephadm: increase default retry_max value
Guillaume Abrioux [Mon, 3 Feb 2020 16:25:06 +0000 (17:25 +0100)]
cephadm: increase default retry_max value

When playing with cephadm, at multiple times, I've reached the max
number of attempt in `is_available()`

Increasing the `retry_max` helps to avoid failure like following:

```
INFO:cephadm:mgr not available, waiting (1/5)...
INFO:cephadm:mgr not available, waiting (2/5)...
INFO:cephadm:mgr not available, waiting (3/5)...
INFO:cephadm:mgr not available, waiting (4/5)...
INFO:cephadm:mgr not available, waiting (5/5)...
ERROR: mgr not available after 5 tries

```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
5 years agoMerge pull request #32155 from yuvalif/wip-yuval-multidelete-notifications
Yuval Lifshitz [Mon, 3 Feb 2020 16:02:06 +0000 (18:02 +0200)]
Merge pull request #32155 from yuvalif/wip-yuval-multidelete-notifications

rgw/pubsub: send notifications from multi-delete op

5 years agomgr/cephadm: prefix daemon ids with hostname 33012/head
Sage Weil [Fri, 31 Jan 2020 14:35:26 +0000 (08:35 -0600)]
mgr/cephadm: prefix daemon ids with hostname

This is friendlier to a human operator since they can immediately see
where an instance is located, as with the legacy scheme, while still
keeping the unique random suffix.  Use a . to separate so that we can
set per-host options.

Signed-off-by: Sage Weil <sage@redhat.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 agoqa/workunits/cephadm/test_cephadm.sh: add missing monitoring tests 32977/head
Michael Fritch [Fri, 31 Jan 2020 15:22:01 +0000 (08:22 -0700)]
qa/workunits/cephadm/test_cephadm.sh: add missing monitoring tests

add tests for node-exporter, prometheus, and grafana

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agocephadm: simplify Monitoring.components structure
Michael Fritch [Fri, 31 Jan 2020 15:14:29 +0000 (08:14 -0700)]
cephadm: simplify Monitoring.components structure

by removing the nested image/metadata dict

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoMore commits to the landing page project. 32531/head
Zac Dover [Mon, 3 Feb 2020 01:21:34 +0000 (11:21 +1000)]
More commits to the landing page project.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
5 years agorgw/pubsub: fix tests to sync from master 33049/head
Yuval Lifshitz [Sun, 2 Feb 2020 19:03:25 +0000 (21:03 +0200)]
rgw/pubsub: fix tests to sync from master

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agocephadm: bootstrap: name mgr with $hostname.$random
Sage Weil [Fri, 31 Jan 2020 14:32:01 +0000 (08:32 -0600)]
cephadm: bootstrap: name mgr with $hostname.$random

Signed-off-by: Sage Weil <sage@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 agocephadm: chown block symlink targets
Sage Weil [Fri, 31 Jan 2020 14:52:25 +0000 (08:52 -0600)]
cephadm: chown block symlink targets

Again, these need to match the container's uid/gid, not the host's.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm-adoption-corpus: add stud-mon.tgz
Sage Weil [Fri, 31 Jan 2020 13:08:42 +0000 (07:08 -0600)]
cephadm-adoption-corpus: add stud-mon.tgz

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: adopt: rename leveldb *.ldb -> *.sst
Sage Weil [Thu, 30 Jan 2020 19:35:12 +0000 (13:35 -0600)]
cephadm: adopt: rename leveldb *.ldb -> *.sst

We may be adopting from ubuntu, which means we need to rename these files.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: adopt: by default, pull first
Sage Weil [Thu, 30 Jan 2020 20:09:37 +0000 (14:09 -0600)]
cephadm: adopt: by default, pull first

This just bit me: I had a months-old container revision locally and ended
up accidentally starting up ancient monitor code.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: adopt: chown data content
Sage Weil [Thu, 30 Jan 2020 19:06:12 +0000 (13:06 -0600)]
cephadm: adopt: chown data content

The ceph uid/gid vary between distros.  Chown everything to match the
target distro.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosdc/Objecter: inline pool full check 33020/head
Sage Weil [Fri, 31 Jan 2020 18:01:19 +0000 (12:01 -0600)]
osdc/Objecter: inline pool full check

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosdc/Objecter: remove duplicated pause check code
Sage Weil [Fri, 31 Jan 2020 17:59:26 +0000 (11:59 -0600)]
osdc/Objecter: remove duplicated pause check code

_calc_target() already pauses and unpauses based on the
target_should_be_paused() helper, and we just called _calc_target at the
top of this method.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosdc/Objecter: only pause if respects_full()
Sage Weil [Fri, 31 Jan 2020 17:55:03 +0000 (11:55 -0600)]
osdc/Objecter: only pause if respects_full()

If the FULL_TRY or _FORCE flag is set on an op, then we should not pause
it due to a full flag.

Fixes: https://tracker.ceph.com/issues/43813
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosdc/Objecter: move respects_full() to op_target_t
Sage Weil [Fri, 31 Jan 2020 17:51:23 +0000 (11:51 -0600)]
osdc/Objecter: move respects_full() to op_target_t

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 agocephadm: add proper tox type for monitoring components
Michael Fritch [Wed, 29 Jan 2020 18:39:05 +0000 (11:39 -0700)]
cephadm: add proper tox type for monitoring components

instead of `type: ignore`

Signed-off-by: Michael Fritch <mfritch@suse.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