Commit Graph

50558 Commits

Author SHA1 Message Date
James Liu
6cd5e2049e fixed a bug for write bench with rados
Signed-off-by: James Liu <james.liu@ssi.samsung.com>
2016-02-29 16:25:42 -08:00
Ken Dreyer
1a84b8c4c1 Merge pull request #7826 from SUSE/wip-move-requires
RPM: move runtime dependencies to ceph-base and fix other packaging issues

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2016-02-29 16:25:38 -07:00
Yehuda Sadeh
cf812eadde rgw: aggregate usage by payer
If bucket has requester-payer property set, aggregate the usage data
on it by the user that did the operation.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2016-02-29 15:19:19 -08:00
Yehuda Sadeh
ff8305a973 rgw: fix permission check for request payer
If request_payer auth check returns false, we need to abort.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-29 15:19:02 -08:00
Samuel Just
440e9b5d56 Merge pull request #7769 from somnathr/wip-make-shared
Use make_shared while creating shared_ptr

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-02-29 15:04:28 -08:00
Samuel Just
554b643aa4 test_filejournal: reserve throttle as needed
This is awkward, if there are later users other than this test
and JournalingObjectStore, it'll be worth making it a bit less
clunky and error prone.

Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-29 11:23:58 -08:00
Samuel Just
30f548e9fb config_opts: make filestore_queue_max_(ops|bytes) U64
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-29 10:52:00 -08:00
Samuel Just
306c7bf40e Merge pull request #7765 from athanatos/wip-lost-unfound-repop
Repop and lost-unfound overhaul

Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-29 10:42:01 -08:00
Jason Dillaman
622748ae15 rbd: deprecate image format 1
The rbd cli will warn about the deprecation when attempting to create
image format 1 images.  librbd will log an error message when opening
a format 1 RBD image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-29 13:22:32 -05:00
Haomai Wang
0c0e8a0fb6 AsyncConnection: log cleanup, remove redundant state display
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-03-01 01:52:05 +08:00
Haomai Wang
324145b702 Event: complete all pending events
Fix #14925
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-03-01 01:42:50 +08:00
Nathan Cutler
4de86bf373 RPM: drop duplicate /var/lib/ceph/* directories
As of a recent commit, we had /var/lib/ceph/{mds,mon,osd} directories
packaged twice, once with %attr and once without. Drop the latter.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-02-29 17:36:57 +01:00
Nathan Cutler
275b5f28ad RPM: drop duplicate udev rules from ceph-base
The udev rules should be packaged in ceph-osd only.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-02-29 17:36:57 +01:00
Nathan Cutler
5083980f46 packaging: rados-classes libraries in ceph-base
Drop duplicate rados-classes libraries from ceph-osd and align the RPM
packaging with Debian by using a wildcard to package everything that
autotools puts in the rados-classes directory.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-02-29 17:36:39 +01:00
Haomai Wang
bd592c0f88 AsyncConnection: dispatch write handler when accept done
Fix #12912
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-03-01 00:28:27 +08:00
xie xingguo
bcff5be494 osd: fix typo
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-29 23:53:03 +08:00
xie xingguo
90d4afff37 osd: fix overload of '==' operator for pg_stat_t
The newly added fields -- 'last_peered' and 'last_became_peered'
are not compared.

Fixes: #14921
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-29 23:50:18 +08:00
Samuel Just
5f82cbe054 Merge pull request #7824 from dillaman/wip-aio-watch-notify
librados: fix test failure with new aio watch/unwatch API 

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-02-29 07:42:08 -08:00
Jason Dillaman
4b0ff1c792 Merge pull request #7832 from trociny/wip-journal-register-async
journal: async methods to (un)register and update client

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-02-29 08:53:17 -05:00
Kefu Chai
7bc42aaac5 Merge pull request #7829 from xiexingguo/xxg-wip-doc
doc: fix typo, indention etc.

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-29 21:13:10 +08:00
xiexingguo
bcc2866e0f doc: fix typo, indention etc.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-01 02:26:18 +08:00
Igor Podoski
f22a09705d Bugfix: set thread name will fail, when running as differnt user.
When using setuid/setgid, main thread don't have access to
/proc/self/task/[tid]/comm, which is owned by newly created
thread (root).

To fix this, pthread_setname_np() was moved to newly created
thread, and now it changes name for itself.

Signed-off-by: Igor Podoski <igor.podoski@ts.fujitsu.com>
2016-02-29 13:05:29 +01:00
Radoslaw Zarzynski
6fb1ceb8e5 rgw: do not enforce Content-Length in response for DELETE on Swift's SLO.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-02-29 12:16:42 +01:00
Radoslaw Zarzynski
d42829677c rgw: return proper etag in response for PUT on Swift's SLO.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-02-29 12:16:42 +01:00
Radoslaw Zarzynski
dcd6c4ad33 rgw: ONLY code refactoring in RGWGetObj::handle_slo_manifest.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-02-29 12:16:42 +01:00
Radoslaw Zarzynski
44b87bdb7f rgw: calculate etag for SLOs of Swift API.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-02-29 12:16:42 +01:00
Radoslaw Zarzynski
c27d27924d rgw: culculate etag for DLOs of Swift API.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-02-29 12:16:42 +01:00
John Spray
4b172fd27d pybind: update ceph_volume_client for cython
No need to explicitly touch the (no-longer-existing)
load_libcephfs method during module load, as with
the cython version we already get an ImportError
if the C library is unavailable.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-02-29 11:36:57 +01:00
John Spray
7f03c0e5b2 pybind: fix error handling on getxattr
The ctypes bindings returned empty string
instead of raising exception.  This was a bug,
because it made it impossible to detect the
difference between missing xattr and empty
xattr.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-02-29 11:36:40 +01:00
Mehdi Abaakouk
10f125f765 pybind: move cephfs to Cython
This change moves cephfs binding to Cython.

Closes-bug: #14818
Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-02-29 10:58:52 +01:00
Robert LeBlanc
8aa159befa doc: osd-config Add Configuration Options for op queue.
Signed-off-by: Robert LeBlanc <robert.leblanc@endurance.com>
2016-02-28 10:06:33 -07:00
Kefu Chai
8c054f741a Merge pull request #7747 from vsjulu/master
xio: fix incorrect ip being assigned in case of multiple RDMA ports

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-28 00:01:55 +08:00
Yehuda Sadeh
894738f845 Merge pull request #7630 from rzarzynski/wip-rgw-admin-token-cache
rgw: add support for caching of Keystone admin token.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-27 06:22:09 -08:00
Yehuda Sadeh
04884be986 Merge pull request #7825 from ceph/wip-rgw-openssl
rgw: link civetweb with openssl (Sage, Marcus Watts)

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-27 06:17:15 -08:00
Nathan Cutler
cba211dfa8 packaging: pkg_resources.py runtime dependency
ceph-detect-init uses pkg_resources.py

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

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-02-27 14:59:54 +01:00
Nathan Cutler
45ede095e2 ceph.spec.in: move ceph-disk runtime dependency to ceph-osd
ceph-disk uses sgdisk, which resides in the gdisk and gptfdisk packages on
RHEL and SUSE derivatives, respectively.

ceph-disk is included in the ceph-osd package, so the sgdisk dependency
belongs there.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-02-27 14:59:54 +01:00
Nathan Cutler
8b04c2b4e6 ceph.spec.in: drop support for ancient SUSE versions
In Jewel, there is no reason to support anything less than openSUSE 13.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-02-27 14:59:54 +01:00
Nathan Cutler
1a0bb0f687 packaging: move python-flask runtime dependency to ceph-mon, radosgw
Flask is used by MON (in the Ceph REST API) and by RGW (powerdns).
Therefore, it only needs to be in the ceph-mon and ceph-radosgw packages.

Also, this commit encloses the specification of the python-flask runtime
dependency in distro-conditional blocks to account for a minor difference
in the package name between RHEL and SUSE.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-02-27 14:59:54 +01:00
Nathan Cutler
608dd28713 RPM: align runtime dependencies with Debian packaging
The ceph package is now a metapackage, so move all its runtime dependencies
to ceph-base as we already have done in the Debian packaging.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-02-27 14:59:54 +01:00
xiexingguo
083a0064a3 osd: update sprintf() to snprintf()
Which is safer. Also enlarge length of name to 32, which shall be
big enough to hold a int64_t value.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-27 21:28:09 +08:00
xiexingguo
8101df0024 osd: fix typo
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-27 21:28:02 +08:00
xiexingguo
0d4be187eb osd: improve get_net_marked_out() a little bit
For the sake of performance.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-27 21:27:53 +08:00
xiexingguo
73784f0b2c osd: fix wrong return type of find_osd_on_ip()
Fixes: #14872
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-27 21:27:42 +08:00
Mykola Golub
9453967f62 test: add tests to (un)register and update journal client
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-02-27 14:59:11 +02:00
Haomai Wang
3e18f564ed Revert "AsyncConnection: Close connection when unregistered connection met WAIT"
This reverts commit 9cc1055eb6.

Fix #14912
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-27 20:50:48 +08:00
Mykola Golub
a4527c3cf5 journal: async methods to (un)register and update client
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-02-27 12:33:13 +02:00
Mykola Golub
378f4c73ba cls::journal: async client_unregister
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-02-27 12:33:04 +02:00
Marcus Watts
86718592c0 cmake fix: build civetweb with the right include path.
In an earlier commit, civetweb.c got moved into a separate cmake 'object'
library civetweb_common_objs so that it could be built just once for use
with several different targets.  At the time, there was a separate global
"include_directory" to give the right include path for including "civetweb.h".
A later commit in master created an rgw_a library, and restricted civetweb.h's
include path for only building rgw_a objects.  So, as the product of
these these two commits, the target_include_directories command for the
civetweb include path now needs to be applied to civetweb_common_objs
and not rgw_a.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
2016-02-27 02:34:14 -05:00
Sage Weil
74d698a406 Merge pull request #7650 from avnerbh/fix1_rand
msg: add thread safety for "random" Messenger + fix wrong usage of random functions

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-02-26 18:58:28 -05:00
Sage Weil
0499ca89a0 Merge pull request #7651 from xiexingguo/xxg-wip-fixtypecheck
osd: bluestore: improve fs-type verification and tidy up

Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-26 18:57:19 -05:00