Commit Graph

68422 Commits

Author SHA1 Message Date
Sage Weil
923e7f5ce5 osd: do not send ENXIO on misdirected op by default
In practice this tends to get bubbled up the stack as an error on
the caller, and they usually do not handle it properly.  For example,
with librbd, this turns into EIO and break the VM.

Instead, this will manifest as a hung op on the client.  That is
also not ideal, but given that the root cause here is generally a
bug, it's not clear what else would be better.

We already log an error in the cluster log, so teuthology runs will
continue to fail.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-01-31 15:14:59 -05:00
Jason Dillaman
6995d2c142 Merge pull request #13077 from guzhongyan/fix_wrongly_init
librbd: initialize diff parent overlap to zero

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-31 14:35:37 -05:00
Sage Weil
dc2330bc83 Merge pull request #12537 from liewegas/wip-optracker
common/TrackedOp: various cleanups and optimizations

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2017-01-31 12:54:12 -06:00
Sage Weil
44c412091a Merge pull request #13205 from dachary/wip-crush-documentation
crush: API documentation

Reviewed-by: Sage Weil <sage@redhat.com>
2017-01-31 12:52:11 -06:00
Sage Weil
a92341926a os/bluestore: decode min_alloc_size into temp var
Defend against future changes to min_alloc_size.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-01-31 12:53:48 -05:00
Loic Dachary
08bb5c5b48 crush: API documentation
Signed-off-by: Loic Dachary <loic@dachary.org>
2017-01-31 18:33:37 +01:00
Sage Weil
9c9a558aa8 os/bluestore: fix min_alloc_size at mkfs time
It is an ongoing challenge to allow min_alloc_size to be varied on
an existing bluestore instance, and the code paths are not well
tested.  Avoid the complexity entirely by fixing min_alloc_size at
mkfs time.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-01-31 12:01:44 -05:00
Sage Weil
5914b5b497 os/bluestore: add ondisk format version info to super section
Note the version of the ondisk format and the oldest version that is
allowed to read us.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-01-31 12:01:44 -05:00
Sage Weil
cf598db2a3 os/bluestore: EIO if we can't read some existing super keys
Signed-off-by: Sage Weil <sage@redhat.com>
2017-01-31 11:59:57 -05:00
David Zafman
f63871c364 Merge pull request #13164 from dzafman/wip-18718
osd: Fix useless MAX(0, unsigned) to prevent out of wack misplaced

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2017-01-31 08:19:10 -08:00
Igor Fedotov
9ee28c364f os/bluestore: add submit latency perf counter.
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-01-31 14:30:22 +00:00
Igor Fedotov
ed25e6d1ac test/fio: add performance counters dump on FIO job completion.
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-01-31 14:30:22 +00:00
Igor Fedotov
9e92a33653 os: add dump_perf_counters method to ObjectStore implementations.
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-01-31 14:30:15 +00:00
Igor Fedotov
19f3bc3712 os/bluestore: fix typos in perf counter public names.
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-01-31 14:28:30 +00:00
Igor Fedotov
e5c9a755a9 test/fio: fix misordered parameter for queue_transaction.
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-01-31 14:28:22 +00:00
Mykola Golub
573a832fc2 Merge pull request #13193 from dillaman/wip-18738
journal: stop processing removal after error

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-01-31 15:53:29 +02:00
Jason Dillaman
0e13e4a847 Merge pull request #13069 from SUSE/wip-hammer-retirement
doc: add 0.94.10 and hammer EOL to releases.rst

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-31 07:56:17 -05:00
Ilya Shipitsin
7dfb9b230c Clean issues detected by cppcheck
[src/mds/MDLog.cc:1172] -> [src/mds/MDLog.cc:1173]: (warning) Either the condition 'sle!=NULL' is redundant or there is possible null pointer dereference: sle.
[src/mon/MDSMonitor.cc:2622] -> [src/mon/MDSMonitor.cc:2625]: (warning) Either the condition 'mds_map!=nullptr' is redundant or there is possible null pointer dereference: mds_map.

