]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoosd: CLEANUP: Remove unused pending_read member
David Zafman [Fri, 20 May 2016 20:58:32 +0000 (13:58 -0700)]
osd: CLEANUP: Remove unused pending_read member

Remove unused struct

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoRevert "test: Disable tests due to recovery race"
David Zafman [Fri, 20 May 2016 18:51:21 +0000 (11:51 -0700)]
Revert "test: Disable tests due to recovery race"

This reverts commit 5bc55338f5a1645bc651811fae2f89ad855ff86e.

Conflicts:
src/test/Makefile.am (no longer exists)
src/test/erasure-code/Makefile.am (no longer exists)

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #11449 from dzafman/wip-scrub-prep
David Zafman [Wed, 12 Oct 2016 16:35:40 +0000 (09:35 -0700)]
Merge pull request #11449 from dzafman/wip-scrub-prep

test/osd-scrub-repair.sh: Use test case specific object names to help…

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agotest/osd-scrub-repair.sh: Use test case specific object names to help with diagnostics 11449/head
David Zafman [Wed, 12 Oct 2016 01:08:12 +0000 (18:08 -0700)]
test/osd-scrub-repair.sh: Use test case specific object names to help with diagnostics

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #11422 from xiexingguo/xxg-wip-bluestore-1011
Sage Weil [Tue, 11 Oct 2016 22:22:16 +0000 (17:22 -0500)]
Merge pull request #11422 from xiexingguo/xxg-wip-bluestore-1011

os/bluestore: fix race condtion during blob spliting

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11394 from liewegas/wip-bluestore-shared-blob-intrusive
Sage Weil [Tue, 11 Oct 2016 18:25:32 +0000 (13:25 -0500)]
Merge pull request #11394 from liewegas/wip-bluestore-shared-blob-intrusive

os/bluestore: use std::unordered_map for SharedBlob lookup

8 years agoMerge pull request #11233 from zealoussnow/wip-0927
Kefu Chai [Tue, 11 Oct 2016 15:48:21 +0000 (23:48 +0800)]
Merge pull request #11233 from zealoussnow/wip-0927

doc: fix start development cluster operation in index.rst

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: use std::unordered_map for SharedBlob lookup 11394/head
Sage Weil [Mon, 10 Oct 2016 19:59:51 +0000 (15:59 -0400)]
os/bluestore: use std::unordered_map for SharedBlob lookup

Many blobs aren't shared.  Save 8 bytes per SharedBlob by using a normal
unordered_map instead of instrusive::set.

More importantly, perhaps, it avoids us having to tune the intrusive
unordered_set size manually.  std::unordered_map does this automatically
for you, but the intrusive one does not.  And it's unclear how to
statically size it given that it's a per-collection structure and we have
no idea how many objects we'll have, how many blobs per object, and how
many objects will be cloned.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11183 from liewegas/wip-msgr-features
Kefu Chai [Tue, 11 Oct 2016 15:01:10 +0000 (23:01 +0800)]
Merge pull request #11183 from liewegas/wip-msgr-features

msg: make loopback Connection feature accurate all the time

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: improve ExtentMap::reshard() readability a little 11422/head
xiexingguo [Tue, 11 Oct 2016 14:22:42 +0000 (22:22 +0800)]
os/bluestore: improve ExtentMap::reshard() readability a little

As ep, sp and esp can be a little confusing.

Signed-off-by: xiexingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11427 from ifed01/wip-bluestore-fix-test
Sage Weil [Tue, 11 Oct 2016 14:17:19 +0000 (09:17 -0500)]
Merge pull request #11427 from ifed01/wip-bluestore-fix-test

test/store_test: fix errors on the whole test suite run caused by the…

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: add sanity check to shard offset when updating
xiexingguo [Tue, 11 Oct 2016 14:16:34 +0000 (22:16 +0800)]
os/bluestore: add sanity check to shard offset when updating

Signed-off-by: xiexingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: fix race conditon during blob spliting
xiexingguo [Tue, 11 Oct 2016 14:14:22 +0000 (22:14 +0800)]
os/bluestore: fix race conditon during blob spliting

