]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoosd: number of degraded objects in EC pool is wrong when there is OSD down(in) 3729/head
Guang Yang [Fri, 13 Feb 2015 09:19:30 +0000 (09:19 +0000)]
osd: number of degraded objects in EC pool is wrong when there is OSD down(in)

With EC pool (crush rule choose indep), when there is an OSD down, the size of the 'acting' list does not change (CRUSH_ITEM_NONE is used to replace the down OSD), in this case, 'actingset' should be used to calculate the degraded objects.

Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
10 years agoMerge pull request #3720 from dachary/wip-10800-shec-experimental
Loic Dachary [Fri, 13 Feb 2015 17:35:48 +0000 (18:35 +0100)]
Merge pull request #3720 from dachary/wip-10800-shec-experimental

erasure-code: mark the shec plugin as experimental

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoerasure-code: mark the shec plugin as experimental 3720/head
Loic Dachary [Thu, 12 Feb 2015 14:50:21 +0000 (15:50 +0100)]
erasure-code: mark the shec plugin as experimental

Reject the creation of an erasure code profile including plugin=shec
unless --enable-experimental-unrecoverable-data-corrupting-features=shec
is set.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: fix unused variable warning
Loic Dachary [Thu, 12 Feb 2015 14:41:44 +0000 (15:41 +0100)]
tests: fix unused variable warning

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agocommon: capture check_experimental_feature_enabled message
Loic Dachary [Thu, 12 Feb 2015 14:34:40 +0000 (15:34 +0100)]
common: capture check_experimental_feature_enabled message

Implement check_experimental_feature_enabled so that it returns the
message instead of unconditionally displaying it via derr. It allows the
caller to display it in another context.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3717 from ceph/wip-decoding-oldest-snap
Gregory Farnum [Fri, 13 Feb 2015 06:25:31 +0000 (22:25 -0800)]
Merge pull request #3717 from ceph/wip-decoding-oldest-snap

mds: fix decoding of InodeStore::oldest_snap

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge remote-tracking branch 'origin/wip-10785' into hammer
Josh Durgin [Thu, 12 Feb 2015 23:57:12 +0000 (15:57 -0800)]
Merge remote-tracking branch 'origin/wip-10785' into hammer

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Conflicts:
src/librbd/ImageWatcher.cc

10 years agomds: fix decoding of InodeStore::oldest_snap 3717/head
Yan, Zheng [Thu, 12 Feb 2015 12:24:45 +0000 (20:24 +0800)]
mds: fix decoding of InodeStore::oldest_snap

There is no ENCODE_START/FINISH block when encoding inode that
embedded in dentry. So we can't use encoding version to check
if the buffer contains InodeStore::oldest_snap. Instead, we check
if the buffer iterator reaches end of buffer.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge remote-tracking branch 'gh/master' into hammer 3715/head
Sage Weil [Thu, 12 Feb 2015 02:31:39 +0000 (18:31 -0800)]
Merge remote-tracking branch 'gh/master' into hammer

10 years agoMerge pull request #3522 from ceph/wip-8600
Sage Weil [Thu, 12 Feb 2015 02:31:42 +0000 (18:31 -0800)]
Merge pull request #3522 from ceph/wip-8600

mon: OSDMonitor: tolerate catastrophically bad crush maps

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3703 from vuhuong/wip-xio-hammer
Sage Weil [Thu, 12 Feb 2015 02:21:24 +0000 (18:21 -0800)]
Merge pull request #3703 from vuhuong/wip-xio-hammer

Wip xio hammer

Reviewed-by: Matt Benjamin <matt@cohortfs.com>
10 years agoMerge pull request #3664 from liewegas/wip-10695
Samuel Just [Thu, 12 Feb 2015 01:35:22 +0000 (17:35 -0800)]
Merge pull request #3664 from liewegas/wip-10695

