Commit Graph

41416 Commits

Author SHA1 Message Date
Loic Dachary
5736948bfb Merge pull request #4637 from SUSE/wip-rados-gw-comment-fix
doc: rgw: fix typo in comments

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-10 20:13:37 +02:00
Nathan Cutler
05cf0db22d doc: rgw: fix typo in comments
Signed-off-by: Nathan Cutler <ncutler@suse.cz>
2015-05-10 18:17:53 +02:00
Sage Weil
0334897159 Merge pull request #4628 from dachary/wip-releases
doc: add release numbering explanation
2015-05-08 15:01:52 -07:00
Loic Dachary
67fd3c4ef1 doc: add release numbering explanation
Mostly copy pasted from Sage's email "The first infernalis dev release
will be v9.0.0".

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-08 22:31:23 +02:00
Loic Dachary
0968134264 doc: move the release cycle after the timeline
The timeline is a useful reference and the reader should not have to
scroll down to see it. Move the release cycle after the timeline.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-08 22:31:19 +02:00
Josh Durgin
640902e2e3 Merge pull request #4541 from jbernard/master
common/admin_socket: close socket descriptor in destructor

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-05-08 11:50:38 -07:00
Josh Durgin
0543003f43 Merge pull request #4623 from ceph/wip-11577
librbd: possible deadlock during copyup

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-05-08 11:44:35 -07:00
Jason Dillaman
ee54e71d09 librbd: object map clean state valid only for fast-diff
The deep-flatten feature bit is incorrectly used to determine
whether to set the object map to clean.  It should use the
fast-diff feature bit.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-05-08 13:32:09 -04:00
Jon Bernard
88fabb1ee6 common/admin_socket: close socket descriptor in destructor
Long-running processes that do not reuse a single client connection will
see accumulating file descriptors as a result of not closing the
listening socket.  In this case, eventually the system will reach
file-max and subsequent connections will fail.

Fixes: #11535

Signed-off-by: Jon Bernard <jbernard@tuxion.com>
2015-05-08 11:54:06 -04:00
Kefu Chai
92bcf6c5ec Merge pull request #4621 from dachary/wip-pip-timeout
install-deps.sh: increase pip install timeout

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-05-08 23:49:46 +08:00
Yehuda Sadeh
4dc60d9a1e Merge pull request #4601 from oritwas/nss-cmake
cmake fixes
2015-05-08 08:19:41 -07:00
Loic Dachary
dc863fb75e install-deps.sh: increase pip install timeout
It is not uncommon for pip install to timeout with:

   Cannot fetch index base URL https://pypi.python.org/simple

because the default timeout is 15 seconds. When running from a CI, it
translates into bursts of false negatives when the network is saturated.

Increase the timeout to 10 minutes which is hopefully large enough to
only happen when there is a serious network problem.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-08 17:06:25 +02:00
Kefu Chai
a23933e4cc Merge pull request #4588 from dachary/wip-11398-kill-daemons
tests: ceph-helpers kill_daemons fails when kill fails

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-05-08 18:26:09 +08:00
Kefu Chai
6c2182deb2 Merge pull request #4616 from ceph/wip-fix-FTBFS-boost-1.58
mon: remove unused variable

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-08 18:18:05 +08:00
Orit Wasserman
f43bf2ec13 cmake: add common_utf8 lib to link unittest_str_map
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2015-05-08 10:59:42 +02:00
Orit Wasserman
1fd2885887 cmake: Add missing pthread lib
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2015-05-08 10:59:42 +02:00
Orit Wasserman
6ce5262853 cmake add mds and librbd missing files
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2015-05-08 10:59:42 +02:00
Orit Wasserman
31b9dc4f99 cmake: add crc assembley files
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2015-05-08 10:59:42 +02:00
Kefu Chai
3222417451 Merge pull request #4615 from dachary/wip-11575-pip-log
tests: pip must not log in $HOME/.pip

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-05-08 16:51:09 +08:00
Loic Dachary
0e26e9f72b tests: ceph-helpers kill_daemons fails when kill fails
Instead of silently leaving the daemons running, it returns failure so
the caller can decide what to do with this situation. The timeout is
also extended to minutes instead of seconds to gracefully handle the
rare situations when a machine is extra slow for some reason.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-08 10:31:00 +02:00
Kefu Chai
e7b196a4a0 mon: remove unused variable
* as a side effect, this change silences
  http://tracker.ceph.com/issues/11576

