]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoMerge pull request #7350 from ddiss/tracker14499_enotconn_rados_monitor_log
Sage Weil [Fri, 12 Feb 2016 20:45:37 +0000 (15:45 -0500)]
Merge pull request #7350 from ddiss/tracker14499_enotconn_rados_monitor_log

librados: check connection state in rados_monitor_log

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7584 from ifed01/wip-14511
Sage Weil [Fri, 12 Feb 2016 20:40:33 +0000 (15:40 -0500)]
Merge pull request #7584 from ifed01/wip-14511

osd: fix lack of object unblock when flush fails

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7593 from ifed01/wip-no-blockedpromote-return-fix
Sage Weil [Fri, 12 Feb 2016 20:39:58 +0000 (15:39 -0500)]
Merge pull request #7593 from ifed01/wip-no-blockedpromote-return-fix

osd: fix return value from maybe_handle_cache_detail()

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7587 from cbodley/wip-pageset-align
Sage Weil [Fri, 12 Feb 2016 20:39:30 +0000 (15:39 -0500)]
Merge pull request #7587 from cbodley/wip-pageset-align

osd: memstore: fix alignment of Page for test_pageset

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoMerge pull request #7595 from liewegas/wip-hobject-stringify
Sage Weil [Fri, 12 Feb 2016 20:38:18 +0000 (15:38 -0500)]
Merge pull request #7595 from liewegas/wip-hobject-stringify

osd: ghobject_t: use ! instead of @ as a separator

9 years agoMerge pull request #7596 from dachary/wip-erasure-code-corpus
Sage Weil [Fri, 12 Feb 2016 20:37:31 +0000 (15:37 -0500)]
Merge pull request #7596 from dachary/wip-erasure-code-corpus

tests: sync ceph-erasure-code-corpus for mktemp -d

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7608 from liewegas/wip-warnings
Sage Weil [Fri, 12 Feb 2016 20:36:35 +0000 (15:36 -0500)]
Merge pull request #7608 from liewegas/wip-warnings

tests: fix a few build warnings

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7626 from tchaikov/wip-fix-automake
Kefu Chai [Fri, 12 Feb 2016 17:33:12 +0000 (01:33 +0800)]
Merge pull request #7626 from tchaikov/wip-fix-automake

Makefile: workaround an automake bug for "make check"

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #7351 from fmeppo/master
Loic Dachary [Fri, 12 Feb 2016 16:10:18 +0000 (23:10 +0700)]
Merge pull request #7351 from fmeppo/master

Add --setuser and --setgroup options for ceph-disk

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMakefile: workaround an automake bug for "make check" 7626/head
Kefu Chai [Fri, 12 Feb 2016 15:52:56 +0000 (23:52 +0800)]
Makefile: workaround an automake bug for "make check"

override the automake variable of am__is_gnu_make. it is a workaround
for http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18744. this bug was
fixed in automake 1.15, but automake 1.13 is supported. so we can not
just require 1.15 using `AM_INIT_AUTOMAKE`. this only happens when we
have lots of source files *and* we are using automake v1.14 or lower.

Fixes: #14723
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7605 from dachary/wip-python-wheelhouse
Kefu Chai [Fri, 12 Feb 2016 11:59:08 +0000 (19:59 +0800)]
Merge pull request #7605 from dachary/wip-python-wheelhouse

python: use pip instead of python setup.py

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoceph-disk,ceph-detect-init: clean the build directory 7605/head
Loic Dachary [Thu, 11 Feb 2016 17:09:44 +0000 (00:09 +0700)]
ceph-disk,ceph-detect-init: clean the build directory

b030d8fc113736b479e84246b6b36d5f698a2da3 should have kept the build
directory in .gitignore and the clean target. Re-adding.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agopython: use pip instead of python setup.py
Loic Dachary [Thu, 11 Feb 2016 11:47:55 +0000 (18:47 +0700)]
python: use pip instead of python setup.py