mon: fix 'nan' from osd df output

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge pull request #3704 from ceph/wip-10761
Josh Durgin [Thu, 12 Feb 2015 01:32:53 +0000 (17:32 -0800)]
Merge pull request #3704 from ceph/wip-10761

librbd: blacklist clients before breaking locks

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3513 from rzarzynski/wip-10425
Samuel Just [Thu, 12 Feb 2015 01:29:41 +0000 (17:29 -0800)]
Merge pull request #3513 from rzarzynski/wip-10425

librados: Wip 10425

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3515 from rzarzynski/wip-10458
Samuel Just [Thu, 12 Feb 2015 01:28:09 +0000 (17:28 -0800)]
Merge pull request #3515 from rzarzynski/wip-10458

librados: Wip 10458 - rectify the pool name caching in IoCtxImpl.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3674 from jdurgin/wip-python-leak
Samuel Just [Thu, 12 Feb 2015 01:26:43 +0000 (17:26 -0800)]
Merge pull request #3674 from jdurgin/wip-python-leak

rados.py: keep reference to python callbacks

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3676 from majianpeng/misc
Samuel Just [Thu, 12 Feb 2015 01:26:05 +0000 (17:26 -0800)]
Merge pull request #3676 from majianpeng/misc

Misc

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3678 from tchaikov/fix-pg-leak
Samuel Just [Thu, 12 Feb 2015 01:24:35 +0000 (17:24 -0800)]
Merge pull request #3678 from tchaikov/fix-pg-leak

osd: fix PG leak in SnapTrimWQ._clear()

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge remote-tracking branch 'ceph/hammer'
Loic Dachary [Thu, 12 Feb 2015 00:08:07 +0000 (01:08 +0100)]
Merge remote-tracking branch 'ceph/hammer'

10 years agoMerge pull request #3683 from dachary/wip-10845-python-flask
Ken Dreyer [Wed, 11 Feb 2015 23:57:30 +0000 (16:57 -0700)]
Merge pull request #3683 from dachary/wip-10845-python-flask

tests: no need for python-flask at build time

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agotests: no need for python-flask at build time 3709/head
Loic Dachary [Wed, 11 Feb 2015 22:16:24 +0000 (23:16 +0100)]
tests: no need for python-flask at build time

http://tracker.ceph.com/issues/10845 Refs: #10845

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3699 from ceph/wip-early-adopters
Gregory Farnum [Wed, 11 Feb 2015 23:01:06 +0000 (15:01 -0800)]
Merge pull request #3699 from ceph/wip-early-adopters

doc: Early adopter notes for CephFS

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #3617 from ceph/wip-10737
Gregory Farnum [Wed, 11 Feb 2015 22:47:41 +0000 (14:47 -0800)]
Merge pull request #3617 from ceph/wip-10737

mds: disallow layout changes for files with data

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #3683 from ceph/wip-10791-stopping
Gregory Farnum [Wed, 11 Feb 2015 22:39:29 +0000 (14:39 -0800)]
Merge pull request #3683 from ceph/wip-10791-stopping

MDSMonitor: do not allow MDS to transition from STATE_STOPPING

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #3599 from ceph/wip-traceless-reply
Gregory Farnum [Wed, 11 Feb 2015 22:26:17 +0000 (14:26 -0800)]
Merge pull request #3599 from ceph/wip-traceless-reply

Wip traceless reply

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #3700 from ceph/wip-librbd-maint-tests
Josh Durgin [Wed, 11 Feb 2015 22:04:09 +0000 (14:04 -0800)]
Merge pull request #3700 from ceph/wip-librbd-maint-tests

tests: add simple tests for proxied maintenance operations

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3706 from dachary/wip-10839-shec-uninitialized-hammer
Sage Weil [Wed, 11 Feb 2015 21:56:02 +0000 (13:56 -0800)]
Merge pull request #3706 from dachary/wip-10839-shec-uninitialized-hammer

erasure-code: fix uninitialized data members on SHEC

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoerasure-code: fix uninitialized data members on SHEC 3706/head
Loic Dachary [Wed, 11 Feb 2015 20:46:02 +0000 (21:46 +0100)]
erasure-code: fix uninitialized data members on SHEC

