Commit Graph

41285 Commits

Author SHA1 Message Date
Nathan Cutler
584ed2e28b ceph.spec.in: SUSE/openSUSE builds need libbz2-devel
http://tracker.ceph.com/issues/11629 Fixes: #11629

Signed-off-by: Nathan Cutler <ncutler@suse.cz>
2015-05-15 22:35:01 +02:00
Sage Weil
22984ee777 Merge remote-tracking branch 'gh/wip-11613' into next
Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-14 09:15:45 -07:00
Sage Weil
e399914600 Merge pull request #4661 from ceph/wip-11604
rgw: restore buffer of multipart upload after EEXIST

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-13 22:33:55 -07:00
Sage Weil
7e7974b149 Merge pull request #4678 from SUSE/wip-submitting-patches-typo
SubmittingPatches: fix typo

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-13 22:28:56 -07:00
Nathan Cutler
362d3b7198 SubmittingPatches: fix typo
Signed-off-by: Nathan Cutler <ncutler@suse.cz>
2015-05-14 06:55:22 +02:00
Yehuda Sadeh
2b06dc3b66 rgw: return 412 when bad limit specified on listing buckets
Fixes: #11613
Backport: hammer
For some reason the swift api requires that. This revert a change that
was made in f7b92f9988.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-13 09:39:03 -07:00
Ilya Dryomov
3ab13f161c Merge pull request #4665 from ceph/wip-11551-next
tests: disable new RBD features for the krbd fsx test

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2015-05-13 16:57:05 +03:00
Jason Dillaman
faa210ee36 tests: disable fast-diff feature for the krbd fsx test
The kernel does not yet support fast-diff.

Fixes: #11551
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-05-13 09:52:19 -04:00
Yehuda Sadeh
580ccaec12 rgw: restore buffer of multipart upload after EEXIST
Fixes #11604
Backport: hammer, firefly

When we need to restart a write of part data, we need to revert to
buffer to before the write, otherwise we're going to skip some data.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-12 17:23:35 -07:00
Kefu Chai
b29cc4c18e doc: Fix .gitignore for 'doc' directory
caused by: 156e55b7f9

Fixes: #11574
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-05-08 21:11:10 +08:00
Yuri Weinstein
b863ccbf69 Added a "ceph hello world" for a simple check for ceph-deploy qa suite
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit 13abae1863)

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2015-05-07 17:26:29 -07:00
Sage Weil
7f209b4bc8 Merge remote-tracking branch 'gh/next' 2015-05-05 09:53:51 -07:00
Josh Durgin
56be5d6ffc Merge pull request #4530 from ceph/wip-librbd-clean-object
librbd: object map is not properly updated when deleting clean objects

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-05-05 09:15:49 -07:00
Wido den Hollander
5c9e9da879 rados: Tell that pool removal failed. Not that it doesn't exist.
If removing a pool fails it could have various reasons. The pool
might be protected from removal (nodelete flag).
2015-05-05 14:22:43 +02:00
Loic Dachary
3f50b5e19e Merge pull request #4542 from liewegas/wip-sepia
sepia

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-05 09:14:06 +02:00
Josh Durgin
393b736505 Merge pull request #4387 from wonzhq/async-comp
librbd: don't notify_change on r == -ERESTART when notify async complete

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-05-04 19:15:34 -07:00
Zhiqiang Wang
63eb4326db librbd: don't notify_change on error when notify async complete
Don't need to increment the refresh_seq since the async op fails.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-05-05 09:07:57 +08:00
Samuel Just
4abacbe283 Merge pull request #4539 from athanatos/wip-11429
OSD: handle the case where we resurrected an old, deleted pg

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-04 16:36:32 -07:00
Sage Weil
9da4c45e24 doc: link to sepia report for lab info
Signed-off-by: Sage Weil <sage@redhat.com>
2015-05-04 16:34:37 -07:00
Jenkins
bd79891039 9.0.0 2015-05-04 12:32:59 -07:00
Gregory Farnum
4f45409531 Merge pull request #4537 from majianpeng/buffer-fix
bufferptr: Offset should not beyond raw_length rather than _len.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-04 11:03:08 -07:00
Kefu Chai
156e55b7f9 man: do not dist man pages if sphinx is not available
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-05-05 02:00:02 +08:00
Kefu Chai
c107b8ec74 configure.ac: do not check for sphinx-build
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-05-05 00:32:17 +08:00
Jianpeng Ma
3034213419 test/bufferlist: add test case for bufferlist::splice.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2015-05-05 00:11:47 +08:00
Jianpeng Ma
1006adbdfd bufferptr: Offset should not beyond raw_length rather than _len.
Fixes: #11526

Commit dfccd3d19c introduce this bug"
./include/buffer.h: 240: FAILED assert(_len >= o)

 ceph version 0.94-1402-g5ac962d
(5ac962d879d920805bd661857592860caae27f2b)
 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char
