]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agoqa/rbd: add cram-based snap diff test 28346/head
Nathan Cutler [Fri, 31 May 2019 10:57:15 +0000 (12:57 +0200)]
qa/rbd: add cram-based snap diff test

Fixes: http://tracker.ceph.com/issues/39447
Signed-off-by: Shyukri Shyukriev <shshyukriev@suse.com>
Signed-off-by: Nathan Cutler <ncutler@suse.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 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 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 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 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>
6 years agoMerge pull request #28397 from tchaikov/wip-38403
Kefu Chai [Sun, 9 Jun 2019 07:32:22 +0000 (15:32 +0800)]
Merge pull request #28397 from tchaikov/wip-38403

osdc/Objecter: use unique_ptr<OSDMap> for Objecter::osdmap

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #28403 from xiexingguo/wip-unify-is-noup
Kefu Chai [Sat, 8 Jun 2019 15:36:34 +0000 (23:36 +0800)]
Merge pull request #28403 from xiexingguo/wip-unify-is-noup

osd: unify sources of no{up,down,in,out} flags into singleton helpers

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoosdc/Objecter: move Objecter::Objecter() into .cc 28397/head
Kefu Chai [Wed, 5 Jun 2019 02:54:21 +0000 (10:54 +0800)]
osdc/Objecter: move Objecter::Objecter() into .cc

to speed up compilation.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoosdc/Objecter: use unique_ptr<OSDMap> for Objecter::osdmap
Kefu Chai [Wed, 5 Jun 2019 02:43:05 +0000 (10:43 +0800)]
osdc/Objecter: use unique_ptr<OSDMap> for Objecter::osdmap

Fixes: http://tracker.ceph.com/issues/38403
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28379 from jtlayton/wip-jlayton-40114
Kefu Chai [Sat, 8 Jun 2019 15:31:58 +0000 (23:31 +0800)]
Merge pull request #28379 from jtlayton/wip-jlayton-40114

msg: fix addr2 encoding for sockaddrs

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28368 from kamoltat/wip-progress-module-pg-osdmap-comparison
Kefu Chai [Sat, 8 Jun 2019 15:28:35 +0000 (23:28 +0800)]
Merge pull request #28368 from kamoltat/wip-progress-module-pg-osdmap-comparison

mgr/progress: Look at PG state when PG epoch >= OSDMap epoch

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28352 from smithfarm/wip-rpm-obsolete-python
Kefu Chai [Sat, 8 Jun 2019 15:27:39 +0000 (23:27 +0800)]
Merge pull request #28352 from smithfarm/wip-rpm-obsolete-python

rpm: have pybind RPMs provide/obsolete their python2 predecessors

Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27512 from jmolmo/tls_auth
Kefu Chai [Sat, 8 Jun 2019 15:24:53 +0000 (23:24 +0800)]
Merge pull request #27512 from jmolmo/tls_auth

mgr/ansible: TLS Mutual Authentication

Reviewed-by: Sebastian Wagner <swagner@suse.com>
6 years agomds: ignore sessionmap version mismatch if mds_wipe_sessions is set 28456/head
Yan, Zheng [Sat, 8 Jun 2019 09:33:14 +0000 (17:33 +0800)]
mds: ignore sessionmap version mismatch if mds_wipe_sessions is set

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
6 years agomds: fix corner case of replaying open sessions
Yan, Zheng [Sat, 8 Jun 2019 05:08:21 +0000 (13:08 +0800)]
mds: fix corner case of replaying open sessions

Marking a session dirty may flush all existing dirty sessions. MDS
calls Server::finish_force_open_sessions() for log event that opens
multiple sessions. The function marks sessions dirty one by one. So
sessions opened by a log event may get flushed partially.

When replaying a log event that opens multiple sessions, mds need to
check if some of these sessions have already been flushed.

Fixes: https://tracker.ceph.com/issues/40211
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
6 years agoqa/cephfs: update tests for stale session handling 26737/head
Yan, Zheng [Tue, 5 Mar 2019 09:40:08 +0000 (17:40 +0800)]
qa/cephfs: update tests for stale session handling

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
6 years agomds: change how mds revoke stale caps
Yan, Zheng [Wed, 27 Feb 2019 12:51:38 +0000 (20:51 +0800)]
mds: change how mds revoke stale caps

- Only revokes conflicting caps from stale client.
- If stale client holds conflicting CEPH_CAP_ANY_WR,
  blacklist and kill it.

