]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agocrimson/os/seastore: fix internal relative btree addrs 35970/head
Samuel Just [Tue, 7 Jul 2020 22:44:42 +0000 (15:44 -0700)]
crimson/os/seastore: fix internal relative btree addrs

Internal relative addrs must be block relative on disk and record
relative in deltas.  Use maybe_generate_relative as intended.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoseastore/test_transaction_manager: add a test which forces an lba split
Samuel Just [Tue, 7 Jul 2020 22:44:04 +0000 (15:44 -0700)]
seastore/test_transaction_manager: add a test which forces an lba split

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoseastore/test_btree_lba_manager: ensure record and block addrs are different
Samuel Just [Tue, 7 Jul 2020 23:23:29 +0000 (16:23 -0700)]
seastore/test_btree_lba_manager: ensure record and block addrs are different

Adds an extra extent to each transaction in the test to ensure that
record and block relative addresses differ as they do in real usage.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoMerge PR #35725 into master
Patrick Donnelly [Tue, 7 Jul 2020 22:22:39 +0000 (15:22 -0700)]
Merge PR #35725 into master

* refs/pull/35725/head:
client: Fix setxattr with 0 size specified

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge pull request #35861 from dillaman/wip-write-zeroes-tweaks
Mykola Golub [Tue, 7 Jul 2020 14:44:50 +0000 (17:44 +0300)]
Merge pull request #35861 from dillaman/wip-write-zeroes-tweaks

librbd: allow thick-zeroing of an image extent

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge PR #35743 into master
Patrick Donnelly [Tue, 7 Jul 2020 13:59:41 +0000 (06:59 -0700)]
Merge PR #35743 into master

* refs/pull/35743/head:
qa/tasks/test_nfs: Add test for cluster info
mgr/volumes/nfs: Add cluster show info command

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35834 from yuvalif/add-amqp-topic-doc
Casey Bodley [Tue, 7 Jul 2020 13:56:08 +0000 (09:56 -0400)]
Merge pull request #35834 from yuvalif/add-amqp-topic-doc

rgw: add a doc hint that the topic-name is used as AMQP routing-key

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #35923 from votdev/fix_various_issues
Laura Paduano [Tue, 7 Jul 2020 13:21:08 +0000 (15:21 +0200)]
Merge pull request #35923 from votdev/fix_various_issues

mgr/dashboard: Fix bugs in a unit test and i18n translation

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #35886 from yuvalif/wip-yuval-fix-46316
Casey Bodley [Tue, 7 Jul 2020 13:08:36 +0000 (09:08 -0400)]
Merge pull request #35886 from yuvalif/wip-yuval-fix-46316

rgw: make RGWToken string ctor explicit

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #35707 from Devp00l/wip-45650
Laura Paduano [Tue, 7 Jul 2020 12:29:06 +0000 (14:29 +0200)]
Merge pull request #35707 from Devp00l/wip-45650

mgr/dashboard: Fixes ICU selection regression

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #35764 from rzarzynski/wip-bl-cache-in-release
Kefu Chai [Tue, 7 Jul 2020 10:49:39 +0000 (18:49 +0800)]
Merge pull request #35764 from rzarzynski/wip-bl-cache-in-release

common/bl: document and slightly optimize ptr::release().

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agocommon/bl: document and slightly optimize ptr::release(). 35764/head
Radoslaw Zarzynski [Wed, 24 Jun 2020 20:32:16 +0000 (22:32 +0200)]
common/bl: document and slightly optimize ptr::release().

Before the patch GCC was generating:
```
  10f9910:   mov    (%rdi),%rax
  10f9913:   test   %rax,%rax
  10f9916:   je     10f9951 <ceph::buffer::v15_2_0::ptr::release()+0x41>
  10f9918:   mov    0x2c(%rax),%eax
  10f991b:   cmp    $0x1,%eax
  10f991e:   jne    10f9940 <ceph::buffer::v15_2_0::ptr::release()+0x30>
  10f9920:   mov    (%rdi),%rax
  10f9923:   movq   $0x0,(%rdi)
  10f992a:   test   %rax,%rax
  10f992d:   je     10f9958 <ceph::buffer::v15_2_0::ptr::release()+0x48>
  10f992f:   mov    (%rax),%rdx
  10f9932:   mov    %rax,%rdi
  10f9935:   mov    0x8(%rdx),%rdx
  10f9939:   jmpq   *%rdx
  10f993b:   nopl   0x0(%rax,%rax,1)
  10f9940:   mov    (%rdi),%rax
  10f9943:   lock subl $0x1,0x2c(%rax)
  10f9948:   je     10f9920 <ceph::buffer::v15_2_0::ptr::release()+0x10>
  10f994a:   movq   $0x0,(%rdi)
  10f9951:   retq
  10f9952:   nopw   0x0(%rax,%rax,1)
  10f9958:   retq
  10f9959:   nop
  10f995a:   nopw   0x0(%rax,%rax,1)
```