python setup.py develop may try to pull dependencies from the net and
has no way to collect them from the wheelhouse that was populated by
install-deps.sh. Use pip install -e instead

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #7528 from objoo/YD-jewel-mailmap-updates-take2
Loic Dachary [Fri, 12 Feb 2016 06:14:17 +0000 (13:14 +0700)]
Merge pull request #7528 from objoo/YD-jewel-mailmap-updates-take2

mailmap updates

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #7609 from dillaman/wip-librbd-flatten-test
Josh Durgin [Fri, 12 Feb 2016 05:10:13 +0000 (21:10 -0800)]
Merge pull request #7609 from dillaman/wip-librbd-flatten-test

test: new librbd flatten test case

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7583 from dillaman/wip-librbd-journal-fsx
Josh Durgin [Fri, 12 Feb 2016 05:09:01 +0000 (21:09 -0800)]
Merge pull request #7583 from dillaman/wip-librbd-journal-fsx

librbd: integrate journal replay with fsx testing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7613 from wjwithagen/patch-1
Sage Weil [Thu, 11 Feb 2016 21:32:44 +0000 (16:32 -0500)]
Merge pull request #7613 from wjwithagen/patch-1

osd: add missing newline to usage message

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agosrc/ceph_osd.cc Add missing newline to usage message 7613/head
Willem Jan Withagen [Thu, 11 Feb 2016 18:18:19 +0000 (19:18 +0100)]
src/ceph_osd.cc Add missing newline to usage message

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
9 years agocommon: fix build error with Graylog
Sage Weil [Thu, 11 Feb 2016 18:24:29 +0000 (13:24 -0500)]
common: fix build error with Graylog

Graylog includes boost stuff, which clobbers our assert macros.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6920 from oritwas/wip-mstart-cmake
Casey Bodley [Thu, 11 Feb 2016 17:43:04 +0000 (12:43 -0500)]
Merge pull request #6920 from oritwas/wip-mstart-cmake

ajdust mstart and mstop script to run with cmake build

9 years agoMerge pull request #7523 from tchaikov/wip-fix-cmake
Ali Maredia [Thu, 11 Feb 2016 17:40:41 +0000 (12:40 -0500)]
Merge pull request #7523 from tchaikov/wip-fix-cmake

cmake: fix the build of tests

9 years agoMerge pull request #7607 from FlorentCoppint/master
Sage Weil [Thu, 11 Feb 2016 17:30:54 +0000 (12:30 -0500)]
Merge pull request #7607 from FlorentCoppint/master

mount.fuse.ceph: better parsing of arguments passed to mount.fuse.ceph by mount command

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agotest: new librbd flatten test case 7609/head
Jason Dillaman [Tue, 2 Feb 2016 15:54:53 +0000 (10:54 -0500)]
test: new librbd flatten test case

AIO operations after a flatten operation were previously
hanging during the close of the parent image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agounittest_[ceph_]crypto: fix warnings 7608/head
Sage Weil [Thu, 11 Feb 2016 13:52:57 +0000 (08:52 -0500)]
unittest_[ceph_]crypto: fix warnings

