]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoHandle differently-named xmlstarlet binary for *suse 3660/head
Thorsten Behrens [Sat, 7 Feb 2015 00:24:29 +0000 (01:24 +0100)]
Handle differently-named xmlstarlet binary for *suse

Seems *SUSE sticks to the upstream binary name of 'xml'
for the xmlstarlet package.

Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
10 years agoMerge pull request #3657 from ceph/wip-10782
Josh Durgin [Sat, 7 Feb 2015 04:04:31 +0000 (20:04 -0800)]
Merge pull request #3657 from ceph/wip-10782

pybind: fixed runtime errors with librbdpy

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3627 from tchaikov/check_output-on-centos6
Loic Dachary [Fri, 6 Feb 2015 18:16:48 +0000 (19:16 +0100)]
Merge pull request #3627 from tchaikov/check_output-on-centos6

ceph_objectstore_tool: fix check_output on python2.6

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_objectstore_tool: fix check_output on python2.6 3627/head
Kefu Chai [Thu, 5 Feb 2015 08:33:08 +0000 (16:33 +0800)]
ceph_objectstore_tool: fix check_output on python2.6

* backported the subprocess.check_output from python2.7

Fixes: #10756
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #3652 from dachary/wip-mailmap
Sage Weil [Fri, 6 Feb 2015 13:33:55 +0000 (05:33 -0800)]
Merge pull request #3652 from dachary/wip-mailmap

mailmap: UMD is University of Maryland

10 years agoMerge pull request #3131 from mslovy/fix_init_filejournal_throttle
Sage Weil [Fri, 6 Feb 2015 13:30:28 +0000 (05:30 -0800)]
Merge pull request #3131 from mslovy/fix_init_filejournal_throttle

os: FileJournal:: fix, uninitialization of FileJournal throttle

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomailmap: UMD is University of Maryland 3652/head
Loic Dachary [Fri, 6 Feb 2015 12:05:12 +0000 (13:05 +0100)]
mailmap: UMD is University of Maryland

And not University of Mississippi

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge remote-tracking branch 'gh/hammer'
Sage Weil [Fri, 6 Feb 2015 11:04:09 +0000 (03:04 -0800)]
Merge remote-tracking branch 'gh/hammer'

10 years agoMerge pull request #3468 from ceph/wip-cephfs-snap1
Sage Weil [Fri, 6 Feb 2015 11:02:50 +0000 (03:02 -0800)]
Merge pull request #3468 from ceph/wip-cephfs-snap1

Wip cephfs snap1

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3649 from ceph/wip-opath-setattr
Sage Weil [Fri, 6 Feb 2015 10:31:11 +0000 (02:31 -0800)]
Merge pull request #3649 from ceph/wip-opath-setattr

client: handle O_PATH fds on setattr too

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3633 from sponce/wip-10758
Loic Dachary [Fri, 6 Feb 2015 09:03:31 +0000 (10:03 +0100)]
Merge pull request #3633 from sponce/wip-10758

Fixed issue #10758 : write_full behavior in libradosstriper

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agolibradosstriper: fixed write_full when ENOENT 3633/head
Sebastien Ponce [Thu, 5 Feb 2015 09:46:37 +0000 (10:46 +0100)]
libradosstriper: fixed write_full when ENOENT

Fixes: #10758
write_full was returning ENOENT when the file did not exists, while it should just have created it without complaining.

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoMerge pull request #3624 from ktdreyer/wip-doc-submitting-patches-branches
Gregory Farnum [Fri, 6 Feb 2015 06:14:22 +0000 (22:14 -0800)]
Merge pull request #3624 from ktdreyer/wip-doc-submitting-patches-branches

SubmittingPatches: clarify the use of branches in PRs

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoclient: handle O_PATH fds on setattr too 3649/head
Greg Farnum [Fri, 6 Feb 2015 05:05:57 +0000 (21:05 -0800)]
client: handle O_PATH fds on setattr too

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #3626 from majianpeng/misc
Josh Durgin [Fri, 6 Feb 2015 04:10:43 +0000 (05:10 +0100)]
Merge pull request #3626 from majianpeng/misc