after:
```
  11209b0:   mov    (%rdi),%rax
  11209b3:   movq   $0x0,(%rdi)
  11209ba:   test   %rax,%rax
  11209bd:   je     11209e6 <ceph::buffer::v15_2_0::ptr::release()+0x36>
  11209bf:   mov    0x2c(%rax),%edx
  11209c2:   lea    0x2c(%rax),%rcx
  11209c6:   cmp    $0x1,%edx
  11209c9:   jne    11209e0 <ceph::buffer::v15_2_0::ptr::release()+0x30>
  11209cb:   mov    (%rax),%rdx
  11209ce:   mov    %rax,%rdi
  11209d1:   mov    0x8(%rdx),%rdx
  11209d5:   jmpq   *%rdx
  11209d7:   nopw   0x0(%rax,%rax,1)
  11209de:
  11209e0:   lock subl $0x1,(%rcx)
  11209e4:   je     11209cb <ceph::buffer::v15_2_0::ptr::release()+0x1b>
  11209e6:   retq
```

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agorgw: add a doc hint that the topic-name is used as AMQP routing-key 35834/head
Andreas Unterkircher [Fri, 24 Apr 2020 05:09:11 +0000 (07:09 +0200)]
rgw: add a doc hint that the topic-name is used as AMQP routing-key

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
5 years agoqa/tasks/test_nfs: Add test for cluster info 35743/head
Varsha Rao [Tue, 30 Jun 2020 10:55:20 +0000 (16:25 +0530)]
qa/tasks/test_nfs: Add test for cluster info

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Add cluster show info command
Varsha Rao [Mon, 22 Jun 2020 18:38:28 +0000 (00:08 +0530)]
mgr/volumes/nfs: Add cluster show info command

Fixes: https://tracker.ceph.com/issues/45743
Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoMerge pull request #35940 from tchaikov/wip-ceph-dencoder-struct-ver
Kefu Chai [Tue, 7 Jul 2020 02:09:54 +0000 (10:09 +0800)]
Merge pull request #35940 from tchaikov/wip-ceph-dencoder-struct-ver

tools/ceph-dencoder: add get_struct_v,get_struct_compat commands

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #35914 from tchaikov/wip-crimson-clang
Kefu Chai [Tue, 7 Jul 2020 02:04:06 +0000 (10:04 +0800)]
Merge pull request #35914 from tchaikov/wip-crimson-clang

crimson: clang related cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
5 years agoMerge pull request #35933 from tchaikov/wip-interval-set
Kefu Chai [Tue, 7 Jul 2020 02:01:53 +0000 (10:01 +0800)]
Merge pull request #35933 from tchaikov/wip-interval-set

include/interval_set: use template as the 2nd template parameter

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #35496 into master
Patrick Donnelly [Mon, 6 Jul 2020 23:50:30 +0000 (16:50 -0700)]
Merge PR #35496 into master

* refs/pull/35496/head:
client: introduce timeout for client shutdown

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35942 from tchaikov/wip-build-rtd
Kefu Chai [Mon, 6 Jul 2020 15:25:23 +0000 (23:25 +0800)]
Merge pull request #35942 from tchaikov/wip-build-rtd

admin: move python-common deps out of doc-requirements.txt

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35354 from ishanrai05/rfs
Lenz Grimmer [Mon, 6 Jul 2020 15:19:15 +0000 (17:19 +0200)]
Merge pull request #35354 from ishanrai05/rfs

mgr/dashboard: use relative font sizes

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agotools/ceph-dencoder: add get_struct_v,get_struct_compat commands 35940/head
Kefu Chai [Mon, 6 Jul 2020 10:12:31 +0000 (18:12 +0800)]
tools/ceph-dencoder: add get_struct_v,get_struct_compat commands

