]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agoqa/suites/rados/cephadm[-smoke]: test podman on ubuntu 18.04 33111/head
Sage Weil [Thu, 6 Feb 2020 14:54:06 +0000 (08:54 -0600)]
qa/suites/rados/cephadm[-smoke]: test podman on ubuntu 18.04

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32946 into master
Sage Weil [Wed, 5 Feb 2020 22:47:21 +0000 (16:47 -0600)]
Merge PR #32946 into master

* refs/pull/32946/head:
qa/suites/rados: improve valgrind leak check
common/ceph_context: add an asok command to deliberately leak memory

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #33055 into master
Sage Weil [Wed, 5 Feb 2020 22:09:12 +0000 (16:09 -0600)]
Merge PR #33055 into master

* refs/pull/33055/head:
qa/tasks/mgr/test_orchestrator_cli: support multiple DriveGroups

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #33056 into master
Sage Weil [Wed, 5 Feb 2020 22:08:40 +0000 (16:08 -0600)]
Merge PR #33056 into master

* refs/pull/33056/head:
common: fix clang compile errors from cython_modules

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #33058 into master
Sage Weil [Wed, 5 Feb 2020 22:07:43 +0000 (16:07 -0600)]
Merge PR #33058 into master

* refs/pull/33058/head:
mgr/cephadm: enforce that a host is a valid DNS name
mgr/cephadm: verify host's hostname matches our host name
cephadm: check-host: add optional --expect-hostname

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge PR #33069 into master
Sage Weil [Wed, 5 Feb 2020 22:07:28 +0000 (16:07 -0600)]
Merge PR #33069 into master

* refs/pull/33069/head:
cephadm: use appropriate default image for non-ceph components

Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33039 into master
Sage Weil [Wed, 5 Feb 2020 18:55:53 +0000 (12:55 -0600)]
Merge PR #33039 into master

* refs/pull/33039/head:
osd/OSD: prevent down osds from immediately rejoining the culster
osd/OSD: trim osd_markdown_log in tick() thread

Reviewed-by: yanjun <yan.jun8@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: enforce that a host is a valid DNS name 33058/head
Sage Weil [Wed, 5 Feb 2020 17:19:59 +0000 (11:19 -0600)]
mgr/cephadm: enforce that a host is a valid DNS name

This combines the hostname restrictions

 * 1-63 chars
 * a-z, A-Z, 0-9, -

and the DNS name restrictions

 * .-delimited
 * no empty components (or leading or trailing .)
 * 250 chars total max

Note that this allows bare IPv4 addresses (which are indistinguishable from
a valid DNS name, AFAICS), but disallows bare IPv6 addresses.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33085 from rzarzynski/wip-client-bl_iter_advance
Kefu Chai [Wed, 5 Feb 2020 16:26:12 +0000 (00:26 +0800)]
Merge pull request #33085 from rzarzynski/wip-client-bl_iter_advance

client: fix FTBFS due to bl::iterator::advance().

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoclient: fix FTBFS due to bl::iterator::advance(). 33085/head
Radoslaw Zarzynski [Wed, 5 Feb 2020 16:08:34 +0000 (17:08 +0100)]
client: fix FTBFS due to bl::iterator::advance().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #33026 from liewegas/wip-el81
Kefu Chai [Wed, 5 Feb 2020 15:44:15 +0000 (23:44 +0800)]
Merge pull request #33026 from liewegas/wip-el81

qa/distros: add rhel/centos 8.1

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #32996 from cbodley/wip-rgw-put-multipart-stripe
Casey Bodley [Wed, 5 Feb 2020 13:42:50 +0000 (08:42 -0500)]
Merge pull request #32996 from cbodley/wip-rgw-put-multipart-stripe

rgw: MultipartObjectProcessor supports stripe size > chunk size

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
5 years agoMerge pull request #32811 from multi-arch/master
Casey Bodley [Wed, 5 Feb 2020 13:40:08 +0000 (08:40 -0500)]
Merge pull request #32811 from multi-arch/master

test/rgw: fix test_rgw_reshard_wait with -DHAVE_BOOST_CONTEXT=OFF

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge PR #33051 into master
Sage Weil [Wed, 5 Feb 2020 13:36:01 +0000 (07:36 -0600)]
Merge PR #33051 into master

* refs/pull/33051/head:
mgr/telemetry: check get_metadata return val

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33018 from mgfritch/cephadm-docker-disabled
Kefu Chai [Wed, 5 Feb 2020 12:46:16 +0000 (20:46 +0800)]
Merge pull request #33018 from mgfritch/cephadm-docker-disabled

qa/workunits/cephadm/test_cephadm.sh: skip docker when service is disabled

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #32982 from krig/cephadm-fixes
Kefu Chai [Wed, 5 Feb 2020 12:44:58 +0000 (20:44 +0800)]
Merge pull request #32982 from krig/cephadm-fixes

cephadm: Read ceph version from io.ceph.version label if set

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33025 from neha-ojha/wip-no-mgr
Kefu Chai [Wed, 5 Feb 2020 12:36:12 +0000 (20:36 +0800)]
Merge pull request #33025 from neha-ojha/wip-no-mgr