Also fix the tests that verify the result when init is not called and
factorize the two tests that were almost identical for simplicity.

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

Backport: hammer
Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3692 from athanatos/wip-8753
Samuel Just [Wed, 11 Feb 2015 18:29:47 +0000 (10:29 -0800)]
Merge pull request #3692 from athanatos/wip-8753

ReplicatedPG::on_change: clean up callbacks_for_degraded_object

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoReplicatedPG::on_change: clean up callbacks_for_degraded_object 3692/head
Samuel Just [Mon, 9 Feb 2015 18:37:15 +0000 (10:37 -0800)]
ReplicatedPG::on_change: clean up callbacks_for_degraded_object

Backport: dumpling, firefly, giant
Fixes: 8753
Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #3643 from athanatos/wip-10734
Sage Weil [Wed, 11 Feb 2015 18:26:25 +0000 (10:26 -0800)]
Merge pull request #3643 from athanatos/wip-10734

ObjectStore: fix Transaction encoding version number

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge remote-tracking branch 'gh/master' into hammer
Sage Weil [Wed, 11 Feb 2015 17:21:36 +0000 (09:21 -0800)]
Merge remote-tracking branch 'gh/master' into hammer

10 years agoMerge pull request #3092 from abartlet/ceph-dmcrypt-plain
Sage Weil [Wed, 11 Feb 2015 17:21:53 +0000 (09:21 -0800)]
Merge pull request #3092 from abartlet/ceph-dmcrypt-plain

Ceph dmcrypt with LUKS (split into 4 patches)

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge branch 'hammer' of github.com:ceph/ceph into hammer
Sage Weil [Wed, 11 Feb 2015 17:20:19 +0000 (09:20 -0800)]
Merge branch 'hammer' of github.com:ceph/ceph into hammer

mon bits
Reviewed-by: Sage Weil <sage@redhat.com>
cli bits
Reviewed-by: Dan Mick <dmick@redhat.com>
10 years agomon/PGMonitor: drop pg ls debug line
Sage Weil [Wed, 11 Feb 2015 15:58:38 +0000 (07:58 -0800)]
mon/PGMonitor: drop pg ls debug line

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agodoc: add a page for CephFS early adopters 3699/head
John Spray [Wed, 11 Feb 2015 12:11:03 +0000 (12:11 +0000)]
doc: add a page for CephFS early adopters

This is where we should point people who are
trying out CephFS in evaluation environments.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agodoc/cephfs: Ceph FS -> CephFS
Sage Weil [Mon, 2 Feb 2015 11:36:43 +0000 (03:36 -0800)]
doc/cephfs: Ceph FS -> CephFS

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agodoc/cephfs: clarify the 'not production ready' warning
Sage Weil [Mon, 2 Feb 2015 11:34:46 +0000 (03:34 -0800)]
doc/cephfs: clarify the 'not production ready' warning

Continue to run into people who see this and run away (occasionally to
less robust solutions) without understanding why.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agobuild-doc: package checks for fedora
John Spray [Wed, 11 Feb 2015 13:18:53 +0000 (13:18 +0000)]
build-doc: package checks for fedora

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agobuild-doc: don't ignore errors
John Spray [Wed, 11 Feb 2015 12:56:34 +0000 (12:56 +0000)]
build-doc: don't ignore errors

It's hard to see what went wrong when e.g. a pip
install fails, if it just steams right past.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoxio: Fix out-of-order responses 3703/head
Vu Pham [Wed, 11 Feb 2015 10:36:11 +0000 (02:36 -0800)]
xio: Fix out-of-order responses

Without this clients received out-of-order responses from xio messenger

Signed-off-by: Raju.Kurunkad@sandisk.com
10 years agocmake: Fix cmakelist to compile librbd
Vu Pham [Wed, 11 Feb 2015 10:21:19 +0000 (02:21 -0800)]
cmake: Fix cmakelist to compile librbd

