Commit Graph

10704 Commits

Author SHA1 Message Date
Sage Weil
3cbf578e5e mds: issue all snap_caps allowed given locks, not by current cap
For snap_caps, who cares if the live inode has a cap for this client.  We
always want to issue the maximum set of caps the inode locks allow for
a live inode or snapped inode with caps, or the max caps ever for a snapped
inode without caps.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 14:47:21 -07:00
Christian Brunner
f5c4fc61b6 fix FCGI detection and specfile
configure is building radosgw as soon as libfcgi is installed, even
if --without-radosgw is given. Here is a fix for configure.in and the
specfile.

Regards,
Christian

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 13:51:14 -07:00
Sage Weil
878a7de521 mon: avoid OOB m->cmd access in auth proprocess_command
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 13:14:25 -07:00
Sage Weil
c91c8a3115 msgr: brackets (not braces) for ipv6 addrs
Sigh

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 11:27:34 -07:00
Sage Weil
71b9daa85d debug: only truncate log file on open if log_per_instance is set
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 11:27:34 -07:00
Sage Weil
876cca9e14 mds: termiante client sessions before flushign log during shutdown
We need to close out client sessions, and caps, to empty the open_files
lists, so that we can properly trim the EOpen events from the log.

This fixes a crash like so:

mds/journal.cc: In function 'C_Gather* LogSegment::try_to_expire(MDS*)':
mds/journal.cc:160: FAILED assert(ls != this)
 1: (LogSegment::try_to_expire(MDS*)+0x11c1) [0x90a1df]
 2: (MDLog::try_expire(LogSegment*)+0x2d) [0x902c25]
 3: (MDLog::trim(int)+0x55b) [0x902b0b]
 4: (MDCache::shutdown_pass()+0xeb) [0x7d6aab]
 5: (MDS::_dispatch(Message*)+0x2dc1) [0x71597f]
 6: (MDS::ms_dispatch(Message*)+0x38) [0x712a44]
 7: (Messenger::ms_deliver_dispatch(Message*)+0x63) [0x6fe07b]
 8: (SimpleMessenger::dispatch_entry()+0x5fd) [0x6ef7e7]
 9: (SimpleMessenger::DispatchThread::entry()+0x2c) [0x6e44b8]
 10: (Thread::_entry_func(void*)+0x23) [0x6fd075]
 11: /lib64/libpthread.so.0() [0x3552e06a3a]
 12: (clone()+0x6d) [0x35526ddf3d]
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is
needed to interpret this.

Reported-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 10:09:53 -07:00
Christian Brunner
84d4c11f1f ceph.spec.in: create /var/log/ceph directory
I've missed this one in my previous patch series.