const*)+0x80) [0x1640e50]
 2: (ceph::buffer::ptr::set_offset(unsigned int)+0x3a) [0x1647462]
 3: (ceph::buffer::list::splice(unsigned int, unsigned int,
ceph::buffer::list*)+0x238) [0x16458ba]
 4: (JournalStream::read(ceph::buffer::list&, ceph::buffer::list*,
unsigned long*)+0x17c) [0x145588e]
 5: (Journaler::try_read_entry(ceph::buffer::list&)+0x1ef) [0x1453d65]
 6: (MDLog::_replay_thread()+0xc6a) [0x1434200]
 7: (MDLog::ReplayThread::entry()+0x1c) [0x10f0d88]
 8: (Thread::entry_wrapper()+0xa8) [0x16310ee]
 9: (Thread::_entry_func(void*)+0x18) [0x163103c]
 10: /lib64/libpthread.so.0() [0x334c607ee5]
 11: (clone()+0x6d) [0x334bef4d1d]
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is
needed to interpret this.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2015-05-05 00:05:30 +08:00
Josh Durgin
7da569fd3e Merge pull request #4514 from majianpeng/rbd
misc bugs in librbd

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-05-04 08:32:04 -07:00
Loic Dachary
5fa8fc3243 Merge pull request #4534 from tchaikov/wip-silence-gcc-warning
osd: silence gcc -Wparentheses warning

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-04 17:01:41 +02:00
Kefu Chai
9209a8f2cf osd: silence gcc -Wparentheses warning
otherwise we have following warning:
warning: suggest parentheses around operand of ‘!’ or change ‘|’ to
‘||’ or ‘!’ to ‘~’ [-Wparentheses]

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-05-04 21:49:02 +08:00
Kefu Chai
5a6140f4bf common/CompatSet: mark FeatureSet member vars private
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-05-04 21:49:02 +08:00
Jianpeng Ma
1800a996ac librbd: For format 2, don't forget set objectcache max objects.
For format 2, before create object_cache, it call init_layout and set
the max object for object cache.
In the later ictx_refresh, it only set for format1.
Now move set logic after creating object cache.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2015-05-04 10:55:01 +08:00
Jianpeng Ma
c60212b21a rbd: updated the 'rbd --help'
Now default format is 2. update 'rbd --help'.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2015-05-04 10:54:00 +08:00
Jianpeng Ma
9d07069acd librbd: remove the perfcounter l_librbd_aio_rd/write/discard_*.
Now for non-aio read/write/discard, the internal implementation used the
related aio function. So we don't differentiate the aio perfcounter from non-aio for
read/write/discard operations.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2015-05-04 10:25:14 +08:00
Jianpeng Ma
059c0d15bb librbd: Remove the redundant judgement.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2015-05-04 10:25:14 +08:00
Jianpeng Ma
e146b04ba2 librbd: Remove the redundant judgement.
For ObjectExtent, if length == object_size, it mean length=0.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2015-05-04 10:25:14 +08:00
Josh Durgin
1de75edb38 Preforker: include acconfig so includers don't have to
Fixes build of systests

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-05-01 20:26:34 -07:00
Josh Durgin
fae5157558 Merge pull request #4524 from ceph/wip-remove-fsx-c
test: update CMakefile to sync with c44f8e7

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-05-01 18:48:00 -07:00
Josh Durgin
5afed73df8 Merge pull request #4518 from yuyuyu101/wip-fix-systest-runnable
systest_runnable: Use Preforker to do fork

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-05-01 18:43:05 -07:00
Gregory Farnum
217d222383 Merge pull request #4519 from ceph/wip-flush-log
Flush cluster log before MDS::damaged

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-01 13:58:19 -07:00
Josh Durgin
fd69d5db4b Merge pull request #4529 from ceph/wip-librbd-open
librbd: invoking RBD::open twice will leak memory

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-05-01 13:55:33 -07:00
Gregory Farnum
62d5b39abc Merge pull request #4511 from yuyuyu101/wip-async-fix-7
Wip async fix 7

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-01 13:55:12 -07:00
Jason Dillaman
05a5f269d0 librbd: object map is not properly updated when deleting clean objects
With the new fast diff feature flagging which objects haven't changed
between snapshots, unmodified objects are now flagged with a new state
code in the object map.  The OBJECT_EXISTS_CLEAN state needs to be
treated as if it were OBJECT_EXISTS when deleting.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-05-01 15:07:40 -04:00
Haomai Wang
72133522c7 atomic_t: change cas to compare_and_swap and return bool
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-05-02 03:02:31 +08:00
John Spray
a0f96de277 mds: in damaged() call flush_log before ending
...so that the clog messages we send before damaged()
actually have a chance to make it to the cluster log.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-05-01 19:37:11 +01:00
John Spray
88037760f0 mon: add MonClient::flush_log
A simple reasonable-effort call for emitting
a MLog before shutting down.  Used in MDS which
also waits for its beacon to be acked, so due to
message ordering implicitly waits for this to land
too -- no need to implement a waiting log flush
for this use case.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-05-01 19:37:08 +01:00
Gregory Farnum
4b34584398 Merge pull request #4516 from yuyuyu101/wip-fix-libcephfs-crash
Wip fix libcephfs crash

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-01 11:22:59 -07:00
Jason Dillaman
a5e88fcf11 librbd: invoking RBD::open twice will leak memory
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-05-01 14:21:35 -04:00
Sage Weil
11066a39b8 Merge pull request #4492 from SUSE/wip-suse-firewall
packaging: add SuSEfirewall2 service files

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-01 11:14:01 -07:00
Yehuda Sadeh
fb693a3d1a Merge pull request #4468 from cernceph/swifty
Swift: Set Content-Length when requesting/checking Keystone tokens

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-01 10:36:53 -07:00
Samuel Just
c6c6b203ef Merge pull request #4008 from SUSE/wip-tcmalloc-conditionals
Conditional-compile against minimal tcmalloc.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-01 09:34:06 -07:00
Sage Weil
29ee7953c9 Merge pull request #3429 from liewegas/wip-precalc-pgtemp
RFC: mon: prime pg_temp when osdmap changes

Reviewed-by: Guang Yang <yguang@yahoo-inc.com>
Tested-by: Zhi (David) Zhang <zhangz@yahoo-inc.com>
2015-05-01 09:24:33 -07:00