Sage Weil
828060749a
osd/PGPeeringEvent: note mon- vs peer-initiated pg creates
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-04 08:26:47 -05:00
Sage Weil
9dc71e653a
osd: fast dispatch peering events (part 2)
...
This actually puts the remaining peering events into fast dispatch. The
only remaining event is the pg create from the mon.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-04 08:26:47 -05:00
Sage Weil
2284e133af
osd: fast dispatch peering events (part 1)
...
This is a big commit that lays out the infrastructure changes to fast
dispatch the remaining peering events. It's hard to separate it all out
so this probably doesn't quite build; it's just easier to review as a
separate patch.
- lock ordering for pg_map has changed:
before:
OSD::pg_map_lock
PG::lock
ShardData::lock
after:
PG::lock
ShardData::lock
OSD::pg_map_lock
- queue items are now annotated with whether they can proceed without a
pg at all (e.g., query) or can instantiate a pg (e.g., notify log etc).
- There is some wonkiness around getting the initial Initialize event to
a newly-created PG. I don't love it but it gets the job done for now.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-03 10:12:35 -05:00
Sage Weil
ac142c3cc0
osd: queue null events without PG lock
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-03 10:12:35 -05:00
Sage Weil
f9aea5da93
osd: move part of wake_pg_waiters into helper
...
We'll need this shortly.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-03 10:12:35 -05:00
Sage Weil
8e8c7cce1f
osd: use MTrim peering event for trimming
...
This is simpler and cleaner than handling log trimming as a special case.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-03 10:12:35 -05:00
Sage Weil
cf5cd222ce
osd: fast dispatch backfill and recovery reservation events
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-03 10:12:35 -05:00
Sage Weil
25da186ab8
osd: move M{Backfill,Recovery}Reserve event logic into message
...
Better encapsulation!
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-03 10:12:35 -05:00
Sage Weil
3b904547fb
messages/MOSDPeeringOp: add
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-03 10:12:35 -05:00
Sage Weil
aea80d9afb
osd/PG: move peering event type out of PG class
...
We will create these directly from peering Messages shortly.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-03 10:12:35 -05:00
Sage Weil
beb8dd5b1a
osd/PG: keep epoch, not map ref, of last osdmap for lsat persisted epoch
...
No need to pin the map in memory!
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-03 10:12:35 -05:00
Sage Weil
a6fef5a61b
osd/PG: remove old update_store_on_load()
...
This isn't needed post-luminous.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-03 10:12:35 -05:00
Sage Weil
643253c326
Merge tag 'v13.0.2'
...
v13.0.2
2018-04-03 10:08:22 -05:00
Patrick Donnelly
0186795496
Merge PR #21180 into master
...
* refs/pull/21180/head:
vstart_runner: examine check_status before error
Reviewed-by: John Spray <john.spray@redhat.com>
2018-04-03 06:51:18 -07:00
Jason Dillaman
3b08c0609c
Merge pull request #20460 from colletj/v1_image_creation_disallow
...
librbd: disallow creation of v1 image format
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-04-03 09:18:39 -04:00
Jason Dillaman
98bae81f17
Merge pull request #21202 from tchaikov/wip-rbd-replay
...
rbd-replay: remove boost dependency
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-04-03 09:14:39 -04:00
Jason Dillaman
ccb2646a03
Merge pull request #21142 from dragonylffly/wip-fix-ebusy
...
rbd-nbd: fix ebusy when do map
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-04-03 07:39:15 -04:00
Jason Dillaman
de03571aa7
Merge pull request #21157 from trociny/wip-23526
...
journal: limit number of appends sent in one librados op
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-04-03 07:38:40 -04:00
Kefu Chai
440c597df3
rbd-replay: remove boost dependency
...
quite a few facilies are now available in standard library now after we
switched to C++17.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-04-03 16:30:47 +08:00
Patrick Donnelly
8b7892f6c9
Merge PR #20855 into master
...
* refs/pull/20855/head:
client: add the fuse parameter max_write
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-02 21:15:20 -07:00
Patrick Donnelly
9d8037f8da
Merge PR #21096 into master
...
* refs/pull/21096/head:
pybind/cephfs: added comments to cephfs.pyx
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-02 21:10:56 -07:00
Yuri Weinstein
9b7b5a7673
Merge pull request #21183 from neha-ojha/wip-minor-fix-perf-suite
...
qa/suites/perf-basic: add desc regarding test machines
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
2018-04-02 13:56:08 -07:00
David Galloway
17f9d4e351
Merge pull request #21075 from ceph/wip-yuriw-try-crontab
...
test:qa:infra - teuthology crontab items as of 3/27/18
2018-04-02 16:08:02 -04:00
Neha Ojha
ca3c2156f8
qa/suites/perf-basic: add desc regarding test machines
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-04-02 13:01:30 -07:00
Mykola Golub
d49cfcdeb7
journal: limit number of appends sent in one librados op
...
Fixes: http://tracker.ceph.com/issues/23526
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-04-02 22:44:16 +03:00
Jason Dillaman
5585e52c47
Merge pull request #21165 from Songweibin/wip-drop-redefine-func
...
librbd: minor code cleanup
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-04-02 11:17:04 -04:00
Patrick Donnelly
9a558c51dc
vstart_runner: examine check_status before error
...
Issue found by Rishabh Dave. Fix suggested by John Spray.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-02 08:08:43 -07:00
Sage Weil
ed9182c266
CMakeLists: v13.0.2
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-02 10:03:02 -05:00
Kefu Chai
1993e161a4
Merge pull request #21143 from wjwithagen/wjw-ipaddr-ipv6
...
common: FreeBSD wants the correct struct selection for ipv6
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-04-02 22:10:30 +08:00
Kefu Chai
d824357a94
Merge pull request #21136 from kungf/io_events
...
bluestore: fix aio_t::rval type
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-04-02 22:08:17 +08:00
Kefu Chai
6a981eb842
Merge pull request #20820 from guzhongyan/nodels-improve
...
mon: node ls improvement
Reviewed-by: John Spray <john.spray@redhat.com>
2018-04-02 22:06:49 +08:00
Kefu Chai
ace8c45eba
Merge pull request #20298 from markhpc/wip-osd-check_full
...
osd: don't process ostream strings when not debugging.
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
2018-04-02 22:05:57 +08:00
Kefu Chai
3cd8489773
Merge pull request #21159 from tchaikov/wip-no-more-use-wheel
...
src: s/pip --use-wheel/pip/
Reviewed-by: Nathan Cutler <ncutler@suse.com>
2018-04-02 20:00:51 +08:00
songweibin
74839033f3
pybind/rbd: normalize errno exception
...
The code meant to do so but actually it does not ...
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-04-02 12:38:19 +08:00
songweibin
1b7d2fe64e
librbd: return error when r < 0
...
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-04-02 11:09:26 +08:00
songweibin
5539309996
librbd: drop a duplicate definition function
...
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-04-02 09:33:19 +08:00
Kefu Chai
a80cce4ba6
src: s/--use-wheel//
...
--use-wheel was deprecated in favor of --only-binary in pip v7.0.0. and
--use-wheel was removed in a recent release of pip. but some packages
are source packages, so we cannot simply replace use-wheel with
only-binary. so a simpler approach is to drop --use-wheel option, as pip
respects --find-links, and will find the required package from the
wheelhouse.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-04-01 21:01:39 +08:00
Patrick Donnelly
b7fce64601
Merge PR #20132 into master
...
* refs/pull/20132/head:
qa/cephfs: update TestDamage for open file table
mds: allow storing open file table in multiple omaps
mds: differentiate Anchor types to clarify purpose
mds: add perf counter for 'open ino' operation
mds: protect open file table against partial omap update
mds: add dirfrags whose child inodes have caps to open file table
mds: don't try prefetching destroyed inodes
mds: don't try opening inodes that haven't been created
mds: don't re-requeue open files to head of log
mds: use open file table to speed up mds recovery
mds: introduce open file table
mds: track how many clients/mds want caps for each inode
mds: cleanup MDCache::opening_inodes access
mds: cleanup CInode/CDir states definition
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-03-30 22:25:10 -07:00
Kefu Chai
4eb4d4fb0f
Merge pull request #21147 from rjfd/wip-dashboard-fix-notification-queue-test
...
mgr/dashboard: notification queue: fix priority tests
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-03-31 08:59:07 +08:00
Ricardo Dias
5c1f4d2925
mgr/dashboard: notification queue: fix priority tests
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-30 23:18:05 +01:00
vasukulkarni
7a244301bf
Merge pull request #20979 from ceph/wip-cd-smoke-fix
...
qa/tests: use ceph-deploy stable branch for single node tests
2018-03-30 12:20:09 -07:00
Vasu Kulkarni
80f84baa94
qa/tests: use stable branch for single node tests
...
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2018-03-30 09:09:37 -07:00
Willem Jan Withagen
3806d8ec7c
common: FreeBSD wants the correct struct selection for ipv6
...
Lets see if this also works for Linux
Fixes: http://tracker.ceph.com/issues/21813
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2018-03-30 17:49:08 +02:00
Li Wang
ab77dcc017
rbd-nbd: fix ebusy when do map
...
When doing rbd-nbd map, if the Ceph service is not available,
the codes will wait on rados.connect(), unless killing the process.
In that case, the close_nbd logic is skipped with NBD_CLEAR_SOCK ioctl
not called. On the CentOS 7 kernel, it leaves nbd->file not cleared, which
causes the subsequent map requests return EBUSY, this patch fixes it
by connecting Ceph first prior to calling NBD_SET_SOCK ioctl
Fixes: http://tracker.ceph.com/issues/23528
Signed-off-by: Li Wang <laurence.liwang@gmail.com>
2018-03-30 14:09:03 +00:00
Julien COLLET
bd750f8ef4
librbd/cli-integration: Permit V1 image creation
...
Signed-off-by: Julien COLLET <julien.collet@cern.ch>
2018-03-30 15:03:58 +02:00
Jason Dillaman
6885380c24
Merge pull request #18317 from hitoshikamei/master-rbd
...
rbd: eager-thick provisioning support
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-03-30 08:45:15 -04:00
Jason Dillaman
24e566af84
Merge pull request #20868 from shun-s/fix-same-cookie
...
librbd: fix refuse to release lock when cookie is the same at rewatch
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-03-30 08:44:49 -04:00
Jason Dillaman
285a2fdbfc
Merge pull request #20935 from trociny/wip-get-name
...
librbd: add API function to get image name
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-03-30 08:44:28 -04:00
kungf
a9b9477a44
os/bluestore: change the type of aio_t:res to long
...
io_event::res was assigned to io_t::rval, but io_event::res
is long, if rval is int, this will cause overflow.
Fixes: http://tracker.ceph.com/issues/23527
Signed-off-by: kungf <yang.wang@easystack.cn>
2018-03-30 20:15:42 +08:00
Kefu Chai
9e8af3e243
Merge pull request #21117 from smithfarm/wip-23504
...
tests: remove TestPGLog ASSERT_DEATH test
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-03-30 09:45:44 +08:00