]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
ceph-ci.git
6 years agoMerge pull request #27993 from liuchang0812/rgw-bucket-tagging
Casey Bodley [Tue, 4 Jun 2019 11:53:43 +0000 (07:53 -0400)]
Merge pull request #27993 from liuchang0812/rgw-bucket-tagging

rgw: bucket tagging

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: cleanup bucket tags code
Chang Liu [Fri, 17 May 2019 02:53:32 +0000 (10:53 +0800)]
rgw: cleanup bucket tags code

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agorgw: show bucket tagging when user stats bucket
Chang Liu [Tue, 14 May 2019 14:11:40 +0000 (22:11 +0800)]
rgw: show bucket tagging when user stats bucket

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agoMerge pull request #28362 from cyx1231st/wip-seastar-fix-random-failure
Kefu Chai [Tue, 4 Jun 2019 02:57:12 +0000 (10:57 +0800)]
Merge pull request #28362 from cyx1231st/wip-seastar-fix-random-failure

test/crimson: fix msgr test of ref counter racing

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agotest/crimson: fix msgr test of ref counter racing
Yingxin Cheng [Mon, 3 Jun 2019 13:15:42 +0000 (21:15 +0800)]
test/crimson: fix msgr test of ref counter racing

Foreign-dispatch in crimson-messenger is not implemented yet, and no
need to test this feature now.

Fixes: http://tracker.ceph.com/issues/36405
Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agorgw: simplify RGWObjTags dump
Chang Liu [Tue, 14 May 2019 14:11:05 +0000 (22:11 +0800)]
rgw: simplify RGWObjTags dump

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agodoc: bucket tagging is supported now
Chang Liu [Wed, 8 May 2019 13:30:39 +0000 (21:30 +0800)]
doc: bucket tagging is supported now

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agorgw: forwards to master and uses gw_bucket_set_attrs
Chang Liu [Wed, 8 May 2019 13:24:43 +0000 (21:24 +0800)]
rgw: forwards to master and uses gw_bucket_set_attrs

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agorgw: make max number of bucket/object tags configurble
Chang Liu [Wed, 8 May 2019 09:16:03 +0000 (17:16 +0800)]
rgw: make max number of bucket/object tags configurble

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agorgw: iam policy about bucket tagging
Chang Liu [Wed, 8 May 2019 04:07:51 +0000 (12:07 +0800)]
rgw: iam policy about bucket tagging

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agorgw: impl put_bucket_tags and delete_bucket_tags
Chang Liu [Tue, 7 May 2019 07:52:17 +0000 (15:52 +0800)]
rgw: impl put_bucket_tags and delete_bucket_tags

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agorgw: add set_bucket_tags api
Chang Liu [Mon, 6 May 2019 13:14:18 +0000 (21:14 +0800)]
rgw: add set_bucket_tags api

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agorgw: uses 404 http code when there is NoSuchTagSetError
Chang Liu [Mon, 6 May 2019 13:13:45 +0000 (21:13 +0800)]
rgw: uses 404 http code when there is NoSuchTagSetError

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agorgw: get bucket tagging
Chang Liu [Mon, 6 May 2019 06:27:16 +0000 (14:27 +0800)]
rgw: get bucket tagging

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agorgw: declares bucket tagging op classes
Chang Liu [Sun, 5 May 2019 13:10:29 +0000 (21:10 +0800)]
rgw: declares bucket tagging op classes

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agorgw:new op type and error code about bucket tagging
Chang Liu [Sun, 5 May 2019 12:30:46 +0000 (20:30 +0800)]
rgw:new op type and error code about bucket tagging

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agoMerge PR #26547 into master
Sage Weil [Mon, 3 Jun 2019 20:45:42 +0000 (15:45 -0500)]
Merge PR #26547 into master

* refs/pull/26547/head:
Added validation of zabbix_host to support hostnames, IPv4 and IPv6.
mgr/zabbix: Documentation added.
mgr/zabbix: Adds possibility to send data to multiple zabbix servers.

Reviewed-by: Wido den Hollander <wido@42on.com>
6 years agoMerge PR #27667 into master
Sage Weil [Mon, 3 Jun 2019 20:44:11 +0000 (15:44 -0500)]
Merge PR #27667 into master

