Commit Graph

83174 Commits

Author SHA1 Message Date
Yuri Weinstein
d881a416e4
Merge pull request #20095 from tianshan/fix_reload
rgw: fix RGWCompletionManager get_next stuck after going down

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-02-15 08:58:39 -08:00
Alfredo Deza
287c952bc8 ceph-volume util.prepare extend flags when found
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-15 11:29:29 -05:00
Alfredo Deza
457a5173d2 ceph-volume util.constants update mount flags to include rw, normalize on list
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-15 11:29:29 -05:00
Alfredo Deza
b80e3bf117 ceph-volume configuration normalize underscore vs. whitespace named options
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-15 11:29:29 -05:00
Alfredo Deza
676c93fcf3 ceph-volume tests check for mount/format usage from ceph.conf
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-15 11:29:29 -05:00
Alfredo Deza
a8eecc6471 ceph-volume tests add ceph.conf stub for custom conf files
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-15 11:29:28 -05:00
Mykola Golub
cd3ae9b81f
Merge pull request #20423 from dillaman/wip-22945
librbd: new tag should use on-disk committed position

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-02-15 14:13:45 +02:00
John Wilkins
9d21c2983f
Merge pull request #20442 from JordanHus/master
doc: Fixes a spelling error and a broken hyperlink.

Reviewed-by: John Wilkins
2018-02-14 15:15:27 -08:00
Jordan Hus
d68e84dadf doc: Fixes a spelling error and a broken hyperlink.
Signed-off-by: Jordan Hus <jordan.hus@dicecorp.com>
2018-02-14 14:23:59 -05:00
Jason Dillaman
24df022e0b journal: flush commit positions should wait for refresh
Fixes: http://tracker.ceph.com/issues/22945
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-14 11:22:02 -05:00
Jason Dillaman
c5a5b20e08 journal: support concurrent refresh requests
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-14 11:22:01 -05:00
Kefu Chai
1b8ddee81b
Merge pull request #19859 from yaozongyou/rgw-remove-register-warning
rgw: silence not allow register storage class specifier warning

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-02-15 00:13:37 +08:00
John Spray
e69afea925
Merge pull request #20187 from wido/influxdb-connection-error
mgr/influx: Various fixes and improvements

Reviewed-by: John Spray <john.spray@redhat.com>
2018-02-14 15:18:31 +00:00
Alfredo Deza
f21200627d
Merge pull request #20265 from ceph/wip-rm22876
ceph-volume: lvm zap will unmount osd paths used by zapped devices

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-02-14 07:07:16 -05:00
Tianshan Qu
690482d611 rgw: fix index cancel op miss update header
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
2018-02-14 16:43:27 +08:00
Mykola Golub
ad765021bc
Merge pull request #20406 from dillaman/wip-22979
librbd: fix issues discovered in clone v2 during upgrade tests

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-02-14 09:36:02 +02:00
Kefu Chai
d43c8da833 os/bluestore: fix the demotion in StupidAllocator::init_rm_free
* we should update the _size field when demotion kicks in, otherwise the
  interval_set::m and interval_set::_size won't be consistent.
* also rename post_process to claim, as it "steals" the leftover(s) of
chopped segment.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-14 12:22:56 +08:00
Andrew Schoen
3f2e7074ee ceph-volume: use terminal.MultiLogger in lvm zap
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-02-13 16:58:05 -06:00
Andrew Schoen
c8a6da4e1b ceph-volume: use api helper methods for pvs and lvs in lvm zap
This is just a cleaner way of doing this instead of using PVolumes
and Volumes directly.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-02-13 16:58:05 -06:00
Andrew Schoen
5552cefc4c ceph-volume: fix documentation typos for lvm zap
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-02-13 16:58:05 -06:00
Andrew Schoen
d4639ac116 ceph-volume: when zapping unmount osd directories
If you zap an lv, device or partition and it's currently mounted as a
ceph osd directory then it will be unmounted so the zap can complete.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-02-13 16:58:05 -06:00
Andrew Schoen
6909baef54 ceph-volume: adds a util.system.unmount function
This function will unmount the given path

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-02-13 16:58:04 -06:00
Andrew Schoen
5f7c250d29
Merge pull request #20427 from ceph/wip-rm22988
ceph-volume use realpath when checking mounts

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-02-13 23:57:04 +01:00
Patrick Donnelly
2e44b87141
Merge PR #19263 into master
* refs/pull/19263/head:
	qa: ignore bad backtrace cluster wrn
	qa/cephfs: Add tests to validate scrub functionality
	cephfs: Add option to load invalid metadata from disk
	cephfs: Reset scrub data when inodes move

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-13 14:43:32 -08:00
Patrick Donnelly
5224d94f4b
qa: ignore bad backtrace cluster wrn
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-13 14:12:53 -08:00
Alfredo Deza
16eabbc3ab ceph-volume tests verify realpath usage in mounts
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-13 15:55:11 -05:00
Alfredo Deza
53e691e1d5 ceph-volume util.system optionally use realpath on devices
To check a mounted device it is needed to verify on a combination of
realpath and plain devices against realpath and plain paths. In LVM, two
different paths might refer to the same devices

Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-13 15:55:11 -05:00
Patrick Donnelly
3ed7cc2cbc
Merge PR #19957 into master
* refs/pull/19957/head:
	client: fixup parallel calls to ceph_ll_lookup_inode() in NFS FASL

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
2018-02-13 11:36:18 -08:00
Patrick Donnelly
e9468619f9
Merge PR #20336 into master
* refs/pull/20336/head:
	client: re-use free snap tag

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-13 11:36:11 -08:00
Patrick Donnelly
304efb05c6
Merge PR #20373 into master
* refs/pull/20373/head:
	client: clamp I/O sizes to INT_MAX when we can't return larger values
	test: new testcase for ceph_ll_readv and ceph_ll_writev
	client: hook up ceph_ll_readv and ceph_ll_writev
	client: type safety cleanup for _read and _write codepaths

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2018-02-13 11:36:04 -08:00
Patrick Donnelly
4d2106bfe7
Merge PR #20386 into master
* refs/pull/20386/head:
	mds: optimize getattr file size

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-13 11:35:57 -08:00
Patrick Donnelly
608e002195
qa: ignore MON_DOWN while thrashing mons
Fixes: https://tracker.ceph.com/issues/22993

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-13 11:24:39 -08:00
Douglas Fuller
07339e2d1d qa/cephfs: Add tests to validate scrub functionality
Add tests to ensure the scrub operation is not adversly affected
by certain metadata pathologies.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2018-02-13 14:07:28 -05:00
Patrick Donnelly
0d0dd943cd
MgrStatMonitor: fix formatting of pending_digest
Fixes: http://tracker.ceph.com/issues/22991

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-13 10:22:01 -08:00
Patrick Donnelly
7bf6eb0198
qa: ignore io pause warnings in mds-full test
Fixes: http://tracker.ceph.com/issues/22990

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-13 09:54:12 -08:00
Gregory Farnum
240b688177
Merge pull request #20147 from smithfarm/wip-15904
tools: rados: make -f be --format for consistency with ceph tool

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2018-02-13 09:07:24 -08:00
Kefu Chai
9a0d1517a8
Merge pull request #20422 from cbodley/wip-check-cls-rgw
cmake: 'make check' builds radosgw and its cls dependencies

