Commit Graph

26217 Commits

Author SHA1 Message Date
Sage Weil
f0958c36fd Merge pull request #321 from dalgaaf/wip-da-CID-727981
kv_flat_btree_async.cc: fix AioCompletion resource leak
2013-05-27 13:55:54 -07:00
Sage Weil
35a8c6160c Merge pull request #320 from dalgaaf/wip-da-CID-727983
kv_flat_btree_async.cc: fix resource leak
2013-05-27 13:55:24 -07:00
John Wilkins
615b54c6e4 doc: Updated rgw.conf example.
fixes: #4608

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-25 15:13:01 -07:00
John Wilkins
6f935419e6 doc: Updated RGW Quickstart.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-25 15:11:49 -07:00
John Wilkins
e59897c8b2 doc: Updated index for newer terms.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-25 15:11:06 -07:00
Samuel Just
6d1e14e045 pg_pool_t: enable FLAG_HASHPSPOOL by default
Fixes: #5160
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-24 16:21:48 -07:00
Danny Al-Gaaf
0f5474834a kv_flat_btree_async.cc: fix AioCompletion resource leak
Call AioCompletion::release() if the completion is no longer
needed to free the resources.

CID 727981 (#3 of 3): Resource leak (RESOURCE_LEAK)
  leaked_storage: Variable "top_aioc" going out of scope leaks the
  storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-24 14:50:34 +02:00
Danny Al-Gaaf
7b438e131b kv_flat_btree_async.cc: fix resource leak
Call AioCompletion::release() if the completion is no longer
needed to free the resources.

CID 727983 : Resource leak (RESOURCE_LEAK)
  leaked_storage: Variable "aioc" going out of scope leaks the
  storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-24 14:43:17 +02:00
John Wilkins
bb407bfd10 doc: Updated Ceph FS Quick Start.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-23 17:02:17 -07:00
John Wilkins
7c497d95db doc: Added troubleshooting to Ceph FS index.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-23 17:01:51 -07:00
John Wilkins
3dda794a66 doc: Added separate troubleshooting for MDS and Ceph FS.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-23 17:01:29 -07:00
John Wilkins
75600c6aaf doc: Updates for ceph-deploy and cuttlefish.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-23 11:45:14 -07:00
Sage Weil
8b2fbf21b8 Merge pull request #312 from ceph/wip-osd-hb
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-05-23 10:17:14 -07:00
Sage Weil
e8d0dc762f Merge branch 'next' 2013-05-23 08:49:10 -07:00
Xiaoxi Chen
e09e94424b modified: src/init-ceph.in
fixed bug in init script, the "df" should be run on remote host by do_cmd,
	and use $host instead of "hostname -s"

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
(cherry picked from commit 1dd99f0fc9)

Conflicts:

	src/init-ceph.in
2013-05-23 08:48:24 -07:00
Sage Weil
f9ec5a7945 msgr: increase port range to 6900-7300 (from -7100)
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-23 08:46:18 -07:00
Sage Weil
2802430af7 Merge pull request #307 from xiaoxichen/master
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-23 08:45:55 -07:00
Xiaoxi Chen
1dd99f0fc9 modified: src/init-ceph.in
fixed bug in init script, the "df" should be run on remote host by do_cmd,
	and use $host instead of "hostname -s"

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
2013-05-23 09:33:27 +08:00
Sage Weil
27381c0c62 osd: ping both front and back interfaces
Send ping requests to both the front and back hb addrs for peer osds.  If
the front hb addr is not present, do not send it and interpret a reply
as coming from both.  This handles the transition from old to new OSDs
seamlessly.

Note both the front and back rx times.  Both need to be up to date in order
for the peer to be healthy.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 16:13:37 -07:00
Sage Weil
92a558bf0e msgr: add Messenger reference to Connection
This allows us to get the messenger associated with a connection.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 16:13:37 -07:00
Sage Weil
28851424bf msgr: take an arbitrary set of ports to avoid binding to
We used to only need to avoid 2 ports; now we need 3.  Make it a set so we
don't have this problem later.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 16:13:37 -07:00
Sage Weil
6ad1055139 osd: bind front heartbeat messenger to public_addr
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 16:13:37 -07:00
Sage Weil
0262301b3a osd: send hb front addr to monitor at boot
We still aren't binding it to anything yet, or putting it in the OSDMap.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 16:13:37 -07:00
Sage Weil
da1940a21c osd: create front and back hb messenger instances
The hb_front messenger is not used yet.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 16:11:17 -07:00
Sage Weil
1fee4ccd52 osd/OSDMap: encode front heartbeat addr
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 16:08:23 -07:00
Sage Weil
342eed36fb osd/OSDMap: hb_addr -> hb_back_addr
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 16:04:04 -07:00
Sage Weil
cf977ce605 osd/OSDMap: new_hb_up -> new_hb_back_up
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 16:04:02 -07:00
Sage Weil
6cfdb74e82 osd/OSDMap: new_up_internal -> new_up_cluster
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 16:03:36 -07:00
David Zafman
3fa65852e1 osd: Add asserts for seg faults caused by corrupt OSDs
fixes: #5139

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-05-22 15:55:23 -07:00
Sage Weil
c2e262fc94 osd: skip mark-me-down message if osd is not up
Fixes crash when the OSD has not successfully booted and gets a
SIGINT or SIGTERM.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 15:03:50 -07:00
Sage Weil
32dc463ad4 osd, mds: shut down async signal handler on exit
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 14:56:24 -07:00
Alex Elder
4a8d9962be rbd image_read.sh: ensure rbd is loaded
Make sure rbd is loaded before proceeding with the script.

Signed-off-by: Alex Elder <elder@inktank.com>
2013-05-22 16:50:19 -05:00
Sage Weil
eb91f41042 messages/MOSDMarkMeDown: fix uninit field
Fixes valgrind warning:
==14803== Use of uninitialised value of size 8
==14803==    at 0x12E7614: sctp_crc32c_sb8_64_bit (sctp_crc32.c:567)
==14803==    by 0x12E76F8: update_crc32 (sctp_crc32.c:609)
==14803==    by 0x12E7720: ceph_crc32c_le (sctp_crc32.c:733)
==14803==    by 0x105085F: ceph::buffer::list::crc32c(unsigned int) (buffer.h:427)
==14803==    by 0x115D7B2: Message::calc_front_crc() (Message.h:441)
==14803==    by 0x1159BB0: Message::encode(unsigned long, bool) (Message.cc:170)
==14803==    by 0x1323934: Pipe::writer() (Pipe.cc:1524)
==14803==    by 0x13293D9: Pipe::Writer::entry() (Pipe.h:59)
==14803==    by 0x120A398: Thread::_entry_func(void*) (Thread.cc:41)
==14803==    by 0x503BE99: start_thread (pthread_create.c:308)
==14803==    by 0x6C6E4BC: clone (clone.S:112)

Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 14:29:37 -07:00
Sage Weil
70c9851a55 mds: weaken reconnect assertion
See #5031.  This appears to be populated with another mds's mdsdir; just
not asserting avoids the problem for the time being.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 14:11:40 -07:00
Sage Weil
b0d64de484 Merge pull request #316 from ceph/wip-sysvinit
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-05-22 13:25:42 -07:00
Sage Weil
d81d0ea5c4 sysvinit: fix osd weight calculation on remote hosts
We need to do df on the remote host, not locally.

Simlarly, the ceph command uses the osd key, which exists remotely; run it there.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 12:39:11 -07:00
Sage Weil
caa15a34cb sysvinit: use known hostname $host instead of (incorrectly) recalculating
We would need to do hostname -s on the remote node, not the local one.
But we already have $host; use it!

Reported-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 12:39:10 -07:00
Sage Weil
85cd1d9f36 Merge pull request #314 from ceph/wip-4228
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-22 10:33:35 -07:00
Samuel Just
0289c445be OSDMonitor: skip new pools in update_pools_status() and get_pools_health()
New pools won't be full.  mon->pgmon()->pg_map.pg_pool_sum[poolid] will
implicitly create an entry for poolid causing register_new_pgs() to assume that
the newly created pgs in the new pool are in fact a result of a split
preventing MOSDPGCreate messages from being sent out.

Fixes: #4813
Backport: cuttlefish
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-22 10:23:25 -07:00
Joao Eduardo Luis
751b73af4f ceph-syn: specify which types of addresses to pick
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-05-22 18:18:19 +01:00
Joao Eduardo Luis
a43d3531b7 ceph-mds: specify which types of addresses to pick
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-05-22 18:18:19 +01:00
Sage Weil
2c58b790ff Merge pull request #315 from ceph/wip-4507
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-22 10:15:51 -07:00
Joao Eduardo Luis
de499676a6 mon: PaxosService: drop atomic_t on 'proposing'
We don't need this to be atomic -- a simple boolean is enough.

Fixes: #4507

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-05-22 18:05:41 +01:00
Joao Eduardo Luis
c307d427d1 ceph-osd: specify which types of addresses to pick
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-05-22 17:57:38 +01:00
Joao Eduardo Luis
6d8932304c ceph-mon: only care about public addr during pick_addresses()
Fixes: #4228

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-05-22 17:57:38 +01:00
Joao Eduardo Luis
1ba9f84db6 common: add mask argument to pick_addresses() to specify what we need
Fixes: #4228

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-05-22 17:57:37 +01:00
Sage Weil
78a1834d81 ceph: remove cli test
This is about to be removed by wip-ceph-cli anyway.  And it broke in
commit 132d5bf7f9.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-22 09:39:11 -07:00
Sage Weil
308d7c4609 Merge pull request #297 from dalgaaf/wip-da-CID-727982
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-22 08:54:56 -07:00
Sage Weil
0e733ba58b Merge pull request #310 from dalgaaf/wip-da-CID-fixes-4
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-22 08:37:09 -07:00
Danny Al-Gaaf
549e547b3b mds/Migrator.cc: fix possible dereference NULL return value
CID 716997 (#1 of 1): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "in" when
  calling "MDSCacheObject::is_auth() const".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-22 17:28:06 +02:00