]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agotools/cephfs: fix tmap_upgrade 8128/head
John Spray [Tue, 15 Mar 2016 14:58:27 +0000 (14:58 +0000)]
tools/cephfs: fix tmap_upgrade

Move it up to handle the command before we try
and initialize DataScan::driver, because drivers
require a target filesystem, and that doesn't
apply to this command.

Fixes: #15135
Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge remote-tracking branch 'gh/jewel'
Sage Weil [Sat, 12 Mar 2016 14:03:06 +0000 (09:03 -0500)]
Merge remote-tracking branch 'gh/jewel'

9 years agoMerge branch 'wip-15086' of git://github.com/SUSE/ceph
Sage Weil [Sat, 12 Mar 2016 14:02:49 +0000 (09:02 -0500)]
Merge branch 'wip-15086' of git://github.com/SUSE/ceph

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8068 from SUSE/wip-15104
Josh Durgin [Sat, 12 Mar 2016 01:48:43 +0000 (17:48 -0800)]
Merge pull request #8068 from SUSE/wip-15104

qa/workunits/rbd: use POSIX function definition

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7663 from javacruft/wip-pybind-flags
Josh Durgin [Sat, 12 Mar 2016 01:40:40 +0000 (17:40 -0800)]
Merge pull request #7663 from javacruft/wip-pybind-flags

pybind: Ensure correct python flags are passed

Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7856 from jdurgin/wip-cython-cleanup
Josh Durgin [Sat, 12 Mar 2016 01:35:11 +0000 (17:35 -0800)]
Merge pull request #7856 from jdurgin/wip-cython-cleanup

configure.ac: update help strings for cython

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
9 years agoMerge remote-tracking branch 'origin/wip-josh-testing'
Josh Durgin [Sat, 12 Mar 2016 01:20:47 +0000 (17:20 -0800)]
Merge remote-tracking branch 'origin/wip-josh-testing'

9 years agoMerge pull request #8067 from athanatos/wip-fix-filestore-warning
Gregory Farnum [Sat, 12 Mar 2016 01:06:07 +0000 (17:06 -0800)]
Merge pull request #8067 from athanatos/wip-fix-filestore-warning

FileStore: fix initialization order for m_disable_wbthrottle

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoqa/workunits/rbd: use POSIX function definition 8068/head
Nathan Cutler [Sat, 12 Mar 2016 01:03:27 +0000 (02:03 +0100)]
qa/workunits/rbd: use POSIX function definition

In scripts with /bin/sh shebang, we must use POSIX function definitions to
avoid syntax errors on platforms that link /bin/sh to something other than
/bin/bash.

See https://wiki.ubuntu.com/DashAsBinSh#function for more information.

http://tracker.ceph.com/issues/15104 Fixes: #15104

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoMerge pull request #8034 from SUSE/wip-15047
Ken Dreyer [Fri, 11 Mar 2016 23:58:30 +0000 (16:58 -0700)]
Merge pull request #8034 from SUSE/wip-15047

packaging: make infernalis -> jewel upgrade work

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
9 years agodebian: make infernalis -> jewel upgrade work 8034/head
Nathan Cutler [Thu, 10 Mar 2016 21:11:46 +0000 (22:11 +0100)]
debian: make infernalis -> jewel upgrade work

Attempts to install jewel ceph-common, ceph-mon, ceph-osd, and ceph-base
package over infernalis ceph package fail due to files existing in both.

See comment #4 in the tracker issue for a deeper analysis.

http://tracker.ceph.com/issues/15047 Fixes: #15047

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoFileStore: fix initialization order for m_disable_wbthrottle 8067/head
Samuel Just [Fri, 11 Mar 2016 23:16:37 +0000 (15:16 -0800)]
FileStore: fix initialization order for m_disable_wbthrottle

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoceph-detect-init: return systemd on Debian Jessie 8062/head
Nathan Cutler [Fri, 11 Mar 2016 21:54:54 +0000 (22:54 +0100)]
ceph-detect-init: return systemd on Debian Jessie

http://tracker.ceph.com/issues/15086 Fixes: #15086

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoRevert "test/time: no need to abs(uint64_t) for comparing"
Sage Weil [Fri, 11 Mar 2016 22:42:27 +0000 (17:42 -0500)]
Revert "test/time: no need to abs(uint64_t) for comparing"

