]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agolibrbd: avoid dereferencing an empty container during deep-copy 28559/head
Jason Dillaman [Fri, 14 Jun 2019 17:34:24 +0000 (13:34 -0400)]
librbd: avoid dereferencing an empty container during deep-copy

While updating the image copy progress, a 'while' loop will pop the
last item from the queue and then deference the empty queue.

Fixes: http://tracker.ceph.com/issues/40368
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #27951 from ifed01/wip-ifed-fix-slowop-log
Igor Fedotov [Fri, 14 Jun 2019 10:43:49 +0000 (13:43 +0300)]
Merge pull request #27951 from ifed01/wip-ifed-fix-slowop-log

os/bluestore: fix origin reference in logging slow ops.

6 years agoMerge pull request #28490 from xiexingguo/wip-40193
Kefu Chai [Fri, 14 Jun 2019 10:29:38 +0000 (18:29 +0800)]
Merge pull request #28490 from xiexingguo/wip-40193

mon/OSDMonitor: report pg[pgp]_num_target instead of pg[pgp]_num

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28322 from liewegas/wip-preextend
Kefu Chai [Fri, 14 Jun 2019 10:27:44 +0000 (18:27 +0800)]
Merge pull request #28322 from liewegas/wip-preextend

os/bluestore: bluefs_preextend_wal_files=true

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge pull request #28260 from s0nea/wip-dashboard-pool-delete-flag
Laura Paduano [Fri, 14 Jun 2019 10:02:02 +0000 (12:02 +0200)]
Merge pull request #28260 from s0nea/wip-dashboard-pool-delete-flag

mgr/dashboard: consider 'mon_allow_pool_delete' flag

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #28534 from tchaikov/wip-crimson-mkkey
Kefu Chai [Fri, 14 Jun 2019 09:34:42 +0000 (17:34 +0800)]
Merge pull request #28534 from tchaikov/wip-crimson-mkkey

crimson/osd: add --mkkey support

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #28464 from majianpeng/fio-ceph-messenger-multi-client
Kefu Chai [Fri, 14 Jun 2019 09:14:43 +0000 (17:14 +0800)]
Merge pull request #28464 from majianpeng/fio-ceph-messenger-multi-client

test/fio/fio_ceph_messenger: make exec multi client on the same host.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28404 from xiexingguo/wip-osd-noup-stall
Kefu Chai [Fri, 14 Jun 2019 08:37:33 +0000 (16:37 +0800)]
Merge pull request #28404 from xiexingguo/wip-osd-noup-stall

osd/OSD: keep synchronizing with mon if stuck at booting

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agocrimson/osd: ignore exception when stopping osd 28534/head
Kefu Chai [Fri, 14 Jun 2019 06:57:55 +0000 (14:57 +0800)]
crimson/osd: ignore exception when stopping osd

OSD::stop() is a top-level method in the sense that it will be called
directly when engine stops. so it should not throw any exceptions.
instead, we will print out the error and ignore the exception if any.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: add --mkkey support
Kefu Chai [Thu, 13 Jun 2019 14:48:48 +0000 (22:48 +0800)]
crimson/osd: add --mkkey support

see qa/tasks/ceph.py for how it is used, and why we need it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/os: use buffer::write_file() helper
Kefu Chai [Thu, 13 Jun 2019 14:44:16 +0000 (22:44 +0800)]
crimson/os: use buffer::write_file() helper

instead of using the blocking calls

so we can write to file without blocking the reactor

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson: add buffer_io helpers
Kefu Chai [Fri, 14 Jun 2019 03:49:47 +0000 (11:49 +0800)]
crimson: add buffer_io helpers

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28507 from tchaikov/wip-cmake-dpdk-boost
Kefu Chai [Fri, 14 Jun 2019 07:43:41 +0000 (15:43 +0800)]
Merge pull request #28507 from tchaikov/wip-cmake-dpdk-boost

cmake: update SPDK to build with GCC-9

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoauth/KeyRing: remove KeyRing::create_empty()
Kefu Chai [Thu, 13 Jun 2019 14:38:02 +0000 (22:38 +0800)]
auth/KeyRing: remove KeyRing::create_empty()