Signed-off-by: xiexingguo <xie.xingguo@zte.com.cn>
8 years agotest/store_test: fix errors on the whole test suite run caused by the lack of properi... 11427/head
Igor Fedotov [Tue, 11 Oct 2016 14:11:51 +0000 (14:11 +0000)]
test/store_test: fix errors on the whole test suite run caused by the lack of properites restore in some test cases

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: don't scan omap kvpair during fsck()
xie xingguo [Tue, 11 Oct 2016 11:14:38 +0000 (19:14 +0800)]
os/bluestore: don't scan omap kvpair during fsck()

Because it does not check anything, and removing it can
speed up the process of fsck()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: kiill dead member from bluestore_shared_blob_t
xie xingguo [Tue, 11 Oct 2016 07:32:48 +0000 (15:32 +0800)]
os/bluestore: kiill dead member from bluestore_shared_blob_t

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11150 from renhwztetecs/renhw-wip-mds-server-open
John Spray [Tue, 11 Oct 2016 10:27:21 +0000 (12:27 +0200)]
Merge pull request #11150 from renhwztetecs/renhw-wip-mds-server-open

mds/server: merge the snapshot request judgment

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11209 from david-z/wip-clear-dup-logic-mdsmonitor
John Spray [Tue, 11 Oct 2016 10:26:56 +0000 (12:26 +0200)]
Merge pull request #11209 from david-z/wip-clear-dup-logic-mdsmonitor

mon: clear duplicated logic in MDSMonitor

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11358 from stiopaa1/mds_sessionmaph_unneededCount
John Spray [Tue, 11 Oct 2016 10:26:03 +0000 (12:26 +0200)]
Merge pull request #11358 from stiopaa1/mds_sessionmaph_unneededCount

mds/SessionMap.h: remove unneeded use of count

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11362 from batrick/i17531
John Spray [Tue, 11 Oct 2016 10:24:10 +0000 (12:24 +0200)]
Merge pull request #11362 from batrick/i17531

mds: respawn using /proc/self/exe

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11359 from batrick/i17276
John Spray [Tue, 11 Oct 2016 10:23:50 +0000 (12:23 +0200)]
Merge pull request #11359 from batrick/i17276

client: add pid to metadata

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11395 from dillaman/wip-17549
Mykola Golub [Tue, 11 Oct 2016 07:55:55 +0000 (10:55 +0300)]
Merge pull request #11395 from dillaman/wip-17549

librbd: ignore notify errors on missing image header

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11404 from bassamtabbara/wip-fix-yasm-system-check
Kefu Chai [Tue, 11 Oct 2016 07:29:16 +0000 (15:29 +0800)]
Merge pull request #11404 from bassamtabbara/wip-fix-yasm-system-check

cmake: Fix for cross compiling

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11356 from dillaman/wip-17528
Mykola Golub [Tue, 11 Oct 2016 05:58:45 +0000 (08:58 +0300)]
Merge pull request #11356 from dillaman/wip-17528

librbd: update internals to use optional separate data pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11297 from stiopaa1/mds_sessionmap_avoidCopyingPlusConst
Gregory Farnum [Mon, 10 Oct 2016 21:47:15 +0000 (15:47 -0600)]
Merge pull request #11297 from stiopaa1/mds_sessionmap_avoidCopyingPlusConst

mds/SessionMap.cc: avoid copying and add const

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11283 from jcsp/wip-print-legacy-client-fscid
Gregory Farnum [Mon, 10 Oct 2016 21:46:55 +0000 (15:46 -0600)]
Merge pull request #11283 from jcsp/wip-print-legacy-client-fscid

mds: include legacy client fsid in FSMap print

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agocmake: Fix for cross compiling 11404/head
Bassam Tabbara [Tue, 4 Oct 2016 23:55:27 +0000 (16:55 -0700)]
cmake: Fix for cross compiling