Signed-off-by: Ilya Shipitsin <chipitsine@gmail.com>
2017-01-31 17:07:39 +05:00
Abhishek L
6226aecef2 Merge pull request #13151 from smithfarm/wip-ceph-release-notes
tools: ceph-release-notes: ignore low-numbered PRs
2017-01-31 10:58:01 +01:00
Haomai Wang
ddd52ebf4f Merge pull request #13190 from Adirl/reduce_num_buffers
msg/async/rdma: reduce number of rdma rx/tx buffers

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-01-31 17:50:03 +08:00
Sage Weil
67e48e20fd Merge pull request #13066 from liewegas/wip-aio-read
os/bluestore: use aio for reads

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2017-01-30 21:43:36 -06:00
Sage Weil
2cc9fac7ba Merge pull request #13071 from liewegas/wip-omap-getkeys-rados-test
qa/suites/rados/basic: set low omap limit for rgw workload

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-01-30 21:43:17 -06:00
Sage Weil
29a7965a0a Merge pull request #13150 from tchaikov/wip-mon-cleanup
mon: post-jewel cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
2017-01-30 21:42:48 -06:00
Sage Weil
7a803bf683 osd: use distinct wait list for scrub
We've traditionally (ab)used waiting_for_active for ops blocked
by scrub.  In order to preserve the op requeue ordering for
backoffs relating to unreadable and degraded, however, we need
to order the scrub waits different.  The first step is to have it
on its own list.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-01-30 22:42:19 -05:00
Jason Dillaman
3d894cad24 Merge pull request #12966 from dillaman/wip-18436
osdc: cache should ignore error bhs during trim

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
2017-01-30 21:24:22 -05:00
John Spray
d4f6385b85 Merge pull request #12800 from jcsp/wip-vstart-qasuite
Improve vstart_runner to (optionally) create its own cluster

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-01-31 02:02:49 +01:00
Nathan Cutler
046e873026 tests: ignore bogus ceph-objectstore-tool error in ceph_manager
Fixes: http://tracker.ceph.com/issues/16263
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-31 00:49:05 +01:00
Jason Dillaman
f56126afe3 Merge pull request #12817 from liupan1111/wip-list-snapshot-time
librbd: support to list snapshot timestamp

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-30 18:36:46 -05:00
Nathan Cutler
9dde6fa9d2 doc: update actual firefly and estimated hammer retirement
According to the "Understanding the release cycle" section, firefly was
actually retired when jewel was released (April 2016), and hammer will be
retired when luminous is released (estimated in May 2017).

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-31 00:21:47 +01:00
Nathan Cutler
04aced5fac doc: add 0.94.10 to releases.rst
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-31 00:17:10 +01:00
Josh Durgin
c26f317c7f Merge pull request #13098 from wido/doc-osd-greace
doc: Document that osd_heartbeat_grace applies to MON and OSD

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-01-30 14:55:45 -08:00
Jason Dillaman
040004f53f journal: stop processing removal after error
Fixed: http://tracker.ceph.com/issues/18738
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-01-30 17:41:51 -05:00
Ilya Dryomov
326a11362f Merge pull request #13141 from dillaman/wip-18653
librbd: introduce new constants for tracking max block name prefix

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2017-01-30 22:33:25 +01:00
Jason Dillaman
2c08629c99 librbd: introduce new constants for tracking max block name prefix
Fixes: http://tracker.ceph.com/issues/18653
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-01-30 15:25:23 -05:00
Yehuda Sadeh
a5d1fa0587 rgw: fix use of marker in List::list_objects()
Fixes: http://tracker.ceph.com/issues/18331

List marker is an index key, so treat it as such. This
fixes infinite loop in orphans find command.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-01-30 12:02:37 -08:00
Sage Weil
084f0c1876 Merge pull request #13188 from liewegas/wip-rest-fs-name
qa/workunits/rest: use unique pool names for cephfs test

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-30 13:30:05 -06:00
Pan Liu
66992d1931 test: regolden formatted-output.t for timestamp metadata of rbd snapshot
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2017-01-31 03:22:33 +08:00
Pan Liu
bd4e36632a test: Add unit test for getting rbd snapshot timestamp info
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2017-01-31 03:20:31 +08:00
Pan Liu
9debf5c98a librbd: support to list snapshot time stamp
Fixes: http://tracker.ceph.com/issues/808
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2017-01-31 03:18:32 +08:00
Pan Liu
4dd47b0bac librbd: Add timestamp metadata when creating rbd snapshot
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2017-01-31 03:18:14 +08:00
Yehuda Sadeh
fc9a03ec4f Merge pull request #12646 from SirishaGuduru/swift-api-auth-doc-change
doc: Fixes radosgw-admin ex: in swift auth section

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2017-01-30 08:36:32 -08:00
Sage Weil
388a7ff8ef qa/workunits/rest: use unique pool names for cephfs test
Using cephfs_[meta]data collides with the pools that teuthology
already creates if an mds is defined.

This became a (noticeable) problem with 052c3d3f68

Signed-off-by: Sage Weil <sage@redhat.com>
2017-01-30 11:14:31 -05:00
Casey Bodley
b4446ac582 Merge pull request #13054 from oritwas/wip-rgw-period-update-crash
rgw: fix period update crash

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-01-30 09:52:13 -05:00
Adir Lev
64512deb13 msg/async/rdma: reduce number of rdma rx/tx buffers
issue: none

Change-Id: Ied523fec3210af152508b102c48aff5633343ab4
Signed-off-by: Adir Lev <adirl@mellanox.com>
2017-01-30 16:42:11 +02:00
Kefu Chai
e690a1afbf Merge pull request #13186 from Adirl/fix_rdma_compile
cmake: fix broken RDMA compilation after merge PR #12878

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-30 20:19:11 +08:00
Radoslaw Zarzynski
034a6f9ba0 Merge pull request #13003 from Jing-Scott/dev/swift-container-acl-info
rgw: swift: the http referer acl in swift API should be shown

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-01-30 12:58:56 +01:00
Radoslaw Zarzynski
fca5b3c3ff Merge pull request #13005 from Jing-Scott/dev/swift-http-url-parse
rgw: swift: The http referer should be parsed to compare in swift API

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-01-30 12:55:35 +01:00
Radoslaw Zarzynski
b8e7a276f6 Merge pull request #12874 from Jing-Scott/dev/swift-ref
rgw: the swift container acl should support field .ref

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-01-30 12:44:21 +01:00
Oren Duer
94a27ecf39 cmake: fix broken RDMA compilation after merge PR #12878
issue: 965984

Change-Id: I2e401acf204069d3907001d276c58d9fb4cd0d58
Signed-off-by: Oren Duer <oren@mellanox.com>
2017-01-30 10:55:26 +00:00
Wido den Hollander
f42afa828b
doc: Document that osd_heartbeat_grace applies to MON and OSD
This value has to be set in both the [mon] and [osd] section since
both daemons read this value.

Signed-off-by: Wido den Hollander <wido@42on.com>
2017-01-30 10:04:52 +01:00