Commit Graph

10841 Commits

Author SHA1 Message Date
Sage Weil
c3e0915b89 filestore: fix race in op enqueuing to ensure throttle limit is honors 2010-08-12 13:10:23 -07:00
Sage Weil
bfee1fa36a objectstore: fix transaction get_num_bytes
The separate bytes field isn't used; use encoded bytes count for now.
2010-08-12 13:10:19 -07:00
Sage Weil
a3eefd5760 msgr: don't leak message when sending to a closed connection 2010-08-12 11:55:19 -07:00
Sage Weil
a406cfab39 osd: log push ops as push, not pull 2010-08-12 11:55:14 -07:00
Sage Weil
d00f43aa7e logger: fix logger counter reset
Reset inc keys after each line; reset all keys on full reset.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-12 11:55:03 -07:00
Sage Weil
7aa332cd82 ceph v0.21.1 2010-08-11 14:59:19 -07:00
Sage Weil
acd17a5928 Makefile: include logrotate.conf in tarball 2010-08-11 12:29:46 -07:00
Sage Weil
bce3a63089 mds: fix send_message_client_counted helper
Don't use the outgoing message connection (usually there is none!).. use
the connection argument.  Der.  Broken since 6d770abe.
2010-08-06 10:08:01 -07:00
Sage Weil
7f9cef01c4 makefile: define docdir for old automake versions
Notably centos5.