* refs/pull/27667/head:
src/test: fix creating two different objects for testing chunked object

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #28200 into master
Sage Weil [Mon, 3 Jun 2019 20:43:33 +0000 (15:43 -0500)]
Merge PR #28200 into master

* refs/pull/28200/head:
pybind/mgr: add slash to prometheus illegal metric name characters
pybind/mgr: fix format for rbd-mirror prometheus metrics

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #28180 from athanatos/sjust/wip-crimson-peering
Samuel Just [Mon, 3 Jun 2019 20:41:05 +0000 (13:41 -0700)]
Merge pull request #28180 from athanatos/sjust/wip-crimson-peering

Integrate PeeringState into crimson, fix related bugs

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28068 from cbodley/wip-qa-rgw-s3a
Casey Bodley [Mon, 3 Jun 2019 18:29:09 +0000 (14:29 -0400)]
Merge pull request #28068 from cbodley/wip-qa-rgw-s3a

qa/rgw: don't use ceph-ansible in s3a-hadoop suite

Reviewed-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoMerge PR #28300 into master
Patrick Donnelly [Mon, 3 Jun 2019 18:28:47 +0000 (11:28 -0700)]
Merge PR #28300 into master

* refs/pull/28300/head:
doc: cephfs: add section on fsync error reporting to posix.rst

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoqa/rgw: add dnsmasq back to s3a-hadoop
Casey Bodley [Tue, 14 May 2019 12:30:59 +0000 (08:30 -0400)]
qa/rgw: add dnsmasq back to s3a-hadoop

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoqa/rgw: rgw task can override --rgw-dns-name on the command line
Casey Bodley [Tue, 20 Feb 2018 17:28:24 +0000 (12:28 -0500)]
qa/rgw: rgw task can override --rgw-dns-name on the command line

the value for rgw_dns_name isn't known until a machine is assigned, so
it can't be set via 'override: conf:'. add a per-client config option
to the rgw task so it can add the endpoint's hostname and/or s3website
hostname on the radosgw command line

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoqa/rgw: remove ceph-ansible from s3a-hadoop suite
Casey Bodley [Fri, 10 May 2019 18:40:17 +0000 (14:40 -0400)]
qa/rgw: remove ceph-ansible from s3a-hadoop suite

Fixes: http://tracker.ceph.com/issues/39706
Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoqa/rgw: use default ports (80 or 443) unless overridden
Casey Bodley [Tue, 5 Mar 2019 15:50:23 +0000 (10:50 -0500)]
qa/rgw: use default ports (80 or 443) unless overridden

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoqa/rgw: allow rgw client config to override port
Casey Bodley [Tue, 20 Feb 2018 16:23:00 +0000 (11:23 -0500)]
qa/rgw: allow rgw client config to override port

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28146 from smanjara/wip-39551
Casey Bodley [Mon, 3 Jun 2019 16:53:09 +0000 (12:53 -0400)]
Merge pull request #28146 from smanjara/wip-39551

rgw/multisite:RGWListBucketIndexesCR for data full sync pagination

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #26915 from dvanders/dvanders_doc_heap
Casey Bodley [Mon, 3 Jun 2019 16:51:13 +0000 (12:51 -0400)]
Merge pull request #26915 from dvanders/dvanders_doc_heap

doc: describe metadata_heap cleanup

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28359 from tchaikov/wip-split-ceph-dencoder
Kefu Chai [Mon, 3 Jun 2019 15:51:20 +0000 (23:51 +0800)]
Merge pull request #28359 from tchaikov/wip-split-ceph-dencoder

tools/ceph-dencoder: split types.h into smaller pieces

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agodoc: describe metadata_heap cleanup
Dan van der Ster [Tue, 12 Mar 2019 15:42:25 +0000 (16:42 +0100)]
doc: describe metadata_heap cleanup

Fixes: http://tracker.ceph.com/issues/18174
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
6 years agoMerge pull request #28305 from rzarzynski/wip-bug-38827
Casey Bodley [Mon, 3 Jun 2019 13:09:24 +0000 (09:09 -0400)]
Merge pull request #28305 from rzarzynski/wip-bug-38827

qa/valgrind.supp: generalize the whiterule for aes-128-gcm to help rgw suite.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #25498 from cbodley/wip-27217
Casey Bodley [Mon, 3 Jun 2019 13:00:13 +0000 (09:00 -0400)]
Merge pull request #25498 from cbodley/wip-27217