mon/MgrMonitor.cc: warn about missing mgr in a cluster with osds

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33077 from guits/guits-cv_fix_listing
Jan Fajerski [Wed, 5 Feb 2020 12:29:43 +0000 (13:29 +0100)]
Merge pull request #33077 from guits/guits-cv_fix_listing

ceph-volume: fix lvm list

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
5 years agoMerge pull request #33004 from matthewoliver/argparge_matchcnt_kwargs
Kefu Chai [Wed, 5 Feb 2020 12:29:35 +0000 (20:29 +0800)]
Merge pull request #33004 from matthewoliver/argparge_matchcnt_kwargs

ceph_argparse: increment matchcnt on kwargs

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33074 from guits/guits-cv_quick_fix
Jan Fajerski [Wed, 5 Feb 2020 12:29:03 +0000 (13:29 +0100)]
Merge pull request #33074 from guits/guits-cv_quick_fix

ceph-volume: fix has_bluestore_label() function

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
5 years agoMerge pull request #33015 from rouming/double-unlock-p1-fix
Kefu Chai [Wed, 5 Feb 2020 12:18:56 +0000 (20:18 +0800)]
Merge pull request #33015 from rouming/double-unlock-p1-fix

msg/async: open() should be called with connection locked

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
5 years agoMerge pull request #33029 from yaarith/wip-telemetry-show-device
Kefu Chai [Wed, 5 Feb 2020 12:11:39 +0000 (20:11 +0800)]
Merge pull request #33029 from yaarith/wip-telemetry-show-device

mgr/telemetry: anonymizing smartctl report itself

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33003 from tchaikov/wip-buffer-list-advance
Kefu Chai [Wed, 5 Feb 2020 12:10:42 +0000 (20:10 +0800)]
Merge pull request #33003 from tchaikov/wip-buffer-list-advance

include/buffer: add operator+=() for list::iterator

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #33034 from rzarzynski/wip-include-ceph_atomic_in_mempool
Kefu Chai [Wed, 5 Feb 2020 12:00:46 +0000 (20:00 +0800)]
Merge pull request #33034 from rzarzynski/wip-include-ceph_atomic_in_mempool

include: switch mempool.h to ceph::atomic.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoceph-volume: remove stderr in has_bluestore_label() 33074/head
Guillaume Abrioux [Wed, 5 Feb 2020 01:15:17 +0000 (02:15 +0100)]
ceph-volume: remove stderr in has_bluestore_label()

We don't want to generate this log when a call to
`has_bluestore_label()` fails.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
5 years agoceph-volume: fix has_bluestore_label() function
Guillaume Abrioux [Tue, 4 Feb 2020 21:02:26 +0000 (22:02 +0100)]
ceph-volume: fix has_bluestore_label() function

When using vg/lv, this function throws an error like following:

```
 stderr: unable to read label for test_group/data-lv2: (2) No such file or directory
 stderr: 2020-02-04T21:03:32.153+0000 7fe091af4200 -1 bluestore(test_group/data-lv2) _read_bdev_label failed to open test_group/data-lv2: (2) No such file or directory
```

using `self.abspath` fixes this error.

Fixes: https://tracker.ceph.com/issues/43970
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
5 years agoceph-volume: fix lvm list 33077/head
Guillaume Abrioux [Wed, 5 Feb 2020 01:29:14 +0000 (02:29 +0100)]
ceph-volume: fix lvm list

17957d9beb42a04b8f180ccb7ba07d43179a41d3 introduced a regression in `lvm
list`.

When passing a vg/lv path for generating a single report, it fails
because the filter used in the `lvs` command isn't right. It uses the lv
name instead of the vg name because `os.path.basename(device)` is used
while it should be `os.path.dirname(device)`

Fixes: https://tracker.ceph.com/issues/43969
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
5 years agoMerge pull request #33076 from liu-chunmei/fix_crimson_pg_coll
Kefu Chai [Wed, 5 Feb 2020 04:50:25 +0000 (12:50 +0800)]
Merge pull request #33076 from liu-chunmei/fix_crimson_pg_coll

crimson: fix crimson pg coll usage error

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33057 from wjwithagen/wjw-fix-buffer.copy
Kefu Chai [Wed, 5 Feb 2020 03:15:37 +0000 (11:15 +0800)]
Merge pull request #33057 from wjwithagen/wjw-fix-buffer.copy

rbd-ggate: fix fallout from bufferlist.copy() change

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
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 agocephadm: use appropriate default image for non-ceph components 33069/head
Sage Weil [Tue, 4 Feb 2020 16:27:58 +0000 (10:27 -0600)]
cephadm: use appropriate default image for non-ceph components

Signed-off-by: Sage Weil <sage@redhat.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 agomgr/cephadm: verify host's hostname matches our host name
Sage Weil [Tue, 4 Feb 2020 13:23:13 +0000 (07:23 -0600)]
mgr/cephadm: verify host's hostname matches our host name

