Commit Graph

50519 Commits

Author SHA1 Message Date
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
Sage Weil
6e497e077d Merge pull request #7654 from rldleblanc/wip-wpq-optimization
osd: WeightedPriorityQueue: move to intrusive containers
2016-02-26 18:36:52 -05:00
Sage Weil
d6031c269f Merge pull request #7700 from SUSE/wip-14811
src/yasm-wrapper: ignore parameters starting with ggc-min

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2016-02-26 18:33:40 -05:00
Yehuda Sadeh
888021189c Merge pull request #7821 from rzarzynski/wip-rgw-14903
rgw: fix wrong handling of limit=0 during listing of Swift account.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-26 13:37:44 -08:00
Radoslaw Zarzynski
155f079118 rgw: change naming of utility functions in rgw_keystone.cc.
Slightly improve code formatting and const-correctness as well.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-02-26 22:20:03 +01:00
Dan Mick
a710dcca51 Merge pull request #7807 from ceph/wip-debian-fixes
debian: packaging fixes for jewel

Reviewed-by: Dan Mick <dmick@redhat.com>
2016-02-26 12:59:43 -08:00
Marcus Watts
aaa0f6fa77 Use fixed version of civetweb to avoid warning.
The warning about SSLv23_client_method is because when using dynamic
linking, this should always be non-zero.  That's inside of civetweb,
so this commit is to pull the submodule up to the fix.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
2016-02-26 12:36:08 -08:00
Marcus Watts
f3925ec5ef Fix ssl link error.
When linking against -lssl, should also include -lcrypto.

// fixup merge with previous

Signed-off-by: Marcus Watts <mwatts@redhat.com>
2016-02-26 12:30:52 -08:00
Marcus Watts
b451cbb368 Use ld.so to link in ssl crypto (cmake changes).
Using dlopen() to load in ssl crypto makes me cringe.
Also it requires either installing the devel package,
or appending library versioning to the library name
civetweb tries to load, which is ugly.  This is only
a license problem for people whose system distribution
does not include openssl.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
2016-02-26 12:29:47 -08:00
Radoslaw Zarzynski
ec186f4cf4 rgw: fix wrong handling of limit=0 during listing of Swift account.
Fixes: #14903
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-02-26 21:18:11 +01:00
Yehuda Sadeh
d7b47c260c Merge pull request #7777 from theanalyst/rgw/insecure-keystone
rgw: allow authentication keystone with self signed certs 

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-26 11:18:05 -08:00
Yehuda Sadeh
381411e350 Merge pull request #7809 from cbodley/wip-rgw-includes
rgw: use pimpl pattern for RGWPeriodHistory

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-26 10:50:04 -08:00
Yehuda Sadeh
62a2127786 Merge pull request #7822 from rzarzynski/wip-rgw-keystone-proper-parse-ordering
rgw: try to parse Keystone token in order appropriate to configuration.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-26 10:44:01 -08:00
Yehuda Sadeh
0e3e7bcada Merge pull request #7803 from oritwas/wip-14826
rgw: reset return code in when iterating over the bucket the objects

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-26 10:38:12 -08:00
Jason Dillaman
3254e49886 test: remove doubled unwatch API call
This error was unmasked by the fix included in commit 8caa2e4.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-26 13:19:38 -05:00
Jason Dillaman
82f547f17f librados: aio watch/unwatch/notify now uses completion objver
A local variable was used for an async callback operation,
resulting in the potential for memory corruption.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-26 13:19:33 -05:00
Ali Maredia
d4dd0f495b debian: remove ceph-dbg package and any traces of it
Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-02-26 13:17:25 -05:00
vsjulu
837dcc5948 XIO: Changes to fix incorrect ip being assigned in case of multiple RDMA ports.remove rdma local and return error instead to avoid issues with using rdma_local incase of multiple ports.
Signed-off-by: Subramanyam Varanasi <s.varanasi@ssi.samsung.com>
2016-02-26 10:01:27 -08:00
Ken Dreyer
3fc7fdba91 debian: remove ceph-base's dependency on -mon and -osd
The ceph-base package contains files shared between the -mon, -osd, and
-mds. In other words, the MON, OSD, and MDS servers depend on ceph-base,
but ceph-base should not depend on the leaf packages.

Reported-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2016-02-26 10:51:39 -07:00
Jason Dillaman
41e542211b tests: update rbd-mirror tests for updated commit handling
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-26 11:54:52 -05:00
Jason Dillaman
107e1145f5 journal: fix delimiter in ObjectSetPosition formater
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-26 11:54:52 -05:00
Jason Dillaman
7906737a45 journal: update JournalTrimmer to support new commit tracking
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-26 11:54:52 -05:00
Jason Dillaman
df25867527 journal: active and minimum set should always grow
Prevent async reload from canceling out an in-flight update.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-26 11:54:52 -05:00
Jason Dillaman
91ea6da859 journal: update JournalPlayer to support new commit tracking
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-26 11:54:52 -05:00
Jason Dillaman
569738701b journal: update JournalMetadata to support new commit handling
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-26 11:54:52 -05:00
Jason Dillaman
44d25fd51a journal: track commit position for each object splay offset
It's possible, when delaying appends to the journal, that the
current commit position might be in object set X while future
events for a different offset might be in an object set < X.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-26 11:54:52 -05:00
Jason Dillaman
92f24095d7 journal: differentiate corruption vs missing entry errors
librbd should treat the corruption of the journal differently from
missing journal entries.  If entries are missing, it might be the
result of a crash and the journal should just be replayed through
the most recent, consistent entry.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-26 11:50:36 -05:00