rgw: parse_copy_location defers url-decode

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #16659 from rzarzynski/wip-rgw-20797
Casey Bodley [Mon, 3 Jun 2019 12:59:12 +0000 (08:59 -0400)]
Merge pull request #16659 from rzarzynski/wip-rgw-20797

rgw: TempURL should not allow PUTs with the X-Object-Manifest.

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #12709 from rzarzynski/wip-rgw-18364-dbgs
Casey Bodley [Mon, 3 Jun 2019 12:57:37 +0000 (08:57 -0400)]
Merge pull request #12709 from rzarzynski/wip-rgw-18364-dbgs

rgw: improve debugs on the path of RGWRados::cls_bucket_head.

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #12470 from rzarzynski/wip-rgw-18241
Casey Bodley [Mon, 3 Jun 2019 12:57:13 +0000 (08:57 -0400)]
Merge pull request #12470 from rzarzynski/wip-rgw-18241

rgw: dump s3_code as the Code response element in RGWDeleteMultiObj_ObjStore_S3

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #28339 from tchaikov/wip-cmake-asan
Kefu Chai [Mon, 3 Jun 2019 04:28:32 +0000 (12:28 +0800)]
Merge pull request #28339 from tchaikov/wip-cmake-asan

cmake/modules: replace ";" with " " in compile flags

Reviewed-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agotools/ceph-dencoder: split types.h into smaller pieces
Kefu Chai [Fri, 31 May 2019 18:35:16 +0000 (02:35 +0800)]
tools/ceph-dencoder: split types.h into smaller pieces

instead of putting all types in a single compilation unit, split them
into smaller groups, in hope to reduce the memory footprint of compiler
when compiling ceph_dencoder.cc.

sometimes, GCC just fails to compile this source file.

Fixes: http://tracker.ceph.com/issues/39595
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #28354 into master
Patrick Donnelly [Sat, 1 Jun 2019 02:13:06 +0000 (19:13 -0700)]
Merge PR #28354 into master

* refs/pull/28354/head:
doc: Add warning that the root directory cannot be fragmented

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoosd/: clarify rebuilt_missing_with_deletes and set in init
Samuel Just [Thu, 30 May 2019 00:31:48 +0000 (17:31 -0700)]
osd/: clarify rebuilt_missing_with_deletes and set in init

Updates PeeringState::init to set may_include_deletes_in_missing when
possible to avoid needlessly rebuilding the missing set on the next map.
The previous behavior was also subtly wrong as until the the next map
the osd would be possibly adding deletes to the missing set without the
flag having been set in the missing set on disk

This patch also renames the flag to reflect the fact that it simply
denotes wheter the may_include_deletes_in_missing omap entry needs to be
written out.  This may happen during rebuild_missing_set_with_deletes,
but it'll also happen more commonly during init now.

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocrimson: hook PeeringState into pg
Samuel Just [Thu, 30 May 2019 00:32:17 +0000 (17:32 -0700)]
crimson: hook PeeringState into pg

This patch:
1) Adds partially implemented stubs for PeeringState::PeeringListener
2) Revamps the message handling to batch the peering events from
   a single message.
3) Replaces the message handling with hand-offs to PeeringState
4) Adds support for MOSDPGCreate2 enabling creation of pgs.
5) Introduces ShardServices for exposing osd machinery to the pgs.

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocrimson/osd/main: add --debug option
Samuel Just [Thu, 30 May 2019 19:04:41 +0000 (12:04 -0700)]
crimson/osd/main: add --debug option

Really, what we need to do is examine the ceph conf and set
the right logger levels based on configured log levels, but
this'll suffice for now.

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocrimson/osd/pg_backend: clear exists in remove
Samuel Just [Thu, 30 May 2019 17:53:36 +0000 (10:53 -0700)]
crimson/osd/pg_backend: clear exists in remove

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocyan_store: map -ENOENT to 0 for _remove
Samuel Just [Thu, 30 May 2019 16:50:45 +0000 (09:50 -0700)]
cyan_store: map -ENOENT to 0 for _remove

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocrimson/net/ProtocolV1: close connection when replaced
Samuel Just [Thu, 30 May 2019 00:32:14 +0000 (17:32 -0700)]
crimson/net/ProtocolV1: close connection when replaced

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agoRevert "cmake: define BOOST_SP_DISABLE_THREADS for crimson"
Samuel Just [Thu, 30 May 2019 00:32:10 +0000 (17:32 -0700)]
Revert "cmake: define BOOST_SP_DISABLE_THREADS for crimson"

