Commit Graph

46729 Commits

Author SHA1 Message Date
Jason Dillaman
98157ab327 librbd: ensure librados callbacks are flushed prior to destroying image
Fixes: #14092
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-23 12:06:50 -05:00
Josh Durgin
df9ff2522f Merge pull request #7002 from dillaman/wip-14092-jewel
tests: flush op work queue prior to destroying MockImageCtx

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-21 07:31:57 -08:00
Jason Dillaman
e8911cfee7 tests: flush op work queue prior to destroying MockImageCtx
Fixes: #14092
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-21 09:03:15 -05:00
Sage Weil
0a4b7ab20c Merge pull request #6815 from badone/wip-13993
common: log: Assign LOG_DEBUG priority to syslog calls

Reviewed-by: Sage Weil <sage@redhat.com>
2015-12-19 13:58:37 -05:00
Josh Durgin
d7581cda4a Merge pull request #6979 from dillaman/wip-14123-jewel
librbd: correct issues discovered when cache is disabled

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-18 13:25:35 -08:00
Josh Durgin
73358df6de Merge pull request #6974 from dillaman/wip-14108-jewel
librbd: correct issues discovered during teuthology testing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-18 13:13:44 -08:00
Jason Dillaman
bfc9690dd1 librbd: skip journal event if write/discard was no-op
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-18 15:14:34 -05:00
Jason Dillaman
f6659cc7f0 librbd: object map ENOENT optimizations should complete asynchronously
This ensures a consistent lock ordering between the optimized path and
a librados callback. Remove the cache writebach handler's custom finisher
and re-use the op_work_queue.

Fixes: #14123
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-18 15:14:06 -05:00
Jason Dillaman
913339f75f librbd: update exclusive lock state when shutting down
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-18 14:15:10 -05:00
Jason Dillaman
200d310635 librbd: extra request required if journal enabled w/ caching
Fixes: #14108
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-18 13:14:58 -05:00
Jason Dillaman
bab16bbbeb librbd: stop the copyup thread during shutdown
Fixes: #14107, #14108
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-18 13:09:02 -05:00
Josh Durgin
ae18bcb719 Merge pull request #6972 from dillaman/wip-14106-jewel
rbd: merge_diff test should use new --object-size parameter instead of --order

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-18 08:46:55 -08:00
Jason Dillaman
69bcac513a qa/workunits/rbd: use --object-size instead of --order
Fixes: #14106
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-18 03:03:20 -05:00
na xie
94cd34b6a3 rbd: process crushed, rbd creating with striping parameters
Signed-off-by: Na Xie <xie.na@h3c.com>
2015-12-18 02:52:07 -05:00
Brad Hubbard
8e93f3f45d log: Log.cc: Assign LOG_DEBUG priority to syslog calls
Fixes: #13993
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2015-12-18 08:52:58 +10:00
Sage Weil
91bf56e26b Merge remote-tracking branch 'gh/jewel' 2015-12-16 10:48:15 -05:00
Sage Weil
4fc410280c Merge pull request #6932 from aiicore/test_fix
tests: allow object corpus readable test to skip specific incompat instances

Reviewed-by: Sage Weil <sage@redhat.com>
2015-12-16 08:46:50 -05:00
Yan, Zheng
db8bf2dcea Merge pull request #6941 from jcsp/wip-14029
mds: fix setvxattr (broken in a536d114)
2015-12-16 19:55:40 +08:00
David Zafman
1d7b53f42f Merge pull request #6948 from ceph/revert-6939-bp-remove-bz2dev
Revert "makefiles: remove bz2-dev from dependencies"

Reviewed-by: Dan Mick <dmick@redhat.com>
2015-12-15 17:47:01 -08:00
Samuel Just
35542eb6ed Revert "makefiles: remove bz2-dev from dependencies" 2015-12-15 15:12:19 -08:00
Ken Dreyer
ff9712b249 Merge pull request #6692 from SUSE/wip-13860
ceph.spec.in: add BuildRequires: systemd

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-12-15 08:28:06 -07:00
Kefu Chai
34ceddf026 Merge pull request #6939 from branch-predictor/bp-remove-bz2dev
makefiles: remove bz2-dev from dependencies

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-12-15 22:43:27 +08:00
Loic Dachary
09c57ff521 Merge pull request #6943 from smithfarm/wip-doc-dev-typo
doc: fix typo in developer guide

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-15 15:33:21 +01:00
Nathan Cutler
fec545839c doc: fix typo in developer guide
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-12-15 15:25:45 +01:00
John Spray
d465830115 mds: fix setvxattr (broken in a536d114)
There was an accidental move of this line
when adding the MAY_SET_POOL check, which
was causing setxattr to proceed before
it had the right locks, and thereby apply
its checks on bad data (symptom was failing
to detect that the file had data written to it).