Reviewed-by: Ali Maredia <amaredia@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-02-14 00:35:14 +08:00
Casey Bodley
a029d20b86 cmake: 'make check' builds radosgw and its cls dependencies
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-02-13 10:32:11 -05:00
Jason Dillaman
bcfcbcfe0b librbd: flush journal commit position after stopping replay
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-13 10:05:29 -05:00
Jason Dillaman
487963cbf0 test/librbd: disable clone v2 for negative test cases
Fixes: http://tracker.ceph.com/issues/22979
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-13 09:14:18 -05:00
Jason Dillaman
e57a735bfe cls/rbd: don't clear CLONE_CHILD op feature if still a child
After removing the last snapshot linked to a parent image,
don't clear the CLONE_CHILD op feature bit if the image HEAD
is still linked to the parent.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-13 09:14:16 -05:00
Jos Collin
884b936f40 Handle dir->dentries.empty()
Handle dir->dentries.empty() (during stale file handle error) situation appropriately.

Fixes: http://tracker.ceph.com/issues/21995
Signed-off-by: Jos Collin <jcollin@redhat.com>
2018-02-13 09:12:53 +05:30
David Zafman
ba5a53ceeb osd: Fix assert when checking missing version
Fixes: http://tracker.ceph.com/issues/21218

Signed-off-by: David Zafman <dzafman@redhat.com>
2018-02-12 16:57:02 -08:00
Brad Hubbard
96125fe2b2 test/admin_socket_output: better error reporting
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2018-02-13 10:22:53 +10:00
Sage Weil
13738cd752
Merge pull request #19939 from liewegas/wip-osd-new-class
mon,osd: do not use crush_device_class file to initalize class for new osds

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-02-12 11:17:14 -06:00
Gregory Farnum
72ad76402c
Merge pull request #20363 from dongbula/e-rados-get-put-command
make rados get/put/append command help txt clear

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-02-12 08:56:56 -08:00
Jos Collin
f8b751d1bc client: lookup_ino when i1 becomes NULL
Also set FUSE_CAP_EXPORT_SUPPORT

Fixes: http://tracker.ceph.com/issues/21995
Signed-off-by: Jos Collin <jcollin@redhat.com>
2018-02-12 20:28:46 +05:30
Jeff Layton
4143c6e972 client: clamp I/O sizes to INT_MAX when we can't return larger values
We have several API functions that allow the caller to request I/Os
larger than INT_MAX bytes, but that return an int. Ensure that we don't
try to do more I/O than we can represent in the return value.

Tracker: http://tracker.ceph.com/issues/22948
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2018-02-12 07:17:56 -05:00
Jeff Layton
b431d2879a test: new testcase for ceph_ll_readv and ceph_ll_writev
Just copy the PreadvPwritev test and alter accordingly.

Tracker: http://tracker.ceph.com/issues/22948
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2018-02-12 07:17:56 -05:00
Jeff Layton
4e1f059222 client: hook up ceph_ll_readv and ceph_ll_writev
Break the core of _preadv_pwritev out into a function that takes a Fh.
Make _preadv_pwritev into a wrapper around that.

Then add in plumbing for ceph_ll_readv and ceph_ll_writev.

Tracker: http://tracker.ceph.com/issues/22948
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2018-02-12 07:17:56 -05:00