Signed-off-by: Vu Pham <vu@melanox.com>
10 years agoMerge pull request #3691 from athanatos/wip-6003
Sage Weil [Wed, 11 Feb 2015 01:42:21 +0000 (17:42 -0800)]
Merge pull request #3691 from athanatos/wip-6003

FileJournal: fix journalq population in do_read_entry()

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3690 from athanatos/wip-10817
Sage Weil [Wed, 11 Feb 2015 01:36:35 +0000 (17:36 -0800)]
Merge pull request #3690 from athanatos/wip-10817

Wip 10817

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3689 from athanatos/wip-10771
Sage Weil [Wed, 11 Feb 2015 01:33:18 +0000 (17:33 -0800)]
Merge pull request #3689 from athanatos/wip-10771

ReplicatedPG::eval_repop: check waiting_for_* even if !m

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge branch 'wip-7701' of git://github.com/xinxinsh/ceph into hammer
Sage Weil [Wed, 11 Feb 2015 01:19:44 +0000 (17:19 -0800)]
Merge branch 'wip-7701' of git://github.com/xinxinsh/ceph into hammer

Conflicts:
src/osd/osd_types.h

10 years agoMerge branch 'dachary-wip-10728-fedora-junit'
Ken Dreyer [Tue, 10 Feb 2015 23:47:27 +0000 (16:47 -0700)]
Merge branch 'dachary-wip-10728-fedora-junit'

ceph.spec.in: junit always except for EPEL 6

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoceph.spec.in: junit always except for EPEL 6 3600/head
Loic Dachary [Tue, 3 Feb 2015 15:14:23 +0000 (16:14 +0100)]
ceph.spec.in: junit always except for EPEL 6

The package was renamed a long time ago (around the Fedora 15
timeframe). The "junit4" name is only relevant for EPEL 6. For EPEL 7
and Fedora 20, the "junit" package has "Provides: junit4". And most
recently, in the junit package that ships in Fedora 21 and 22, the
package maintainer dropped the old Provides: line.

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

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMDSMonitor: do not allow MDS to transition from STATE_STOPPING 3683/head
Greg Farnum [Tue, 10 Feb 2015 22:18:52 +0000 (14:18 -0800)]
MDSMonitor: do not allow MDS to transition from STATE_STOPPING

They can only go into STATE_STOPPED. I was a little concerned
that some of the rejoin code might inadvertently allow a stopping
MDS to end up active, but after a little auditing it looks like
that all behaves properly and this is an invariant we maintain.

Fixes: #10791
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agorgw: Swift API. The second way of specifying desirable response format.
Dmytro Iurchenko [Mon, 9 Feb 2015 15:07:53 +0000 (17:07 +0200)]
rgw: Swift API. The second way of specifying desirable response format.

OpenStack Object Storage API v1 defines two ways for the client to tell which response format it understands.
Until now RGW looked at query variable 'format' only. This commit implements the second way of setting the format by
providing 'Accept' HTTP-header with the desirable response mime-type.

Backport: hammer
Fixes: #10746
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Signed-off-by: Dmytro Iurchenko <diurchenko@mirantis.com>
10 years agoMerge pull request #3682 from ceph/wip-10719
Josh Durgin [Tue, 10 Feb 2015 21:36:23 +0000 (13:36 -0800)]
Merge pull request #3682 from ceph/wip-10719

Wip 10719

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3680 from ceph/wip-10827
Sage Weil [Tue, 10 Feb 2015 21:00:26 +0000 (13:00 -0800)]
Merge pull request #3680 from ceph/wip-10827

osdc/Objecter: linger_register now acquires rwlock

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agorgw: remove multipart entries for bucket index when aborting 3682/head
Yehuda Sadeh [Fri, 6 Feb 2015 02:18:23 +0000 (18:18 -0800)]
rgw: remove multipart entries for bucket index when aborting