Fixes: #11576
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-05-08 16:01:23 +08:00
Loic Dachary
c255e809fa install-deps.sh: exit on error if dependencies cannot be installed
Now that pre-installing pip dependencies is done at the end of the
script, the last command to run is no longer the installation
command. Therefore the status of the script is no longer the status of
the install command and no longer reflect success or failure to install
the dependencies. Add explicit || exit 1 to commands that are to be
treated as fatal errors.

Also set -e so that another error has a better chance to be caught.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-08 09:46:02 +02:00
Loic Dachary
7b28a6fd87 tests: pip must not log in $HOME/.pip
Because it may not have permission to when running in a container and
scripts run from source are not expected to modify anything outside of
the source tree anyway.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-05-08 08:59:34 +02:00
Gregory Farnum
4a68b737da Merge pull request #4614 from ceph/wip-11574-fix-FTBFS
json_sprit: fix the FTBFS on old gcc

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-07 21:55:36 -07:00
Kefu Chai
6b68b27146 json_sprit: fix the FTBFS on old gcc
Fixes: #11574
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-05-08 12:01:19 +08:00
Haomai Wang
eb32123508 Merge pull request #4611 from yuyuyu101/wip-async-fix-9
AsyncConnection: verify connection's state is expected
2015-05-08 11:00:08 +08:00
Haomai Wang
74f3b5c3a0 AsyncConnection: verify connection's state is expected
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-05-08 10:24:37 +08:00
Yan, Zheng
125ab922d1 Merge pull request #4604 from ceph/wip-11568
#11568: fix error handling in check_pool_perm
2015-05-08 09:13:26 +08:00
Josh Durgin
4ccb644981 Merge pull request #4608 from ceph/wip_11547
Added a "ceph hello world" for a simple check for ceph-deploy qa suite

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-05-07 17:18:15 -07:00
Yuri Weinstein
13abae1863 Added a "ceph hello world" for a simple check for ceph-deploy qa suite
Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
2015-05-07 17:12:35 -07:00
Gregory Farnum
18617567a2 Merge pull request #4520 from ceph/wip-mds-damage-handling
MDS: improve handling of damaged metadata

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-07 16:26:57 -07:00
Gregory Farnum
c7a0f9c832 Merge pull request #4607 from dachary/wip-11532-limits
tests: need 1024 files per process not 100024

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-07 16:18:40 -07:00
Loic Dachary
f36bd0e967 tests: need 1024 files per process not 100024
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-08 01:14:47 +02:00
Jason Dillaman
8cbd92b1fe librbd: ObjectMap::aio_update can acquire snap_lock out-of-order
Detected during an fsx run where a refresh and CoR were occurring
concurrently.  The refresh held the snap_lock and was waiting on
the object_map_lock, while the CoR held object_map_lock and was
waiting for snap_lock.

Fixes: #11577
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-05-07 19:03:09 -04:00
Gregory Farnum
27c1982757 Merge pull request #4605 from dachary/wip-11532-limits
tests: fail make check if nproc is too low

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-07 15:59:52 -07:00
Loic Dachary
0e9598635d tests: fail make check if nproc is too low
When running tests in parallel with make -jX, the ulimit -u (number of
processor / thread per user) needs to be at least X * 1024. If not it
will fail in mysterious ways. Since there is no convenient way to figure
out the value of X ( see
http://blog.jgc.org/2015/03/gnu-make-insanity-finding-value-of-j.html
for a non trivial an entertaining solution) add a very conservative
check that assumes the user will run make -jX where X is nproc / 2.