rbd.py: Add rbd_read2/rbd_write2 funcion which can handle fadvise flags.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agorbd.py: Add rbd_read2/rbd_write2 funcion which can handle fadvise flags. 3626/head
Jianpeng Ma [Fri, 6 Feb 2015 01:19:20 +0000 (09:19 +0800)]
rbd.py: Add rbd_read2/rbd_write2 funcion which can handle fadvise flags.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoMerge pull request #3642 from vuhuong/wip-hammer
Sage Weil [Thu, 5 Feb 2015 19:30:57 +0000 (11:30 -0800)]
Merge pull request #3642 from vuhuong/wip-hammer

Wip xio hammer

Reviewed-by: Matt Benjamin <matt@cohortfs.com>
10 years agoMerge pull request #3639 from ceph/wip-10770
Sage Weil [Thu, 5 Feb 2015 19:22:30 +0000 (11:22 -0800)]
Merge pull request #3639 from ceph/wip-10770

rgw: send appropriate op to cancel bucket index pending operation

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3641 from athanatos/wip-10731
Sage Weil [Thu, 5 Feb 2015 19:13:42 +0000 (11:13 -0800)]
Merge pull request #3641 from athanatos/wip-10731

ReplicatedPG: block writes on degraded objects unless all peers support ...

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agorgw: send appropriate op to cancel bucket index pending operation 3639/head
Yehuda Sadeh [Thu, 5 Feb 2015 17:33:26 +0000 (09:33 -0800)]
rgw: send appropriate op to cancel bucket index pending operation

Fixes: #10770
Backport: firefly, giant

Reported-by: baijiaruo <baijiaruo@126.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #3618 from tchaikov/add-norebalance-flag
Samuel Just [Thu, 5 Feb 2015 14:55:58 +0000 (06:55 -0800)]
Merge pull request #3618 from tchaikov/add-norebalance-flag

Add norebalance flag

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomds: avoid propagrating unnecessary snap rstat to parent 3468/head
Yan, Zheng [Mon, 19 Jan 2015 05:48:38 +0000 (13:48 +0800)]
mds: avoid propagrating unnecessary snap rstat to parent

if parent is not snapshotted, avoid propagrating snap rstat to it

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: update client_need_snapflush when splitting snap inode
Yan, Zheng [Wed, 21 Jan 2015 07:34:24 +0000 (15:34 +0800)]
mds: update client_need_snapflush when splitting snap inode

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: fix rdlock snap inode
Yan, Zheng [Tue, 20 Jan 2015 13:11:08 +0000 (21:11 +0800)]
mds: fix rdlock snap inode

make sure the "sync head inode" code  execute

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: save the oldest snapid of inode
Yan, Zheng [Tue, 20 Jan 2015 12:12:11 +0000 (20:12 +0800)]
mds: save the oldest snapid of inode

When moving a inode to different snapshot realm, we need to check if
the inode is snapshotted. If the inode is snapshotted, we create a
snapshot realm for it. The snapshot realm records inode's past snapshot
realm.

Currently there is no reliable way to check if a inode is snapshotted.
So add a new field to CInode the store the oldest snapid, it's used to
check if inode is snapshotted.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoqa/workunits/snaps: remove snapshots when test finishes
Yan, Zheng [Thu, 15 Jan 2015 07:42:49 +0000 (15:42 +0800)]
qa/workunits/snaps: remove snapshots when test finishes

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: split old_inode when needed
Yan, Zheng [Thu, 15 Jan 2015 07:24:53 +0000 (15:24 +0800)]
mds: split old_inode when needed

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoqa/workunits/snaps: don't assume snapshot is disabled
Yan, Zheng [Wed, 14 Jan 2015 06:31:51 +0000 (14:31 +0800)]
qa/workunits/snaps: don't assume snapshot is disabled

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoceph: don't count snap dentries when calculating new fragstat/neststat
Yan, Zheng [Wed, 14 Jan 2015 06:24:14 +0000 (14:24 +0800)]
ceph: don't count snap dentries when calculating new fragstat/neststat

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: add snaprealm to open_past_parents after it's opened
Yan, Zheng [Wed, 7 Jan 2015 13:22:38 +0000 (21:22 +0800)]
mds: add snaprealm to open_past_parents after it's opened

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: avoid infinite loop of SnapRealm::_open_parents
Yan, Zheng [Wed, 31 Dec 2014 07:25:43 +0000 (15:25 +0800)]
mds: avoid infinite loop of SnapRealm::_open_parents