The check for yasm tool was calling uname -m which will not
work when cross compiling. Use CMAKE_SYSTEM_PROCESSOR instead.

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
8 years agoMerge pull request #11206 from dzafman/wip-16474
David Zafman [Mon, 10 Oct 2016 20:55:16 +0000 (13:55 -0700)]
Merge pull request #11206 from dzafman/wip-16474

osd: Remove extra call to reg_next_scrub() during splits

Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #11399 from theanalyst/wip-release-notes
Loic Dachary [Mon, 10 Oct 2016 20:17:18 +0000 (22:17 +0200)]
Merge pull request #11399 from theanalyst/wip-release-notes

scripts/release-notes: allow title guesses from gh tags & description update

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agobuild/ops: ceph-release-notes guess pr title based on gh tags 11399/head
Abhishek Lekshmanan [Mon, 10 Oct 2016 19:37:03 +0000 (21:37 +0200)]
build/ops: ceph-release-notes guess pr title based on gh tags

We add a switch --use-tags which helps guess the component of the pr
based on gh tags, still needs work, but provides better estimates when
looking at really large release notes where guessing each pr would be
too much work

Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
8 years agoscripts: add description to ceph-release-notes
Abhishek Lekshmanan [Mon, 10 Oct 2016 19:36:29 +0000 (21:36 +0200)]
scripts: add description to ceph-release-notes

Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
8 years agolibrbd: include pool id in data block prefix if data pool enabled 11356/head
Jason Dillaman [Thu, 6 Oct 2016 19:40:56 +0000 (15:40 -0400)]
librbd: include pool id in data block prefix if data pool enabled

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: initialize the data pool IO context during image open state machine
Jason Dillaman [Thu, 6 Oct 2016 19:19:26 +0000 (15:19 -0400)]
librbd: initialize the data pool IO context during image open state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: store data pool id with image header during creation
Jason Dillaman [Thu, 6 Oct 2016 19:04:51 +0000 (15:04 -0400)]
librbd: store data pool id with image header during creation

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11355 from dillaman/wip-17424
Mykola Golub [Mon, 10 Oct 2016 18:07:44 +0000 (21:07 +0300)]
Merge pull request #11355 from dillaman/wip-17424

rbd: add support for separate image data pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #10731 from yehudasa/wip-rgw-sync-plugins
Casey Bodley [Mon, 10 Oct 2016 17:51:10 +0000 (13:51 -0400)]
Merge pull request #10731 from yehudasa/wip-rgw-sync-plugins

rgw: sync modules, metadata search

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agolibrbd: ignore notify errors on missing image header 11395/head
Jason Dillaman [Mon, 10 Oct 2016 15:57:03 +0000 (11:57 -0400)]
librbd: ignore notify errors on missing image header

The rename op on v1 images fails since the header no longer exists. In
the general case, the removal of the header object will also fail the
watcher which has its own recovery path.

Fixes: http://tracker.ceph.com/issues/17549
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11363 from xiexingguo/xxg-wip-fix-rbd-warn
Jason Dillaman [Mon, 10 Oct 2016 15:07:11 +0000 (11:07 -0400)]
Merge pull request #11363 from xiexingguo/xxg-wip-fix-rbd-warn

cls_rbd: silence compiler warnings

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11371 from stiopaa1/mds_cinode_removeCount
Sage Weil [Mon, 10 Oct 2016 15:03:25 +0000 (10:03 -0500)]
Merge pull request #11371 from stiopaa1/mds_cinode_removeCount

mds/CInode.h: remove unneeded use of count

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11383 from stiopaa1/mds_fsmap_passSharedPtrByConstRef
Sage Weil [Mon, 10 Oct 2016 15:00:05 +0000 (10:00 -0500)]
Merge pull request #11383 from stiopaa1/mds_fsmap_passSharedPtrByConstRef

mds/FSMap: pass shared_ptr by const ref

