Commit Graph

46774 Commits

Author SHA1 Message Date
Josh Durgin
e466dffbb4 Merge pull request #7204 from dillaman/wip-14308-jewel
librbd: better handling of exclusive lock transition period

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-01-12 20:00:06 -08:00
Alfredo Deza
419aefb034 Merge pull request #7205 from ceph/wip-python-dev-dep
packaging: add build dependency on python devel package

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2016-01-12 17:22:15 -05:00
Josh Durgin
ebdb0a9c30 packaging: add build dependency on python devel package
This is required for building python modules with cython, but for some
reason is not a direct dependency (on debian only a recommends) for
the cython package itself.

Refs: #14059
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-01-12 11:12:30 -08:00
Jason Dillaman
e59293d0cc librbd: add additional granularity to lock states
Allow all pre-release actions to see that the exclusive lock is
still owned and all post-acquire actions to see that the exclusive
lock is now owned.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-12 13:00:34 -05:00
Jason Dillaman
94b7d231a6 librbd: initialize object map before replaying journal
The journal might replay write events which will need to update the
object map.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-12 12:17:53 -05:00
Jason Dillaman
4fa53eac4d librbd: do not accept RPC requests while transitioning lock state
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-12 10:35:05 -05:00
Jason Dillaman
5216146455 librbd: avoid error message when peer owns exclusive lock
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-12 10:15:09 -05:00
Samuel Just
20ac64f139 Merge pull request #7147 from athanatos/wip-14247
Wip 14247

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-01-08 11:41:55 -08:00
Samuel Just
95d2666be3 Merge pull request #7148 from athanatos/wip-14248
OpRequest: release the message throttle when unregistered

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-08 11:39:16 -08:00
Samuel Just
cd2947902a Merge pull request #6801 from athanatos/wip-13965
Wip 13965

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-08 11:37:56 -08:00
Josh Durgin
efdef31fb2 Merge pull request #7143 from dillaman/wip-librbd-rename-request
librbd: correct include guard in RenameRequest.h

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-01-07 08:53:14 -08:00
Jason Dillaman
eb120e85f2 librbd: correct include guard in RenameRequest.h
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-07 08:52:40 -05:00
Josh Durgin
63460d6ba2 Merge pull request #7129 from dillaman/wip-14167-jewel
librbd: disable copy-on-read when not exclusive lock owner

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-01-06 16:18:33 -08:00
Josh Durgin
116bc9426d Merge branch 'wip-14241-jewel' of git://github.com/dillaman/ceph into jewel
librbd: don't use write_full optimization with clones

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-01-06 15:41:04 -08:00
Greg Farnum
088b8c2c88 Merge branch 'wip-client-readdir-fix' of git://github.com/ukernel/ceph into jewel
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-06 13:31:39 -08:00
Jason Dillaman
1329a09ecc librbd: disable write_full optimization if image has parent
Fixes: #14241
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-06 14:56:39 -05:00
Jason Dillaman
c425bf0c2e tests: new test case for write_full optimization
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-06 14:12:43 -05:00
Jason Dillaman
df79c3e7ca librbd: directly execute copy-on-read copyup operations
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-06 10:02:52 -05:00
Samuel Just
5f1a530c80 OSD::ScrubJob: correctly handle small osd_scrub_interval_randomize_ratio
utime_t &operator+=(utime_t, double) exists, let's just use that and
not muck about with converting the double to an int.

Fixes: 14247
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-01-05 16:31:12 -08:00
Samuel Just
64cb6e5569 Revert "osd: fix arithmetic exception when scrub_min_interval is small"
This reverts commit a828a4df54.
2016-01-05 16:30:40 -08:00
Samuel Just
67be35cba7 OpRequest: release the message throttle when unregistered
We don't want messages in the OpTracker history hanging on to
message throttle.

Fixes: #14248
Backport: hammer, firefly
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-01-05 16:24:17 -08:00
Jason Dillaman
14fd1c7006 librbd: disable copy-on-read when not exclusive lock owner
Fixes: #14167
Backport: infernalis, hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-05 16:34:24 -05:00
Jason Dillaman
8bfd23cd1e tests: fsx should disable journaling feature for krbd
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-05 16:34:23 -05:00
Josh Durgin
d0f4d2d634 Merge pull request #7114 from dillaman/wip-14234-jewel
librbd: reduce verbosity of common error condition logging

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-01-05 11:41:00 -08:00
Josh Durgin
eb680a3a6b Merge branch 'wip-14237-jewel' of git://github.com/dillaman/ceph into jewel
qa/workunits/rbd: import_export should use clean temp space

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-01-05 11:39:12 -08:00
Josh Durgin
370718a616 Merge pull request #7113 from dillaman/wip-14168-jewel
journal: disconnect watch after watch error

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-01-05 10:30:26 -08:00
Jason Dillaman
089673a59c qa/workunits/rbd: import_export should use clean temp space
Fixes: #14237
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-05 12:50:23 -05:00
Jason Dillaman
5b065aae75 librbd: reduce verbosity of common error condition logging
Fixes: #14234
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-05 12:29:13 -05:00
Jason Dillaman
a3ac03e5ae journal: disconnect watch after watch error
Fixes: #14168
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-04 23:13:16 -05:00
Yehuda Sadeh
7bcb744d6b Revert "rgw: use smart pointer for C_Reinitwatch"
This commit introduced regressions, issues #14173, #14180.

The problem is that the context deletes itself after execution,
so using a shared_ptr to hold it is problematic, as we'll eventually
have a double free. Also, it doesn't solve the underlying leak issue.

This reverts commit e9daed221e.
2016-01-04 12:54:33 -08:00
Josh Durgin
91f286dd0f Merge pull request #7101 from dillaman/wip-14221-jewel
qa/workunits/rbd: rbd-nbd test should use sudo for map/unmap ops

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-01-04 15:46:47 -05:00
Jason Dillaman
70a1392920 qa/workunits/rbd: rbd-nbd test should use sudo for map/unmap ops
Fixes: #14221
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-04 12:03:45 -05:00
Yan, Zheng
749c42422e Merge pull request #6933 from jcsp/wip-14048
mds: tear down connections from `tell` commands
2015-12-24 16:27:28 +08:00
Josh Durgin
a297608196 Merge pull request #7043 from dillaman/wip-14170-jewel
librbd: do not ignore self-managed snapshot release result

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-23 13:30:13 -08:00
Jason Dillaman
b4dbaa69ac librbd: do not ignore self-managed snapshot release result
Fixes: #14170
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-23 13:57:44 -05:00
Josh Durgin
1e1df754b6 Merge pull request #7042 from dillaman/wip-14164-jewel
librbd: properly handle replay of snap remove RPC message

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-23 10:52:16 -08:00
Josh Durgin
c0c608b2bb Merge pull request #7040 from dillaman/wip-14092-jewel
librbd: ensure librados callbacks are flushed prior to destroying 

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-23 10:48:43 -08:00
Josh Durgin
f0767a7490 Merge pull request #7035 from dillaman/wip-14122-jewel
librbd: clear error when older OSD doesn't support image flags

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-23 10:43:29 -08:00
Jason Dillaman
bc309d9d76 librbd: properly handle replay of snap remove RPC message
Fixes: #14164
Backport: infernalis
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-23 13:26:39 -05:00
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
Jason Dillaman
b8d7aa2c2c librbd: clear error when older OSD doesn't support image flags
Fixes: #14122
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-23 09:47:37 -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