handle the case that some past parents are missing

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: properly commit snaprealm to dirfrag
Yan, Zheng [Wed, 31 Dec 2014 07:48:49 +0000 (15:48 +0800)]
mds: properly commit snaprealm to dirfrag

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: don't manully create snaprealm during rename
Yan, Zheng [Mon, 29 Dec 2014 08:16:23 +0000 (16:16 +0800)]
mds: don't manully create snaprealm during rename

project_past_snaprealm_parent() will do the same job. Besides
MDCache::_snaprealm_create_finish() is buggy, it updates snaprealm's
current_parent_since incorrectly

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: don't mark dirfrag dirty after dropping stale dentries
Yan, Zheng [Mon, 15 Dec 2014 01:51:52 +0000 (09:51 +0800)]
mds: don't mark dirfrag dirty after dropping stale dentries

now MDS use omap to store dirfrag, and always does partial commit.
marking dirfrag dirty after dropping stale dentries is useless.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoclient: remove snapshot dentry during rmsnap
Yan, Zheng [Sun, 28 Dec 2014 04:08:25 +0000 (12:08 +0800)]
client: remove snapshot dentry during rmsnap

reply of RMSNAP request has no trace, we need to invalidate the
snapshot dentry manually

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoclient: remove snaprealm from parent when closing it
Yan, Zheng [Thu, 25 Dec 2014 12:42:16 +0000 (20:42 +0800)]
client: remove snaprealm from parent when closing it

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoclient: check xattr version independent of inode version
Yan, Zheng [Thu, 18 Dec 2014 03:41:38 +0000 (11:41 +0800)]
client: check xattr version independent of inode version

Fixes: #10343
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: remove superfluous assertion
Yan, Zheng [Sun, 28 Dec 2014 01:57:38 +0000 (09:57 +0800)]
mds: remove superfluous assertion

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: temporarily disable recovery for snapshotted files
Yan, Zheng [Fri, 26 Dec 2014 07:03:58 +0000 (15:03 +0800)]
mds: temporarily disable recovery for snapshotted files

recovery of snapshots is very inefficient, which requires
NR_SNAPS * NR_OBJECTS operations.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: verify backtrace by auth MDS only
Yan, Zheng [Fri, 26 Dec 2014 03:41:33 +0000 (11:41 +0800)]
mds: verify backtrace by auth MDS only

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: avoid sending snaptrace for snapshot inodes
Yan, Zheng [Tue, 23 Dec 2014 07:09:38 +0000 (15:09 +0800)]
mds: avoid sending snaptrace for snapshot inodes

snapshot information in snaptrace is only used by head inodes

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: optimize SnapRealm::split_at()
Yan, Zheng [Tue, 23 Dec 2014 02:19:13 +0000 (10:19 +0800)]
mds: optimize SnapRealm::split_at()

avoid executing the 'split children' code because all snaprealms in
mdsdir has no child snaprealm.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: fix reference after free
Yan, Zheng [Mon, 22 Dec 2014 02:28:27 +0000 (10:28 +0800)]
mds: fix reference after free

CDir::try_trim_snap_dentry() may free the dentry

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: journal snaprealm for all types of inodes
Yan, Zheng [Fri, 19 Dec 2014 16:12:28 +0000 (00:12 +0800)]
mds: journal snaprealm for all types of inodes

regular file also can has snaprealm.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: always create multiversion inode when cow inode
Yan, Zheng [Fri, 26 Dec 2014 07:03:19 +0000 (15:03 +0800)]
mds: always create multiversion inode when cow inode

When moving a snapshotted regular file to stray directory, we need
to create an snaprealm for it. The snaprealm is required for building
correct snapshot context when purging file objects.

Current code normally create seperate inodes when a snapshotted file
inode is COWed. Each time the file inode is COWed, the head inode's
'first' is updated. So when deleting the file, we can't use head inode's
'first' to check if it was snapshotted.

This commit make MDCache::journal_cow_dentry always create multiversion
inode. multiversion inode's 'first' keeps constant.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: check multiversion inode when purging stray
Yan, Zheng [Fri, 19 Dec 2014 07:29:32 +0000 (15:29 +0800)]
mds: check multiversion inode when purging stray

