Commit Graph

26508 Commits

Author SHA1 Message Date
Danny Al-Gaaf
9785478a2a ceph-disk: remove unnecessary semicolons
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-24 12:46:15 +02:00
Danny Al-Gaaf
16ecae153d ceph-disk: cast output of _check_output()
Cast output of _check_output() to str() to be able to use
str.split().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-24 12:41:11 +02:00
Danny Al-Gaaf
9429ff90a0 ceph-disk: fix undefined variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-24 12:33:16 +02:00
Danny Al-Gaaf
c127745cc0 ceph-disk: add missing spaces around operator
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-24 12:29:07 +02:00
Samuel Just
8c1c2d98c6 Merge branch 'wip_scrub_tphandle' into next
Fixes: #5159
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-23 20:08:54 -07:00
Samuel Just
86822485e5 PG: ping tphandle during omap loop as well
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-23 19:42:32 -07:00
Samuel Just
d62716dd4c PG: reset timeout in _scan_list for each object, read chunk
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-23 19:42:32 -07:00
Samuel Just
b8a25e08a6 OSD,PG: pass tphandle down to _scan_list
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-23 19:42:32 -07: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
Yehuda Sadeh
8b3a04dec8 rgw: iterate usage entries from correct entry
Fixes: #5152
When iterating through usage entries, and when user id was
provided, we started at the user's first entry and not from
the entry indexed by the request start time.
This commit fixes the issue.

Backport: bobtail

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-05-23 13:11:01 -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
87cef3d5c3 mon: drop unnecessary conditionals
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-23 10:23:43 -07:00
Sage Weil
6af640517f Merge pull request #311 from ceph/wip-5102
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-23 10:21:51 -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
Dan Mick
b355b9879d OSDMonitor: fix osd dump (need enclosing section)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-05-22 15:17:24 -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
Samuel Just
08c39b8430 ReplicatedPG::submit_push_complete don't remove the head object
The object would have had to have been removed already.  With
fd caching, this extra remove might check the wrong replay_guard
since the fd caching mechanism assumes that between any operation
on an hobject_t oid and a remove operation, all operations on that
hobject_t must refer to the same inode.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-22 14:37:43 -07: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
Dan Mick
bec630fc2f cephtool/test.sh: add test for --verbose and --concise 2013-05-22 13:08:11 -07:00
Dan Mick
28a6761d02 ceph: fix --concise (set verbose to False)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-05-22 13:06:14 -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