Fixes #10719

Since we now let the gc clean the aborter multipart uploads, we need to
clear the multipart entries from the bucket index when cleaning up the
meta object.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: encode rgw_obj::orig_obj
Yehuda Sadeh [Tue, 10 Feb 2015 02:16:13 +0000 (18:16 -0800)]
rgw: encode rgw_obj::orig_obj

We weren't encoding orig_obj, however, it's now needed so that we can
call get_index_key() on decoded objects. Only encode/decode it if ns or
instance are not empty.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #3672 from ceph/wip-old-gcc
Sage Weil [Tue, 10 Feb 2015 20:38:45 +0000 (12:38 -0800)]
Merge pull request #3672 from ceph/wip-old-gcc

fix build and warnings on older gcc

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
10 years agoMerge branch 'wip-diurchenko-master' into hammer
Yehuda Sadeh [Tue, 10 Feb 2015 17:44:08 +0000 (09:44 -0800)]
Merge branch 'wip-diurchenko-master' into hammer

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: Swift API. Support for X-Remove-Container-Meta-{key} header.
Dmytro Iurchenko [Tue, 3 Feb 2015 15:54:38 +0000 (17:54 +0200)]
rgw: Swift API. Support for X-Remove-Container-Meta-{key} header.

Fixes: #10475
Backport: hammer, firefly
Reported-by: Josh Durgin <jdurgin@redhat.com>
Signed-off-by: Dmytro Iurchenko <diurchenko@mirantis.com>
10 years agorgw: fix doc, A typo in command line argument name
Dmytro Iurchenko [Mon, 2 Feb 2015 10:52:44 +0000 (12:52 +0200)]
rgw: fix doc, A typo in command line argument name

Signed-off-by: Dmytro Iurchenko <diurchenko@mirantis.com>
10 years agorgw: Swift API. Dump container's custom metadata.
Dmytro Iurchenko [Mon, 2 Feb 2015 09:27:00 +0000 (11:27 +0200)]
rgw: Swift API. Dump container's custom metadata.

Fixes: #10665
Backport: hammer, firefly
Reported-by: Ahmad Faheem <ahmad.faheem@ril.com>
Signed-off-by: Dmytro Iurchenko <diurchenko@mirantis.com>
10 years agoMerge pull request #3525 from qiushanggao/master
Loic Dachary [Tue, 10 Feb 2015 12:43:31 +0000 (13:43 +0100)]
Merge pull request #3525 from qiushanggao/master

Fix bug: When run Test_filejournal  testcase with gtest argument, all of testcases is failed.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agorados: add 'watch/notify' in rados --help command. 3676/head
Jianpeng Ma [Fri, 6 Feb 2015 07:19:46 +0000 (15:19 +0800)]
rados: add 'watch/notify' in rados --help command.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agorados: Using readable format to print object mtime when call 'stat obj'.
Jianpeng Ma [Tue, 10 Feb 2015 12:34:22 +0000 (20:34 +0800)]
rados: Using readable format to print object mtime when call 'stat obj'.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoMerge pull request #3677 from tchaikov/fix-sign-unsigned-comparison-warnings
Loic Dachary [Tue, 10 Feb 2015 10:59:52 +0000 (11:59 +0100)]
Merge pull request #3677 from tchaikov/fix-sign-unsigned-comparison-warnings

erasure-code: fix compilation warnings

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoFix bug: When run Test_filejournal testcase with gtest argument, all of testcases... 3525/head
qiushanggao [Tue, 20 Jan 2015 02:27:50 +0000 (10:27 +0800)]
Fix bug: When run Test_filejournal testcase with gtest argument, all of testcases is failed.