It will be annoying for users who want to run make check, not use -j,
and have a low ulimit -u. But the error suggest a way to override this
with

   make CHECK_ULIMIT=false check

This is a minor irritation compared to the puzzling behavior of make
check when ulimit is exceeded.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-08 00:55:55 +02:00
Sage Weil
19eb2010e2 Merge pull request #4599 from dachary/wip-releases
release cycle / timeline updates

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-07 14:19:38 -07:00
Loic Dachary
0c715f6971 Merge pull request #4532 from dachary/wip-init-system-detection
ceph-detect-init helper and associated tests

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-07 22:21:26 +02:00
John Spray
e08cf25caf client: fix error handling in check_pool_perm
Previously, on an error such as a pool not existing,
the caller doing the check would error out, but
anyone waiting on waiting_for_pool_perm would
block indefinitely (symptom was that reads on a
file with a bogus layout would block forever).

Fix by triggering the wait list on errors and
clear the CHECKING state so that the other callers
also perform the check and find the error.

Additionally, don't return the RADOS error code
up to filesystem users, because it can be
misleading.  For example, nonexistent pool is
ENOENT, but we shouldn't give ENOENT on IO
to a file which does exist, we should give EIO.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-05-07 18:46:38 +01:00
John Spray
289ee3b80c client: use SaferCond in check_pool_perm
Just because it's easier to read.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-05-07 18:46:38 +01:00
Haomai Wang
25c23c30de Merge pull request #4543 from yuyuyu101/wip-async-fix-8
Wip async fix 8
2015-05-08 00:27:03 +08:00
Orit Wasserman
95c2187592 Merge pull request #4003 from ceph/wip-fix-cmake-nss
Fix nss for cmake
2015-05-07 18:14:57 +02:00
Kefu Chai
410175be89 Merge pull request #3743 from trociny/wip-osd_create
mon: osd create: add optional 'id' parameter

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2015-05-08 00:13:37 +08:00
Josh Durgin
e1d0f2f193 Merge pull request #4422 from ceph/wip-10154
librbd: deep-flatten of cloned images

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-05-07 08:29:25 -07:00
Loic Dachary
ac89b8fccf Merge pull request #4603 from ceph/wip-11557
librbd: fast diff should treat all _EXISTS objects as dirty

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-07 17:09:18 +02:00
Danny Al-Gaaf
7289542760 src/CMakeLists.txt: fix build to work with nss
Add nss and nspr include dirs to CXX_FLAGS if all dependencies
are found.

the ceph-authtool target needs also ${CRYPTO_LIBS}.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-05-07 13:26:23 +02:00
Danny Al-Gaaf
4bb8843476 CMakeLists.txt: fix detection of nss
Libnss needs also to check for libnspr and add the related
-l targets to CRYPTO_LIBS, otherwise the build will fail.

Make sure USE_NSS is set correctly to 0 if cryptopp found
and in case nss was found set USE_CRYPTOPP also to 0.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-05-07 13:26:18 +02:00
Danny Al-Gaaf
67e2caa6fe crypto: fix cmake error '#elif with no expression'
It needs to be '#elif defined()' to work with cmake.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-05-07 13:23:37 +02:00
Danny Al-Gaaf
ff4993310f CMake: add FindNSPR.cmake
The nss lib needs the nspr library to build. Add file to
get the nspr lib/includes from the pc file.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-05-07 13:19:50 +02:00
John Spray
a7ffd8d19b Merge pull request #4460 from yuyuyu101/wip-fix-pycephfs
Libcephfs: Add python bindings

Reviewed-by: John Spray <john.spray@redhat.com>
2015-05-07 11:58:26 +02:00