For whatever reason, this patch appears to cause the reactor/peering
to hang much of the time.  Reverting until we have time to debug it.

This reverts commit a09a4f342c0a0fddcae29fe6c8d97e3b353f8c0c.

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocrimson/common/assert.cc: flush cout before abort
Samuel Just [Thu, 30 May 2019 00:32:09 +0000 (17:32 -0700)]
crimson/common/assert.cc: flush cout before abort

Seastar logger() instances don't flush the channel, so recent messages
won't be present otherwise.

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agodout: let <= 20 correspond to debug for crimson
Samuel Just [Thu, 30 May 2019 00:32:07 +0000 (17:32 -0700)]
dout: let <= 20 correspond to debug for crimson

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agovstart: add --redirect-output option to redirect output for --nodaemon
Samuel Just [Thu, 30 May 2019 00:32:05 +0000 (17:32 -0700)]
vstart: add --redirect-output option to redirect output for --nodaemon

Useful for crimson which doesn't currently support writing directly
to a log file.

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocrimson/osd: use configured ceph-osd uuid in mkfs
Samuel Just [Thu, 30 May 2019 00:32:03 +0000 (17:32 -0700)]
crimson/osd: use configured ceph-osd uuid in mkfs

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocrimson/net/Connection: add peer_is_* helpers
Samuel Just [Thu, 30 May 2019 00:32:01 +0000 (17:32 -0700)]
crimson/net/Connection: add peer_is_* helpers

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocrimson/net/SocketMessenger: wait for accepter thread to die on shutdown
Samuel Just [Thu, 30 May 2019 00:31:59 +0000 (17:31 -0700)]
crimson/net/SocketMessenger: wait for accepter thread to die on shutdown

Otherwise, it ends up trying to operator<< *this after it's been
deleted.

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocrimson/mon/MonClient: handle mon client connection race
Samuel Just [Thu, 30 May 2019 00:31:57 +0000 (17:31 -0700)]
crimson/mon/MonClient: handle mon client connection race

The first to establish a connection and close the others needs
to ensure that the others don't mess with broken state.  To that
end, leave a cleared pending_conns map while the conns are being
closed.  Also, take care to clean up outstanding promises and
fallout from conns disappearing.

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocrimson/os/cyan_store: run t.get_on_* contexts
Samuel Just [Thu, 30 May 2019 00:31:55 +0000 (17:31 -0700)]
crimson/os/cyan_store: run t.get_on_* contexts

PeeringState makes liberal use of those callbacks, run them
upon completion of do_transaction.

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocrimson/os/cyan_store: add some omap machinery
Samuel Just [Thu, 30 May 2019 00:31:53 +0000 (17:31 -0700)]
crimson/os/cyan_store: add some omap machinery

Adds transaction methods for PeeringState.

Mainly omap_set, but also a stub for collection hint and the other omap
update methods.  Also adds omap_get and debugging to dump the
transaction upon encountering a problem.

Also fixes up std and ceph::bufferlist namespace qualifications.

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agoos/cyan_collection: add pragma once
Samuel Just [Thu, 30 May 2019 00:31:50 +0000 (17:31 -0700)]
os/cyan_collection: add pragma once

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agoosd/: move pg/osd state machinery into osd_types for use in crimson
Samuel Just [Thu, 30 May 2019 00:31:46 +0000 (17:31 -0700)]
osd/: move pg/osd state machinery into osd_types for use in crimson

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agoPGLog: add cyan_store machinery for reading the log
Samuel Just [Thu, 30 May 2019 00:31:44 +0000 (17:31 -0700)]
PGLog: add cyan_store machinery for reading the log

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agodoc: Add warning that the root directory cannot be fragmented
Nathan Fish [Fri, 31 May 2019 20:38:22 +0000 (16:38 -0400)]
doc: Add warning that the root directory cannot be fragmented

Documents: #39704

Signed-off-by: Nathan Fish <lordcirth@gmail.com>
6 years agoMerge PR #28199 into master
Patrick Donnelly [Fri, 31 May 2019 20:10:18 +0000 (13:10 -0700)]
Merge PR #28199 into master

