Commit Graph

53431 Commits

Author SHA1 Message Date
Mykola Golub
1da9e725d2 Merge pull request #9181 from dillaman/wip-rbd-mirror-test
qa/workunits/rbd: fixed rbd_mirror teuthology runtime errors

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-05-18 23:10:02 +03:00
Jason Dillaman
8ef09c4d8d qa/workunits/rbd: fixed rbd_mirror teuthology runtime errors
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 15:02:14 -04:00
Samuel Just
444a107947 Merge pull request #8307 from songbaisen/song16
mon: paxos small optimization on store_state

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-05-18 10:38:31 -07:00
Samuel Just
040bccb49f Pipe: take a ref to existing while we are waiting
Pipe: take a ref to existing while we are waiting

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-05-18 10:35:23 -07:00
Sage Weil
40a57c0e82 Merge pull request #9159 from tchaikov/wip-kill-warnings
osd,auth: silence "-Wmisleading-indentation" warnings

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-05-18 13:34:38 -04:00
Mykola Golub
b11c07233a journal: live replay might skip entries from previous object setReviewed-by: Mykola Golub <mgolub@mirantis.com>
journal: live replay might skip entries from previous object set

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-05-18 20:29:22 +03:00
Jason Dillaman
9a2015f9b0 Merge pull request #9092 from trociny/wip-15746
doc: update mirroring guide to include pool/image status commands

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 13:21:19 -04:00
Jason Dillaman
e2ab3128a3 qa/workunits/rbd: rbd-mirror daemon stress test
This test repeatedly runs rbd bench-write, kills the process
randomly to create an unclean journal shutdown, and verifies
that the image content replicates correctly.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 11:02:47 -04:00
Jason Dillaman
9454f7e4c6 journal: skip partially complete tag entries during playback
If a journal client does not fully write out its buffered entries
before quiting, replay should skip over all remaining out-of-
sequence entries for the tag.

Fixes: http://tracker.ceph.com/issues/15864
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 11:02:29 -04:00
Jason Dillaman
0a8a6126ea journal: helper method to detect newer tags
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 11:02:29 -04:00
Jason Dillaman
de830057d0 journal: close, advance, and open object set ordering
Flush in-flight appends to open objects before advancing the
active object set.  Additionally, don't start recording to the
new objects until after advancing the active set.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 11:02:29 -04:00
Jason Dillaman
bba91437db journal: new ObjectRecorder closed callback
The callback will be invoked if there were in-flight appends
when the close was requested.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 11:02:29 -04:00
Jason Dillaman
45620dc312 journal: do not flag append as full if already known to be full
Once an object has overflowed or a close is in-progress, re-attempting
to close the object is not needed since the async process is already
underway.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 11:02:29 -04:00
Jason Dillaman
ee8d311a1f journal: delay object overflow event until in-flight appends settled
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 11:02:29 -04:00
Jason Dillaman
a13cb821f7 journal: ignore flush on closed/overflowed object
The journal would be in-progress on transitioning to a new
object recorder in a newer object set.  Once the records
re-attach to the new object player they will automatically
flush.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 11:02:29 -04:00
Jason Dillaman
1cb9b1a1b2 journal: implicitly detach future's flush handler on append
If the future is already in-flight, there is no purpose served
by requesting the future be flushed to disk.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 11:02:28 -04:00
Jason Dillaman
ca89abfd9e journal: async callback for advancing the active object set
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 11:02:28 -04:00
Jason Dillaman
6056f8c45c journal: re-fetch active object before advancing set during replay
During a live replay, it's possible that an append and and overflow
into the next object could race with the live playback of the same
object.  Re-fetch an "empty" object at least once before advancing
to next set to ensure all records have been read.

Fixes: http://tracker.ceph.com/issues/15665
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-18 11:02:28 -04:00
John Spray
63c70ad29f Merge pull request #8747 from jcsp/wip-15599
client: report root's quota in statfs (#15599)

Reviewed-by: Yan, Zheng <zyan@redhat.com>
2016-05-18 14:20:22 +01:00
John Spray
6950ce04ba Merge pull request #8582 from ukernel/wip-trim-purging
MDS: don't pin purging denties