This reverts commit da0f6608dd6cc3356e727e739575f496c2b6a590.

unittest_time fails:

[==========] Running 4 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 2 tests from RealClock
[ RUN      ] RealClock.Sanity
[       OK ] RealClock.Sanity (0 ms)
[ RUN      ] RealClock.Conversions
test/common/test_time.cc:125: Failure
Expected: ((Clock::from_double(bd) - brt).count()) < (30U), actual: 18446744073709551595 vs 30
[  FAILED  ] RealClock.Conversions (0 ms)
[----------] 2 tests from RealClock (0 ms total)

[----------] 2 tests from CoarseRealClock
[ RUN      ] CoarseRealClock.Sanity
[       OK ] CoarseRealClock.Sanity (0 ms)
[ RUN      ] CoarseRealClock.Conversions
test/common/test_time.cc:125: Failure
Expected: ((Clock::from_double(bd) - brt).count()) < (30U), actual: 18446744073709551595 vs 30
[  FAILED  ] CoarseRealClock.Conversions (0 ms)
[----------] 2 tests from CoarseRealClock (0 ms total)

[----------] Global test environment tear-down
[==========] 4 tests from 2 test cases ran. (0 ms total)
[  PASSED  ] 2 tests.
[  FAILED  ] 2 tests, listed below:
[  FAILED  ] RealClock.Conversions
[  FAILED  ] CoarseRealClock.Conversions

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8063 from gregsfortytwo/wip-fix-fsmap-decode
Gregory Farnum [Fri, 11 Mar 2016 22:29:30 +0000 (14:29 -0800)]
Merge pull request #8063 from gregsfortytwo/wip-fix-fsmap-decode

Wip fix fsmap decode

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7752 from somnathr/wip-odsync-write
Samuel Just [Fri, 11 Mar 2016 21:47:38 +0000 (13:47 -0800)]
Merge pull request #7752 from somnathr/wip-odsync-write

FileStore: Added O_DSYNC write scheme

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoFSMap: actually include the legacy MDSMap in Filesystems when upgrading 8063/head
Greg Farnum [Fri, 11 Mar 2016 21:41:48 +0000 (13:41 -0800)]
FSMap: actually include the legacy MDSMap in Filesystems when upgrading

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
9 years agoFSMap: decode old MDSMaps properly
Greg Farnum [Fri, 11 Mar 2016 21:36:51 +0000 (13:36 -0800)]
FSMap: decode old MDSMaps properly

We accidentally left a few members out that the MDSMap had!

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #8058 from yehudasa/wip-rgw-clean-log
Yehuda Sadeh [Fri, 11 Mar 2016 20:47:04 +0000 (12:47 -0800)]
Merge pull request #8058 from yehudasa/wip-rgw-clean-log

cleanup

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agorgw: silence compilation warnings 8058/head
Yehuda Sadeh [Fri, 11 Mar 2016 19:28:06 +0000 (11:28 -0800)]
rgw: silence compilation warnings

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: cleanup of debug messages
Orit Wasserman [Fri, 4 Mar 2016 11:52:10 +0000 (12:52 +0100)]
rgw: cleanup of debug messages

use ldout instead of derr and lderr and increase logging level

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #7944 from trociny/wip-rbd-mirror-image-replayer-async
Josh Durgin [Fri, 11 Mar 2016 19:24:12 +0000 (11:24 -0800)]
Merge pull request #7944 from trociny/wip-rbd-mirror-image-replayer-async

rbd-mirror: ImageReplayer async start/stop

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8028 from dillaman/wip-librbd-journal-replay
Josh Durgin [Fri, 11 Mar 2016 19:22:10 +0000 (11:22 -0800)]
Merge pull request #8028 from dillaman/wip-librbd-journal-replay

librbd: replaying a journal op post-refresh requires locking

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7483 from liewegas/wip-osd-boot
Samuel Just [Fri, 11 Mar 2016 19:03:58 +0000 (11:03 -0800)]
Merge pull request #7483 from liewegas/wip-osd-boot

osd: resolve boot vs NOUP set + clear race

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #8030 from yehudasa/wip-rgw-sync-status
Orit Wasserman [Fri, 11 Mar 2016 18:39:59 +0000 (19:39 +0100)]
Merge pull request #8030 from yehudasa/wip-rgw-sync-status