* refs/pull/28199/head:
qa/tasks: upgrade the check for -c sudo option in vstart_runner.py

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28108 from linuxbox2/wip-rgwfile-reqid
Matt Benjamin [Fri, 31 May 2019 17:25:02 +0000 (13:25 -0400)]
Merge pull request #28108 from linuxbox2/wip-rgwfile-reqid

Wip rgwfile reqid:  absorbs rgw_file: allocate new id for continued request #25664

6 years agoMerge pull request #28135 from dillaman/wip-39946
Mykola Golub [Fri, 31 May 2019 14:16:46 +0000 (17:16 +0300)]
Merge pull request #28135 from dillaman/wip-39946

qa/workunits/rbd: remove 'fast-diff' from dynamic features test

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #28295 from dillaman/wip-39952
Mykola Golub [Fri, 31 May 2019 12:56:02 +0000 (15:56 +0300)]
Merge pull request #28295 from dillaman/wip-39952

librbd: do not unblock IO prior to growing object map during resize

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #28296 from mcv21/doc-profile-rbd
Jason Dillaman [Fri, 31 May 2019 12:29:21 +0000 (08:29 -0400)]
Merge pull request #28296 from mcv21/doc-profile-rbd

doc: note explicitly that "profile rbd" allows blacklisting

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agocmake/modules: replace ";" with " " in compile flags
Kefu Chai [Fri, 31 May 2019 08:17:48 +0000 (16:17 +0800)]
cmake/modules: replace ";" with " " in compile flags

as the flags should be a string, not a list

tested using

cmake -DCMAKE_LINKER=gold -DWITH_ASAN=ON -DWITH_ASAN_LEAK=ON \
-DCMAKE_BUILD_TYPE=Debug

on ubuntu xenial

without this change, cmake will fail with following warning:

CMake Error at src/CMakeLists.txt:112 (message):
  The compiler /usr/bin/c++ has no C++17 support.

-- Configuring incomplete, errors occurred!

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28328 from tchaikov/wip-fix-ceph-helper-test
Kefu Chai [Fri, 31 May 2019 04:23:09 +0000 (12:23 +0800)]
Merge pull request #28328 from tchaikov/wip-fix-ceph-helper-test

qa/standalone/ceph-helpers: resurrect all OSD before waiting for health

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28338 from Jing-Scott/dev/modify-scrub-comments
Kefu Chai [Fri, 31 May 2019 03:22:37 +0000 (11:22 +0800)]
Merge pull request #28338 from Jing-Scott/dev/modify-scrub-comments

osd: update comment as sub_op_scrub_map has been removed

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoosd: the sub_op_scrub_map has been removed
Jing Wenjun [Fri, 31 May 2019 02:16:08 +0000 (10:16 +0800)]
osd: the sub_op_scrub_map has been removed
sub_op_scrub_map replaced by do_replica_scrub_map, sync the comments.

Signed-off-by: Jing Wenjun <jingwenjun@cmss.chinamobile.com>
6 years agoMerge pull request #25099 from Thingee/master
Kefu Chai [Fri, 31 May 2019 01:56:20 +0000 (09:56 +0800)]
Merge pull request #25099 from Thingee/master

doc: Adding US-Mid-West Mirror to docs

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #25530 into master
Patrick Donnelly [Fri, 31 May 2019 01:24:39 +0000 (18:24 -0700)]
Merge PR #25530 into master

* refs/pull/25530/head:
mgr/diskprediction: Add diskprediction local plugin dependencies

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Dan Mick <dmick@redhat.com>
6 years agodoc/install/mirrors: Adding US-Mid-West Mirror to docs
Mike Perez [Wed, 14 Nov 2018 17:29:01 +0000 (09:29 -0800)]
doc/install/mirrors: Adding US-Mid-West Mirror to docs

Signed-off-by: Mike Perez <thingee@gmail.com>
6 years agoMerge pull request #27898 from alimaredia/wip-rgw-thread-yield-context-get-bucket...
Casey Bodley [Thu, 30 May 2019 19:48:42 +0000 (15:48 -0400)]
Merge pull request #27898 from alimaredia/wip-rgw-thread-yield-context-get-bucket-info

Thread optional yield context through  get_bucket_info call path

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoPeeringState: permit init_from_disk_state to return a value
Samuel Just [Thu, 30 May 2019 00:31:42 +0000 (17:31 -0700)]
PeeringState: permit init_from_disk_state to return a value