we can't purge a multiversion directory inode when it is still referenced
by some snapshots. For regular files that are still referenced by some
snapshots, we need to keep the backtrace object.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: properly project past snaprealm parent while renaming files
Yan, Zheng [Fri, 19 Dec 2014 07:30:48 +0000 (15:30 +0800)]
mds: properly project past snaprealm parent while renaming files

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: properly update trace vector when quiting path traverse
Yan, Zheng [Thu, 18 Dec 2014 12:01:50 +0000 (20:01 +0800)]
mds: properly update trace vector when quiting path traverse

rdlock_path_pin_ref() uses the trace vector to setup request reply's
tracedn

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: properly update capability's client_follow
Yan, Zheng [Wed, 17 Dec 2014 06:09:52 +0000 (14:09 +0800)]
mds: properly update capability's client_follow

handle discontinuous snapid(s)

Fixes: #10323
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: fix CInode::remove_need_snapflush
Yan, Zheng [Wed, 17 Dec 2014 06:06:05 +0000 (14:06 +0800)]
mds: fix CInode::remove_need_snapflush

make sure client and snapid exist, then drop CInode::PIN_NEEDSNAPFLUSH

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: provide correct snaps to purge_stale_snap_data()
Yan, Zheng [Tue, 16 Dec 2014 07:36:04 +0000 (15:36 +0800)]
mds: provide correct snaps to purge_stale_snap_data()

if a directory inode has snaprealm, its parent directory's snapshot
set can be not equal to its snapshot set

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: set last snapid according to removed snaps in data pools
Yan, Zheng [Mon, 15 Dec 2014 07:43:57 +0000 (15:43 +0800)]
mds: set last snapid according to removed snaps in data pools

handle the case that we create cephfs using existing pools and
the existing pools' removed snaps are not empty.

Fixes: #10315
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: update current_parent_since for newly snapshotted directory
Yan, Zheng [Mon, 15 Dec 2014 03:18:30 +0000 (11:18 +0800)]
mds: update current_parent_since for newly snapshotted directory

current_parent_since should be set to snapshot seq when the directory
was created.

Fixes: 10312
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: fix MDCache::journal_cow_dentry()
Yan, Zheng [Mon, 15 Dec 2014 01:50:23 +0000 (09:50 +0800)]
mds: fix MDCache::journal_cow_dentry()

Use parent directory's snaprealm to decide if we should cow dentry.
Otherwise we may create orphan dentry when deleting an directory with
snaprealm.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: check snaprealm before drop dentries in deleted directory
Yan, Zheng [Fri, 12 Dec 2014 02:00:53 +0000 (10:00 +0800)]
mds: check snaprealm before drop dentries in deleted directory

There is an optimization that drop dentries in deleted directory,
so that MDS can purge corresponding inode faster. We need to check
if the deleted directory is still referenced by any snapshot. If
it is, we can't drop dentries or skip committing dirfrags to object
store. The simplest method to check if a delted directory is
potentially referenced by snaphosts is checking diri->snaprealm.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: properly update CInode->first during journal replay
Yan, Zheng [Thu, 11 Dec 2014 03:08:59 +0000 (11:08 +0800)]
mds: properly update CInode->first during journal replay

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #3638 from dachary/wip-make-check
Loic Dachary [Thu, 5 Feb 2015 14:24:00 +0000 (15:24 +0100)]
Merge pull request #3638 from dachary/wip-make-check

run-make-check.sh: git --ancestry-path is not backward compatible

Reviewed-by: Dmytro Iurchenko <diurchenko@mirantis.com>
10 years agoinstall-deps.sh: check for debian/control existence 3638/head
Loic Dachary [Thu, 5 Feb 2015 13:46:41 +0000 (14:46 +0100)]
install-deps.sh: check for debian/control existence

If the debian/control file does not exist the error is cryptic.
Improve the situation by checking before running dpkg-checkbuilddeps.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agorun-make-check.sh: git --ancestry-path is not backward compatible
Loic Dachary [Thu, 5 Feb 2015 13:37:38 +0000 (14:37 +0100)]
run-make-check.sh: git --ancestry-path is not backward compatible