adds the radosgw-admin sync status command that gives a human readable status of the sync process at a specific zone

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #7615 from ceph/wip-14678
Yehuda Sadeh [Fri, 11 Mar 2016 18:21:03 +0000 (10:21 -0800)]
Merge pull request #7615 from ceph/wip-14678

rgw: store system object meta in cache when creating it

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
9 years agoMerge pull request #8037 from yehudasa/wip-bucket-link
Yehuda Sadeh [Fri, 11 Mar 2016 18:17:07 +0000 (10:17 -0800)]
Merge pull request #8037 from yehudasa/wip-bucket-link

rgw:bucket link now set the bucket.instance acl (bug fix)

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #8013 from yehudasa/wip-rgw-multisite-fixes
Orit Wasserman [Fri, 11 Mar 2016 18:11:38 +0000 (19:11 +0100)]
Merge pull request #8013 from yehudasa/wip-rgw-multisite-fixes

rgw multisite fixes

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #6953 from jcsp/wip-fsmap
Gregory Farnum [Fri, 11 Mar 2016 17:36:30 +0000 (09:36 -0800)]
Merge pull request #6953 from jcsp/wip-fsmap

Multi-filesystem support

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #7465 from liewegas/wip-promote-throttle
Sage Weil [Fri, 11 Mar 2016 17:15:46 +0000 (12:15 -0500)]
Merge pull request #7465 from liewegas/wip-promote-throttle

osd: probabilistic cache tier promotion throttling

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge tag 'v10.0.5'
Sage Weil [Fri, 11 Mar 2016 17:07:55 +0000 (12:07 -0500)]
Merge tag 'v10.0.5'

v10.0.5

Conflicts:
debian/changelog

9 years agov10.0.5 v10.0.5
Sage Weil [Fri, 11 Mar 2016 17:05:13 +0000 (12:05 -0500)]
v10.0.5

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodebian/changelog: Remove stray 'v' in version
Dan Mick [Fri, 4 Mar 2016 19:42:08 +0000 (11:42 -0800)]
debian/changelog: Remove stray 'v' in version

Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit 0f7730c8f444657d4aaffa28c12bbcd602a2e3b8)

9 years agoMerge branch 'master' of github.com:ceph/ceph
Sage Weil [Fri, 11 Mar 2016 16:14:55 +0000 (11:14 -0500)]
Merge branch 'master' of github.com:ceph/ceph

9 years agoMerge branch 'debian-stretch-dep-fix' of git://github.com/rldleblanc/ceph
Sage Weil [Fri, 11 Mar 2016 16:14:18 +0000 (11:14 -0500)]
Merge branch 'debian-stretch-dep-fix' of git://github.com/rldleblanc/ceph

Reviewed-by: Sage Weil <sage@redhat.com>
# Conflicts:
# debian/control

9 years agoMerge pull request #8045 from tchaikov/wip-scrubstore-cleanup
Sage Weil [Fri, 11 Mar 2016 15:50:43 +0000 (10:50 -0500)]
Merge pull request #8045 from tchaikov/wip-scrubstore-cleanup

osd/ScrubStore: remove unused function

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7707 from xiexingguo/xxg-wip-14815
Sage Weil [Fri, 11 Mar 2016 15:33:13 +0000 (10:33 -0500)]
Merge pull request #7707 from xiexingguo/xxg-wip-14815

osd: filestore: fix wrong scope of result code for error cases during mount

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7726 from tchaikov/wip-fix-ftbfs-gcc6
Sage Weil [Fri, 11 Mar 2016 15:32:38 +0000 (10:32 -0500)]
Merge pull request #7726 from tchaikov/wip-fix-ftbfs-gcc6

test/time: no need to abs(uint64_t) for comparing

Reviewed-by: Adam Emerson <aemerson@redhat.com>
9 years agoMerge pull request #7955 from ErwanAliasr1/evelu-check-bufferlist
Sage Weil [Fri, 11 Mar 2016 15:32:05 +0000 (10:32 -0500)]
Merge pull request #7955 from ErwanAliasr1/evelu-check-bufferlist

test/bufferlist: Avoid false-positive tests

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7980 from liewegas/wip-14952
Sage Weil [Fri, 11 Mar 2016 15:31:34 +0000 (10:31 -0500)]
Merge pull request #7980 from liewegas/wip-14952