for understanding the current encoding version and the lower bound of
supported decoders.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35913 from ideepika/wip-container-tag-change
Kefu Chai [Mon, 6 Jul 2020 13:01:06 +0000 (21:01 +0800)]
Merge pull request #35913 from ideepika/wip-container-tag-change

docker/podman: tag crimson flavor container as 'sha-1-flavor'

Reviewed-by: Dimitri Savineau <dsavinea@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35920 from uweigand/entity-addrvec-fix
Kefu Chai [Mon, 6 Jul 2020 12:51:25 +0000 (20:51 +0800)]
Merge pull request #35920 from uweigand/entity-addrvec-fix

msg/msg_types: entity_addrvec_t: fix decode on big-endian hosts

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35890 from matthewoliver/cephadm_ipv6_list_networks
Kefu Chai [Mon, 6 Jul 2020 12:50:41 +0000 (20:50 +0800)]
Merge pull request #35890 from matthewoliver/cephadm_ipv6_list_networks

cephadm: Make list_networks ipv6 enabled

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35546 from agayev/zoned-fm
Kefu Chai [Mon, 6 Jul 2020 12:42:48 +0000 (20:42 +0800)]
Merge pull request #35546 from agayev/zoned-fm

os/bluestore: Introduce zoned freelist manager.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoadmin: move python-common deps out of doc-requirements.txt 35942/head
Kefu Chai [Mon, 6 Jul 2020 11:11:39 +0000 (19:11 +0800)]
admin: move python-common deps out of doc-requirements.txt

to address the build failure of

python -m pip install --exists-action=w --no-cache-dir -r admin/doc-requirements.txt
ERROR: ../src/python-common is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with svn+, git+, hg+, or bzr+).

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodocker/podman: tag crimson flavor container as 'sha-1-flavor' 35913/head
Deepika Upadhyay [Mon, 6 Jul 2020 10:49:28 +0000 (16:19 +0530)]
docker/podman: tag crimson flavor container as 'sha-1-flavor'

see also: ceph/ceph-container#1704

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
5 years agomgr/dashboard: Fix bugs in a unit test and i18n translation 35923/head
Volker Theile [Fri, 3 Jul 2020 14:09:42 +0000 (16:09 +0200)]
mgr/dashboard: Fix bugs in a unit test and i18n translation