The behavior is different on git 1.8 which is the default on centos7.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3630 from hef87/hef87-patch-1
Loic Dachary [Thu, 5 Feb 2015 12:58:46 +0000 (13:58 +0100)]
Merge pull request #3630 from hef87/hef87-patch-1

Bug fix : AsyncConnection: fix wrong scope of data blocks

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoBug fix : AsyncConnection: fix wrong scope of data blocks 3630/head
Feng He [Thu, 5 Feb 2015 11:01:37 +0000 (19:01 +0800)]
Bug fix : AsyncConnection: fix wrong scope of data blocks

Signed-off-by: Feng He <fenglife@hotmail.com>
10 years agoMerge pull request #3609 from hef87/hef87-patch-1
Sage Weil [Thu, 5 Feb 2015 10:51:32 +0000 (02:51 -0800)]
Merge pull request #3609 from hef87/hef87-patch-1

AsyncConnection: fix wrong scope of data blocks

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoxio: Squash the whitespaces 3642/head
Vu Pham [Thu, 5 Feb 2015 10:38:26 +0000 (02:38 -0800)]
xio: Squash the whitespaces

Signed-off-by: Vu Pham <vu@mellanox.com>
10 years agoMerge remote-tracking branch 'gh/hammer'
Sage Weil [Thu, 5 Feb 2015 10:18:33 +0000 (02:18 -0800)]
Merge remote-tracking branch 'gh/hammer'

10 years agoMerge remote-tracking branch 'gh/wip-assert-version'
Sage Weil [Thu, 5 Feb 2015 10:18:06 +0000 (02:18 -0800)]
Merge remote-tracking branch 'gh/wip-assert-version'

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3532 from dachary/wip-run-make-check
Sage Weil [Thu, 5 Feb 2015 10:01:44 +0000 (02:01 -0800)]
Merge pull request #3532 from dachary/wip-run-make-check

run-make-check: use nproc and shorter git expression

10 years agoMerge pull request #3611 from kylinstorage/wip-rbd-recover-tool
Josh Durgin [Thu, 5 Feb 2015 10:01:30 +0000 (11:01 +0100)]
Merge pull request #3611 from kylinstorage/wip-rbd-recover-tool

Wip rbd recover tool

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agocmake: Fix CMakeLists.txt to compile librbd
Vu Pham [Thu, 5 Feb 2015 09:43:11 +0000 (01:43 -0800)]
cmake: Fix CMakeLists.txt to compile librbd

Add source files to CMakeLists.txt to compile librbd

Signed-off-by: Vu Pham <vu@mellanox.com>
10 years agoxio: Fix release xio message on closed connection issue
Vu Pham [Mon, 2 Feb 2015 10:49:34 +0000 (02:49 -0800)]
xio: Fix release xio message on closed connection issue

Do not call xio_release_msg on closed connection

Signed-off-by: Vu Pham <vu@mellanox.com>
10 years agoMerge pull request #3544 from vuhuong/xio-spread-portals
Sage Weil [Thu, 5 Feb 2015 09:36:12 +0000 (01:36 -0800)]
Merge pull request #3544 from vuhuong/xio-spread-portals

Xio spread portals

Reviewed-by: Matt Benjamin <matt@cohortfs.com>
10 years agoMerge pull request #3628 from SUSE/wip-initradosgw-fixup
Sage Weil [Thu, 5 Feb 2015 09:31:08 +0000 (01:31 -0800)]
Merge pull request #3628 from SUSE/wip-initradosgw-fixup

Unconditionally chown rados log file.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoUnconditionally chown rados log file. 3628/head
Thorsten Behrens [Wed, 10 Dec 2014 10:53:43 +0000 (11:53 +0100)]
Unconditionally chown rados log file.

This fixes bnc#905047 (in a somewhat ad-hoc way). Sadly the log
file gets created from several places, so its existence does not
mean init-radosgw had actually run.

Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
10 years agoMerge pull request #3623 from ceph/wip-opath
Sage Weil [Thu, 5 Feb 2015 09:22:49 +0000 (01:22 -0800)]
Merge pull request #3623 from ceph/wip-opath

client: fix O_PATH on older Linux systems

Reviewed-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #3622 from athanatos/wip-10340
Sage Weil [Thu, 5 Feb 2015 09:12:51 +0000 (01:12 -0800)]
Merge pull request #3622 from athanatos/wip-10340