This way it can return a future.

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agoPGPeeringEvent: move MLogRec constructor definition to .cc and add unique_ptr
Samuel Just [Thu, 30 May 2019 00:31:40 +0000 (17:31 -0700)]
PGPeeringEvent: move MLogRec constructor definition to .cc and add unique_ptr

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agosrc/osd/: add appropriate OSDMapRef defs for seastar to OSDMap,osd_types
Samuel Just [Thu, 30 May 2019 00:31:38 +0000 (17:31 -0700)]
src/osd/: add appropriate OSDMapRef defs for seastar to OSDMap,osd_types

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agoPeeringState: modernize accept_buffered_messages
Samuel Just [Thu, 30 May 2019 02:02:51 +0000 (19:02 -0700)]
PeeringState: modernize accept_buffered_messages

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agoosd/: Move PeeringCtx out of PeeringState to permit forward declaration
Samuel Just [Thu, 30 May 2019 00:31:35 +0000 (17:31 -0700)]
osd/: Move PeeringCtx out of PeeringState to permit forward declaration

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agocrimson/os: Move CollectionRef out of CyanStore
Samuel Just [Thu, 30 May 2019 00:31:31 +0000 (17:31 -0700)]
crimson/os: Move CollectionRef out of CyanStore

This way, we don't need cyan_store.h to get CollectionRef

Signed-off-by: Samuel Just <sjust@redhat.com>
6 years agoMerge PR #27957 into master
Sage Weil [Thu, 30 May 2019 17:26:17 +0000 (12:26 -0500)]
Merge PR #27957 into master

* refs/pull/27957/head:
json: JSONDecoder::err inherits from std::runtime_error
rgw: RGWXMLDecoder::err inherits from std::runtime_error

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoMerge pull request #28317 from tchaikov/wip-crimson-net-remove-redundant-move
Kefu Chai [Thu, 30 May 2019 17:16:26 +0000 (01:16 +0800)]
Merge pull request #28317 from tchaikov/wip-crimson-net-remove-redundant-move

crimson/net: remove redundant std::move()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agoMerge pull request #28289 from tchaikov/wip-kill-gcc-9-warnings
Kefu Chai [Thu, 30 May 2019 15:56:41 +0000 (23:56 +0800)]
Merge pull request #28289 from tchaikov/wip-kill-gcc-9-warnings

common,os: address string truncated warnings from GCC-9

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #28055 from SUSE/wip-fix-39662
Kefu Chai [Thu, 30 May 2019 15:56:02 +0000 (23:56 +0800)]
Merge pull request #28055 from SUSE/wip-fix-39662

mgr/PyModuleRegistry: log error if we can't find any modules to load

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoqa/standalone/ceph-helpers: resurrect all OSD before waiting for health
Kefu Chai [Thu, 30 May 2019 15:44:37 +0000 (23:44 +0800)]
qa/standalone/ceph-helpers: resurrect all OSD before waiting for health

address the regression introduced by e62cfceb
in e62cfceb, we wanted to test the newly introduced TOO_FEW_OSDS
warning, so we increased the number of OSD to the size of pool, so if
the number of OSD is less than pool size, monitor will send a warning
message.

but we need to bring all OSDs back if we are expecting a healthy
cluster. in this change, all OSDs are resurrect before
`wait_for_health_ok`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/run-standalone.sh: s/Makefile/CMakeCache.txt/
Kefu Chai [Thu, 30 May 2019 15:43:31 +0000 (23:43 +0800)]
qa/run-standalone.sh: s/Makefile/CMakeCache.txt/

as we could use a generator other than Make, for instance ninja.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agolibrbd: do not unblock IO prior to growing object map during resize
Jason Dillaman [Wed, 29 May 2019 13:37:34 +0000 (09:37 -0400)]
librbd: do not unblock IO prior to growing object map during resize

This could result in a small race condition where IO is able to write
beyond the current extent of the object map, resulting in an assertion
failure.

Fixes: http://tracker.ceph.com/issues/39952
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agorgw: parse_copy_location defers url-decode
Casey Bodley [Tue, 11 Dec 2018 21:13:58 +0000 (16:13 -0500)]
rgw: parse_copy_location defers url-decode

don't url-decode until after we search for the ?, or we'll truncate
object names that contain a url-encoded ?