* SKIP: Unknown argument type: 'BinaryExpression' NodeObject { ... text: 'You can activate the module on the Telemetry configuration '
* WARNING: /ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.spec.ts:39:32 - get is deprecated: from v9.0.0 use TestBed.inject

Fixes: https://tracker.ceph.com/issues/46371
Signed-off-by: Volker Theile <vtheile@suse.com>
5 years agoclient: Fix setxattr with 0 size specified 35725/head
Sidharth Anupkrishnan [Mon, 6 Jul 2020 09:15:46 +0000 (14:45 +0530)]
client: Fix setxattr with 0 size specified

When xattrs are set with 0 size, the value should be set to an empty string.
Signed-off-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
5 years agoMerge pull request #35936 from tchaikov/wip-cmake-seastar-cxxflags
Kefu Chai [Mon, 6 Jul 2020 09:00:00 +0000 (17:00 +0800)]
Merge pull request #35936 from tchaikov/wip-cmake-seastar-cxxflags

cmake: append to Seastar_CXX_FLAGS

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #35812 from tchaikov/wip-more-log-for-45717
Kefu Chai [Mon, 6 Jul 2020 08:52:26 +0000 (16:52 +0800)]
Merge pull request #35812 from tchaikov/wip-more-log-for-45717

mgr/dashboard: print osd log as well

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agocrimson/osd: assign to bufferlist not to bufferlist* 35936/head
Kefu Chai [Mon, 6 Jul 2020 02:07:03 +0000 (10:07 +0800)]
crimson/osd: assign to bufferlist not to bufferlist*

this change addresses a regression introduced by a23a1929f5

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocmake: append to Seastar_CXX_FLAGS
Kefu Chai [Sun, 5 Jul 2020 15:06:08 +0000 (23:06 +0800)]
cmake: append to Seastar_CXX_FLAGS

instead of overwriting Seastar_CXX_FLAGS, append to it. this change
allows user to set Seastar_CXX_FLAGS in the command line.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35610 from pcuzner/wip-grafana-container
pcuzner [Mon, 6 Jul 2020 01:06:55 +0000 (13:06 +1200)]
Merge pull request #35610 from pcuzner/wip-grafana-container

monitoring: add grafana container build file

5 years agorbd: switch thick-provision image creation to use new write_zeroes API 35861/head
Jason Dillaman [Tue, 30 Jun 2020 21:08:19 +0000 (17:08 -0400)]
rbd: switch thick-provision image creation to use new write_zeroes API

Also fix some of the concurrency and chunk size issues when handling
fancy striped images.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: add flag to force thick-provisioning during write_zeroes API
Jason Dillaman [Tue, 30 Jun 2020 20:59:47 +0000 (16:59 -0400)]
librbd: add flag to force thick-provisioning during write_zeroes API

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35935 from tchaikov/wip-crimson-no-more-claim
Kefu Chai [Sun, 5 Jul 2020 15:57:05 +0000 (23:57 +0800)]
Merge pull request #35935 from tchaikov/wip-crimson-no-more-claim

crimson/osd: use operator=(...) instead of claim()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: use operator=(...) instead of claim() 35935/head
Kefu Chai [Sun, 5 Jul 2020 13:48:19 +0000 (21:48 +0800)]
crimson/osd: use operator=(...) instead of claim()

to silence warnings like

objclass.cc:300:26: warning: 'void ceph::buffer::v15_2_0::list::claim(ceph::buffer::v15_2_0::list&)' is deprecated: in favor of operator=(list&&) [-Wdeprecated-declarations]
  300 |   outbl->claim(op.outdata);
      |                          ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35921 from uweigand/test_cdc-endianfix
Kefu Chai [Sun, 5 Jul 2020 13:31:48 +0000 (21:31 +0800)]
Merge pull request #35921 from uweigand/test_cdc-endianfix

unittest_cdc: fix test on big-endian hosts

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agotest/common: link unittest_interval_set against GTest::Main 35933/head
Kefu Chai [Sun, 5 Jul 2020 12:25:07 +0000 (20:25 +0800)]
test/common: link unittest_interval_set against GTest::Main

its main() is offered by GTet::Main library

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoinclude/interval_set: use template as the 2nd template parameter
Kefu Chai [Sun, 5 Jul 2020 07:41:10 +0000 (15:41 +0800)]
include/interval_set: use template as the 2nd template parameter

to avoid repeating the unit for the interval in the internal map's
parameter.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35932 from zdover23/wip-doc-cephadm-suites-typo
zdover23 [Sun, 5 Jul 2020 12:01:32 +0000 (22:01 +1000)]
Merge pull request #35932 from zdover23/wip-doc-cephadm-suites-typo

doc/cephadm: index.rst: s/suites/suits/ typo fixed.

5 years agodoc/cephadm: index.rst: s/suites/suits/ typo fixed. 35932/head
Zac Dover [Sun, 5 Jul 2020 08:18:38 +0000 (18:18 +1000)]
doc/cephadm: index.rst: s/suites/suits/ typo fixed.

This commit changes the sentence "Choose the method that best suites
your needs." to "Choose the method that best suits your needs."

Fixes: https://tracker.ceph.com/issues/46359
Signed-off-by: Zac Dover <zac.dover@gmail.com>
5 years agoMerge pull request #35275 from AmnonHanuhov/wip-objclass_impl
Kefu Chai [Sun, 5 Jul 2020 06:52:20 +0000 (14:52 +0800)]
Merge pull request #35275 from AmnonHanuhov/wip-objclass_impl

crimson/osd: Add support for cls_log

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35871 from tchaikov/wip-45717
Kefu Chai [Sun, 5 Jul 2020 06:48:09 +0000 (14:48 +0800)]
Merge pull request #35871 from tchaikov/wip-45717

mon/PGMap: do not consider changing pg stuck

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #35864 from tchaikov/wip-osdc-claim
Kefu Chai [Sun, 5 Jul 2020 06:30:31 +0000 (14:30 +0800)]
Merge pull request #35864 from tchaikov/wip-osdc-claim

osdc: use operator=(...) instead of claim()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #35863 from wuxingyi/removeunused
Kefu Chai [Sun, 5 Jul 2020 05:09:44 +0000 (13:09 +0800)]
Merge pull request #35863 from wuxingyi/removeunused

osd: Remove unused function declearation

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35818 from majianpeng/osd-replicatedbackend-redundant-parameter
Kefu Chai [Sun, 5 Jul 2020 05:05:06 +0000 (13:05 +0800)]
Merge pull request #35818 from majianpeng/osd-replicatedbackend-redundant-parameter

osd/ReplicatedBackend: remove redundant parameter.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35817 from tchaikov/wip-drop-py2
Kefu Chai [Sun, 5 Jul 2020 04:57:36 +0000 (12:57 +0800)]
Merge pull request #35817 from tchaikov/wip-drop-py2

qa,test,pybind: drop py2 support

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agopybind/mgr/telegraf: drop py2 support 35817/head
Kefu Chai [Sun, 28 Jun 2020 12:53:31 +0000 (20:53 +0800)]
pybind/mgr/telegraf: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/status: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 12:53:22 +0000 (20:53 +0800)]
pybind/mgr/status: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/selftest: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 12:53:13 +0000 (20:53 +0800)]
pybind/mgr/selftest: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/restful: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 12:53:03 +0000 (20:53 +0800)]
pybind/mgr/restful: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/pg_autoscaler: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 12:52:51 +0000 (20:52 +0800)]
pybind/mgr/pg_autoscaler: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/mgr_module: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 12:52:35 +0000 (20:52 +0800)]
pybind/mgr/mgr_module: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/insights: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 12:52:25 +0000 (20:52 +0800)]
pybind/mgr/insights: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/influx: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 12:52:11 +0000 (20:52 +0800)]
pybind/mgr/influx: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/devicehealth: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 12:51:58 +0000 (20:51 +0800)]
pybind/mgr/devicehealth: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/cephadm: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 12:51:18 +0000 (20:51 +0800)]
pybind/mgr/cephadm: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/balancer: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 12:51:00 +0000 (20:51 +0800)]
pybind/mgr/balancer: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 12:50:24 +0000 (20:50 +0800)]
doc: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/cephfs: drop six dependency
Kefu Chai [Sun, 28 Jun 2020 11:59:50 +0000 (19:59 +0800)]
qa/tasks/cephfs: drop six dependency

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/ceph_objectstore_tool: drop six dependency
Kefu Chai [Sun, 28 Jun 2020 11:59:39 +0000 (19:59 +0800)]
qa/tasks/ceph_objectstore_tool: drop six dependency

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/barbican: drop six dependency
Kefu Chai [Sun, 28 Jun 2020 11:59:24 +0000 (19:59 +0800)]
qa/tasks/barbican: drop six dependency

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/workunit: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:46:01 +0000 (19:46 +0800)]
qa/tasks/workunit: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/s3tests: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:45:05 +0000 (19:45 +0800)]
qa/tasks/s3tests: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/rbd: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:44:26 +0000 (19:44 +0800)]
qa/tasks/rbd: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/radosgw_admin: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:44:15 +0000 (19:44 +0800)]
qa/tasks/radosgw_admin: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/osd_failsafe_enospc: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:43:58 +0000 (19:43 +0800)]
qa/tasks/osd_failsafe_enospc: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/{ceph,ceph_manager}: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:43:09 +0000 (19:43 +0800)]
qa/tasks/{ceph,ceph_manager}: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agotest/pybind: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:16:17 +0000 (19:16 +0800)]
test/pybind: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/dashboard: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:15:25 +0000 (19:15 +0800)]
pybind/mgr/dashboard: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:13:14 +0000 (19:13 +0800)]
pybind: drop py2 support