when run testcase with gtest argument, for example, with argument --gtest_output=xml:/root/reports/ceph_test_cls_version.xml,
then the test result is failed, because of the test program use the first argument as the journal file name.
Signed-off-by: shanggao qiu <qiushanggao@qq.com>
10 years agoerasure-code: fix compilation warnings 3677/head
Kefu Chai [Tue, 10 Feb 2015 10:24:23 +0000 (18:24 +0800)]
erasure-code: fix compilation warnings

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoosd: fix PG leak in SnapTrimWQ._clear() 3678/head
Kefu Chai [Tue, 10 Feb 2015 08:29:45 +0000 (16:29 +0800)]
osd: fix PG leak in SnapTrimWQ._clear()

Fixes: #10421
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #3673 from tchaikov/cosmetic-init-with-false-no-0
Loic Dachary [Tue, 10 Feb 2015 08:21:41 +0000 (09:21 +0100)]
Merge pull request #3673 from tchaikov/cosmetic-init-with-false-no-0

osd/PG.c: use boolean to init `bool` variables

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agofsync-tester: print info about PATH and locations of lsof lookup
Greg Farnum [Fri, 6 Feb 2015 05:12:17 +0000 (21:12 -0800)]
fsync-tester: print info about PATH and locations of lsof lookup

We're seeing the lsof invocation fail (as not found) in testing and nobody can
identify why. Since attempting to reproduce the issue has not worked, this
patch will gather data from a genuinely in-vitro location.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agotest_libcephfs: test we can't set layouts on existing files 3617/head
Greg Farnum [Fri, 6 Feb 2015 06:01:43 +0000 (22:01 -0800)]
test_libcephfs: test we can't set layouts on existing files

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agorados.py: keep reference to python callbacks 3674/head
Josh Durgin [Tue, 10 Feb 2015 04:50:23 +0000 (20:50 -0800)]
rados.py: keep reference to python callbacks

If we don't keep a reference to these, the librados aio calls will
segfault since the python-level callbacks will have been garbage
collected. Passing them to aio_create_completion() does not take a
reference to them. Keep a reference in the python Completion object
associated with the request, since they need the same lifetime.

This fixes a regression from 60b019f69aa0e39d276c669698c92fc890599f50.

Fixes: #10775
Backport: dumpling, firefly, giant
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
10 years agoShardedThreadPool: make wait timeout on empty queue configurable 3690/head
Samuel Just [Tue, 10 Feb 2015 01:41:19 +0000 (17:41 -0800)]
ShardedThreadPool: make wait timeout on empty queue configurable

Fixes: 10818
Backport: giant
Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoosd/PG.c: use boolean to init `bool` variables 3673/head
Kefu Chai [Tue, 10 Feb 2015 02:32:47 +0000 (10:32 +0800)]
osd/PG.c: use boolean to init `bool` variables

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoWorkQueue: make wait timeout on empty queue configurable
Samuel Just [Tue, 10 Feb 2015 01:11:38 +0000 (17:11 -0800)]
WorkQueue: make wait timeout on empty queue configurable

Fixes: 10817
Backport: giant, firefly, dumpling
Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoadd tests for ceph pg ls-by-pool 3470/head
xinxin shu [Fri, 30 Jan 2015 06:36:35 +0000 (14:36 +0800)]
add tests for ceph pg ls-by-pool

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
10 years agoadd CLI ceph pg ls-by-pool
xinxin shu [Fri, 30 Jan 2015 04:58:54 +0000 (12:58 +0800)]
add CLI ceph pg ls-by-pool

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
10 years agoadd tests for ceph pg ls-by-osd
xinxin shu [Fri, 30 Jan 2015 04:55:19 +0000 (12:55 +0800)]
add tests for ceph pg ls-by-osd

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
10 years agoadd CLI ceph pg ls-by-osd
xinxin shu [Fri, 30 Jan 2015 02:41:22 +0000 (10:41 +0800)]
add CLI ceph pg ls-by-osd

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
10 years agoadd tests for ceph pg ls-by-primary
xinxin shu [Fri, 30 Jan 2015 02:38:27 +0000 (10:38 +0800)]
add tests for ceph pg ls-by-primary

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
10 years agofix error : ceph pg ls 0
xinxin shu [Fri, 30 Jan 2015 06:09:16 +0000 (14:09 +0800)]
fix error : ceph pg ls 0