mon: initialize last_* timestamps on new pgs to creation time

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #7982 from liewegas/wip-14606
Sage Weil [Fri, 11 Mar 2016 15:30:53 +0000 (10:30 -0500)]
Merge pull request #7982 from liewegas/wip-14606

qa/workunits/rest/test.py: add confirmation to 'mds setmap'

9 years agoMerge pull request #7983 from liewegas/wip-14616
Sage Weil [Fri, 11 Mar 2016 15:29:55 +0000 (10:29 -0500)]
Merge pull request #7983 from liewegas/wip-14616

log: do not repeat errors to stderr

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8004 from liewegas/wip-rados-test-stderr
Sage Weil [Fri, 11 Mar 2016 15:29:39 +0000 (10:29 -0500)]
Merge pull request #8004 from liewegas/wip-rados-test-stderr

qa/workunits/rados/test.sh: capture stderr too

9 years agoMerge pull request #8006 from liewegas/wip-big-pages
Sage Weil [Fri, 11 Mar 2016 15:29:00 +0000 (10:29 -0500)]
Merge pull request #8006 from liewegas/wip-big-pages

os/bluestore/KernelDevice: force block size

9 years agoMerge pull request #8019 from kmroz/wip-upstream-civetweb-low-ports-6
Sage Weil [Fri, 11 Mar 2016 15:28:17 +0000 (10:28 -0500)]
Merge pull request #8019 from kmroz/wip-upstream-civetweb-low-ports-6

rgw: drop permissions of rgw/civetweb after startup

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8007 from wido/se-mirror-mail
Kefu Chai [Fri, 11 Mar 2016 14:39:59 +0000 (22:39 +0800)]
Merge pull request #8007 from wido/se-mirror-mail

mirrors: Change contact e-mail address for se.ceph.com

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7991 from xiexingguo/xxg-wip-remove-upthrupending
Kefu Chai [Fri, 11 Mar 2016 14:39:29 +0000 (22:39 +0800)]
Merge pull request #7991 from xiexingguo/xxg-wip-remove-upthrupending

osd: remove up_thru_pending field, which is never used

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8023 from roidayan/xio-remove_unused_variable
Kefu Chai [Fri, 11 Mar 2016 14:15:54 +0000 (22:15 +0800)]
Merge pull request #8023 from roidayan/xio-remove_unused_variable

xio: remove unused variable

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agotest: add rbd-mirror test script 7944/head
Mykola Golub [Thu, 10 Mar 2016 14:18:13 +0000 (16:18 +0200)]
test: add rbd-mirror test script

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agotest: rbd_mirror_image_replay improve commit position parsing
Mykola Golub [Thu, 10 Mar 2016 14:17:23 +0000 (16:17 +0200)]
test: rbd_mirror_image_replay improve commit position parsing

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agotest: ImageReplayer on_stop/on_start error tests
Mykola Golub [Fri, 26 Feb 2016 14:11:07 +0000 (16:11 +0200)]
test: ImageReplayer on_stop/on_start error tests

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agorbd-mirror: ImageReplayer async start/stop
Mykola Golub [Tue, 23 Feb 2016 07:02:00 +0000 (09:02 +0200)]
rbd-mirror: ImageReplayer async start/stop

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agolibrbd: protect against duplicate journal events 8028/head
Jason Dillaman [Fri, 11 Mar 2016 14:08:15 +0000 (09:08 -0500)]
librbd: protect against duplicate journal events

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: protect against journal replay shutdown race condition
Jason Dillaman [Fri, 11 Mar 2016 13:19:05 +0000 (08:19 -0500)]
librbd: protect against journal replay shutdown race condition

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: replaying a journal op post-refresh requires locking
Jason Dillaman [Thu, 10 Mar 2016 16:51:19 +0000 (11:51 -0500)]
librbd: replaying a journal op post-refresh requires locking

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotest: periodic failure in TestJournalReplay.SnapRename
Jason Dillaman [Thu, 10 Mar 2016 16:50:16 +0000 (11:50 -0500)]
test: periodic failure in TestJournalReplay.SnapRename

Force the refresh of the image to pick up the new snapshot
name before testing that it successfully was renamed.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7923 from RustShen/master
Josh Durgin [Fri, 11 Mar 2016 08:04:44 +0000 (00:04 -0800)]
Merge pull request #7923 from RustShen/master

