Commit Graph

20812 Commits

Author SHA1 Message Date
Josh Durgin
eba5585630 Merge branch 'wip-rbd-protect-merge' 2012-08-16 13:00:26 -07:00
Josh Durgin
18054ba46f Merge branch 'wip-rbd-protect' into master
Conflicts:
	src/librbd.cc
	src/librbd/cls_rbd_client.h
2012-08-16 12:57:58 -07:00
Sage Weil
9fd7d4d603 mds: fix some gcc 4.7 warnings
mds/Server.cc: In member function 'CDir* Server::validate_dentry_dir(MDRequest*, CInode*, const string&)':
mds/Server.cc:1607:12: warning: converting 'false' to pointer type 'CDir*' [-Wconversion-null]
mds/Server.cc:1620:12: warning: converting 'false' to pointer type 'CDir*' [-Wconversion-null]
mds/Server.cc: In member function 'CInode* Server::rdlock_path_pin_ref(MDRequest*, int, std::set<SimpleLock*>&, bool, bool, ceph_file_layout**)':
mds/Server.cc:1874:21: warning: converting 'false' to pointer type 'CInode*' [-Wconversion-null]

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-16 12:53:18 -07:00
Sage Weil
407c350a1a crypto: remove unused label
auth/Crypto.cc:210:2: warning: label 'err_ctx' defined but not used [-Wunused-label]

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-16 11:39:43 -07:00
Sage Weil
5bbd5dce11 do_autogen.sh: -n for nss
Cryptopp (at least my installed version) doesn't build on gcc 4.7.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-16 11:39:22 -07:00
Sage Weil
19063aae1d byteorder: fix gcc 4.7 warnings
./include/encoding.h: In function 'void encode(int64_t, ceph::bufferlist&, uint64_t)':
./include/encoding.h:101:1: warning: narrowing conversion of 'v' from 'int64_t {aka long int}' to '__le64 {aka long long unsigned int}' inside { } is ill-formed in C++11 [-Wnarrowing]

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-16 11:38:46 -07:00
Sage Weil
85558759d7 do_autogen.sh: apply 'profiler' options to CXXFLAGS, too
-P now leaves in frame pointers and makes sure debugging is turned down.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-16 11:07:41 -07:00
Sage Weil
3e50a09d29 do_autogen.sh: -p to pass --with-profiler to configure (google cpu profiler)
The -P profiling stuff seems somewhat nonsensical.. that should be cleaned
up too.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-16 11:05:44 -07:00
Matthew Wodrich
5962a9dde0 obsync: add missing package specifier to format_exc
Fixes: #2873
Signed-off-by: Matthew Wodrich <matthew.wodrich@dreamhost.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2012-08-16 11:01:46 -07:00
Sage Weil
dc76a6cb1d ceph-fuse: add --fuse-debug option to enable libfuse debugging
We consume -d (which fuse uses), so it can't be silently passed through
like we used to be able to do.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-16 09:40:30 -07:00
Danny Kukawka
a15fde495f fix keyring generation for mds and osd
[ The following text is in the "UTF-8" character set. ]
    [ Your display is set for the "ANSI_X3.4-1968" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Fix config keys for OSD/MDS data dirs. As in documentation and other
places of the scripts the keys are 'osd data'/'mds data' and not
'osd_data'

In case if MDS: if 'mds data' doesn't exist, create it.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
2012-08-16 09:26:00 -07:00
Danny Kukawka
36e7b077a7 fix ceph osd create help
[ The following text is in the "UTF-8" character set. ]
    [ Your display is set for the "ANSI_X3.4-1968" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Change ceph osd create <osd-id> to ceph osd create <uuid>, since this
is what the command is really doing.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
2012-08-16 09:26:00 -07:00
Sage Weil
c6ae5e29a1 objectcacher: fix bh leak on discard
Fixes: #2950
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-15 18:46:25 -07:00
Sage Weil
b97931f43b Merge branch 'testing' into next 2012-08-15 17:56:41 -07:00
Sage Weil
77745f9441 mkcephfs: fix mon data empty check
'read' needs an arg on dash.

Fixes #2922, again.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-15 17:56:35 -07:00
Samuel Just
08b8bba433 Merge branch 'next' 2012-08-15 15:21:09 -07:00
Samuel Just
74dd560317 Merge branch 'testing' into next 2012-08-15 15:19:02 -07:00
Samuel Just
3e7df78e67 PG,Message: move intrusive_ptr_* into top namespace
gcc 4.7 requires that the intrusive_ptr_* functions be in
the same namespace as the templated class.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-08-15 14:40:17 -07:00
Sage Weil
614417ef26 mon: make 'clocks too skewed' message for accurate
It could be that the mons are laggy, not skewed.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-15 11:14:11 -07:00
Sage Weil
36d6c4f4c8 Merge branch 'next' 2012-08-14 16:54:17 -07:00
Sage Weil
119880ca14 Merge branch 'testing' into next 2012-08-14 16:53:48 -07:00
Sage Weil
24a26c6274 mkcephfs: fix mon_data check
* check the right path <facepalm>
* behave if the directory doesn't exist at all yet

Fixes: #2922
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 16:53:34 -07:00
Sage Weil
bcd00c6560 Merge branch 'wip-2918'
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2012-08-14 16:17:48 -07:00
Sage Weil
3d3d91df47 osdmap: apply mon_max_osd when generating osdmap from conf
This prevents users from having an [osd.1234567] section and blowing up
their memory usage.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 16:06:55 -07:00
Sage Weil
1a5e12ec5f osdmap: fix pg_num calculation when generating osdmap from conf
Base num_pg calculation on the number of osds, not the max osd id.

Fixes: #2918
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 16:06:54 -07:00
Sage Weil
cca85af5b0 global: only print banner if type is daemon
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 14:59:36 -07:00
Sage Weil
615f85d088 mon: throttle daemon messages independently from client messages
This lets us set a higher limit on messages from daemons (osd, mds) than
from clients, and throttle them independently.

Fixes: #2942
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 15:07:06 -07:00
Sage Weil
9fc7958472 filejournal: instrument journal write counts, sizes
This rounds out the low-hanging fruit that are coming to mind.  Moving on.

Fixes: #2619
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 14:45:27 -07:00
Sage Weil
2f3e03f605 perfcounters: add u64 average type
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 14:45:27 -07:00
Sage Weil
1eea43db19 global: fix version banner in log on startup
Log banner from global_init().  This puts it at the very top of the log,
right when the daemon starts.

Fixes: #2940
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 14:06:47 -07:00
Sage Weil
efe913b886 Merge branch 'wip-crush-tunables'
Reviewed-by: Greg Farnum <greg@inktank.com>
2012-08-14 13:13:03 -07:00
Sage Weil
326712764b doc: document use of CRUSH tunables
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 13:11:15 -07:00
Sage Weil
b254ba7813 mon: require CRUSH_TUNABLES when latest osdmap has tunables set
This is an imperfect check in that tunables may be set in past osdmaps,
and the OSDs may need that in order to peer correctly.  However, in the
general case, this will catch most users.  In particular, it will catch

 - set tunables
 - nothing works (osds or clients lack feature)
 - reset/clear tunables
 - things recover

But not

 - set tunables
 - osds have feature, behave
 - new osds with old code added, lack feature
 - remove tunables
 - new osds may fail to peer properly because they lack the feature

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 10:42:37 -07:00
Sage Weil
3dd5ebdc26 osd: require CRUSH_TUNABLES feature of peers, clients when used
If the current crush map has non-default tunables, set our messengers to
require the tunables feature bit.  If it does not, clear the bit.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 10:42:37 -07:00
Sage Weil
43f7d3744f osd: put throttler on default policy
Before we were associating the throttler with a CLIENT specific policy
that didn't cover MDS.  That's silly.  Instead, associate the throttler
with the default policy (which is now possible).

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 10:42:37 -07:00
Sage Weil
da35b4c207 msgr: make set_policy_throttler safe, act on default
Add locking in set_policy_throttler.

Also, make it act on the default policy when the specified type does not
have a sepcific policy set for it.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 10:42:37 -07:00
Sage Weil
73218a7a65 msgr: make set_policy() and set_default_policy() safe to re-use
Introduce a policy_lock in SimpleMessenger to make this safe even after
the messenger has been started up.  The user needs to be aware that
policy changes will not affect connections that are already established.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 10:42:37 -07:00
Sage Weil
5ab4939c36 doc: v0.48.1argonaut release notes, changelog
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-14 10:06:16 -07:00
Sage Weil
4e7d49e0c6 Merge branch 'wip-msgr' 2012-08-13 13:34:29 -07:00
Sage Weil
75172c70ab msg/Accepter: fix nonce initialization
This needs to be provided to the Accepter at bind time, not by start().
Otherwise the nonce is effectively always 0, which is useless and breaks
all sorts of things.  Broken by 8453a8198c.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-13 13:28:42 -07:00
Dan Mick
294c25bb37 ceph-osd: log journal-creation failure with derr
Fixes: #2938
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2012-08-13 11:46:48 -07:00
Sage Weil
8af2cf3ca0 msgr: expose get_policy() through generic Messenger API
Return a copy instead of a const reference, too...

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-13 11:03:50 -07:00
Sage Weil
1740bd0c8a crush: add helper has_nondefault_tunables()
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-13 11:03:50 -07:00
Sage Weil
95ecab27cb Merge branch 'wip-msgr' 2012-08-13 09:58:49 -07:00
Sage Weil
c8af0faf15 cephtool: make command wait for osdmap explicit
If we are waiting for an osdmap for a command, track that explicitly so
that we know when to retry send_command().

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-13 09:58:22 -07:00
Sage Weil
a4428bd0e1 v0.50 2012-08-13 09:49:24 -07:00
Sage Weil
c75c0d8127 v0.50
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iQIcBAABAgAGBQJQKTBXAAoJEH6/3V0X7TFtVMkP/iFUDiUyJrsr6nxukR9saroe
 i2j2RHzjClY1M1DRYuk4YZ2BljQEVb5rkjGVxXT+LuXK9OOAEbdpSy5EtP3ArHzZ
 VWIdcyac+gMlTxgP5LN2dgPDWBtaEq3PMJex43UViLDz7l5uRHrAnhSMBNw1o+9H
 BwEOF16ZgZl+qQBj1aPakYFl0WqGAzzLtjzvA2Is5kJhffA5JmLDfm7eOrTY2h3n
 +0rGjpam77BJNOze0VGUbQe9PLRg+G4eHYfVJ+KvDS1hBUIH3izOuPWO5u9ThgKM
 OM7clwwKXu3xGxzS4g36bqA+3xCnw+e7Yw+71ne87Ai7hlVAJ0y+q4RdaOBqAeWB
 3OMuz73Dq0c4CsZw5Ot3sGJUoyqqw/fBtfzbMdaBv70Ax28ZGZnHxij0F5uDz4kk
 +X7sxouAsk7GkEtxTZQoGBkRhJoZBwxQBIW698u1wGSJQYHr+8aa+o1eHukloTrc
 L7K1C+YuWQWechK5nRNFEU5hPjcv+beL2ndUZeSJj8ri62qhHPAEi66rh1YJOOq9
 cZRQr99hdfM4tNYLUh3eO3LM6TbBNFmlPwDCse35I70mqTh9ccT9WH0Wj95PIFBD
 rmuXXXwNFTuV/mhUpSUpCaDsEIi4ywfdRYn4jX7iY3z9y2zuhWZSatW4fdvXC0G+
 J91BjPKWdjl9nvBtPJUP
 =dUVd
 -----END PGP SIGNATURE-----

Merge tag 'v0.50'

v0.50
2012-08-13 09:48:49 -07:00
Sage Weil
ac02b34ed8 msg/Pipe: discard_queue() -> discard_out_queue()
We only discard outgoing messages; incoming messages are handled by the
IncomingQueue.. but this method doesn't touch that.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-13 08:46:15 -07:00
Sage Weil
d58df35f88 msg/Pipe: simplify Pipe::tcp_read() return value
0 for success; no reason to return length (always == len).

Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-13 08:46:14 -07:00
Sage Weil
76954c13c1 msg/Pipe: document tcp_*()
Signed-off-by: Sage Weil <sage@inktank.com>
2012-08-13 08:46:14 -07:00