Fixes: https://tracker.ceph.com/issues/38326
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
6 years agomds: don't mark unresponsive sessions holding no caps stale
Rishabh Dave [Wed, 17 Oct 2018 12:42:43 +0000 (12:42 +0000)]
mds: don't mark unresponsive sessions holding no caps stale

When an unresponsive MDS session holds no caps, do not mark it stale
even after session_timeout; at session_autoclose, evict it directly.

Fixes: http://tracker.ceph.com/issues/17854
Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge PR #28171 into master
Patrick Donnelly [Sat, 8 Jun 2019 04:20:18 +0000 (21:20 -0700)]
Merge PR #28171 into master

* refs/pull/28171/head:
test_volume_client: simplify test_get_authorized_ids()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28190 into master
Patrick Donnelly [Sat, 8 Jun 2019 04:18:48 +0000 (21:18 -0700)]
Merge PR #28190 into master

* refs/pull/28190/head:
mds: cleanup unneeded client_snap_caps when splitting snap inode

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

* refs/pull/28293/head:
mds: avoid passing null to SessionmMap::hit_session()
qa/cephfs: add test for blacklisted client eviction
mds: fix 'is session in blacklist' check in Server::apply_blacklist()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28376 into master
Patrick Donnelly [Sat, 8 Jun 2019 04:14:40 +0000 (21:14 -0700)]
Merge PR #28376 into master

* refs/pull/28376/head:
mds: count purge queue items left in journal

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28406 into master
Patrick Donnelly [Sat, 8 Jun 2019 04:13:36 +0000 (21:13 -0700)]
Merge PR #28406 into master

* refs/pull/28406/head:
mds: reset heartbeat inside big loop

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28411 into master
Patrick Donnelly [Sat, 8 Jun 2019 04:12:38 +0000 (21:12 -0700)]
Merge PR #28411 into master

* refs/pull/28411/head:
qa/cephfs: fix test_evict_client

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28433 into master
Patrick Donnelly [Sat, 8 Jun 2019 04:10:52 +0000 (21:10 -0700)]
Merge PR #28433 into master

* refs/pull/28433/head:
cephfs-shell: Remove unnecessary empty line
cephfs-shell: Fix flake8 bare 'except' warnings
cephfs-shell: Remove unused variable 'e'
cephfs-shell: Fix flake8 use != to compare str literals warning
cephfs-shell: Fixe flake8 line too long error

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoosd: Don't randomize deep scrubs when noscrub set 28443/head
David Zafman [Fri, 7 Jun 2019 03:32:40 +0000 (03:32 +0000)]
osd: Don't randomize deep scrubs when noscrub set

Fixes: http://tracker.ceph.com/issues/40198
Signed-off-by: David Zafman <dzafman@redhat.com>
6 years agoMerge pull request #28455 from yuriw/wip-yuriw-40208-master
Yuri Weinstein [Fri, 7 Jun 2019 23:27:40 +0000 (16:27 -0700)]
Merge pull request #28455 from yuriw/wip-yuriw-40208-master

qa/tests: removed `1node` and `systemd` tests as ceph-deploy is not actively developed

6 years agoqa/tests: removed `1node` and `systemd` tests as ceph-deploy is not actively developed 28455/head
Yuri Weinstein [Fri, 7 Jun 2019 21:34:35 +0000 (14:34 -0700)]
qa/tests: removed `1node` and `systemd` tests as ceph-deploy is not actively developed

Fixes: http://tracker.ceph.com/issues/40207
Fixes: http://tracker.ceph.com/issues/40208
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
6 years agorgw_file: all directories are virtual with respect to contents 28451/head
Matt Benjamin [Fri, 7 Jun 2019 14:20:01 +0000 (10:20 -0400)]
rgw_file: all directories are virtual with respect to contents

This change causes directory handles to always report an mtime of
"now."  This is not an invalidate per se--it interacts with the
nfs implementation to produce that result when the implementation
updates its cached attributes.  Hence, it can be modulated by timers
or other rules governing attribute caching at the upper layer.

Fixes: http://tracker.ceph.com/issues/40204
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #28440 from linuxbox2/wip-rgwfile-invbckt
Matt Benjamin [Fri, 7 Jun 2019 18:25:48 +0000 (14:25 -0400)]
Merge pull request #28440 from linuxbox2/wip-rgwfile-invbckt

rgw_file: permit lookup_handle to lookup root_fh