Reviewed-by: John Spray <john.spray@redhat.com>
2016-05-18 14:18:17 +01:00
Sage Weil
ba01b2b636 Merge pull request #9166 from chhabaramesh/master
os/bluestore/BitmapFreelistManager: fix length calculation

Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-18 02:22:06 -04:00
Ramesh Chander
38714752f2 fixing wrong length cal in BitmapFreelist
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-05-17 23:13:19 -07:00
Kefu Chai
acac4bcbcc Merge pull request #8350 from songbaisen/song17
mon: do not alloc monmap on heap in Elector::dispatch()

Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-05-18 10:11:54 +08:00
Samuel Just
8817cac4e0 Merge pull request #9026 from badone/wip-log-syslog-info
log: Log.cc: Assign LOG_INFO priority to syslog calls

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-05-17 12:02:58 -07:00
Samuel Just
efbbf61806 Merge pull request #8727 from liewegas/wip-collection-attr
osd: remove collection attr methods from ObjectStore interface

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-05-17 12:01:55 -07:00
Samuel Just
32f90e4880 Merge pull request #7638 from asheplyakov/filejournal-open-ret
FileJournal::_open: return the correct error code

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-05-17 11:58:20 -07:00
Casey Bodley
7b5aa36cae Merge pull request #9098 from theanalyst/rgw/bucket-unused-ioctx
rgw_rados: remove unused ioctx for domain root in create_bucket

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-05-17 14:57:53 -04:00
Samuel Just
a61737aaba Merge pull request #7306 from branch-predictor/bp-fix-osdmap-loaderr
OSD/OSDService: make osdmap load error more human-understandable

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-05-17 11:57:15 -07:00
Samuel Just
0af9bb6de4 Merge pull request #7118 from efirs/ef_rwlock_for_index_manager
os/fileStore: Replace Mutex with RWLock in IndexManager

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-05-17 11:56:31 -07:00
Samuel Just
ac68c7970b Merge pull request #7163 from tchaikov/wip-pr-6085
mon: use CephOsdName for osd args instead of CephInt

Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-17 11:55:34 -07:00
Samuel Just
b79aea11e6 utime.h: fix timezone issue in round_to_* funcs.Reviewed-by: Samuel Just <sjust@redhat.com>
utime.h: fix timezone issue in round_to_* funcs.

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-05-17 11:54:12 -07:00
Casey Bodley
0c02648e77 Merge pull request #8259 from theanalyst/rgw/fix-15234
rgw: return -EACCESS for system requests also

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-05-17 14:02:34 -04:00
Casey Bodley
45c013e1eb Merge pull request #8892 from flyd1005/wip-boost-starts_with
rgw: cleanup: use boost::algorithm::starts_with to replace our own implementations

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-05-17 13:52:52 -04:00
Orit Wasserman
1d0fb4b8df Merge pull request #9109 from cbodley/wip-rgw-dup-zone
rgw: radosgw-admin rejects duplicate zone names in a zonegroup
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-05-17 15:06:25 +02:00
John Spray
b6d2b6d1a5 client: report root's quota in statfs
When user is mounted a quota-restricted inode
as the root, report that inode's quota status
as the filesystem statistics in statfs.

This allows us to have a fairly convincing illusion
that someone has a filesystem to themselves, when
they're really mounting a restricted part of
the larger global filesystem.

Fixes: http://tracker.ceph.com/issues/15599
Signed-off-by: John Spray <john.spray@redhat.com>
2016-05-17 13:08:13 +01:00
Kefu Chai
827320cb6d osd,auth: silence "-Wmisleading-indentation" warnings
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-05-17 13:17:06 +08:00
Josh Durgin
30af2cd071 test/objectstore/CMakeLists.txt: fix unittes_bit_alloc typoReviewed-by: Josh Durgin <jdurgin@redhat.com>
test/objectstore/CMakeLists.txt: fix unittes_bit_alloc typo
2016-05-16 16:46:01 -07:00
Yehuda Sadeh
a4839c5d4c Merge pull request #9118 from oritwas/wip-rgw-apache-realm-pull
rgw: fix realm pull and period pull for apache frontend

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-16 16:41:25 -07:00
Samuel Just
17baff76e5 test/objectstore/CMakeLists.txt: fix unittes_bit_alloc typo
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-05-16 16:40:55 -07:00
Sage Weil
207e9eee45 Merge pull request #9152 from liewegas/wip-bitmap-allocator
os/bluestore: bitmap allocator

Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-16 17:53:02 -04:00
Ramesh Chander
81acdd1a07 os/bluestore: bitmap allocator
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-05-16 17:32:39 -04:00
Ramesh Chander
fa4133ec05 os/bluestore: pass size to allocator
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-05-16 17:32:37 -04:00
Ramesh Chander
c3d3c512e9 os/bluestore: add config for allocator
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com
2016-05-16 17:31:50 -04:00
Yuri Weinstein
3d785ac585 Merge pull request #7787 from wjwithagen/patch-1
clang: common/config.cc basename() requires libgen.h includes

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-05-16 13:43:51 -07:00
Yuri Weinstein
a1cf4771dc Merge pull request #8689 from runsisi/wip-fix-ev-sk
msg/async/EventSocket: fix missing break statement

Reviewed-by: Haomai Wang <yuyuyu101@163.com>
Reviewed-by: xiexingguo <xie.xingguo@zte.com.cn>
2016-05-16 13:40:48 -07:00
Yuri Weinstein
a44443b3a1 Merge pull request #8717 from ZhenyuLeng/noneed_op_is_discardable
osd: make op_is_discardable check optional

Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-16 13:36:58 -07:00
Yuri Weinstein
ba81cff36c Merge pull request #8961 from xiexingguo/xxg-wip-fixepochtrunc
osd: don't get inc osdmap name truncated

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-05-16 13:34:49 -07:00
Yuri Weinstein
a166658940 Merge pull request #8985 from badone/wip-iops-typo
common: obj_bencher.cc add missing ":"

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-05-16 13:33:57 -07:00
Yuri Weinstein
f0e1cde9d6 Merge pull request #9011 from stiopaa1/osdmap_removeUnneededIncludeFiles
osd/OSDMap.h: remove unneeded include files

Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-16 13:32:41 -07:00
Yuri Weinstein
ca3d00a99c Merge pull request #9075 from runsisi/wip-compute-cost
osd/ReplicatedBackend: reuse the already computed cost

Reviewed-by: xiexingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-05-16 13:30:49 -07:00