Fixes: http://tracker.ceph.com/issues/27217
Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agocrimson/net: remove redundant std::move()
Kefu Chai [Thu, 30 May 2019 05:52:40 +0000 (13:52 +0800)]
crimson/net: remove redundant std::move()

see https://en.cppreference.com/w/cpp/language/copy_elision

it also silences warning like:

src/crimson/net/ProtocolV2.cc:146:26: warning: redundant move in return
statement [-Wredundant-move]
  146 |       return std::move(bl);
      |                          ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27806 from ashitakasam/add-osd-alarm
Kefu Chai [Thu, 30 May 2019 13:28:54 +0000 (21:28 +0800)]
Merge pull request #27806 from ashitakasam/add-osd-alarm

osd: Better error message when OSD count is less than osd_pool_default_size

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #28278 from tchaikov/wip-buffer-remove-advance-size_t
Kefu Chai [Thu, 30 May 2019 13:26:27 +0000 (21:26 +0800)]
Merge pull request #28278 from tchaikov/wip-buffer-remove-advance-size_t

buffer.h: remove list::iterator_impl::advance(size_t)

Reviewed-by: James Page <james.page@ubuntu.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #28251 from xiexingguo/wip-balancer-new-osd-weight
Kefu Chai [Thu, 30 May 2019 13:23:44 +0000 (21:23 +0800)]
Merge pull request #28251 from xiexingguo/wip-balancer-new-osd-weight

mgr/balancer: fix initial weight-set value for newly created osds

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28107 from ifed01/wip-ifed-add-devices
Kefu Chai [Thu, 30 May 2019 13:20:15 +0000 (21:20 +0800)]
Merge pull request #28107 from ifed01/wip-ifed-add-devices

os/bluestore: show device name in "osd metadata output"

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28277 from javacruft/32bit-compat-fixes
Kefu Chai [Thu, 30 May 2019 13:18:43 +0000 (21:18 +0800)]
Merge pull request #28277 from javacruft/32bit-compat-fixes

common: avoid use of size_t in options

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28250 from tchaikov/wip-silence-warnings
Jason Dillaman [Thu, 30 May 2019 11:42:05 +0000 (07:42 -0400)]
Merge pull request #28250 from tchaikov/wip-silence-warnings

mon,test: silence warnings from GCC and test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agopybind/mgr: add slash to prometheus illegal metric name characters
Mykola Golub [Wed, 29 May 2019 06:38:35 +0000 (07:38 +0100)]
pybind/mgr: add slash to prometheus illegal metric name characters

(replace with underscore)

While here, change the sequence of replaces to a single regex, as it
becomes too long.

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agopybind/mgr: fix format for rbd-mirror prometheus metrics
Mykola Golub [Tue, 21 May 2019 16:26:15 +0000 (17:26 +0100)]
pybind/mgr: fix format for rbd-mirror prometheus metrics

Fixes: https://tracker.ceph.com/issues/39977
Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #25729 from the78mole/wip-32-bit-arm-fixes
Kefu Chai [Thu, 30 May 2019 04:50:45 +0000 (12:50 +0800)]
Merge pull request #25729 from the78mole/wip-32-bit-arm-fixes

cmake: boost fixes for ARM 32 bit

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28255 from tchaikov/wip-convenience
Kefu Chai [Thu, 30 May 2019 03:24:00 +0000 (11:24 +0800)]
Merge pull request #28255 from tchaikov/wip-convenience

common: no need to include ceph_assert.h

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28270 from NTmatter/patch-2
Kefu Chai [Thu, 30 May 2019 03:22:18 +0000 (11:22 +0800)]
Merge pull request #28270 from NTmatter/patch-2

blobhash.h: remove extra [[fallthrough]]

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoRevert "qa: remove mon valgrind check in rgw verfiy suite"
Radoslaw Zarzynski [Tue, 28 May 2019 17:38:45 +0000 (19:38 +0200)]
Revert "qa: remove mon valgrind check in rgw verfiy suite"

This reverts commit d25d6ee0af0c85715e0ef8ce377f0b78a91f7ad7.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoqa/valgrind.supp: fix the name for aes-128-gcm whiterules.
Radoslaw Zarzynski [Tue, 28 May 2019 17:33:52 +0000 (19:33 +0200)]
qa/valgrind.supp: fix the name for aes-128-gcm whiterules.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>