Fixes: #14029
Signed-off-by: John Spray <john.spray@redhat.com>
2015-12-15 13:22:23 +00:00
John Spray
d278134232 Merge pull request #6821 from H3C/wip-cephfs-f11322
ceph-fuse: add process to ceph-fuse --help

Reviewed-by: John Spray <john.spray@redhat.com>
2015-12-15 13:15:43 +00:00
Piotr Dałek
a8b5920259 makefiles: remove bz2-dev from dependencies
The only thing that uses bzip2-devel is RocksDB, and it's optional, not
requirement. Drop the bzip2-devel/libbz2-dev dependency entirely, and
let RocksDB use it only if it is already present.

Fixes: #13981
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2015-12-15 14:01:51 +01:00
Wei Feng
9409e96aed ceph-fuse: add process to ceph-fuse --help
Signed-off-by: Wei Feng <feng.wei@h3c.com>
2015-12-15 07:45:07 -05:00
Loic Dachary
736532cac9 Merge pull request #6934 from smithfarm/wip-14070
doc: Update list of admin/build-doc dependencies

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-15 13:24:47 +01:00
Nathan Cutler
eadc771d27 doc: Update list of admin/build-doc dependencies
http://tracker.ceph.com/issues/14070 Fixes: #14070

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-12-15 12:41:29 +01:00
Igor Podoski
8d68d0237c test/encoding/readable.sh: add non-whole type skip
With this modification there will be possibility to skip only one/few
object/s of particular type, not whole type as it was before.

Before:
- To skip whole TYPE create file named TYPE in forward_incompat
directory.

Now:
- To skip whole TYPE create file or empty directory named TYPE in
forward_incompat directory.
- To skip one/few object/s of TYPE create directory named TYPE in
forward_incompat and put into symbolic links to objects that
you wantt to skip.

Signed-off-by: Igor Podoski <igor.podoski@ts.fujitsu.com>
2015-12-15 12:08:17 +01:00
Loic Dachary
9c34d0c4e4 Merge pull request #6910 from dachary/wip-dev-guide-ceph-qa-suite
doc: dev: introduction to tests

Reviewed-by: Nathan Cutler <ncutler@suse.com>
2015-12-15 11:21:51 +01:00
Loic Dachary
575d2380af Merge pull request #6927 from tchaikov/wip-fix-ftbfs
rgw: fix the build failure

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-15 08:52:51 +01:00
Kefu Chai
34a6c2aeae rgw: remove unused variable
to fix the compiler warning of

 rgw/rgw_formats.cc: In member function 'virtual void
 RGWFormatter_Plain::dump_format_va(const char*, const char*, bool, const
 char*, __va_list_tag*)':
 rgw/rgw_formats.cc:143:15: warning: unused variable 'format'
 [-Wunused-variable]
    const char *format;

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-12-15 14:46:16 +08:00
Kefu Chai
a57784f75f rgw: fix the build failure
* s/bucket_name_str/bucket_name/
* the member variable name of `req_state` was changed to `bucket_name`
  in f7ca00a. but some commits was still using the old name before the
  commit got merged.
* fixes for the tenant related change
* also fixes a typo

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-12-15 14:17:06 +08:00
Josh Durgin
265e18fc36 Merge pull request #6859 from dillaman/wip-librbd-async-refresh
librbd: image refresh code paths converted to async state machines

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-14 20:14:13 -08:00
Jason Dillaman
d2d4bb42d5 librbd: refresh object map after rollback
An image refresh will no longer trigger an automatic object map
reload, therefore explicitly reload the object map after rollback.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
db2d495cce librbd: refresh image asynchronously from watch/notify path
The AIO path already ensures asynchronous image refreshes, but the
watch/notify path for maintenance ops was still using the sync refresh
path.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
16547c9b17 librbd: the journal state machine is now asynchronous
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
2a4aad5ffb tests: adjust test cases to refactored librbd
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
7e3a032224 librbd: all object map methods are now async
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
8ef37b0259 librbd: IO ops will now asynchronously refresh the image if needed
This avoids blocking the AIO path with the previous synchronous
refresh path.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
01bc5156ef WorkQueue: PointerWQ now supports out-of-band processing
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
18f4f69f20 librbd: flush all in-flight IO on block write and shut down
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
bad4641547 librbd: add shut down support to the AIO work queue
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
f1973b1d94 librbd: integrate new async image state machines
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
8740ddf0f7 librbd: ImageWatcher should release lock upon request
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
c00b28b017 librbd: implement image state tracker for open/close/refresh/etc
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
3fd24eb2cd librbd: rename ImageRefresh to ImageState
This class handles more than just refreshing the image from
disk.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
1673332353 librbd: object map lifespan now controlled by state machines
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00