Reported-by: Thomas Mueller <thomas@chaschperli.ch>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-05 07:47:32 -07:00
Haifeng Liu
773dd82517 monmaptool: man page typo fix
Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-05 07:44:24 -07:00
Sage Weil
6f7523a0a4 rados: -i and -o are still there for other commands
Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-04 10:01:23 -07:00
Sage Weil
a7038da72d ceph.spec.in: fix docdir paths
_docdir is /usr/share/doc, not /usr/share/doc/ceph (as it is with debian).
2010-08-04 09:56:05 -07:00
Sage Weil
1cf45017df ceph.spec.in: fix sample.ceph.conf chown
Reported-by: Xiaoguang Liu <syslxg@gmail.com>
2010-08-04 09:51:31 -07:00
Takuya ASADA
1ecda511a1 rados: fix usage 2010-08-04 09:51:31 -07:00
Sage Weil
ef711e2eea osd: fix heartbeat to/from map updates
- always make _inst match _to and _from (don't adjust in note_down_osd)
- only mark down old hb connection in update_heartbeat_peers
- if old peer isn't down, send them a map
- don't print dup new/old messages

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-04 09:51:24 -07:00
Sage Weil
4ea24d785b osd: fix replies to dup/already-committed requests
We can safely reply if oldv is _older_ than what's on disk.  Otherwise the
request ends up on the list and never gets removed again.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-03 11:07:58 -07:00
Sage Weil
22a7d42b58 assert: only include acconfig.h ifdef __CEPH__
Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-03 09:42:26 -07:00
Takuya ASADA
0ffb08c8b3 librados.hpp fix
[ The following text is in the "UTF-8" character set. ]
    [ Your display is set for the "iso-8859-1" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Hi,

I just realized librados.hpp could compile only if "using namespace
std;" is declared before "#include <rados/librados.hpp>", because
"vector" used without std namespace, and I think it's wrong.
It can fix following patch.

syuu

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-03 09:40:50 -07:00
Sage Weil
be7d84b2b4 mon: fix signed/unsigned compile warning 2010-08-03 09:39:01 -07:00
Sage Weil
4bcba121ac osd: fix map sharing with old heartbeat peers
The addr is in old_inst, since it's an old peer.  Fixes a crash like

osd/OSD.cc: In function 'void OSD::_share_map_outgoing(const entity_inst_t&)':
osd/OSD.cc:1791: FAILED assert(inst.name.is_osd())
 1: (OSD::update_heartbeat_peers()+0x1d3f) [0x4da66f]
 2: (OSD::activate_map(ObjectStore::Transaction&, std::list<Context*, std::allocator<Context*> >&)+0x8ee) [0x4db61e]
 3: (OSD::handle_osd_map(MOSDMap*)+0x233a) [0x4e506a]
 4: (OSD::_dispatch(Message*)+0x230) [0x4ef400]
 5: (OSD::ms_dispatch(Message*)+0x39) [0x4efe39]
 6: (SimpleMessenger::dispatch_entry()+0x749) [0x461fa9]
 7: (SimpleMessenger::DispatchThread::entry()+0x1c) [0x458f6c]
 8: (Thread::_entry_func(void*)+0xa) [0x46cf1a]
 9: (()+0x69ca) [0x7f978d6fb9ca]
 10: (clone()+0x6d) [0x7f978c91b6cd]

introduced by 9bfb8da9f9.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-03 09:39:01 -07:00
Sage Weil
6573635ba4 mds: fix cap encoding skipping when snaprealm differs
We were avoiding adding a new cap, but _any_ issue is problematic, not just
adds (which we can't really be sure about anyway due to races with client
cap release).

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-02 16:27:44 -07:00
Sage Weil
9ccf9cb6c5 debian: move fuse-utils dep to ceph-fuse
Reported-by: Thomas Mueller <thomas@chaschperli.ch>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-02 13:26:09 -07:00
Christian Brunner
baa69ad7ce cclass: fix .so loading file
The only thing I've found, is that the *.so files are included in the -devel
rpm. This leads to the fact that the 'find' in cclass doesn't return any
files. I'd suggest the attached change in the script.

Christian

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-02 13:23:55 -07:00
Sage Weil
9bfb8da9f9 osd: send latest osdmap when we stop sending heartbeats to peer
Otherwise, they may still expect them, and may mark us down.
2010-08-02 13:23:55 -07:00
Sage Weil
4a7c3553a7 osd: avoid most of handle_osd_map if there are no new maps in message
We don't want to take the time to flush things to disk and shut down all
the worker threads if there is nothing new in the osdmap update (as is
usually the case).

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-02 13:23:55 -07:00
Sage Weil
67236ae746 move logrotate conf out of debian/ to fix ceph.spec 2010-08-02 09:15:34 -07:00
Sage Weil
309f065254 cauthtool: correct man page sample of minimal fs client caps 2010-07-30 16:35:59 -07:00
Sage Weil
b502be7a8d move mkcephfs to /sbin 2010-07-30 12:06:10 -07:00
Sage Weil
7465b5e37d debian: more cleanups
https://code.launchpad.net/~clint-fewbar/review-new-branches/ceph-new-pkg/+merge/31303
2010-07-30 12:05:55 -07:00
Thomas Mueller
bcbad88de1 redirect stdout to /dev/null when reloading
the reload command prints to stdout. example:

# service ceph reload
=== mon.0 ===
Reloading Ceph mon0 on hoe001...kill -1 22197...done
=== osd.0 ===
Reloading Ceph osd0 on hoe001...kill -1 22263...done

"properly" configured systems will send the output by mail to
the administrator - this is not desired in case of successfull
reloading.

Signed-off-by: Thomas Mueller <thomas@chaschperli.ch>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-30 09:18:54 -07:00
Sage Weil
090436f56a v0.21 2010-07-29 09:37:16 -07:00
Yehuda Sadeh
ea2ce9d4b5 cclass.in: fix libdir definition 2010-07-29 09:37:16 -07:00
Thomas Mueller
fd4029cb0a debian/ceph.logrotate: enhance postrotate for "service" util
[ The following text is in the "UTF-8" character set. ]
    [ Your display is set for the "iso-8859-1" character set.  ]
    [ Some characters may be displayed incorrectly. ]

invoke-rc.d is debian specific.

run "service ceph reload" if invoke-rc.d fails.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-29 09:29:31 -07:00
Sage Weil
6db8975607 mon: trim old logm states
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-29 09:17:03 -07:00
Thomas Mueller
e1a9768545 debian: ceph-cfuse: move ceph from Recommends to Suggests
on a standalone fuse client ceph serverside is not needed. if it's
"Recommended" the default behaviour is to install it too. Move it to "Suggests"
that it's not installed by default if one installs just ceph-fuse.

from debian policy:
Suggests:
This is used to declare that one package may be more useful with one or more
others. Using this field tells the packaging system and the user that the listed
packages are related to this one and can perhaps enhance its usefulness, but
that installing this one without them is perfectly reasonable.

- Thomas

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-29 09:14:11 -07:00
Thomas Mueller
183984e110 ceph.spec.in: create /var/log/ceph/stat dir
the logrotate config expects a var/log/ceph/stat dir - create it.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-29 09:14:11 -07:00
Sage Weil
ce07f280c7 ceph.spec.in: rbdtool -> rbd
Reported-by: markn1
2010-07-28 21:04:36 -07:00
Sage Weil
b0616f8516 debian: drop gcc, g++ build deps 2010-07-28 16:28:37 -07:00
Sage Weil
9c6ae54c30 release: drop wildcard 2010-07-28 16:25:46 -07:00
Sage Weil
487f0e8550 debian: remove gcc/g++ build-depends
(as per Clint Byrum)
2010-07-28 16:25:46 -07:00
Sage Weil
58181fe584 debian: add trailing newline 2010-07-28 16:25:46 -07:00
Sage Weil
39a3db6be8 debian: fix debhelper depend version
dh_lintian was introduced in 6.0.7
2010-07-28 16:25:46 -07:00
Sage Weil
07d880ea57 debian: update to latest standards version 2010-07-28 16:25:46 -07:00
Sage Weil
47688a433d debian: fix weak-library-dev-dependency
E: ceph source: weak-library-dev-dependency librados1-dev on librados1
E: ceph source: weak-library-dev-dependency libceph1-dev on libceph1
2010-07-28 16:25:46 -07:00
Sage Weil
3ed08a330a check_version: don't globber .git_version if we're not in a git repo
namely, when you extract the release tarball!
2010-07-28 15:41:31 -07:00
Sage Weil
8b0bf8e1c1 filestore: add option to disable use of btrfs clone range ioctl 2010-07-28 15:00:54 -07:00
Sage Weil
eb1f58743a filestore: fix fallback clone_range implementation on short files
If we read less data from the source, don't loop forever... return -ERANGE
instead.
2010-07-28 14:57:11 -07:00
Sage Weil
43d28dbc7b release: put .git_version in release tarball 2010-07-28 13:57:43 -07:00
Greg Farnum
9b8e2b4f76 pgmon: Remove creating_pgs which are from deleted pools. 2010-07-28 13:37:14 -07:00
Sage Weil
425e052e4b osd: drop broken (and useless) PG::merge_log assert
The assert should be olog.backlog, not log.backlog.  But it's the same
condition as the if guard that's 3 lines up, making it pretty useless.
Just drop it.
2010-07-28 12:47:21 -07:00