Regards,
Christian

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 09:38:15 -07:00
Christian Brunner
8ec5134aad ceph.spec.in: add a build option for radosgw (--with radosgw)
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 09:38:12 -07:00
Christian Brunner
bf047a644c ceph.spec.in: add /var/lib/ceph/
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 09:38:12 -07:00
Christian Brunner
19886eb6e0 ceph.spec.in: add logrotate configuration
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 09:38:11 -07:00
Christian Brunner
293299f0ca ceph.spec.in: set correct path for rbd classes
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 09:38:10 -07:00
Sage Weil
9b74eb6f8a osd: print debug write before adding to transaction
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 15:41:32 -07:00
Sage Weil
4701e8388c msgr: return error and dethrottle if message decode fails
This was broken by the addition of the throttling stuff.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 14:55:53 -07:00
Sage Weil
b81273d5ec debian: make helper scripts remember most recent release
So you don't have to cut&paste it on the command line

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 14:27:57 -07:00
Sage Weil
f456b51d60 osd: fix delayed pg creation use after free
Use local acting[], not the one stashed in creating_pgs[pgid].  And drop
the duplication .erase().

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 13:34:15 -07:00
Sage Weil
6612a1f15c vstart: specify osd class tmp dir
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 11:34:48 -07:00
Sage Weil
9fd3f5932f monc: make hunt, ping rates configuration
3s for hunt rate, 10s for ping rate.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 10:56:32 -07:00
Sage Weil
a396fcb224 client: increase client mount timeout
This needs to be longer than the monclient hunt rate (currently 10s) so
that we succeed if we initially pick a down monitor.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 10:49:51 -07:00
Sage Weil
89c7d920aa filestore: improve lseek64 error checking, and use buffer::list::write_fd()
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 10:14:23 -07:00
Sage Weil
a3fa9660ba buffer: make write_fd() const
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 10:09:21 -07:00
Sage Weil
303a1e3c06 mount.ceph: handle ipv6 addrs, colons, braces
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 09:49:50 -07:00
Sage Weil
25ff6e4c18 ceph.spec: require libedit
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 08:38:54 -07:00
Sage Weil
e0d443cce8 ceph.spec.in: require binutils
cclass needs /usr/bin/nm

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 08:36:46 -07:00
Sage Weil
c5d86f9d77 debian: require binutils
cclass needs 'nm' to extract symbols from rados classes.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 08:33:40 -07:00
Sage Weil
fd8ba5d5f2 debian: explicit postinst/postrm for shlibs
The dh_shlibdeps sees the .so in 'ceph' and incorrectly adds ldconfig to
postinst and postrm.  Which is useless and upsets lintian.  So do our
postinst/postrm magic explicitly.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 08:29:53 -07:00
Sage Weil
ae82dd5a5c rbdtool: fix export
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 16:34:27 -07:00
Sage Weil
1e08e4bf1f mon: create new pools using rjenkins hash
Otherwise they get -1, which always maps to an invalid (-1) pgid.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 16:33:05 -07:00
Yehuda Sadeh
0764630815 rbdtool: should support files larger than 2GB 2010-07-07 16:55:43 -07:00
Sage Weil
b977f4e579 debian: _do_ strip cosd 2010-07-07 15:56:25 -07:00
Sage Weil
cf38e86e81 class: make class tmp directory configurable, not /tmp
/tmp usually gets mounted with 'noexec', making it a poor choice.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 15:56:23 -07:00
Sage Weil
2096d8d77e logger: shut up
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 14:41:15 -07:00
Yehuda Sadeh
d5e3962a72 config: can use '-' as a config option 2010-07-07 15:00:35 -07:00
Sage Weil
019899030a msgr: remove fake orig_source_addr fakery
This makes get_orig_*() match get_*().

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 14:33:33 -07:00
Sage Weil
6ae95b6cf9 mon: fix message forwarding to use Connection to fake source addr
This make get_source_addr() work (not just get_orig_source_addr()).

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 14:32:48 -07:00
Sage Weil
243491ef7c debian: do not strip cosd 2010-07-07 12:50:54 -07:00
Sage Weil
ed66dd578c classhandler: print error when dlopen fails
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 12:50:53 -07:00
Sage Weil
cc5fcb99d5 ceph: drop version from ceph_fs.h, use autoconf VERSION macro instead
There's no reason to define this in the code anymore.  Since the kernel
side doesn't use it it just confuses matters.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 08:24:13 -07:00
Fred Ar
6cca139f0a shell script fixes 2010-07-07 07:47:57 -07:00
Sage Weil
9432a95889 mds: fix logger init on startup, rank symlink creation
Busted by 83d1ea6636.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 07:38:55 -07:00
Sage Weil
f6e1fd53ce debian: do not strip rados classes
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 07:36:50 -07:00
Sage Weil
a321ae432f debian: add postinst, postrm for ceph package
This will keep debain from using the default, which thinks it needs to run
ldconfig.  Which it doesn't.
2010-07-07 07:36:50 -07:00
Sage Weil
4fb67c3150 Makefile: cleanup 2010-07-07 07:36:50 -07:00
Sage Weil
0bf19e5a69 debian: put rbd classes in ceph, not librados1 package
The cluster classes are a server-side thing, not client lib thing.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 07:36:50 -07:00
Sage Weil
8d2393c0a5 osd: consolidate osd stats in _refresh_my_stats
Also keep local copy of osd_stat (send with pg stats update to monitor).

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 07:36:50 -07:00
Sage Weil
929f67215c debian: include rados-classes
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 07:36:50 -07:00
Sage Weil
b0e6e4f173 cclass: $libdir/rados-classes 2010-07-07 07:36:50 -07:00
Sage Weil
83d1ea6636 logger: huge rewrite, cleanup
- name *.log
- name after name, not rank
- reopen on sighup
- remove pointer on shutdown
- clean up interface
- implement reset (truncate/reopen file)
- rotate logs

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-06 21:12:44 -07:00
Sage Weil
1ca446dd9a auth: rename supported_auth -> auth_supported
It should be 'auth supported' for naming consistency.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-06 21:12:44 -07:00
Greg Farnum
74bd8d777d client: handle_client_session now careful opening mds sessions while unmounting 2010-07-06 15:14:23 -07:00
Greg Farnum
0c345a9853 client: put MDSSession pointers in the msd_session map, rather than the sessions themselves.
This is a bit cleaner and clears the way to make it more closely mimic the kernel.
2010-07-06 15:14:23 -07:00