doc: add cinder backend section to rbd-openstack.rst

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoosd/ScrubStore: remove unused function 8045/head
Kefu Chai [Fri, 11 Mar 2016 07:52:25 +0000 (15:52 +0800)]
osd/ScrubStore: remove unused function

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7999 from liewegas/wip-armhf
Dan Mick [Fri, 11 Mar 2016 03:15:59 +0000 (19:15 -0800)]
Merge pull request #7999 from liewegas/wip-armhf

a few armhf (32-bit build) fixes

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agorgw: store system object meta in cache when creating it 7615/head
Yehuda Sadeh [Fri, 5 Feb 2016 20:57:44 +0000 (12:57 -0800)]
rgw: store system object meta in cache when creating it

Fixes: #14678
When creating the system object we can easily also get the object's meta, so
keep it in the cache.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw:bucket link now set the bucket.instance acl 8037/head
Aran85 [Mon, 28 Sep 2015 00:23:22 +0000 (08:23 +0800)]
rgw:bucket link now set the bucket.instance acl

Fixes: #11076
Signed-off-by: Zengran Zhang <zhangzengran@h3c.com>
9 years agoMerge pull request #7891 from rzarzynski/wip-rgw-content-disp
Yehuda Sadeh [Thu, 10 Mar 2016 23:41:27 +0000 (15:41 -0800)]
Merge pull request #7891 from rzarzynski/wip-rgw-content-disp

rgw: multiple Swift API compliance improvements for TempURL (Radoslaw Zarzynsk)

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #7990 from x11562/rgw_unused_vector
Yehuda Sadeh [Thu, 10 Mar 2016 22:57:06 +0000 (14:57 -0800)]
Merge pull request #7990 from x11562/rgw_unused_vector

rgw: remove unused vector

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #8031 from ceph/wip-rgw-usage
Yehuda Sadeh [Thu, 10 Mar 2016 22:53:15 +0000 (14:53 -0800)]
Merge pull request #8031 from ceph/wip-rgw-usage

rgw: admin api for retrieving usage info (Ji Chen)

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
9 years agoMerge pull request #8036 from yehudasa/wip-rgw-support-json-format-v2
Yehuda Sadeh [Thu, 10 Mar 2016 22:50:21 +0000 (14:50 -0800)]
Merge pull request #8036 from yehudasa/wip-rgw-support-json-format-v2

rgw: support json format for admin policy API (Dunrong Huang)

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
9 years agoMerge pull request #7874 from badone/wip-coverity-rgw_lib-uninit
Yehuda Sadeh [Thu, 10 Mar 2016 22:26:30 +0000 (14:26 -0800)]
Merge pull request #7874 from badone/wip-coverity-rgw_lib-uninit

[rgw] RGWLib::env is not used so remove it

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw_admin: policy dump --xml backward compatibility 8036/head
Yehuda Sadeh [Thu, 10 Mar 2016 22:15:09 +0000 (14:15 -0800)]
rgw_admin: policy dump --xml backward compatibility

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoosd: make promote_probability_millis atomic_t 7465/head
Sage Weil [Thu, 10 Mar 2016 22:00:53 +0000 (17:00 -0500)]
osd: make promote_probability_millis atomic_t

This is almost always read, so it should be cheap.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agorgw: remove unused header file
Dunrong Huang [Wed, 3 Feb 2016 08:07:03 +0000 (16:07 +0800)]
rgw: remove unused header file

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
9 years agorgw: support json format output for rados-admin policy command
Dunrong Huang [Wed, 3 Feb 2016 07:59:24 +0000 (15:59 +0800)]
rgw: support json format output for rados-admin policy command

when use rados-admin to get policy with parameter --format=json:
$ radosgw-admin policy --bucket=m8x --format=json

policy information with json format should be output.

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
9 years agorgw: support json format for admin policy API
Dunrong Huang [Wed, 3 Feb 2016 07:43:40 +0000 (15:43 +0800)]
rgw: support json format for admin policy API

Fixes: #14090, #14091
- before this patch:
$ curl -s -X GET http://radosrgw:9090/admin/bucket?format=json&policy&bucket=m8x | xmllint --format -

got XML response with error format

- after this patch:
got correct response with json format

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
9 years agoMerge pull request #8027 from liewegas/wip-reweight-fix
Gregory Farnum [Thu, 10 Mar 2016 21:03:32 +0000 (13:03 -0800)]
Merge pull request #8027 from liewegas/wip-reweight-fix