This ensures that we have a consistent view between the hosts that cephadm
is using and the hostname being reported as metadata by the ceph daemons.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: check-host: add optional --expect-hostname
Sage Weil [Tue, 4 Feb 2020 13:17:30 +0000 (07:17 -0600)]
cephadm: check-host: add optional --expect-hostname

Signed-off-by: Sage Weil <sage@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 agorbd-ggate: fix fallout from bufferlist.copy() change 33057/head
Willem Jan Withagen [Tue, 4 Feb 2020 11:19:43 +0000 (12:19 +0100)]
rbd-ggate: fix fallout from bufferlist.copy() change

fixes: #3281
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
5 years agocommon: fix clang compile errors from cython_modules 33056/head
Mark Kogan [Tue, 4 Feb 2020 10:30:55 +0000 (12:30 +0200)]
common: fix clang compile errors from cython_modules

Signed-off-by: Mark Kogan <mkogan@redhat.com>
5 years agoqa/tasks/mgr/test_orchestrator_cli: support multiple DriveGroups 33055/head
Kiefer Chang [Tue, 4 Feb 2020 06:27:17 +0000 (14:27 +0800)]
qa/tasks/mgr/test_orchestrator_cli: support multiple DriveGroups

create_osds interface in Orchestrator supports multiple named DriveGroups
since https://github.com/ceph/ceph/pull/32972. Adapt the changes in
the test.

Fixes: https://tracker.ceph.com/issues/43945
Signed-off-by: Kiefer Chang <kiefer.chang@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 agoceph_argparse: increment matchcnt on kwargs 33004/head
Matthew Oliver [Tue, 4 Feb 2020 02:29:48 +0000 (13:29 +1100)]
ceph_argparse: increment matchcnt on kwargs

Currently when you pass a param in on the ceph cli as a kwarg
(--<param_name>) the matchcnt isn't incremented in the validate method
which is used to choose the right command signature.

This means currently things fail like:

  ceph orchestrator rgw rm --realm_name=default --zone_name=default
  no valid command found; 1 closest matches:
  orchestrator rgw rm <realm_name> <zone_name>
  Error EINVAL: invalid command

The '--realm_name' and '--zone_name' isn't counted to the matchcnt, so
'orchestrator rgw rm' isn't picked as the valid command.

This patch simply corrects this by incrementing matchcnt on the kwarg
validate path before calling shortcircuiting the loop.

Fixes: https://tracker.ceph.com/issues/43803
Signed-off-by: Matthew Oliver <moliver@suse.com>
5 years agomgr/telemetry: check get_metadata return val 33051/head
Yaarit Hatuka [Mon, 3 Feb 2020 19:19:39 +0000 (14:19 -0500)]
mgr/telemetry: check get_metadata return val

get_metada() returns 'None' when requesting a missing service, hence
trying to access its content fails. Added a check for osd and mgr
get_metadata() calls.

Fixes: https://tracker.ceph.com/issues/43642
Signed-off-by: Yaarit Hatuka <yaarit@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 agoqa/suites/rados: improve valgrind leak check 32946/head
Sage Weil [Wed, 29 Jan 2020 00:15:35 +0000 (18:15 -0600)]
qa/suites/rados: improve valgrind leak check

Verify we can detect leak in the osd, mon, and mgr independently.  Also
include a negative test (no leaks).

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocommon/ceph_context: add an asok command to deliberately leak memory
Sage Weil [Wed, 29 Jan 2020 00:15:52 +0000 (18:15 -0600)]
common/ceph_context: add an asok command to deliberately leak memory

Signed-off-by: Sage Weil <sage@redhat.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 agoqa/rgw: test with non-default rgw-obj-stripe-size 32996/head
Casey Bodley [Thu, 30 Jan 2020 20:17:30 +0000 (15:17 -0500)]
qa/rgw: test with non-default rgw-obj-stripe-size

each job will select one of the striping strategies at random

Signed-off-by: Casey Bodley <cbodley@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 agoosd/OSD: prevent down osds from immediately rejoining the culster 33039/head
xie xingguo [Mon, 3 Feb 2020 13:04:05 +0000 (21:04 +0800)]
osd/OSD: prevent down osds from immediately rejoining the culster

In 114c65fc I posted a work-around to fix a heartbeat brain-split case
but it really looks to me now like I am missing some other cases where
an immediate attempt to rejoin is bad, like when the network actually
isn't working properly rather than being predictably manipulated by an
admin.
This patch instead slows the unconditionally rejoining attempt down,
especially make sure that we don't try to immediately rejoin the culster
when an osd has just been marked down by mon.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
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 agoosd/OSD: trim osd_markdown_log in tick() thread
xie xingguo [Mon, 3 Feb 2020 12:09:37 +0000 (20:09 +0800)]
osd/OSD: trim osd_markdown_log in tick() thread

so we don't have to do it in multiple places. Note that
we can't do it in the tick_without_osd_lock thread instead
because we we can not access it safely without the protection
of osd_lock.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
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>