the python bindings are compiled using python3-cython, and packaged as
python3-{rados,rbd,cephfs,rgw}, so there is no need and is wrong to
claim that they are python2 compatible.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/workunits: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:11:17 +0000 (19:11 +0800)]
qa/workunits: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/vstart_runner: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:10:58 +0000 (19:10 +0800)]
qa/tasks/vstart_runner: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/cephfs: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:10:43 +0000 (19:10 +0800)]
qa/tasks/cephfs: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/standalone: drop py2 support
Kefu Chai [Sun, 28 Jun 2020 11:10:01 +0000 (19:10 +0800)]
qa/standalone: drop py2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/os/seastore: s/assert/ceph_abort_msg/ when hitting unreachable code 35914/head
Kefu Chai [Fri, 3 Jul 2020 09:35:48 +0000 (17:35 +0800)]
crimson/os/seastore: s/assert/ceph_abort_msg/ when hitting unreachable code

clang++ complains with
```
crimson/os/seastore/root_block.h:100:3: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson: silence -Wunused-lambda-capture warnings
Kefu Chai [Fri, 3 Jul 2020 09:29:34 +0000 (17:29 +0800)]
crimson: silence -Wunused-lambda-capture warnings

they are pointed out by clang++.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/common: make FixedKVNodeLayout::set_val() public
Kefu Chai [Fri, 19 Jun 2020 11:29:28 +0000 (19:29 +0800)]
crimson/common: make FixedKVNodeLayout::set_val() public

otherwise clang++ fails with
```
mson/os/seastore/lba_manager/btree/lba_btree_node_impl.cc:183:10: error: 'set_val' is a private member of 'crimson::common::FixedKVNodeLayout<255, unsigned long, ceph_le<unsigned long long>,
crimson::os::seastore::paddr_t, crimson::os::seastore::paddr_le_t, true>::iter_t<false>'
      i->set_val(updated);
         ^
