]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agounittest_compression_zlib: do not assume buffer will be null terminated 8064/head
Sage Weil [Fri, 11 Mar 2016 22:34:19 +0000 (17:34 -0500)]
unittest_compression_zlib: do not assume buffer will be null terminated

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 #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 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>
9 years agoinclude/CompatSet: trivial const-ness fix
John Spray [Sun, 3 Jan 2016 18:40:12 +0000 (18:40 +0000)]
include/CompatSet: trivial const-ness fix

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agovstart: don't set max_mds to use all daemons
John Spray [Fri, 23 Oct 2015 23:11:33 +0000 (00:11 +0100)]
vstart: don't set max_mds to use all daemons

This is only useful if you want to test a
single namespace with no standbys.  It's easier
to initially have max_mds=1 and increase it
later than it is to go through the ritual
of decreasing max_mds and then deactivating
a daemon and waiting for it to stop.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agovstart: don't call "fs new" repeatedly
John Spray [Thu, 22 Oct 2015 17:45:35 +0000 (18:45 +0100)]
vstart: don't call "fs new" repeatedly

It was doing it once for each MDS, which is safe
(because it's idempotent) but silly.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomon: initialize last_* timestamps on new pgs to creation time
Sage Weil [Tue, 8 Mar 2016 18:46:58 +0000 (13:46 -0500)]
mon: initialize last_* timestamps on new pgs to creation time

Currently, when you create a pool, until the PGs peer you generate a health
error like

            8 pgs are stuck inactive for more than 300 seconds

which is inaccurate and misleading.  Instead, set the timestamps to the
creation time so that warnings don't appear until it's clear they're stuck.

Fixes: #14952
Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge remote-tracking branch 'origin/jewel'
Greg Farnum [Thu, 10 Mar 2016 08:56:37 +0000 (00:56 -0800)]
Merge remote-tracking branch 'origin/jewel'

Conflicts:
src/client/Client.h
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #7495 from ukernel/jewel-10436
Gregory Farnum [Thu, 10 Mar 2016 08:52:17 +0000 (00:52 -0800)]
Merge pull request #7495 from ukernel/jewel-10436

client: flush kernel pagecache before creating snapshot

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agorgw: instruct civetweb to drop permissions 8018/head 8019/head
Karol Mroz [Tue, 8 Mar 2016 08:54:03 +0000 (09:54 +0100)]
rgw: instruct civetweb to drop permissions

Get uid set in g_ceph_context and pass to civetweb where setuid()/setgid()
will be invoked. This Allows for starting civetweb under privileged port
numbers.

Fixes: #13600
Signed-off-by: Karol Mroz <kmroz@suse.com>
9 years agorgw_main: break up frontend config parsing
Karol Mroz [Tue, 9 Feb 2016 23:10:15 +0000 (15:10 -0800)]
rgw_main: break up frontend config parsing

Before invoking global_init(), determine which frontends are configured.
If Civetweb is to be used, ensure it will be responsible for dropping
permissions after radosgw startup.

Signed-off-by: Karol Mroz <kmroz@suse.com>
9 years agoglobal_init: add run_pre_init argument to function signature
Karol Mroz [Tue, 9 Feb 2016 22:09:29 +0000 (14:09 -0800)]
global_init: add run_pre_init argument to function signature

Allows running the global_pre_init() separately in order to parse config
options prior to invoking global_init().

Signed-off-by: Karol Mroz <kmroz@suse.com>
9 years agoglobal: record target user and group strings
Karol Mroz [Wed, 9 Mar 2016 15:25:39 +0000 (16:25 +0100)]
global: record target user and group strings

Useful so we don't have to do a reverse lookup when dropping permissions
in civetweb.

Signed-off-by: Karol Mroz <kmroz@suse.com>
9 years agoMerge pull request #7798 from ukernel/wip-mds-snap
Gregory Farnum [Thu, 10 Mar 2016 06:49:46 +0000 (22:49 -0800)]
Merge pull request #7798 from ukernel/wip-mds-snap

A few more snapshot fixes, mostly around snapshotted inode/dentry tracking

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #7994 from ukernel/jewel-14996
Gregory Farnum [Thu, 10 Mar 2016 06:43:04 +0000 (22:43 -0800)]
Merge pull request #7994 from ukernel/jewel-14996

Merge: Fix client handling of "lost" open directories on shutdown

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoModifications to rbd-openstack.rst 7923/head
RustShen [Fri, 4 Mar 2016 06:50:41 +0000 (14:50 +0800)]
Modifications to rbd-openstack.rst

Original configuration is not working

'enabled_backends' should be changed accordingly

Signed-off-by: RustShen <rustinpeace@163.com>
Update rbd-openstack.rst

9 years agoMerge remote-tracking branch 'origin/greg-fs-testing-3-7-damage'
Greg Farnum [Thu, 10 Mar 2016 06:25:25 +0000 (22:25 -0800)]
Merge remote-tracking branch 'origin/greg-fs-testing-3-7-damage'

9 years agoMerge pull request #7686 from david-z/wip-fix-fh-ref-leak
Gregory Farnum [Thu, 10 Mar 2016 06:25:42 +0000 (22:25 -0800)]
Merge pull request #7686 from david-z/wip-fix-fh-ref-leak

ceph-fuse: Fix potential filehandle ref leak at umount

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #7685 from david-z/wip-fix-put-free-fd-back
Gregory Farnum [Thu, 10 Mar 2016 06:24:22 +0000 (22:24 -0800)]
Merge pull request #7685 from david-z/wip-fix-put-free-fd-back

[cephfs] fix free fds being exhausted eventually because freed fds are never put back

Reviewed-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #7003 from jcsp/wip-cephfs-tmap-migrate
Gregory Farnum [Thu, 10 Mar 2016 06:22:42 +0000 (22:22 -0800)]
Merge pull request #7003 from jcsp/wip-cephfs-tmap-migrate

tools/cephfs: add tmap_upgrade

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #8014 from ukernel/wip-15038
Gregory Farnum [Thu, 10 Mar 2016 06:12:07 +0000 (22:12 -0800)]
Merge pull request #8014 from ukernel/wip-15038

mds: fix inode_t::compare()

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #8012 from zmc/jewel
Dan Mick [Thu, 10 Mar 2016 03:40:04 +0000 (19:40 -0800)]
Merge pull request #8012 from zmc/jewel

man/8/ceph-disk: fix formatting issue

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agomds: fix inode_t::compare() 8014/head
Yan, Zheng [Thu, 10 Mar 2016 02:50:07 +0000 (10:50 +0800)]
mds: fix inode_t::compare()

Fixes: #15038
Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #7978 from dillaman/wip-14908
Josh Durgin [Thu, 10 Mar 2016 01:51:02 +0000 (17:51 -0800)]
Merge pull request #7978 from dillaman/wip-14908

librbd: refresh image if required before replaying journal ops

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8009 from dillaman/wip-14988
Josh Durgin [Thu, 10 Mar 2016 01:30:08 +0000 (17:30 -0800)]
Merge pull request #8009 from dillaman/wip-14988

test: reproducer for writeback CoW deadlock

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8005 from dillaman/wip-rbd-lock-fence
Josh Durgin [Thu, 10 Mar 2016 01:25:55 +0000 (17:25 -0800)]
Merge pull request #8005 from dillaman/wip-rbd-lock-fence

pybind: flag an RBD image as closed regardless of result code

Reviewed-by: Josh Durgin <jdurgin@redhat.com>