8 years agorbd: include data pool name within info command 11355/head
Jason Dillaman [Thu, 6 Oct 2016 18:49:25 +0000 (14:49 -0400)]
rbd: include data pool name within info command

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agorbd: support overriding image data pool when creating images
Jason Dillaman [Thu, 6 Oct 2016 18:31:27 +0000 (14:31 -0400)]
rbd: support overriding image data pool when creating images

Fixes: http://tracker.ceph.com/issues/17424
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11290 from trociny/wip-17017
Jason Dillaman [Mon, 10 Oct 2016 14:41:25 +0000 (10:41 -0400)]
Merge pull request #11290 from trociny/wip-17017

rbd-mirror HA: move librbd::image_watcher::Notifier to librbd::object_watcher

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11260 from runsisi/wip-fix-mirror-image-disable
Jason Dillaman [Mon, 10 Oct 2016 14:40:33 +0000 (10:40 -0400)]
Merge pull request #11260 from runsisi/wip-fix-mirror-image-disable

librbd: fix rollback if failed to disable mirroring for image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11301 from liewegas/wip-bluestore-buffered-write
Sage Weil [Mon, 10 Oct 2016 14:40:06 +0000 (09:40 -0500)]
Merge pull request #11301 from liewegas/wip-bluestore-buffered-write

os/bluestore: allow default to buffered write

Reviewed-by: Mark Nelson <mnelson@redhat.com>
8 years agoMerge pull request #11370 from ceph/wip-krbd-unmap-options
Jason Dillaman [Mon, 10 Oct 2016 14:17:09 +0000 (10:17 -0400)]
Merge pull request #11370 from ceph/wip-krbd-unmap-options

rbd: expose rbd unmap options

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11255 from dzafman/wip-scrub-boundary
Sage Weil [Mon, 10 Oct 2016 14:12:16 +0000 (09:12 -0500)]
Merge pull request #11255 from dzafman/wip-scrub-boundary

osd: fix scrub boundary to not include a SnapSet

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agomsg: make loopback Connection feature accurate all the time 11183/head
Sage Weil [Mon, 10 Oct 2016 13:55:54 +0000 (09:55 -0400)]
msg: make loopback Connection feature accurate all the time

In 626360aab05545ddacb0ac28e54a70e31fd5695d we made the
OSD cluster loopback connection CEPH_FEATURES_ALL, but
all other loopback connections got features == 0.  I
can't come up with any reason we wouldn't want those
connections to have accurate feature bits, so let's just
use CEPH_FEATURES_ALL for all of them.

While we're here, make the cflags argument required.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11377 from xiexingguo/xxg-wip-bluestore-1008
Sage Weil [Mon, 10 Oct 2016 13:48:43 +0000 (08:48 -0500)]
Merge pull request #11377 from xiexingguo/xxg-wip-bluestore-1008

os/bluestore: drop inline_dirty from struct ExtentMap

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: narrow scope of 'pos' 11377/head
xie xingguo [Mon, 10 Oct 2016 11:39:18 +0000 (19:39 +0800)]
os/bluestore: narrow scope of 'pos'

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11281 from jcsp/wip-17466
John Spray [Mon, 10 Oct 2016 11:21:07 +0000 (13:21 +0200)]
Merge pull request #11281 from jcsp/wip-17466

mds: handle bad standby_for_fscids in fsmap

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoos/bluestore: get rid of multiple call to dirty_blob()
xie xingguo [Mon, 10 Oct 2016 10:52:23 +0000 (18:52 +0800)]
os/bluestore: get rid of multiple call to dirty_blob()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #10722 from stiopaa1/mon_moncap_addMoveToStrings
Kefu Chai [Mon, 10 Oct 2016 06:47:21 +0000 (14:47 +0800)]
Merge pull request #10722 from stiopaa1/mon_moncap_addMoveToStrings

mon/MonCap.h: add std::move for std::string

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10916 from jordan41177/fix-17169
Kefu Chai [Mon, 10 Oct 2016 06:39:56 +0000 (14:39 +0800)]
Merge pull request #10916 from jordan41177/fix-17169