no valid command found; 10 closest matches:
pg ls-by-primary <osdname (id|osd.id)> {<int>} {active|clean|down|replay|splitting|scrubbing|scrubq|degraded|inconsistent|peering|repair|recovery|backfill_wait|incomplete|stale|remapped|deep_scrub|backfill|backfill_toofull|recovery_wait|undersized [active|clean|down|replay|splitting|scrubbing|scrubq|degraded|inconsistent|peering|repair|recovery|backfill_wait|incomplete|stale|remapped|deep_scrub|backfill|backfill_toofull|recovery_wait|undersized...]}
Error EINVAL: invalid command

this is due to partial compare of prefix

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
10 years agolocally disable pragma warnings on gcc < 4.6 3672/head
Josh Durgin [Mon, 9 Feb 2015 23:00:18 +0000 (15:00 -0800)]
locally disable pragma warnings on gcc < 4.6

diagnostic push|pop are not present before 4.6, so each use gives a
warning. Temporarily ignore these by disabling/reenabling -Wpragmas.
Note that this means the other disabled warnings are not scoped on
old gcc. I don't think this is worth fixing, since newer gcc will
respect the scope and show us the warnings outside of it.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
10 years agoPipe: conditionally compile IPTOS setting
Josh Durgin [Mon, 9 Feb 2015 22:55:15 +0000 (14:55 -0800)]
Pipe: conditionally compile IPTOS setting

This doesn't exist on older platforms.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
10 years agolibrbd: consolidate all async operation flush logic
Jason Dillaman [Thu, 5 Feb 2015 06:20:00 +0000 (01:20 -0500)]
librbd: consolidate all async operation flush logic

librbd has three different methods for flushing asynchronous
operations. These have all been consolidated down to a single,
shared method to fix an existing issue and simplify maintenance
going forward.

Fixes: #10783
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoxlist: added missing include
Jason Dillaman [Thu, 5 Feb 2015 06:22:38 +0000 (01:22 -0500)]
xlist: added missing include

The xlist header references NULL without including
the header which defines it.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoReplicatedPG::eval_repop: check waiting_for_* even if !m 3689/head
Samuel Just [Thu, 5 Feb 2015 17:51:08 +0000 (09:51 -0800)]
ReplicatedPG::eval_repop: check waiting_for_* even if !m

There can be client ops waiting on a promote now.

Fixes: 10771
Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #3602 from dachary/wip-10730-fedora-docker
Loic Dachary [Mon, 9 Feb 2015 14:20:43 +0000 (15:20 +0100)]
Merge pull request #3602 from dachary/wip-10730-fedora-docker

tests: add Dockerfile for fedora

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3656 from dachary/wip-osd-scrub-repair
Loic Dachary [Mon, 9 Feb 2015 14:18:57 +0000 (15:18 +0100)]
Merge pull request #3656 from dachary/wip-osd-scrub-repair

tests: run osd-scrub-repair.sh with make check

Reviewed-by: Sebastien Ponce <Sebastien.Ponce@cern.ch>
10 years agoMerge pull request #3631 from liewegas/wip-mon-dup-down
Sage Weil [Mon, 9 Feb 2015 06:35:39 +0000 (22:35 -0800)]
Merge pull request #3631 from liewegas/wip-mon-dup-down

mon: fix unnecessary osd mark down

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge pull request #3605 from ceph/wip-da-SCA-20150129
Sage Weil [Mon, 9 Feb 2015 06:27:02 +0000 (22:27 -0800)]
Merge pull request #3605 from ceph/wip-da-SCA-20150129

Various SCA and smaller bugfixes

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomon: have two COMMAND two COMMAND_WITH_FLAG macros
Sage Weil [Mon, 9 Feb 2015 06:13:29 +0000 (22:13 -0800)]
mon: have two COMMAND two COMMAND_WITH_FLAG macros

