Commit Graph

50602 Commits

Author SHA1 Message Date
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
Radoslaw Zarzynski
80f34dcb98 rgw: try to parse Keystone token in order appropriate to configuration.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-02-26 17:41:27 +01:00
Abhishek Lekshmanan
5d4173543f rgw: add insecure option to the http client
This allows the http client to turn off ssl certificate peer checking,
which is turned on by default. This is useful in cases like when
Keystone is SSL terminated with a self signed certificate.
The option `rgw_keystone_verify_ssl` (default true) can be toggled if
self signed certs are used, so that swift and s3 apis using keystone
authentication can work.

Fixes: #14583
Reported-by: Karol Mroz <mroz.karol@gmail.com>
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-02-26 17:20:01 +01:00
Casey Bodley
dff62e47ef rgw: use pimpl pattern for RGWPeriodHistory
this removes the dependency on RGWPeriod from rgw_rados.h, which breaks
a circular dependency between rgw_rados.h -> rgw_metadata.h ->
rgw_period_history.h -> rgw_rados.h

Reported-by: Willem Jan Withagen <wjw@digiware.nl>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-02-26 10:54:03 -05:00
Sage Weil
39671f1f4d doc: final v9.2.1 release notes
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-26 10:24:22 -05:00
Sage Weil
8689a61504 Merge pull request #7694 from Abhishekvrshny/wip-infernalis-release-notes
release-notes: draft v9.2.1 release notes
2016-02-26 10:24:20 -05:00
Zack Cerza
2a80042728 rbd/run_cli_tests.sh: Reflect test failures
Signed-off-by: Zack Cerza <zack@redhat.com>
2016-02-26 08:01:30 -07:00
Sage Weil
d3db533a4f Merge pull request #7813 from xiexingguo/xxg-wip-doc
doc: small fixes
2016-02-26 09:54:20 -05:00
xiexingguo
ca50f42359 doc: batch small fixes, including typo, syntax etc.
Signed-off-by: xiexingguo <xie.xingguo@zte.com.cn>
2016-02-26 23:25:02 +08:00
xiexingguo
dc7e027ea5 doc: fix typo
Signed-off-by: xiexingguo <xie.xingguo@zte.com.cn>
2016-02-26 22:39:57 +08:00
xie xingguo
b33984b4d1 os/bluestore/NVMEDevice: remove unused variables ref
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-26 19:06:14 +08:00
xie xingguo
8abffb9aeb os/bluestore/NVMEDevice: fix error handling for try_get()
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-26 19:06:14 +08:00
xie xingguo
e2bbce790f os/bluestore/NVMEDevice: fix error handling for open()
According to Linux man page, the system call read() may return zero to indicate
that end of file reached on success. So below here we need to convert the result
code to a customized one in this case as errno is not set and we actually want
let caller know something is going wrong.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-02-26 19:03:56 +08:00
Hector Martin
2cf7c4a932 configure.ac: boost_iostreams is required, not optional
Signed-off-by: Hector Martin <marcan@marcan.st>
2016-02-26 19:16:14 +09:00
Piotr Dałek
c9a40adfa1 msg/async: don't calculate msg header crc when not needed
There was a missing condition that caused to calculate outgoing message
header CRC even if CRC checking was disabled in Ceph configuration.
This change fixes that.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2016-02-26 10:18:11 +01:00
Kefu Chai
c05300b182 log: segv in a portable way
this piece of code creates a SEGV from logging code to verify a
bug fix at e3fe18a.

clang will delete the null-referencing code. so we need to either
- pass -Wnonull-dereference to $(CC)
- or use  __builtin_trap() offered by GCC/clang
- or use `volatile`
seems volatile is easier and probably more portable.

Fixes: #14856
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-02-26 15:19:45 +08:00
Loic Dachary
86e2987fcf Merge pull request #7805 from ErwanAliasr1/evelu-check-btrfs
Fixing BTFS issue at 'make check'

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-02-26 11:34:42 +07:00
Haomai Wang
e236ebdc25 Merge pull request #7802 from branch-predictor/bp-increase-async-threads
config: increase default async op threads

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-02-26 10:45:45 +08:00
Ali Maredia
5f935455ac Merge pull request #7808 from cbodley/wip-cmake-jerasure
cmake: add ErasureCode.cc to jerasure plugins
2016-02-25 15:09:09 -05:00
Casey Bodley
753221e2cf cmake: add ErasureCode.cc to jerasure plugins
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-02-25 14:58:18 -05:00
Sage Weil
aa92f9dff0 rgw: link against system openssl (instead of dlopen at runtime)
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-25 11:44:10 -08:00
Samuel Just
e7edf20fb7 osd/: Use MOSDPGUpdateLogMissing to implement mark_unfound_lost_delete safely
Using a MOSDPGLog was unsafe since it is not ordered with
respect to repops.  Instead, use a new message sent through
the same paths as repops.

Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-25 11:13:59 -08:00
Samuel Just
88ee4e7548 osd/,messages/: add MOSDPGUpdateLogMissing[Reply]
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-25 11:13:59 -08:00
Samuel Just
b8e5843136 os/: add try_rename
Similar to collection_move_rename, except we ignore ENOENT and
don't allow different collections.

Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-25 11:13:55 -08:00
Samuel Just
9f4cba31d7 Throttle: add BackoffThrottle unit tests
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-25 11:11:46 -08:00
Samuel Just
c9861a0f79 doc/.../throttles*: update the docs to reflect the throttle changes
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-25 11:11:46 -08:00
Samuel Just
f54e563c69 Journal: replace the journal throttle with fullness backoff throttle
The existing FileJournal::throttle_(ops|bytes) throttles overlap with
the FileStore op queue throttles.  It doesn't seem important whether
pending ops are waiting on the journal or the backing fs, so the
FileJournal ones are out.  Instead, there is now a throttle which
is taken in queue_transaction and released in _committed_thru
(after sync) which reflects the current fullness of the journal
and gradually delays ops as the journal fills up.  The intention is
to smooth out workloads on small journals.

Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-25 11:11:46 -08:00
Samuel Just
83baa1f8d2 FileJournal: use queue size explicitely in aio backoff
Using the throttle here is sketchy, mainly because we won't wake
up if something new is queued.  Let's do it explicitely.

Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-25 11:11:46 -08:00
Samuel Just
a00bed349b FileStore: use BackoffThrottle for the op queue
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-25 11:11:46 -08:00
Samuel Just
b0a8b1cef4 throttle: add a BackoffThrottle implementation
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-02-25 11:11:44 -08:00
Casey Bodley
0dd061c3ed Merge pull request #7748 from ceph/wip-cmake-2-22-16
cmake: fix paths to various EC source files
2016-02-25 14:06:16 -05:00
Ali Maredia
83b4aab3a8 cmake: installing _tp libraries into lib
Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-02-25 14:02:11 -05:00