/home/jenkins-build/build/workspace/ceph-perf-crimson/ceph-master/src/crimson/common/fixed_kv_node_layout.h:148:10: note: declared private here
    void set_val(V val) const {
         ^
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35855 from dillaman/wip-45986
Mykola Golub [Fri, 3 Jul 2020 14:57:15 +0000 (17:57 +0300)]
Merge pull request #35855 from dillaman/wip-45986

librbd: new 'write_zeroes' API methods to suppliment the `discard` APIs

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agounittest_cdc: fix test on big-endian hosts 35921/head
Ulrich Weigand [Fri, 3 Jul 2020 13:57:59 +0000 (15:57 +0200)]
unittest_cdc: fix test on big-endian hosts

The specific_result test hardcodes a particular output.  However,
the input buffer used by the test is currently initialized to a
different byte string depending host the host byte order, which
makes the expected result not match on big-endian hosts.

Fixed by always initializing the input buffer to the same string.

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
5 years agomsg/msg_types: entity_addrvec_t: fix decode on big-endian hosts 35920/head
Ulrich Weigand [Fri, 3 Jul 2020 13:47:00 +0000 (15:47 +0200)]
msg/msg_types: entity_addrvec_t: fix decode on big-endian hosts

When decoding an entity_addrvec_t with marker 1, we just have
a single (non-legacy) entity_addr_t.  This should be decoded
exactly the same as done by entity_addr_t::decode, but it
currently is not.  Specifically, the sa_family member of
the sockaddr is not converted from the on-wire little-endian
format to host byte order (as done by entity_addr_t::decode).

Fixed by using the same code as in entity_addr_t::decode.

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
5 years agoMerge pull request #35859 from tspmelo/wip-remove-ngx-bootstrap
Lenz Grimmer [Fri, 3 Jul 2020 13:40:35 +0000 (15:40 +0200)]
Merge pull request #35859 from tspmelo/wip-remove-ngx-bootstrap

mgr/dashboard: Remove ngx-bootstrap

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
5 years agodoc/dev: Update zoned-storage.rst to indicate that OSDs can now be written to after... 35546/head
Abutalib Aghayev [Tue, 30 Jun 2020 17:01:07 +0000 (13:01 -0400)]
doc/dev: Update zoned-storage.rst to indicate that OSDs can now be written to after restart on zoned devices.

Signed-off-by: Abutalib Aghayev <agayev@cs.cmu.edu>
5 years agoos/bluestore: Introduce zoned freelist manager.
Abutalib Aghayev [Tue, 30 Jun 2020 17:00:24 +0000 (13:00 -0400)]
os/bluestore: Introduce zoned freelist manager.

Introduced ZonedFreelistManager, which tracks the write pointer and the number
of dead bytes per zone.

Signed-off-by: Abutalib Aghayev <agayev@cs.cmu.edu>
5 years agoMerge pull request #35875 from Devp00l/wip-46303
Lenz Grimmer [Fri, 3 Jul 2020 11:53:46 +0000 (13:53 +0200)]
Merge pull request #35875 from Devp00l/wip-46303

mgr/dashboard: Fixes regression in device selection modal

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #35912 from tchaikov/wip-crimson-osd-flush-pg-stats
Kefu Chai [Fri, 3 Jul 2020 10:51:19 +0000 (18:51 +0800)]
Merge pull request #35912 from tchaikov/wip-crimson-osd-flush-pg-stats

crimson/osd: implement flush_pg_stats command

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #35374 from jschmid1/activate_osdspec_affinity
Sebastian Wagner [Fri, 3 Jul 2020 10:01:53 +0000 (12:01 +0200)]
Merge pull request #35374 from jschmid1/activate_osdspec_affinity

mgr/cephadm: re-enable osdspec affinity passing

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agocrimson/osd: avoid `-Wunused-but-set-variable` warning 35912/head
Kefu Chai [Fri, 3 Jul 2020 08:57:56 +0000 (16:57 +0800)]
crimson/osd: avoid `-Wunused-but-set-variable` warning

in release build, `found` is not used at all. but GCC complains with a
`-Wunused-but-set-variable` warning.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35704 from Devp00l/wip-46135
Lenz Grimmer [Fri, 3 Jul 2020 08:50:18 +0000 (10:50 +0200)]
Merge pull request #35704 from Devp00l/wip-46135

mgr/dashboard: Fixes typeahead regression in the silence matcher

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agocrimson/osd: update the osd stats with hb peers
Kefu Chai [Fri, 3 Jul 2020 08:08:55 +0000 (16:08 +0800)]
crimson/osd: update the osd stats with hb peers

just to align with classic OSD

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: implement flush_pg_stats command
Kefu Chai [Fri, 3 Jul 2020 08:05:56 +0000 (16:05 +0800)]
crimson/osd: implement flush_pg_stats command

this command is used by teuthology based tests for updating the mgr with
the lastes pg stats on OSD.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/{mgr,osd}: add WithStats::update_stats()
Kefu Chai [Fri, 3 Jul 2020 07:59:11 +0000 (15:59 +0800)]
crimson/{mgr,osd}: add WithStats::update_stats()

because we need to implement a tell command which forces osd to
send the latest pg stats to mgr, and the command returns the user with
the sequence id of the report, and `mgr::Client::report()` does not
return a future, so we have to update the seq id before sending
the report. the solution is to update the seq id in a separated
method, so in this change:

* add `const` to `WithStats::get_stats()
* add a dedicated method of `WithStats::update_stats()` to update
  the stats to be collected by mgr::Client.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35887 from joscollin/wip-update-kyr
Kefu Chai [Fri, 3 Jul 2020 01:48:55 +0000 (09:48 +0800)]
Merge pull request #35887 from joscollin/wip-update-kyr

.githubmap: add Kyr

Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #35845 from tchaikov/wip-rpm-crimson
Kefu Chai [Fri, 3 Jul 2020 01:46:31 +0000 (09:46 +0800)]
Merge pull request #35845 from tchaikov/wip-rpm-crimson

rpm: package crimson-osd in ceph-osd

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
5 years agoMerge pull request #35867 from jwilk-forks/spelling
Neha Ojha [Fri, 3 Jul 2020 00:48:50 +0000 (17:48 -0700)]
Merge pull request #35867 from jwilk-forks/spelling

doc/dev/osd_internals: fix typos

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agocephadm: Make list_networks ipv6 enabled 35890/head
Matthew Oliver [Thu, 2 Jul 2020 08:21:53 +0000 (18:21 +1000)]
cephadm: Make list_networks ipv6 enabled

Currently the list_network command and methods in cephadm only run and
parse ipv4 output from `ip route`.

This patch extends the list_network command and internal methods to be
ipv6 enabled. It now also checks `ip -6 route` and `ip -6 addr` to
gather gather all networks from both protocol families.

Signed-off-by: Matthew Oliver <moliver@suse.com>
5 years agoMerge pull request #35894 from tchaikov/wip-crimson-os
Kefu Chai [Thu, 2 Jul 2020 14:48:00 +0000 (22:48 +0800)]
Merge pull request #35894 from tchaikov/wip-crimson-os

crimson/os: pin the last cpu core for the alien worker threads

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>