test/pybind/test_ceph_argparse: fix reweight-by-utilization tests

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6656 from jmunhoz/wip-bucket-request-payment-usage-log
Yehuda Sadeh [Thu, 10 Mar 2016 19:13:24 +0000 (11:13 -0800)]
Merge pull request #6656 from jmunhoz/wip-bucket-request-payment-usage-log

rgw: add bucket request payment feature usage statistics integration

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: also dump realm in radosgw-admin sync status command 8030/head
Yehuda Sadeh [Thu, 10 Mar 2016 18:25:09 +0000 (10:25 -0800)]
rgw: also dump realm in radosgw-admin sync status command

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #8021 from branch-predictor/bp-bench-full-bw
Sage Weil [Thu, 10 Mar 2016 18:08:54 +0000 (13:08 -0500)]
Merge pull request #8021 from branch-predictor/bp-bench-full-bw

common/obj_bencher.cc: bump the precision of bandwidth field

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoFileStore: Added O_DSYNC write scheme 7752/head
Somnath Roy [Thu, 19 Nov 2015 23:15:03 +0000 (18:15 -0500)]
FileStore: Added O_DSYNC write scheme

lfn_open can now open file handle in O_DSYNC mode based on the
filestore_odsync_write config option. This should help in getting
more stable and higher performance out in case of SSDs configured as
OSD data store.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
9 years agoMerge pull request #7675 from vmcloud/wip-12917
Matt Benjamin [Thu, 10 Mar 2016 17:03:49 +0000 (12:03 -0500)]
Merge pull request #7675 from vmcloud/wip-12917

rgw: adjust the request_uri to support absoluteURI of http request

9 years agotest/pybind/test_ceph_argparse: fix reweight-by-utilization tests 8027/head
Sage Weil [Thu, 10 Mar 2016 13:50:57 +0000 (08:50 -0500)]
test/pybind/test_ceph_argparse: fix reweight-by-utilization tests

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoman/8/ceph.rst: remove invalid option for reweight-by-*
Kefu Chai [Thu, 10 Mar 2016 13:41:15 +0000 (21:41 +0800)]
man/8/ceph.rst: remove invalid option for reweight-by-*

--yes-i-really-mean-it is not valid option for reweight-by-*

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agolog: do not repeat errors to stderr 7983/head
Sage Weil [Thu, 10 Mar 2016 14:50:07 +0000 (09:50 -0500)]
log: do not repeat errors to stderr

If we get an error writing to the log, log it only once to stderr.
This avoids generating, say, 72 GB of ENOSPC errors in
teuthology.log when /var/log fills up.

Fixes: #14616
Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8025 from roidayan/xio-remove_duplicate_peer_addr_assignment
Kefu Chai [Thu, 10 Mar 2016 13:52:36 +0000 (21:52 +0800)]
Merge pull request #8025 from roidayan/xio-remove_duplicate_peer_addr_assignment

xio: remove duplicate assignment of peer addr

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoxio: remove duplicate assignment of peer addr 8025/head
Roi Dayan [Wed, 2 Mar 2016 07:58:45 +0000 (09:58 +0200)]
xio: remove duplicate assignment of peer addr

Signed-off-by: Roi Dayan <roid@mellanox.com>
9 years agotest: correct journal test failure caused by two merged commits
Jason Dillaman [Thu, 10 Mar 2016 12:58:31 +0000 (07:58 -0500)]
test: correct journal test failure caused by two merged commits

Commit 21d9595 changed the journal width to 3 objects while commit
a00eae0 changed the signature of the journal create helper.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoxio: remove unused variable 8023/head
Roi Dayan [Wed, 9 Mar 2016 10:55:45 +0000 (12:55 +0200)]
xio: remove unused variable

Signed-off-by: Roi Dayan <roid@mellanox.com>
9 years agomds: set FSMap encoding version to 6 6953/head
John Spray [Thu, 10 Mar 2016 11:16:02 +0000 (11:16 +0000)]
mds: set FSMap encoding version to 6

It was 10, but that wasn't actually necessary,
6 is enough to get ahead of the MDSMap version.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomds: make FSMap.get_filesystem return const
John Spray [Thu, 10 Mar 2016 10:57:38 +0000 (10:57 +0000)]
mds: make FSMap.get_filesystem return const

To make it clearer that anyone modifying a filesystem
should be using modify_filesystem()