Objecter::_op_submit_with_budget: add timeout before call

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3621 from athanatos/wip-10717
Sage Weil [Thu, 5 Feb 2015 09:12:07 +0000 (01:12 -0800)]
Merge pull request #3621 from athanatos/wip-10717

ReplicatedPG::do_op: ignore snapset_obc if !exists

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoosd: apply affinity if any affinity is not default 3618/head
Kefu Chai [Thu, 5 Feb 2015 04:34:42 +0000 (12:34 +0800)]
osd: apply affinity if any affinity is not default

10 years agoosd,mon: add norebalance osdmap flag
Kefu Chai [Wed, 4 Feb 2015 14:32:57 +0000 (22:32 +0800)]
osd,mon: add norebalance osdmap flag

Fixes: #10559
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoAsyncConnection: fix wrong scope of data blocks 3609/head
Feng He [Thu, 5 Feb 2015 02:09:13 +0000 (10:09 +0800)]
AsyncConnection: fix wrong scope of data blocks

Signed-off-by: Feng He <fenglife@hotmail.com>
10 years agoMerge pull request #3616 from ceph/wip-export-dir
Yan, Zheng [Thu, 5 Feb 2015 01:51:18 +0000 (09:51 +0800)]
Merge pull request #3616 from ceph/wip-export-dir

mds: implement export dir asok

10 years agoSubmittingPatches: clarify the use of branches in PRs 3624/head
Ken Dreyer [Thu, 5 Feb 2015 00:46:01 +0000 (17:46 -0700)]
SubmittingPatches: clarify the use of branches in PRs

Add some documentation so developers understand what goes into next vs
what goes into master and how to handle backports to stable branches.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
10 years agorbd_recover_tool: move rbd_recover_tool directory to src/tools subdirectory 3611/head
Min Chen [Thu, 5 Feb 2015 00:25:39 +0000 (08:25 +0800)]
rbd_recover_tool: move rbd_recover_tool directory to src/tools subdirectory

Signed-off-by: Min Chen <minchen@ubuntukylin.com>
10 years agoclient: fix O_PATH on older Linux systems 3623/head
Greg Farnum [Wed, 4 Feb 2015 23:03:21 +0000 (15:03 -0800)]
client: fix O_PATH on older Linux systems

O_PATH was introduced in 2.6.39, but many Linux systems in use
today still have older kernels than that. Check for them.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoReplicatedPG: block writes on degraded objects unless all peers support it 3641/head
Samuel Just [Tue, 3 Feb 2015 17:11:44 +0000 (09:11 -0800)]
ReplicatedPG: block writes on degraded objects unless all peers support it

Fixes: #10731
Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #3607 from ceph/wip-librbd-invalid-map
Josh Durgin [Wed, 4 Feb 2015 22:56:04 +0000 (23:56 +0100)]
Merge pull request #3607 from ceph/wip-librbd-invalid-map

librbd: verify image's object map validity

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3592 from ceph/wip-librbd-watch-errors
Josh Durgin [Wed, 4 Feb 2015 22:39:40 +0000 (23:39 +0100)]
Merge pull request #3592 from ceph/wip-librbd-watch-errors

librbd: better handling for image watch errors

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoinclude/encoding: fix an compile warning
Zhiqiang Wang [Wed, 4 Feb 2015 00:22:41 +0000 (08:22 +0800)]
include/encoding: fix an compile warning

./include/encoding.h:317:7: warning: 't' may be used uninitialized in
this function [-Wmaybe-uninitialized]

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3619 from ceph/wip-8903
Sage Weil [Wed, 4 Feb 2015 20:55:59 +0000 (12:55 -0800)]
Merge pull request #3619 from ceph/wip-8903

librbd: removed lingering TODO message from ImageWatcher

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomsg: fixup for 2ffacbe (crc configuration in messenger)
Mykola Golub [Fri, 23 Jan 2015 09:47:45 +0000 (11:47 +0200)]
msg: fixup for 2ffacbe (crc configuration in messenger)

* Update the remaining Message::encode() calls, which now expect crc
  flags to be passed as a flags parameter instead of a bool (this e.g.
  fixes the issue with routing messages forwarded from an older client).

