Commit Graph

41280 Commits

Author SHA1 Message Date
Zhe Zhang
73d16f69d6 mon: Total size of OSDs is a maginitude less than it is supposed to be.
When dumping statistics of OSDs such as running command "ceph osd df",
the sum of OSDs' size is 2^10 times less than their real size.

Signed-off-by: Zhe Zhang <zzxuanyuan@gmail.com>
2015-05-05 18:08:48 -05:00
Sage Weil
e324578b1e Merge pull request #4554 from liewegas/wip-cleanup
9.0.0 release notes, scripts cleanup

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-05 14:47:42 -07:00
Sage Weil
538e6eafb9 doc/release-notes: 9.0.0
Signed-off-by: Sage Weil <sage@redhat.com>
2015-05-05 14:37:04 -07:00
Sage Weil
c9a6e60eee src/script: remove obsolete scripts
These are mostly from gather graph data for very early versions of ceph and
are not useful anymore.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-05-05 13:35:29 -07:00
Loic Dachary
2e9e3ba421 Merge pull request #4550 from ktdreyer/wip-submittingpatches-backports
SubmittingPatches: clarify backport procedure

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-05 19:42:21 +02:00
Ken Dreyer
9282f15d05 SubmittingPatches: clarify backport procedure
Developers should not add "Backport: " fields to Git commits, because
this data is immutable after the commits are merged. It makes more sense
to handle this information in Redmine instead.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2015-05-05 11:27:46 -06: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
Sage Weil
8d596bfa24 Merge branch 'wip-journal-header' of git://github.com/XinzeChi/ceph
Conflicts:
	src/gmock
2015-05-01 09:22:01 -07:00
Samuel Just
b5fa1607ee Merge pull request #3474 from majianpeng/fix5
buffer: optimize get_contiguous

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-01 09:17:54 -07:00
Sage Weil
a38baa016e Merge pull request #3896 from ceph/wip-auth
auth: optimize crypto key handling, msg sig checks

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-01 09:17:13 -07:00
Sage Weil
eba5956986 Merge pull request #3975 from wonzhq/skip-cache
osd: flush/evict op fixes

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-01 09:16:05 -07:00
Sage Weil
cb979eb585 Merge pull request #4362 from XinzeChi/wip-tier-lat
osd: misc latency perf counter for tier pool

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-01 09:15:24 -07:00