mon: OSDMonitor: fix the check error of pg creating

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10720 from wjwithagen/wip-wjw-freebsd-socket-shutdown
Kefu Chai [Mon, 10 Oct 2016 06:38:56 +0000 (14:38 +0800)]
Merge pull request #10720 from wjwithagen/wip-wjw-freebsd-socket-shutdown

msg/simple/Accepter.cc: replace shutdown() with selfpipe event in poll() (FreeBSD)

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #10601 from stiopaa1/mon_monclient_subwantRemoveCount
Kefu Chai [Mon, 10 Oct 2016 06:33:54 +0000 (14:33 +0800)]
Merge pull request #10601 from stiopaa1/mon_monclient_subwantRemoveCount

mon/MonClient.h: remove repeated searching of map

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11145 from atheism/msg-async-fix-specifier
Kefu Chai [Mon, 10 Oct 2016 06:32:31 +0000 (14:32 +0800)]
Merge pull request #11145 from atheism/msg-async-fix-specifier

msg: fix format specifier for unsigned value id

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agomds/FSMap: pass shared_ptr by const ref 11383/head
Michal Jarzabek [Sun, 9 Oct 2016 12:50:54 +0000 (13:50 +0100)]
mds/FSMap: pass shared_ptr by const ref

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoos/bluestore: fix raw blob encoded size
xie xingguo [Sun, 9 Oct 2016 12:04:33 +0000 (20:04 +0800)]
os/bluestore: fix raw blob encoded size

The maximum length of fixed fields of bluestore_blob_t shall be:

uint64_t sbid                       ///< 8 bytes
uint32_t compressed_length_orig     ///< 4 bytes
uint32_t compressed_length          ///< 4 bytes
uint32_t flags                      ///< 4 bytes
uint8_t csum_type                   ///< 1 byte
uint8_t csum_chunk_order            ///< 1 byte
unused_t unused;                    ///< 2 bytes

8 + 4 + 4 + 4 + 1 + 1 + 2 = 24

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agomds/SessionMap.h: remove unneeded use of count 11358/head
Michal Jarzabek [Thu, 6 Oct 2016 20:30:43 +0000 (21:30 +0100)]
mds/SessionMap.h: remove unneeded use of count

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoos/bluestore: add counter to trace number of garbage collection reads
xie xingguo [Sun, 9 Oct 2016 09:33:27 +0000 (17:33 +0800)]
os/bluestore: add counter to trace number of garbage collection reads

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: kill dead lines to keep code clean
xie xingguo [Sun, 9 Oct 2016 07:40:50 +0000 (15:40 +0800)]
os/bluestore: kill dead lines to keep code clean

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11379 from zealoussnow/fix-dead-link
Kefu Chai [Sun, 9 Oct 2016 05:53:28 +0000 (13:53 +0800)]
Merge pull request #11379 from zealoussnow/fix-dead-link

doc: fix dead link "Hardware Recommendations"

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agomon: clear duplicated logic in MDSMonitor 11209/head
Zhi Zhang [Sun, 9 Oct 2016 03:38:17 +0000 (11:38 +0800)]
mon: clear duplicated logic in MDSMonitor

Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
8 years agodoc: fix dead link "Hardware Recommendations" 11379/head
Leo Zhang [Sat, 8 Oct 2016 14:41:59 +0000 (22:41 +0800)]
doc: fix dead link "Hardware Recommendations"

Signed-off-by: Leo Zhang <nguzcf@gmail.com>
8 years agoos/bluestore: drop inline_dirty from struct ExtentMap
xie xingguo [Sat, 8 Oct 2016 08:24:22 +0000 (16:24 +0800)]
os/bluestore: drop inline_dirty from struct ExtentMap

We don't need this member as we can simply clear inline_bl
to mark it as dirty.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agorbd/cls_rbd: silence compiler warnings 11363/head
xiexingguo [Fri, 7 Oct 2016 22:44:32 +0000 (06:44 +0800)]
rbd/cls_rbd: silence compiler warnings