This avoids 2 separate calls to define each item and keeps the blame
info intact.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agotests: make ceph_watch_wait output watchfile content on failure
Mykola Golub [Wed, 28 Jan 2015 12:43:32 +0000 (14:43 +0200)]
tests: make ceph_watch_wait output watchfile content on failure

It should help in troubleshooting remote test failures.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
10 years agomon: noforward flag for commands that are not supposed to be forwarded
Mykola Golub [Wed, 21 Jan 2015 13:47:25 +0000 (15:47 +0200)]
mon: noforward flag for commands that are not supposed to be forwarded

For not a monitor leader, if a received command is not supported
locally, but is supported by the leader, it is forwarded to the
leader.

For some commands that may have undesirable behaviour. E.g. for the
recently added "ceph tell mon.x version", if the mon.x is not a leader
and does not support "version" command yet, but the leader does, the
user will receive the version of the leader, and can't be actually
sure about a non leader version.

Fix this by adding noforward flag to commands that are not supposed to
be forwarded. Set the flag for "version" command. Although there are
other non-forwardable commands (like injectargs) it is not necessary
to add the flag to them, as the commands are too old to suffer from
the describe problem.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
10 years agomon: fix Monitor::_get_moncommand()
Mykola Golub [Wed, 28 Jan 2015 08:45:59 +0000 (10:45 +0200)]
mon: fix Monitor::_get_moncommand()

It should match command prefix, not any substring.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
10 years agoMerge branch 'wip-mshec-r44' of git://github.com/t-miyamae/ceph into hammer
Sage Weil [Mon, 9 Feb 2015 05:57:14 +0000 (21:57 -0800)]
Merge branch 'wip-mshec-r44' of git://github.com/t-miyamae/ceph into hammer

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3667 from ceph/wip-doc-ports
Sage Weil [Sun, 8 Feb 2015 15:53:56 +0000 (07:53 -0800)]
Merge pull request #3667 from ceph/wip-doc-ports

doc: updates for port ranges

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agodoc: remind user to calculate the correct max port 3667/head
John Spray [Sun, 8 Feb 2015 14:47:04 +0000 (15:47 +0100)]
doc: remind user to calculate the correct max port

This was kind of easy to miss, and if users
just paste in the command as given then their
first few OSDs will work, and from their
4th OSD onwards things will get weird.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agodoc: fix "7810" port typo
John Spray [Sun, 8 Feb 2015 14:38:14 +0000 (15:38 +0100)]
doc: fix "7810" port typo

The correct value is now 7300, used to be
7100, was never 7810.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agodoc: correct default of ms_bind_port_max
John Spray [Sun, 8 Feb 2015 14:31:26 +0000 (15:31 +0100)]
doc: correct default of ms_bind_port_max

It's 7300 in the code, whereas these docs
had it as 7100.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #3665 from yuyuyu101/wip-fix-qa
Sage Weil [Sun, 8 Feb 2015 10:21:33 +0000 (02:21 -0800)]
Merge pull request #3665 from yuyuyu101/wip-fix-qa

AsyncConnection: Fix several bugs from qa test

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoAsyncConnection: fix incorrect condition for exchanging in_seq 3665/head
Haomai Wang [Sun, 8 Feb 2015 07:47:39 +0000 (15:47 +0800)]
AsyncConnection: fix incorrect condition for exchanging in_seq

Originally we use "in_seq==0" to judge whether need to exchange in_seq,
it's wrong when peer side already receive message and need to reply new
in_seq to this side.

Now use "is_reset_from_peer" to indicate whether not need to exchange

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoMerge pull request #3660 from SUSE/wip-fix-suse-tests
Loic Dachary [Sat, 7 Feb 2015 21:53:06 +0000 (22:53 +0100)]
Merge pull request #3660 from SUSE/wip-fix-suse-tests

Handle differently-named xmlstarlet binary for *suse

Reviewed-by: Loic Dachary <ldachary@redhat.com>