Note that FSMap is still a friend of MDSMonitor, as
MDSMap was, so a larger refactor to provide the appropriate
const accessors would also be nice in the future, but that's
nothign to do with multi-filesystems.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotest: update argparse test for rmfailed
John Spray [Mon, 29 Feb 2016 12:11:34 +0000 (12:11 +0000)]
test: update argparse test for rmfailed

rmfailed argument used to be an integer greater than
zero, now any string is acceptable (because we accept
fs:rank role strings here)

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoclient: update for multi-filesystems
John Spray [Wed, 17 Feb 2016 15:00:07 +0000 (15:00 +0000)]
client: update for multi-filesystems

Two main changes:
 * handle client_mds_namespace setting to subscribe
   to a particular MDSMap
 * subscribe to FSMap during `tell` in order to
   look up MDSs irrespective of what fscid they're in.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotools/cephfs: update for FSMap
John Spray [Wed, 17 Feb 2016 14:57:17 +0000 (14:57 +0000)]
tools/cephfs: update for FSMap

Everywhere we used to take a rank, we now
take a role (<fscid:rank>)

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomon: update for multiple filesystems
John Spray [Wed, 17 Feb 2016 16:05:43 +0000 (16:05 +0000)]
mon: update for multiple filesystems

This is a big logic change throughout MDSMonitor,
and additonally some new commands to handle
per-fs variants of what used to be global things.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agocommon/obj_bencher.cc: bump the precision of bandwidth field 8021/head
Piotr Dałek [Thu, 10 Mar 2016 11:48:49 +0000 (12:48 +0100)]
common/obj_bencher.cc: bump the precision of bandwidth field

When calculated final average bandwidth exceeds 999MB, it starts
to get printed in scientific notation. Bump up the bandwidth
field precision so it'll remain in floating-point format for
a bit longer.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agomessages: add MFSMap
John Spray [Wed, 17 Feb 2016 14:51:07 +0000 (14:51 +0000)]
messages: add MFSMap

For mon clients that subscribe to 'fsmap'.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomds: add FSMap
John Spray [Wed, 17 Feb 2016 16:03:27 +0000 (16:03 +0000)]
mds: add FSMap

FSMap encapsulates a collection of MDSMaps, one
for each filesystem, and a collection of standby
MDS daemons that haven't been assigned to
a filesystem yet.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomds: introduce fs_cluster_id_t type
John Spray [Wed, 17 Feb 2016 15:19:10 +0000 (15:19 +0000)]
mds: introduce fs_cluster_id_t type

Unique identifier for a filesystem within
the ceph cluster.  Abbreviated to `fscid`,
deliberately chosen to not conflict
with legacy "fsid" identifiers.

Additionally add mds_role_t type which is
a more general form of rank: ranks are
now only unique within a particular fscid.
Roles are a fscid plus a rank.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomds: handle get_mds_info as const
John Spray [Wed, 17 Feb 2016 15:30:39 +0000 (15:30 +0000)]
mds: handle get_mds_info as const

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoqa: update cephtool test for CephFS multi filesystems
John Spray [Wed, 17 Feb 2016 14:59:12 +0000 (14:59 +0000)]
qa: update cephtool test for CephFS multi filesystems

Includes adding test for the enable_multiple flag.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agodoc: cephfs admin command list
John Spray [Wed, 17 Feb 2016 14:58:16 +0000 (14:58 +0000)]
doc: cephfs admin command list

Creating this skeleton to include the new
"ceph fs ..." commands.  Needs filling out
with prose about purpose and result of
commands.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomessages: fix strings for MMonGetVersionReply
John Spray [Wed, 17 Feb 2016 14:30:15 +0000 (14:30 +0000)]
messages: fix strings for MMonGetVersionReply

It previously described itself as "mon_check_map_ack"

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agojava: update libcephfs tests to learn pool name
John Spray [Wed, 17 Feb 2016 14:29:07 +0000 (14:29 +0000)]
java: update libcephfs tests to learn pool name

Don't assume the data/metadata pools are called
"data" and "metadata".

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agojava: add O_DIRECTORY to libcephfs interface
John Spray [Wed, 17 Feb 2016 14:28:54 +0000 (14:28 +0000)]
java: add O_DIRECTORY to libcephfs interface

Signed-off-by: John Spray <john.spray@redhat.com>