Signed-off-by: xiexingguo <xie.xingguo@zte.com.cn>
8 years agomds/CInode.h: remove unneeded use of count 11371/head
Michal Jarzabek [Fri, 7 Oct 2016 22:15:27 +0000 (23:15 +0100)]
mds/CInode.h: remove unneeded use of count

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoMerge pull request #10057 from Yan-waller/yj-wip-rgwradosccremover-0701
Yehuda Sadeh [Fri, 7 Oct 2016 21:04:45 +0000 (14:04 -0700)]
Merge pull request #10057 from Yan-waller/yj-wip-rgwradosccremover-0701

rgw: minor cleanup

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #10674 from ceph/wip-rgw-no-empty-amzrqid
Yehuda Sadeh [Fri, 7 Oct 2016 21:02:27 +0000 (14:02 -0700)]
Merge pull request #10674 from ceph/wip-rgw-no-empty-amzrqid

rgw/rest: don't print empty x-amz-request-id

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #10849 from zhangsw/master
Yehuda Sadeh [Fri, 7 Oct 2016 20:57:18 +0000 (13:57 -0700)]
Merge pull request #10849 from zhangsw/master

rgw: remove a redundant judgement when listng objects.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoos/bluestore: allow default to buffered write 11301/head
Sage Weil [Fri, 7 Oct 2016 20:07:53 +0000 (16:07 -0400)]
os/bluestore: allow default to buffered write

Add config option to buffered writes (in the absense of
a client WILLNEED hint).  Set the config option to false,
though, so that the default behavior is unchanged.

2Q should do a half-decent job of preventing this from
pushing actually-hot data from the cache when it's
enabled, but we'll need to do more testing first.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11353 from dillaman/wip-17423
Mykola Golub [Fri, 7 Oct 2016 19:04:15 +0000 (22:04 +0300)]
Merge pull request #11353 from dillaman/wip-17423

librbd: API changes to support separate data pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agorgw: index metadata in elasticsearch using realm name for path 10731/head
Yehuda Sadeh [Mon, 29 Aug 2016 18:18:43 +0000 (11:18 -0700)]
rgw: index metadata in elasticsearch using realm name for path

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw_admin: sync status command shows if not syncing from zone
Yehuda Sadeh [Fri, 26 Aug 2016 23:43:23 +0000 (16:43 -0700)]
rgw_admin: sync status command shows if not syncing from zone

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: setting sync-from zone by name not by id
Yehuda Sadeh [Fri, 26 Aug 2016 21:54:06 +0000 (14:54 -0700)]
rgw: setting sync-from zone by name not by id

Using the zone name is easier and clearer.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw_admin: update usage
Yehuda Sadeh [Fri, 26 Aug 2016 21:37:37 +0000 (14:37 -0700)]
rgw_admin: update usage

add refrence to --sync-from*

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw_admin: config options to set sync_from and sync_from_all
Yehuda Sadeh [Fri, 26 Aug 2016 21:08:47 +0000 (14:08 -0700)]
rgw_admin: config options to set sync_from and sync_from_all

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: support partial mesh for zone sync
Yehuda Sadeh [Fri, 26 Aug 2016 21:09:00 +0000 (14:09 -0700)]
rgw: support partial mesh for zone sync