test/crypto.cc:20:31: warning: ‘crypto_env’ defined but not used [-Wunused-variable]
 ::testing::Environment* const crypto_env = ::testing::AddGlobalTestEnvironment(n
                               ^
test/ceph_crypto.cc:12:31: warning: ‘crypto_env’ defined but not used [-Wunused-variable]
 ::testing::Environment* const crypto_env = ::testing::AddGlobalTestEnvironment(n
                               ^

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agounittest_bufferlist: fix warning
Sage Weil [Thu, 11 Feb 2016 13:51:34 +0000 (08:51 -0500)]
unittest_bufferlist: fix warning

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agounittest_compression_[*_][plugin]: fix warnings
Sage Weil [Thu, 11 Feb 2016 13:51:25 +0000 (08:51 -0500)]
unittest_compression_[*_][plugin]: fix warnings

test/compressor/test_compression_plugin.cc: In function ‘int main(int, char**)’:
test/compressor/test_compression_plugin.cc:55:38: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
   system("mkdir -p .libs/compressor");
                                      ^
test/compressor/test_compression_plugin.cc:56:59: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
   system("cp .libs/libceph_example.so* .libs/compressor/");
                                                           ^

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoBetter parsing of arguments passed to mount.fuse.ceph by mount command. 7607/head
Florent [Thu, 11 Feb 2016 13:51:49 +0000 (14:51 +0100)]
Better parsing of arguments passed to mount.fuse.ceph by mount command.

Signed-off-by: Florent Bautista <florent@coppint.com>
9 years agoMerge pull request #5961 from majianpeng/small-fix
Sage Weil [Thu, 11 Feb 2016 13:46:22 +0000 (08:46 -0500)]
Merge pull request #5961 from majianpeng/small-fix

osd: clean up CMPXATTR checks

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7533 from Cdiscount/master
Sage Weil [Thu, 11 Feb 2016 13:45:17 +0000 (08:45 -0500)]
Merge pull request #7533 from Cdiscount/master

debian: include cpio in build-requiers

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_libcephfs: fix warnings
Sage Weil [Thu, 11 Feb 2016 13:45:00 +0000 (08:45 -0500)]
ceph_test_libcephfs: fix warnings

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7537 from ifed01/wip-no-promote-for-delete-fix
Sage Weil [Thu, 11 Feb 2016 13:44:35 +0000 (08:44 -0500)]
Merge pull request #7537 from ifed01/wip-no-promote-for-delete-fix

osd: fix unnecessary object promotion when deleting from cache pool

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7567 from branch-predictor/bp-slimdown-conns
Sage Weil [Thu, 11 Feb 2016 13:43:46 +0000 (08:43 -0500)]
Merge pull request #7567 from branch-predictor/bp-slimdown-conns

msg: significantly reduce minimal memory usage of connections

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7579 from javacruft/wip-systemd-escaping
Sage Weil [Thu, 11 Feb 2016 13:42:50 +0000 (08:42 -0500)]
Merge pull request #7579 from javacruft/wip-systemd-escaping

systemd: correctly escape block device paths

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7581 from jcsp/wip-asok-lockdep
Sage Weil [Thu, 11 Feb 2016 13:42:26 +0000 (08:42 -0500)]
Merge pull request #7581 from jcsp/wip-asok-lockdep

librados: mix lock cycle (un)registering asok commands

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7604 from ceph/wip-selinux-update-radosgw-log
Sage Weil [Thu, 11 Feb 2016 13:37:50 +0000 (08:37 -0500)]
Merge pull request #7604 from ceph/wip-selinux-update-radosgw-log

selinux: allow log files to be located in /var/log/radosgw

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7606 from tchaikov/wip-fix-ceph-disk
Loic Dachary [Thu, 11 Feb 2016 12:18:34 +0000 (19:18 +0700)]
Merge pull request #7606 from tchaikov/wip-fix-ceph-disk

tests: ceph-disk.sh: use "readlink -f" instead for fullpath

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agotests: ceph-disk.sh: use "readlink -f" instead for fullpath 7606/head
Kefu Chai [Thu, 11 Feb 2016 12:08:32 +0000 (20:08 +0800)]
tests: ceph-disk.sh: use "readlink -f" instead for fullpath

if $PATH has ".." in it, and the program happen to be located in
"..", `which program` will print `../program` instead of its fullpath,
so we should always use `readlink -f` for the fullpath.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoselinux: Allow log files to be located in /var/log/radosgw 7604/head
Boris Ranto [Thu, 11 Feb 2016 11:03:06 +0000 (12:03 +0100)]
selinux: Allow log files to be located in /var/log/radosgw

We do suggest users to put their logs in /var/log/radosgw in the
documentation at times. We should also label that directory with
ceph_var_log_t so that ceph daemons can also write there.

The commit also updates the man page for this policy. This man page is
automatically generated by

* sepolicy manpage -p . -d ceph_t

and have not been reloaded in a while. Hence, it contains few more
changes than the new radosgw directory.

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoMerge pull request #7601 from jjhuo/master
Haomai Wang [Thu, 11 Feb 2016 06:36:01 +0000 (14:36 +0800)]
Merge pull request #7601 from jjhuo/master

os/bluestore: fix a typo in SPDK path parsing

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agoos/bluestore: fix a typo in SPDK path parsing 7601/head
Jianjian Huo [Thu, 11 Feb 2016 01:44:33 +0000 (20:44 -0500)]
os/bluestore: fix a typo in SPDK path parsing

SPDK block path with bluestore is something like spdk:55cd2e404bd73932.
The size of the prefix to compare should be 5.
sizeof(SPDK_PREFIX)-1 returns 5, while sizeof(SPDK_PREFIX-1) returns 8.

Signed-off-by: Jianjian Huo <samuel.huo@gmail.com>
9 years agolibrbd: protect journal replay against overlapping writes 7583/head
Jason Dillaman [Thu, 11 Feb 2016 00:06:02 +0000 (19:06 -0500)]
librbd: protect journal replay against overlapping writes

If fsx issues a back-to-back synchronous write, these will be
replayed as AIO writes.  If object map is enabled, it's possible
for the two writes to commit to disk out-of-order if the first
write required an object map update.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: track in-flight AIO flush requests during journal replay
Jason Dillaman [Wed, 10 Feb 2016 22:40:42 +0000 (17:40 -0500)]
librbd: track in-flight AIO flush requests during journal replay

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotest: possible librbd journal replay flush race
Jason Dillaman [Wed, 10 Feb 2016 22:39:36 +0000 (17:39 -0500)]
test: possible librbd journal replay flush race

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7588 from dmick/master
Sage Weil [Wed, 10 Feb 2016 21:02:11 +0000 (16:02 -0500)]
Merge pull request #7588 from dmick/master

common/page.cc: _page_mask has too many bits

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7413 from YankunLi/dev
Yehuda Sadeh [Wed, 10 Feb 2016 19:16:30 +0000 (11:16 -0800)]
Merge pull request #7413 from YankunLi/dev

rgw: remove duplicated code in RGWRados::get_bucket_info()

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge branch 'wip-11642-0203'
Yehuda Sadeh [Wed, 10 Feb 2016 19:15:49 +0000 (11:15 -0800)]
Merge branch 'wip-11642-0203'

9 years agorgw: make function parameter 'errordoc_key' passed by reference
Bo Cai [Wed, 3 Feb 2016 08:49:50 +0000 (16:49 +0800)]
rgw: make function parameter 'errordoc_key' passed by reference

Signed-off-by: Bo Cai <cai.bo@h3c.com>
9 years agoMerge branch 'master' of github.com:ceph/ceph
Sage Weil [Wed, 10 Feb 2016 18:58:50 +0000 (13:58 -0500)]
Merge branch 'master' of github.com:ceph/ceph

9 years agoMerge pull request #7544 from ceph/wip-rh-covscan
Yehuda Sadeh [Wed, 10 Feb 2016 19:03:04 +0000 (11:03 -0800)]
Merge pull request #7544 from ceph/wip-rh-covscan

rgw/rgw_orphan: check the return value of save_state

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #7586 from bsedyang/master
Yehuda Sadeh [Wed, 10 Feb 2016 19:01:54 +0000 (11:01 -0800)]
Merge pull request #7586 from bsedyang/master

rgw: user quota may not adjust on bucket removal

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agodoc/release-notes: v10.0.3
Sage Weil [Wed, 10 Feb 2016 18:57:37 +0000 (13:57 -0500)]
doc/release-notes: v10.0.3

Finalized release notes.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoOSD/ReplicatedPG: Adding test case to catch issue #14511 7584/head
Igor Fedotov [Wed, 10 Feb 2016 15:11:58 +0000 (18:11 +0300)]
OSD/ReplicatedPG: Adding test case to catch issue #14511

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoAdd better documentation of --setuser and --setgroup options for ceph-disk. 7351/head
Mike Shuey [Wed, 10 Feb 2016 14:36:40 +0000 (09:36 -0500)]
Add better documentation of --setuser and --setgroup options for ceph-disk.

Signed-off-by: Mike Shuey <shuey@purdue.edu>
9 years agoAdd --setuser and --setgroup options to ceph-disk(8).
Mike Shuey [Mon, 25 Jan 2016 21:12:35 +0000 (16:12 -0500)]
Add --setuser and --setgroup options to ceph-disk(8).

Signed-off-by: Mike Shuey <shuey@purdue.edu>
9 years agoAdd support to override ceph-disk's user and group choices
Mike Shuey [Mon, 25 Jan 2016 19:36:26 +0000 (14:36 -0500)]
Add support to override ceph-disk's user and group choices

Signed-off-by: Mike Shuey <shuey@purdue.edu>
9 years agoMerge pull request #7592 from dachary/wip-release-notes
Sage Weil [Wed, 10 Feb 2016 14:24:35 +0000 (09:24 -0500)]
Merge pull request #7592 from dachary/wip-release-notes

release-notes: draft v10.0.3 release notes

9 years agotests: sync ceph-erasure-code-corpus for mktemp -d 7596/head
Loic Dachary [Wed, 10 Feb 2016 14:06:12 +0000 (21:06 +0700)]
tests: sync ceph-erasure-code-corpus for mktemp -d

Because it's posix and --directory is not.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #7594 from tchaikov/fix-ceph-disk-test
Loic Dachary [Wed, 10 Feb 2016 13:58:53 +0000 (20:58 +0700)]
Merge pull request #7594 from tchaikov/fix-ceph-disk-test

tests: ceph-disk.sh: should use "readlink -f" instead

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoghobject_t: use ! instead of @ as a separator 7595/head
Sage Weil [Wed, 10 Feb 2016 13:55:08 +0000 (08:55 -0500)]
ghobject_t: use ! instead of @ as a separator

@ confuses less's search (/ then @ does not do what you want).  !
behaves as expected.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agotests: ceph-disk.sh: should use "readlink -f" instead 7594/head
Kefu Chai [Wed, 10 Feb 2016 13:30:46 +0000 (21:30 +0800)]
tests: ceph-disk.sh: should use "readlink -f" instead

turns out trusty does not have `realpath` unless the package named
`realpath` is installed.

Reported-by: Joao Eduardo Luis <joao@suse.de>
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agorelease-notes: draft v10.0.3 release notes 7592/head
Loic Dachary [Wed, 10 Feb 2016 09:19:06 +0000 (16:19 +0700)]
release-notes: draft v10.0.3 release notes

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoscripts: ceph-release-notes fix merge messages handling
Loic Dachary [Wed, 10 Feb 2016 08:14:31 +0000 (15:14 +0700)]
scripts: ceph-release-notes fix merge messages handling

Strip the title line if it is the same as the pr title instead of
ignoring the message entirely.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agocmake: remove Boost libraries from EXTRALIBS 7523/head
Kefu Chai [Wed, 10 Feb 2016 05:23:07 +0000 (21:23 -0800)]
cmake: remove Boost libraries from EXTRALIBS

* and remove ${Boost_SYSTEM_LIBRARY} from test_rados_api_tier

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agolog: remove "boost/asio.hpp" from Log.h
Kefu Chai [Fri, 5 Feb 2016 07:56:55 +0000 (15:56 +0800)]
log: remove "boost/asio.hpp" from Log.h

graylog uses boost/asio.hpp which introduces the link-time dependency on
libboost_system to the compilation units which includes Log.h and
LogClient.h. so it appears that perfglue/heap_profiler.cc is referencing
libboost_system.so, and fails the cmake build of all tests which links
against tcmalloc.

in this change, we:

* remove unnecessary #includes from Graylog.h
* forward declare Graylog class, so that "Graylog.h" is not included in
  any header files to avoid the link-time dependency pollution

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: disable warnings introduced by 457f023
Kefu Chai [Wed, 10 Feb 2016 05:16:34 +0000 (21:16 -0800)]
cmake: disable warnings introduced by 457f023

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoRevert "cmake: add libboost_system to EXTRALIBS"
Kefu Chai [Sat, 6 Feb 2016 00:59:32 +0000 (08:59 +0800)]
Revert "cmake: add libboost_system to EXTRALIBS"

This reverts commit 21438a6773a3153556de07096919ab46c4540eee.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocommon/page.cc: _page_mask has too many bits 7588/head
Dan Mick [Wed, 10 Feb 2016 03:35:25 +0000 (19:35 -0800)]
common/page.cc: _page_mask has too many bits

It's not used anywhere, but in case it is one day...

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agotest_rados_api_misc: disconnected rados_monitor_log test 7350/head
David Disseldorp [Wed, 10 Feb 2016 00:43:33 +0000 (01:43 +0100)]
test_rados_api_misc: disconnected rados_monitor_log test

Piggy-back on LibRadosMiscConnectFailure to confirm that
rados_monitor_log() against a disconnected cluster context fails with
-ENOTCONN, instead of aborting.

Signed-off-by: David Disseldorp <ddiss@suse.de>
9 years agomemstore: fix alignment of Page for test_pageset 7587/head
Casey Bodley [Tue, 9 Feb 2016 22:42:17 +0000 (17:42 -0500)]
memstore: fix alignment of Page for test_pageset

test_pageset creates Pages with size=1, which messes up alignment of the
Page contents and leads to a bus error on arm64

Page::create() now adds padding to make sure Page is properly aligned,
and test_pageset verifies that alignment

Reported-by: Dan Mick <dmick@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: user quota may not adjust on bucket removal 7586/head
root [Tue, 9 Feb 2016 20:03:24 +0000 (12:03 -0800)]
rgw: user quota may not adjust on bucket removal

Description:
If the user/admin removes a bucket using --force/--purge-objects options with s3cmd/radosgw-admin respectively, the user stats will continue to reflect the deleted objects for quota purposes, and there seems to be no way to reset them. User stats need to be sync'ed prior to bucket removal.

Solution:
Sync user stats before removing a bucket.

Fixes: #14507
Signed-off-by: Edward Yang eyang@us.fujitsu.com
9 years agolibrados: check connection state in rados_monitor_log
David Disseldorp [Mon, 25 Jan 2016 16:10:10 +0000 (17:10 +0100)]
librados: check connection state in rados_monitor_log

rados_monitor_log() may abort the calling process if called with a
disconnected rados cluster context. Return -ENOTCONN up to the caller,
rather than aborting in such cases.

Fixes: #14499
Signed-off-by: David Disseldorp <ddiss@suse.de>
9 years agoOSD/ReplicatedPG: Fixing lack of object unblock when flush fails.
Igor Fedotov [Tue, 9 Feb 2016 18:19:07 +0000 (21:19 +0300)]
OSD/ReplicatedPG: Fixing lack of object unblock when flush fails.
See: http://tracker.ceph.com/issues/14511

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agotest: fsx now exercises librbd journal replay
Jason Dillaman [Tue, 9 Feb 2016 02:35:31 +0000 (21:35 -0500)]
test: fsx now exercises librbd journal replay

write, discard, snap create, snap protect, flatten, and resize journal
events are tests when using the new '-j' option.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: missing lock on maint operation replay callback
Jason Dillaman [Tue, 9 Feb 2016 17:12:51 +0000 (12:12 -0500)]
librbd: missing lock on maint operation replay callback

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: do not fire flush completions before associated write
Jason Dillaman [Tue, 9 Feb 2016 17:10:10 +0000 (12:10 -0500)]
librbd: do not fire flush completions before associated write

Prevents a race condition in journal replay when committing events
to the journal.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoOSD/ReplicatePG: Fixes return value from maybe_handle_cache_detail() depending on... 7593/head
Igor Fedotov [Mon, 8 Feb 2016 12:46:51 +0000 (15:46 +0300)]
OSD/ReplicatePG: Fixes return value from maybe_handle_cache_detail() depending on maybe_promote() result

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com
9 years agoMerge pull request #7496 from xiexingguo/xxg-wip-fixnvme
Sage Weil [Tue, 9 Feb 2016 14:02:22 +0000 (09:02 -0500)]
Merge pull request #7496 from xiexingguo/xxg-wip-fixnvme

osd: BlueStore/NVMEDevice: fix compiling and fd leak

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #7349 from yuyuyu101/add-pwritev
Sage Weil [Tue, 9 Feb 2016 13:58:28 +0000 (08:58 -0500)]
Merge pull request #7349 from yuyuyu101/add-pwritev

osd: FileStore: use pwritev instead of lseek+writev

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7504 from renhwsky/renhw-wip-mon-shutdown
Sage Weil [Tue, 9 Feb 2016 13:57:11 +0000 (08:57 -0500)]
Merge pull request #7504 from renhwsky/renhw-wip-mon-shutdown

mon: unregister command on shutdown

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
9 years agoMerge pull request #7550 from tchaikov/wip-osd-cleanup
Sage Weil [Tue, 9 Feb 2016 13:56:48 +0000 (08:56 -0500)]
Merge pull request #7550 from tchaikov/wip-osd-cleanup

osd: a fix for HeartbeatDispatcher and cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7553 from XinzeChi/wip-osdmap-affinity
Sage Weil [Tue, 9 Feb 2016 13:56:14 +0000 (08:56 -0500)]
Merge pull request #7553 from XinzeChi/wip-osdmap-affinity

osd: OSDMap: reset osd_primary_affinity shared_ptr when deepish_copy_from

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7560 from tchaikov/wip-fix-icl
Sage Weil [Tue, 9 Feb 2016 13:55:59 +0000 (08:55 -0500)]
Merge pull request #7560 from tchaikov/wip-fix-icl

crush/CrushTester: workaround a bug in boost::icl

9 years agoMerge pull request #7568 from liewegas/wip-bluestore-mutex
Sage Weil [Tue, 9 Feb 2016 13:55:43 +0000 (08:55 -0500)]
Merge pull request #7568 from liewegas/wip-bluestore-mutex

osd: bluestore/blockdevice: use std::mutex et al

9 years agodebian: fix build-depends 7533/head
Rémi BUISSON [Fri, 5 Feb 2016 07:00:01 +0000 (08:00 +0100)]
debian: fix build-depends

Signed-off-by: Rémi BUISSON <remi.buisson@cdiscount.com>
9 years agoMerge pull request #7578 from ceph/fix-stripper
Jason Dillaman [Tue, 9 Feb 2016 12:57:53 +0000 (07:57 -0500)]
Merge pull request #7578 from ceph/fix-stripper

Stripper: Fix incorrect push_front -> append_zero change

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoosdc/Objecter: drop lock to unregister asok hooks 7581/head
John Spray [Tue, 9 Feb 2016 12:15:56 +0000 (12:15 +0000)]
osdc/Objecter: drop lock to unregister asok hooks

unregister blocks until any running hook has
completed, and that running hook might
be one that takes the objecter lock, so you
can't hold it while unregistering.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agocommon: asok should drop lock to call hook
John Spray [Tue, 9 Feb 2016 12:11:40 +0000 (12:11 +0000)]
common: asok should drop lock to call hook

Otherwise, hooks cannot take any locks which
were held during registration of hooks, because
it creates a cycle.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoCorrectly escape block device paths for systemd 7579/head
James Page [Tue, 9 Feb 2016 11:13:00 +0000 (11:13 +0000)]
Correctly escape block device paths for systemd

Ensure that the leading / is stripped from block device
paths before escaping for using in systemd unit names.

Fixes: #14706
Signed-off-by: James Page <james.page@ubuntu.com>
9 years agomailmap: Matt Benjamin affiliation 7528/head
Yann Dupont [Mon, 8 Feb 2016 23:31:09 +0000 (00:31 +0100)]
mailmap: Matt Benjamin affiliation

Signed-off-by: Yann Dupont <yann@objoo.org>
9 years agomailmap: Emile Snyder affiliation
Yann Dupont [Mon, 8 Feb 2016 23:30:02 +0000 (00:30 +0100)]
mailmap: Emile Snyder affiliation

Signed-off-by: Yann Dupont <yann@objoo.org>
9 years agomailmap: Jonas Keidel affiliation
Yann Dupont [Mon, 8 Feb 2016 23:18:59 +0000 (00:18 +0100)]
mailmap: Jonas Keidel affiliation

Signed-off-by: Yann Dupont <yann@objoo.org>
9 years agomailmap: Alan Grosskurth affiliation
Yann Dupont [Mon, 8 Feb 2016 23:13:37 +0000 (00:13 +0100)]
mailmap:  Alan Grosskurth affiliation

Signed-off-by: Yann Dupont <yann@objoo.org>
9 years agomailmap: Alexey Sheplyakov affiliation
Yann Dupont [Mon, 8 Feb 2016 23:11:21 +0000 (00:11 +0100)]
mailmap: Alexey Sheplyakov affiliation

Signed-off-by: Yann Dupont <yann@objoo.org>
9 years agomailmap: Benoît Knecht affiliation
Yann Dupont [Mon, 8 Feb 2016 23:10:12 +0000 (00:10 +0100)]
mailmap: Benoît Knecht affiliation

Signed-off-by: Yann Dupont <yann@objoo.org>
9 years agomailmap: Chuanhong Wang affiliation
Yann Dupont [Mon, 8 Feb 2016 23:06:41 +0000 (00:06 +0100)]
mailmap: Chuanhong Wang affiliation

Signed-off-by: Yann Dupont <yann@objoo.org>
9 years agomailmap: Gu Zhongyan affiliation
Yann Dupont [Mon, 8 Feb 2016 23:04:21 +0000 (00:04 +0100)]
mailmap: Gu Zhongyan affiliation

Signed-off-by: Yann Dupont <yann@objoo.org>
9 years agomailmap: Ivan Grcic affiliation
Yann Dupont [Mon, 8 Feb 2016 23:01:03 +0000 (00:01 +0100)]
mailmap: Ivan Grcic affiliation

Signed-off-by: Yann Dupont <yann@objoo.org>
9 years agomailmap: Jeffrey Lu affiliation
Yann Dupont [Mon, 8 Feb 2016 22:57:13 +0000 (23:57 +0100)]
mailmap: Jeffrey Lu affiliation

Signed-off-by: Yann Dupont <yann@objoo.org>
9 years agomailmap: JP François affiliation
Yann Dupont [Mon, 8 Feb 2016 22:51:56 +0000 (23:51 +0100)]
mailmap: JP François affiliation

Signed-off-by: Yann Dupont <yann@objoo.org>
9 years agomailmap: Kevin Jones affiliation
Yann Dupont [Mon, 8 Feb 2016 22:49:57 +0000 (23:49 +0100)]
mailmap: Kevin Jones affiliation

Signed-off-by: Yann Dupont <yann@objoo.org>