it never fails unless out of memory. and it would be simpler to just
allocate it on stack.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28535 from tchaikov/wip-crimson-packaging
Kefu Chai [Fri, 14 Jun 2019 05:27:45 +0000 (13:27 +0800)]
Merge pull request #28535 from tchaikov/wip-crimson-packaging

debian/: use ceph-osd for packaging crimson-osd

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge PR #28456 into master
Patrick Donnelly [Thu, 13 Jun 2019 19:22:05 +0000 (12:22 -0700)]
Merge PR #28456 into master

* refs/pull/28456/head:
mds: ignore sessionmap version mismatch if mds_wipe_sessions is set
mds: fix corner case of replaying open sessions

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28521 from alimaredia/wip-qa-rgw-ssl
Casey Bodley [Thu, 13 Jun 2019 19:00:21 +0000 (15:00 -0400)]
Merge pull request #28521 from alimaredia/wip-qa-rgw-ssl

qa: use curl in wait_for_radosgw() in util/rgw.py

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28415 from linuxbox2/wip-full-odsock
Matt Benjamin [Thu, 13 Jun 2019 17:57:25 +0000 (13:57 -0400)]
Merge pull request #28415 from linuxbox2/wip-full-odsock

rgw/OutputDataSocket: actually discard data on full buffer

6 years agoqa: use curl in wait_for_radosgw() in util/rgw.py 28521/head
Ali Maredia [Wed, 12 Jun 2019 20:12:47 +0000 (16:12 -0400)]
qa: use curl in wait_for_radosgw() in util/rgw.py

Signed-off-by: Ali Maredia <amaredia@redhat.com>
6 years agoMerge pull request #25496 from mkogan1/wip-rgw-dynamic-resharding-docs
Casey Bodley [Thu, 13 Jun 2019 16:01:16 +0000 (12:01 -0400)]
Merge pull request #25496 from mkogan1/wip-rgw-dynamic-resharding-docs

rgw: update the "radosgw-admin reshard status"

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agodebian/: use ceph-osd for packaging crimson-osd 28535/head
Kefu Chai [Thu, 13 Jun 2019 08:28:29 +0000 (16:28 +0800)]
debian/: use ceph-osd for packaging crimson-osd

* debian/: remove ceph-crimson-osd package.
* debian/control: set `CEPH_OSD_BASENAME` env variable, which
  will be consumed by `ceph-osd.install`. alternatively, we could
  rename crimson-osd to ceph-osd in `override_dh_auto_install`,
  but let's go with this way at this moment, unless `mv` in
  `override_dh_auto_install` is proved to be better.
* ceph-osd.install: replace ceph-osd with crimson-osd if
  `CEPH_EXTRA_CMAKE_ARGS` has `WITH_SEASTAR` in it. this only
  happens when we are packaging the "crimson" flavor packages from
  jenkins.
* ceph-osd.install: `chmod +x` this file, as we need to use
  `/usr/bin/dh-exec` as the interpreter of it to perform variable
  substitution and install.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: silence -Waddress-of-packed-member warnings from SPDK 28507/head
Kefu Chai [Wed, 12 Jun 2019 13:27:33 +0000 (21:27 +0800)]
cmake: silence -Waddress-of-packed-member warnings from SPDK

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: silence GCC-9 warnings from rocksdb
Kefu Chai [Wed, 12 Jun 2019 08:50:14 +0000 (16:50 +0800)]
cmake: silence GCC-9 warnings from rocksdb

GCC-9 complains:

rocksdb/db/version_edit.h:86:8: warning: implicitly-declared ‘constexpr
rocksdb::FileDescriptor::FileDescriptor(const rocksdb::FileDescriptor&)’
is deprecated [-Wdeprecated-copy]
   86 | struct FileMetaData {
      |        ^~~~~~~~~~~~
/var/ssd/ceph/src/rocksdb/db/version_edit.h:55:19: note: because
‘rocksdb::FileDescriptor’ has user-provided ‘rocksdb::FileDescriptor&
rocksdb::FileDescriptor::operator=(const rocksdb::FileDescriptor&)’
   55 |   FileDescriptor& operator=(const FileDescriptor& fd) {
      |                   ^~~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: set ccache for rocksdb
Kefu Chai [Wed, 12 Jun 2019 10:54:26 +0000 (18:54 +0800)]
cmake: set ccache for rocksdb

should use launcher to set ccache

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: update built libs of SPDK and DPDK
Kefu Chai [Wed, 12 Jun 2019 11:18:53 +0000 (19:18 +0800)]
cmake: update built libs of SPDK and DPDK

we need to link against these new libs for fulfilling the dependencies
required by new SPDK.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: disable isal and vhost support of SPDK
Kefu Chai [Wed, 12 Jun 2019 08:32:55 +0000 (16:32 +0800)]
cmake: disable isal and vhost support of SPDK

* isal needs nasm, which is a new dependency. so let's disable it
  at this moment.
* vhost requires DPDK compiled with vhost enabled. but it's disabled
  when we compile DPDK.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agospdk: pick up latest spdk
Kefu Chai [Wed, 12 Jun 2019 08:04:41 +0000 (16:04 +0800)]
spdk: pick up latest spdk

to silence the warnings reported by GCC-9

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agorgw: provide admin friendly reshard status output 25496/head
Mark Kogan [Sun, 12 May 2019 13:45:30 +0000 (09:45 -0400)]
rgw: provide admin friendly reshard status output

Signed-off-by: Mark Kogan <mkogan@redhat.com>
6 years agoMerge pull request #28446 from tspmelo/wip-prepare-backport
Nathan Cutler [Thu, 13 Jun 2019 09:01:30 +0000 (11:01 +0200)]
Merge pull request #28446 from tspmelo/wip-prepare-backport

script/ceph-backport.sh: Add prepare function

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #28515 from hvhaugwitz/mondb-recovery-script
Kefu Chai [Thu, 13 Jun 2019 00:36:16 +0000 (08:36 +0800)]
Merge pull request #28515 from hvhaugwitz/mondb-recovery-script

doc: update mondb recovery script

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #28473 into master
Patrick Donnelly [Wed, 12 Jun 2019 21:30:45 +0000 (14:30 -0700)]
Merge PR #28473 into master

* refs/pull/28473/head:
cephfs-shell: Catch OSError exceptions in lcd

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28475 into master
Patrick Donnelly [Wed, 12 Jun 2019 21:29:46 +0000 (14:29 -0700)]
Merge PR #28475 into master

* refs/pull/28475/head:
cephfs-shell: Fix 'lls' command errors

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28407 into master
Patrick Donnelly [Wed, 12 Jun 2019 21:27:53 +0000 (14:27 -0700)]
Merge PR #28407 into master

* refs/pull/28407/head:
mgr/volumes: fix error message

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #27856 into master
Patrick Donnelly [Wed, 12 Jun 2019 21:27:07 +0000 (14:27 -0700)]
Merge PR #27856 into master

* refs/pull/27856/head:
test: remove fs/test-volume.sh workunit
test: port fs/volume related tests to python

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28196 into master
Patrick Donnelly [Wed, 12 Jun 2019 21:16:31 +0000 (14:16 -0700)]
Merge PR #28196 into master

* refs/pull/28196/head:
ceph_volume_client: decode d_name before using it

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
6 years agoMerge PR #28221 into master
Patrick Donnelly [Wed, 12 Jun 2019 21:15:30 +0000 (14:15 -0700)]
Merge PR #28221 into master

* refs/pull/28221/head:
qa/tasks/cephfs/test_volume_client: print py2 or py3 which the test case runs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge PR #26737 into master
Patrick Donnelly [Wed, 12 Jun 2019 21:07:22 +0000 (14:07 -0700)]
Merge PR #26737 into master

* refs/pull/26737/head:
qa/cephfs: update tests for stale session handling
mds: change how mds revoke stale caps
mds: don't mark unresponsive sessions holding no caps stale

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28518 from yuriw/wip-yuriw-crontab-master
Yuri Weinstein [Wed, 12 Jun 2019 20:49:41 +0000 (13:49 -0700)]
Merge pull request #28518 from yuriw/wip-yuriw-crontab-master

qa/tests: removed upgrade/client-upgrade-hammer becasue ubuntu 14.04 …

6 years agoMerge pull request #28466 from hoerup/update-releases
Neha Ojha [Wed, 12 Jun 2019 19:45:33 +0000 (12:45 -0700)]
Merge pull request #28466 from hoerup/update-releases

Doc: update release schedule

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Noah Watkins <nwatkins@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoDoc: update release schedule 28466/head
Torben Hørup [Mon, 10 Jun 2019 07:19:16 +0000 (09:19 +0200)]
Doc: update release schedule

Added nautilus + the latest releases from mimic and luminous
in order to keep dumpling column, ceph_releases is modified to allow 13 columns

Signed-off-by: Torben Hørup <th@synack.fo>
6 years agoMerge pull request #28470 from yuvalif/wip-yuval-sync-type-pubsub
Yuval Lifshitz [Wed, 12 Jun 2019 17:01:31 +0000 (20:01 +0300)]
Merge pull request #28470 from yuvalif/wip-yuval-sync-type-pubsub

rgw/pubsub: use incremental sync for pubsub module by default

6 years agotest: remove fs/test-volume.sh workunit 27856/head
Venky Shankar [Tue, 4 Jun 2019 12:56:03 +0000 (08:56 -0400)]
test: remove fs/test-volume.sh workunit

.. since its ported to python now.

Fixes: http://tracker.ceph.com/issues/39949
Signed-off-by: Venky Shankar <vshankar@redhat.com>
6 years agotest: port fs/volume related tests to python
Venky Shankar [Tue, 4 Jun 2019 10:09:56 +0000 (06:09 -0400)]
test: port fs/volume related tests to python

... and add subvolume related tests.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
6 years agoqa/tests: removed upgrade/client-upgrade-hammer becasue ubuntu 14.04 is not supported 28518/head
Yuri Weinstein [Wed, 12 Jun 2019 16:13:15 +0000 (09:13 -0700)]
qa/tests: removed upgrade/client-upgrade-hammer becasue ubuntu 14.04 is not supported

Also removed ubuntu 14.04 filters

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
6 years agodoc: update mondb recovery script 28515/head
Hannes von Haugwitz [Wed, 12 Jun 2019 13:18:17 +0000 (15:18 +0200)]
doc: update mondb recovery script

- be specific about stopped OSDs
- add missing '--no-mon-config' option
- fix indent of here script delimiting identifier
- use $host variable in for loop

Signed-off-by: Hannes von Haugwitz <hannes@vonhaugwitz.com>
6 years agoMerge pull request #28508 from smithfarm/wip-40295
Kefu Chai [Wed, 12 Jun 2019 15:05:23 +0000 (23:05 +0800)]
Merge pull request #28508 from smithfarm/wip-40295

cmake: set empty-string RPATH for ceph-osd

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #22446 into master
Sage Weil [Wed, 12 Jun 2019 14:11:49 +0000 (09:11 -0500)]
Merge PR #22446 into master

* refs/pull/22446/head:
relicense LGPL-2.1 code as LGPL-2.1 or LGPL-3.0
COPYING: add reference to a few Apache-2.0 licensed source files
debian/copyright: sync with COPYING
COPYING: LGPL2.1 -> LGPL-2.1
COPYING: extra bits from debian/copyright

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
6 years agoscript/ceph-backport.sh: Add prepare function 28446/head
Tiago Melo [Tue, 4 Jun 2019 11:28:26 +0000 (12:28 +0100)]
script/ceph-backport.sh: Add prepare function

Add a new flag, --prepare, that when used will fetch all necessary info and
cherrypick all original commits automatically.
It will also prevent the main code to be executed.

After running with --prepare, and if there were no conflicts, you can simply
remove the flag from the command and run the script again.
This time it will run the main code and create the PR and update the backport
issue.

p.e.:
ceph-backport.sh 19206 jewel --prepare
ceph-backport.sh 19206 jewel

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #28484 from tchaikov/wip-test_librados_build
Kefu Chai [Wed, 12 Jun 2019 11:47:46 +0000 (19:47 +0800)]
Merge pull request #28484 from tchaikov/wip-test_librados_build

qa/workunits/rados/test_librados_build.sh: install build deps

Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #28486 from tchaikov/wip-remove-digest-from-buffer.h
Kefu Chai [Wed, 12 Jun 2019 11:29:59 +0000 (19:29 +0800)]
Merge pull request #28486 from tchaikov/wip-remove-digest-from-buffer.h

buffer,crypto,tools: extract digest methods out of bufferlist

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Myoungwon Oh <omwmw@sk.com>
6 years agoMerge pull request #28494 from ricardoasmarques/update-iscsi-dependencies-versions
Jason Dillaman [Wed, 12 Jun 2019 11:21:30 +0000 (07:21 -0400)]
Merge pull request #28494 from ricardoasmarques/update-iscsi-dependencies-versions

doc: Update 'python-rtslib' and 'tcmu-runner' min versions

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agocmake: set empty-string RPATH for ceph-osd 28508/head
Nathan Cutler [Fri, 15 Mar 2019 12:50:51 +0000 (13:50 +0100)]
cmake: set empty-string RPATH for ceph-osd

Fixes: http://tracker.ceph.com/issues/40295
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agoqa/workunits/rados/test_envlibrados_for_rocksdb: support SUSE distros 28484/head
Kefu Chai [Wed, 12 Jun 2019 09:38:26 +0000 (17:38 +0800)]
qa/workunits/rados/test_envlibrados_for_rocksdb: support SUSE distros

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/workunits/rados/test_librados_build.sh: install build deps
Kefu Chai [Tue, 11 Jun 2019 05:16:48 +0000 (13:16 +0800)]
qa/workunits/rados/test_librados_build.sh: install build deps

to build helloworld of librados, we need to install the build
dependencies.

Fixes: https://tracker.ceph.com/issues/40155
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/workunits/rados/test_envlibrados_for_rocksdb: use helper script
Kefu Chai [Wed, 12 Jun 2019 04:32:58 +0000 (12:32 +0800)]
qa/workunits/rados/test_envlibrados_for_rocksdb: use helper script

instead of having its own copy of `install()`, try to leverage the
helper in ceph-helpers-root.sh.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/workunits/ceph-helpers-root: use /etc/os-release instead
Kefu Chai [Wed, 12 Jun 2019 04:29:45 +0000 (12:29 +0800)]
qa/workunits/ceph-helpers-root: use /etc/os-release instead

as lsb_release does not work on SUSE distros

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28465 from tchaikov/wip-xio-cleanup
Kefu Chai [Wed, 12 Jun 2019 09:16:03 +0000 (17:16 +0800)]
Merge pull request #28465 from tchaikov/wip-xio-cleanup

include/config-h.in.cmake: remove HAVE_XIO

Reviewed-by: Xie Xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agocmake: move boost patch to cmake/modules
Kefu Chai [Wed, 12 Jun 2019 07:49:11 +0000 (15:49 +0800)]
cmake: move boost patch to cmake/modules

as it's used by cmake only

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake/modules/BuildDPDK.cmake: update to adapt upstream changes
Kefu Chai [Wed, 12 Jun 2019 07:21:45 +0000 (15:21 +0800)]
cmake/modules/BuildDPDK.cmake: update to adapt upstream changes

* update execenv to remove "app", the targets ending with "app" changed
  to the ones without "app" now.
* pass CC by make variables not env variables, otherwise the default
  `cc` is used

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28495 from tchaikov/wip-dashboard-portal_ip_addresses
Kefu Chai [Wed, 12 Jun 2019 05:53:38 +0000 (13:53 +0800)]
Merge pull request #28495 from tchaikov/wip-dashboard-portal_ip_addresses

mgr/dashboard: take portal_ip_addresses as a list

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: s/portal_ip_address/portal_ip_addresses/ 28495/head
Kefu Chai [Tue, 11 Jun 2019 16:28:53 +0000 (00:28 +0800)]
mgr/dashboard: s/portal_ip_address/portal_ip_addresses/

and take portal_ip_addresses as a list

it's a follow-up fix of #28084

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28290 from b-ranto/wip-selinux-rhel8
Kefu Chai [Wed, 12 Jun 2019 02:17:16 +0000 (10:17 +0800)]
Merge pull request #28290 from b-ranto/wip-selinux-rhel8

selinux: Update the policy for RHEL8

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27507 from pritha-srivastava/wip-rgw-cross-tenant-doc
Casey Bodley [Tue, 11 Jun 2019 17:16:28 +0000 (13:16 -0400)]
Merge pull request #27507 from pritha-srivastava/wip-rgw-cross-tenant-doc

rgw: Improving doc for Cross Project(Tenant) access with Openstack Ke…

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agodoc: Update 'python-rtslib' and 'tcmu-runner' min versions 28494/head
Ricardo Marques [Tue, 11 Jun 2019 15:53:41 +0000 (16:53 +0100)]
doc: Update 'python-rtslib' and 'tcmu-runner' min versions

Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agorgw: update the "radosgw-admin reshard status"
Mark Kogan [Tue, 11 Dec 2018 17:43:32 +0000 (12:43 -0500)]
rgw: update the "radosgw-admin reshard status"
command documentation with expected output examples

Fixes: http://tracker.ceph.com/issues/37615
Signed-off-by: Mark Kogan <mkogan@redhat.com>
6 years agomon/OSDMonitor: report pg[pgp]_num_target instead of pg[pgp]_num 28490/head
xie xingguo [Mon, 10 Jun 2019 07:58:37 +0000 (15:58 +0800)]
mon/OSDMonitor: report pg[pgp]_num_target instead of pg[pgp]_num

As by calling "ceph osd pool set <pool-name> pg_num", we set the
pg_num_target instead. Hence we should report pg_num_target as well
when invoked by the "ceph osd pool get <pool-name> pg_num" call.

I doubt an ideal fix would be exposing both the pg_num(*actual*) and
pg_num_target concepts to user, but for now I think we can stop here
and get some more feedback first.

Fixes: http://tracker.ceph.com/issues/40193
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #28084 from ricardoasmarques/improve-portal-ips-calculation
Kefu Chai [Tue, 11 Jun 2019 12:17:32 +0000 (20:17 +0800)]
Merge pull request #28084 from ricardoasmarques/improve-portal-ips-calculation

mgr/dashboard: Optimize portal IPs calculation

Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #28454 from tchaikov/wip-gcc-9-on-bionic
Kefu Chai [Tue, 11 Jun 2019 12:14:51 +0000 (20:14 +0800)]
Merge pull request #28454 from tchaikov/wip-gcc-9-on-bionic

install-deps.sh: use GCC-9 on bionic

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #28246 from kungf/mgr_default_addr
Kefu Chai [Tue, 11 Jun 2019 11:48:00 +0000 (19:48 +0800)]
Merge pull request #28246 from kungf/mgr_default_addr

mgr: use ipv4 default when ipv6 was disabled

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28481 from iotcg/common
Kefu Chai [Tue, 11 Jun 2019 11:35:19 +0000 (19:35 +0800)]
Merge pull request #28481 from iotcg/common

include: buffer_raw.h: Copyright time fix

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agobuffer,crypto,osd,tools: extract digest methods out of bufferlist 28486/head
Kefu Chai [Tue, 11 Jun 2019 07:47:37 +0000 (15:47 +0800)]
buffer,crypto,osd,tools: extract digest methods out of bufferlist

they were consumers of ceph::list::buffers(), and there is no need to
make them member functions of ceph::list, so move them into ceph::crypto
namespace. and update the unit test and ceph_dedup_tool.cc accordingly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/tasks/cephfs/test_volume_client: print py2 or py3 which the test case runs 28221/head
Lianne [Tue, 11 Jun 2019 10:27:06 +0000 (18:27 +0800)]
qa/tasks/cephfs/test_volume_client: print py2 or py3 which the test case runs

Fixes: http://tracker.ceph.com/issues/40184
Signed-off-by: Lianne <liyan.wang@xtaotech.com>
6 years agocommon/ceph_crypto: add digest_size to digest classes
Kefu Chai [Tue, 11 Jun 2019 06:42:14 +0000 (14:42 +0800)]
common/ceph_crypto: add digest_size to digest classes

prepare for extracting the digest methods from ceph::buffer::list, so we
can use them in a templated implementation.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest/fio/fio_ceph_messenger: make exec multi client on the same host. 28464/head
Jianpeng Ma [Tue, 11 Jun 2019 07:21:39 +0000 (15:21 +0800)]
test/fio/fio_ceph_messenger: make exec multi client on the same host.

When create Messenger, for client we should give different nonce to
make multi clients on the same host can work. Otherwise, server only
accept one connection.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agoMerge pull request #28443 from dzafman/wip-40198
Kefu Chai [Tue, 11 Jun 2019 06:03:23 +0000 (14:03 +0800)]
Merge pull request #28443 from dzafman/wip-40198

osd: Don't randomize deep scrubs when noscrub set

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #28431 from cbodley/wip-40188
Kefu Chai [Tue, 11 Jun 2019 06:02:28 +0000 (14:02 +0800)]
Merge pull request #28431 from cbodley/wip-40188

common: OutputDataSocket retakes mutex on error path

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #28427 from tchaikov/wip-40174
Kefu Chai [Tue, 11 Jun 2019 05:59:38 +0000 (13:59 +0800)]
Merge pull request #28427 from tchaikov/wip-40174

mgr/influx: try to call close()

Reviewed-by: Wido den Hollander <wido@42on.com>
6 years agoMerge pull request #28254 from myoungwon/wip-hashfuncs-dedup
Kefu Chai [Tue, 11 Jun 2019 05:57:36 +0000 (13:57 +0800)]
Merge pull request #28254 from myoungwon/wip-hashfuncs-dedup

common,osd: add hash algorithms for dedup fingerprint

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28176 from p-na/wip-pna-fix-fixmod
Kefu Chai [Tue, 11 Jun 2019 05:56:28 +0000 (13:56 +0800)]
Merge pull request #28176 from p-na/wip-pna-fix-fixmod

mgr/dashboard: Fix `npm run fixmod` command

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #26909 from vitalif/wal-sync-fix
Kefu Chai [Tue, 11 Jun 2019 05:53:59 +0000 (13:53 +0800)]
Merge pull request #26909 from vitalif/wal-sync-fix

os/bluestore: Actually wait until completion in write_sync

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28167 from dillaman/wip-39972
Kefu Chai [Tue, 11 Jun 2019 05:47:49 +0000 (13:47 +0800)]
Merge pull request #28167 from dillaman/wip-39972

librados: move buffer free functions to inline namespace

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28463 from tchaikov/wip-yaml.safe_load
Kefu Chai [Tue, 11 Jun 2019 01:52:37 +0000 (09:52 +0800)]
Merge pull request #28463 from tchaikov/wip-yaml.safe_load

admin,doc/_ext/ceph_releases.py: use yaml.safe_load()

Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
6 years agoMerge pull request #28074 from falcon78921/wip-doc-39712
Kefu Chai [Tue, 11 Jun 2019 01:16:11 +0000 (09:16 +0800)]
Merge pull request #28074 from falcon78921/wip-doc-39712

doc: fixed broken links in nautilus release page

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoinclude: buffer_raw.h: Copyright time fix 28481/head
Changcheng Liu [Tue, 11 Jun 2019 01:07:34 +0000 (09:07 +0800)]
include: buffer_raw.h: Copyright time fix

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
6 years agoMerge pull request #28479 from yuriw/wip-yuriw-crontab-master
Yuri Weinstein [Mon, 10 Jun 2019 21:26:12 +0000 (14:26 -0700)]
Merge pull request #28479 from yuriw/wip-yuriw-crontab-master

qa.tests: added "smoke" suite to the schedule on "mimic","nautilus"

6 years agoqa.tests: added "smoke" suite to the schedule on "mimic","nautilus" 28479/head
Yuri Weinstein [Mon, 10 Jun 2019 19:40:30 +0000 (12:40 -0700)]
qa.tests: added "smoke" suite to the schedule on "mimic","nautilus"

Note: frequency can/will reduce later

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoMerge pull request #28451 from linuxbox2/wip-rgwfile-dirinv
Matt Benjamin [Mon, 10 Jun 2019 17:41:37 +0000 (13:41 -0400)]
Merge pull request #28451 from linuxbox2/wip-rgwfile-dirinv

rgw_file: all directories are virtual with respect to contents

6 years agoMerge pull request #28434 from dillaman/wip-40110
Mykola Golub [Mon, 10 Jun 2019 17:09:32 +0000 (20:09 +0300)]
Merge pull request #28434 from dillaman/wip-40110

rbd-mirror: link against the specified alloc library

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #28414 from smithfarm/wip-40175
Kefu Chai [Mon, 10 Jun 2019 16:11:14 +0000 (00:11 +0800)]
Merge pull request #28414 from smithfarm/wip-40175

build/ops: make "patch" build dependency explicit

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocephfs-shell: Fix 'lls' command errors 28475/head
Varsha Rao [Mon, 10 Jun 2019 13:33:53 +0000 (19:03 +0530)]
cephfs-shell: Fix 'lls' command errors

This patch fixes following:
* Not printing complete path when '..' is passed as argument.
* Printing of path for current working directory.
* No need to set default value for add_argument. As it returns empty list with
  nargs='*'.
* No need to check for absolute path. os.listdir takes both relative and
  absolute path.
* Use try-catch instead of if-else statement to catch exceptions.

Fixes: http://tracker.ceph.com/issues/40244
Signed-off-by: Varsha Rao <varao@redhat.com>
6 years agocephfs-shell: Catch OSError exceptions in lcd 28473/head
Varsha Rao [Mon, 10 Jun 2019 11:12:58 +0000 (16:42 +0530)]
cephfs-shell: Catch OSError exceptions in lcd

This patch adds try-except statement to catch the OSError exceptions.

Fixes: http://tracker.ceph.com/issues/40243
Signed-off-by: Varsha Rao <varao@redhat.com>
6 years agoMerge pull request #28388 from dillaman/wip-msg-async-1
Kefu Chai [Mon, 10 Jun 2019 13:05:15 +0000 (21:05 +0800)]
Merge pull request #28388 from dillaman/wip-msg-async-1

msg/async: avoid unnecessary costly wakeups for outbound messages

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agobuild/ops: make "patch" build dependency explicit 28414/head
Nathan Cutler [Wed, 5 Jun 2019 15:30:30 +0000 (17:30 +0200)]
build/ops: make "patch" build dependency explicit

This commit adds "patch" as an explicit build dependency. Before, the RPM
build was installing it in the build environment via some mechanism that I
don't entirely understand.

The "patch" command is used by the BuildBoost cmake module.

Fixes: http://tracker.ceph.com/issues/40175
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agorgw/pubsub: make new PSZone parameters optional in test 28470/head
Yuval Lifshitz [Mon, 10 Jun 2019 06:41:19 +0000 (09:41 +0300)]
rgw/pubsub: make new PSZone parameters optional in test

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
6 years agoinclude/config-h.in.cmake: remove HAVE_XIO 28465/head
Kefu Chai [Mon, 10 Jun 2019 06:11:18 +0000 (14:11 +0800)]
include/config-h.in.cmake: remove HAVE_XIO

* remove the HAVE_XIO template
* remove README.xio

as XioMessenger was removed back in cc9a9142 .

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoceph_volume_client: decode d_name before using it 28196/head
Rishabh Dave [Sun, 19 May 2019 10:17:25 +0000 (12:17 +0200)]
ceph_volume_client: decode d_name before using it

d_name is received as byte array but the code intends to use it as
a string. Therefore, convert it before using.

Fixes: http://tracker.ceph.com/issues/39406
Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoadmin,doc/_ext/ceph_releases.py: use yaml.safe_load() 28463/head
Kefu Chai [Sun, 9 Jun 2019 14:10:51 +0000 (22:10 +0800)]
admin,doc/_ext/ceph_releases.py: use yaml.safe_load()

see
https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23312 from sylvia0409/master
Kefu Chai [Sun, 9 Jun 2019 13:26:38 +0000 (21:26 +0800)]
Merge pull request #23312 from sylvia0409/master

doc: Fixes OSD node labels which based on the osd_devices name

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28461 from tchaikov/wip-cmake-pg-meta-set
Kefu Chai [Sun, 9 Jun 2019 11:46:41 +0000 (19:46 +0800)]
Merge pull request #28461 from tchaikov/wip-cmake-pg-meta-set

crimson/osd/pg_meta: use initializer list for passing set<>

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson/osd/pg_meta: use initializer list for passing set<> 28461/head
Kefu Chai [Sun, 9 Jun 2019 10:10:02 +0000 (18:10 +0800)]
crimson/osd/pg_meta: use initializer list for passing set<>

we cannot assume that the data in string views are always nul
terminated.

this change partially reverts 82fedbd0089073cfe86640eaa7d73ed1e2545c31.

Signed-off-by: Kefu Chai <kchai@redhat.com>