zone configuration now includes two new fields: sync_from_all
which is boolean, and sync_from, which is a least of zones to
sync from. By default sync_from_all is set to true. Sync will
only happen from all the zones, or from the specified zones if
sync_from all is false. We also check to see whether zone can
export data (depending on tier_type).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: es module, remove entry on delete
Yehuda Sadeh [Wed, 24 Aug 2016 17:57:20 +0000 (10:57 -0700)]
rgw: es module, remove entry on delete

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: add cr to send DELETE to remove endpoint
Yehuda Sadeh [Wed, 24 Aug 2016 17:56:43 +0000 (10:56 -0700)]
rgw: add cr to send DELETE to remove endpoint

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: rest conn functions cleanup, only append zonegroup if not empty
Yehuda Sadeh [Tue, 23 Aug 2016 17:22:42 +0000 (10:22 -0700)]
rgw: rest conn functions cleanup, only append zonegroup if not empty

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: es sync module, store custom metadata
Yehuda Sadeh [Fri, 19 Aug 2016 12:31:09 +0000 (05:31 -0700)]
rgw: es sync module, store custom metadata

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: es sync module, keep object mtime
Yehuda Sadeh [Fri, 19 Aug 2016 11:39:38 +0000 (04:39 -0700)]
rgw: es sync module, keep object mtime

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: utility function to dump iso8601
Yehuda Sadeh [Fri, 19 Aug 2016 11:39:06 +0000 (04:39 -0700)]
rgw: utility function to dump iso8601

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: es sync module, store acl information
Yehuda Sadeh [Fri, 19 Aug 2016 10:29:29 +0000 (03:29 -0700)]
rgw: es sync module, store acl information

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: es sync module, store object attrs
Yehuda Sadeh [Fri, 19 Aug 2016 09:19:29 +0000 (02:19 -0700)]
rgw: es sync module, store object attrs

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: es sync module, send object info to elasticsearch
Yehuda Sadeh [Fri, 19 Aug 2016 10:37:44 +0000 (03:37 -0700)]
rgw: es sync module, send object info to elasticsearch

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agocmake: fix linkage of ceph_test_librgw_file_nfsns
Yehuda Sadeh [Fri, 19 Aug 2016 10:37:07 +0000 (03:37 -0700)]
cmake: fix linkage of ceph_test_librgw_file_nfsns

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: initial implementation of elasticsearch sync module
Yehuda Sadeh [Wed, 17 Aug 2016 09:45:32 +0000 (02:45 -0700)]
rgw: initial implementation of elasticsearch sync module

sync module that will handle rgw metadata indexing.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: a new cr to send http PUT requests
Yehuda Sadeh [Wed, 17 Aug 2016 09:00:04 +0000 (02:00 -0700)]
rgw: a new cr to send http PUT requests

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: allow null store in RGWRESTConn
Yehuda Sadeh [Wed, 17 Aug 2016 08:59:50 +0000 (01:59 -0700)]
rgw: allow null store in RGWRESTConn

We're not necessarily going to connect to rgw/s3 endpoints,
we only need store param to handle s3 signing.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: REST client, don't sign requests if empty key
Yehuda Sadeh [Wed, 17 Aug 2016 08:44:02 +0000 (01:44 -0700)]
rgw: REST client, don't sign requests if empty key

If key is not passed in, don't try to sign the request.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: move the rgw sync code module around
Yehuda Sadeh [Tue, 16 Aug 2016 13:25:51 +0000 (06:25 -0700)]
rgw: move the rgw sync code module around

No real code change

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: some abstraction around log sync module
Yehuda Sadeh [Tue, 16 Aug 2016 09:01:24 +0000 (02:01 -0700)]
rgw: some abstraction around log sync module

Moving code that fetches remote object meta to its own classes.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: log sync module gets source object's meta
Yehuda Sadeh [Thu, 4 Aug 2016 20:00:53 +0000 (13:00 -0700)]
rgw: log sync module gets source object's meta

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: propagate attrs, mtime, size of remote object
Yehuda Sadeh [Thu, 4 Aug 2016 16:17:54 +0000 (09:17 -0700)]
rgw: propagate attrs, mtime, size of remote object

Use new rgwx-stat http param that allows getting only object's
meta. Use that when calling stat_remote_object().

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: add cr to stat remote obj
Yehuda Sadeh [Thu, 4 Aug 2016 00:27:09 +0000 (17:27 -0700)]
rgw: add cr to stat remote obj

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: helper to stat remote obj
Yehuda Sadeh [Wed, 3 Aug 2016 23:01:00 +0000 (16:01 -0700)]
rgw: helper to stat remote obj

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: add a simple logging sync module
Yehuda Sadeh [Wed, 3 Aug 2016 20:34:04 +0000 (13:34 -0700)]
rgw: add a simple logging sync module

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>