* In Message::encode() data crc is calculated when MSG_CRC_DATA is
  set, but in decode_message(), Pipe::read/write_message() data crc is
  calculated when MSG_CRC_HEADER is set. Fix this.

Note, 2ffacbe changed the behavior of Pipe::read_message/write_message():
previously the methods always calculated crc, now they calculate it
only if crc is enabled in the config. This means crc can not be disabled
if there are monitors of older version in the cluster.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3613 from rzarzynski/wip-4920
Gregory Farnum [Wed, 4 Feb 2015 17:30:29 +0000 (09:30 -0800)]
Merge pull request #3613 from rzarzynski/wip-4920

client: add support for O_NOFOLLOW and O_PATH

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agopybind: fixed runtime errors with librbdpy 3657/head
Jason Dillaman [Wed, 4 Feb 2015 14:46:17 +0000 (09:46 -0500)]
pybind: fixed runtime errors with librbdpy

There was a typo within the RBD Image get_flags method and
several runtime errors relating to the new fadvise flags.

Fixes: #10782
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agomds: implement export dir asok 3616/head
John Spray [Tue, 3 Feb 2015 10:54:50 +0000 (10:54 +0000)]
mds: implement export dir asok

This was available as a legacy mds tell command
previously: make it availably via the cleaner
asok interface.  asok rather than new `tell` because
it's a low level/debug thing.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoclient: implement support for O_PATH on Linux. 3613/head
Radoslaw Zarzynski [Tue, 27 Jan 2015 22:25:33 +0000 (23:25 +0100)]
client: implement support for O_PATH on Linux.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
10 years agoclient: add support for O_NOFOLLOW in Client::open().
Radoslaw Zarzynski [Mon, 26 Jan 2015 14:40:14 +0000 (15:40 +0100)]
client: add support for O_NOFOLLOW in Client::open().

Fixes: #4920
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
10 years agorbd-recover-tool: add usefull information of this tool
Min Chen [Wed, 4 Feb 2015 08:12:01 +0000 (16:12 +0800)]
rbd-recover-tool: add usefull information of this tool
include README, FAQ, TODO

Signed-off-by: Min Chen <minchen@ubuntukylin.com>
10 years agorbd-recover-tool: add a test case for raw image & snapshot
Min Chen [Wed, 4 Feb 2015 08:11:13 +0000 (16:11 +0800)]
rbd-recover-tool: add a test case for raw image & snapshot

Signed-off-by: Min Chen <minchen@ubuntukylin.com>
10 years agorbd-recover-tool: implement the function framework
Min Chen [Wed, 4 Feb 2015 08:09:13 +0000 (16:09 +0800)]
rbd-recover-tool: implement the function framework
add control files & config files

rbd-recover-tool is an offline tool for dead ceph cluster
to recever rbd image in replicated pool from all osds.
it is a simple but usefull policy to keep data secruity on ceph

Sigbed-off-by: Min Chen <minchen@ubuntukylin.com>
10 years agorbd-recover-tool: add the basic function files
Min Chen [Wed, 4 Feb 2015 08:06:19 +0000 (16:06 +0800)]
rbd-recover-tool: add the basic function files

Signed-off-by: Min Chen <minchen@ubuntukylin.com>
10 years agoMerge pull request #3603 from dachary/wip-10729-debian-install-deps
Loic Dachary [Wed, 4 Feb 2015 07:40:57 +0000 (08:40 +0100)]
Merge pull request #3603 from dachary/wip-10729-debian-install-deps

install-deps.sh: get lsb_release if needed

Reviewed-by: Yann Dupont <yann@objoo.org>
10 years agoMerge pull request #3565 from rzarzynski/wip-7264
Dan Mick [Wed, 4 Feb 2015 04:57:47 +0000 (20:57 -0800)]
Merge pull request #3565 from rzarzynski/wip-7264

pybind/rados.py: fix error hiding and inconsistency on librados load.

Reviewed-by: Dan Mick <dan.mick@redhat.com>
10 years agodoc: Removed references to Inktank suppport.
John Wilkins [Tue, 3 Feb 2015 22:50:25 +0000 (14:50 -0800)]
doc: Removed references to Inktank suppport.

Signed-off-by: John Wilkins <jowilkin@redhat.com>