Commit Graph

19501 Commits

Author SHA1 Message Date
John Wilkins
e3b3108bfd Added the Swift API as is. Still needs a lot of work.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
2012-05-21 17:49:35 -07:00
John Wilkins
812989bf35 doc: misc updates
doc/architecture.rst - removed broken reference.
doc/config-cluster - cleanup and added chef
doc/install - Made generic to add Chef, OpenStack and libvert installs
doc/init - Created light start | stop and health section
doc/source - Removed $ from code examples. Trimmed paras to 80 char
doc/images - Added preliminary diagram for Chef.
doc/rec - Added reference to hardware. Added filesystem info.

Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
2012-05-21 16:39:15 -07:00
Yehuda Sadeh
3a2dc969ff libs3: remove make install target 2012-05-21 14:32:22 -07:00
Yehuda Sadeh
4e3807bc58 Makefile.am: only append libs3 to SUBDIRS when needed
We appended libs3 to SUBDIRS unconditionally, we only need that
when we actually want to compile it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-05-21 14:27:04 -07:00
Sage Weil
6c0a12209d ceph-object-corpus: add some old v2 monmaps
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 14:20:38 -07:00
Sage Weil
c06fb20a8a monmap: fix decoding of old monmaps
The old monmaps had a u16 for the version.  Fix our decode.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-21 13:58:55 -07:00
Samuel Just
13c86ca2cd Update leveldb to remove CompactionInputErrorParanoid
CompactionInputErrorParanoid tends not to complete in time during
gitbuilder runs resulting in false failures.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-05-21 10:40:39 -07:00
Tommi Virtanen
7d5fa4e506 man: Remove leftover --bin from ceph-authtool(8).
Regenerate manpage.

See 4832c46eab,
ec732816ef for the actual removal of the
feature.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
2012-05-21 08:56:08 -07:00
Sage Weil
d8f4c6d208 Merge branch 'stable'
Conflicts:
	src/os/FileStore.cc
2012-05-20 21:18:36 -07:00
Sage Weil
ad663d58c8 v0.47 2012-05-20 15:33:49 -07:00
Sage Weil
e2e7f5835c keys: new release key
New release key for signing packages.  Signed by me (the old release key)
so that existing apt keyrings should be sufficient.  New keyrings should
just add the new release key.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-20 15:33:48 -07:00
Sage Weil
5b39ae7e49 osdmap: set name_pool correctly in build_simple*()
Backport: dho
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-20 14:12:16 -07:00
Sage Weil
033be2b9f0 osdmap: use pg[p]_num accessors
This lets us ensure that calc_pg_masks() is called when pg[p]_num is set or
modified.

Fixes: #2448
Backport: dho
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-20 14:12:10 -07:00
Sage Weil
deccc592c5 filestore: do not test xattrs on fsid file
This is sufficient to break our fcntl lock, which breaks the check for
other running daemons.

Broken by f03dc34f7e

Fixes: #2452
Backport: dho
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-20 14:12:02 -07:00
Sage Weil
bd5fc0a0d4 debian: fix ceph-kdump-copy.init
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-20 14:11:54 -07:00
Sage Weil
31102d317d debian: fix ceph-kdump-copy.init
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-20 12:50:09 -07:00
Sage Weil
3f38605d19 filestore: test xattrs on temporary file
There isn't one we can rely on existing yet.  Broken by
1314a00798 while fixing #2452.

Backport: dho
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-19 16:12:58 -07:00
Sage Weil
1314a00798 filestore: do not test xattrs on fsid file
This is sufficient to break our fcntl lock, which breaks the check for
other running daemons.

Broken by f03dc34f7e

Fixes: #2452
Backport: dho
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-19 14:56:49 -07:00
Sage Weil
44fe8c8213 osdmap: set name_pool correctly in build_simple*()
Backport: dho
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-19 13:24:50 -07:00
Sage Weil
ba2488f238 osdmap: use pg[p]_num accessors
This lets us ensure that calc_pg_masks() is called when pg[p]_num is set or
modified.

Fixes: #2448
Backport: dho
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-19 13:24:47 -07:00
Sage Weil
69e823e586 cephtool: restore osdmap handler
Accidentally removed by 841372494f.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-19 09:44:00 -07:00
Sage Weil
2b5ee3e00d mon: include health in status
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-18 15:07:29 -07:00
Sage Weil
7d6facc03d mon: move health check into helper function
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-18 14:08:11 -07:00
Sage Weil
09978a8ab2 Merge remote-tracking branch 'gh/wip-mon-refactor'
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2012-05-18 13:54:05 -07:00
Joao Eduardo Luis
d599eded54 mon: fix a bug that was preventing us from subscribing to some log levels.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-18 12:07:45 -07:00
Joao Eduardo Luis
20df432473 mon: fix the priority filter.
When a given log level L was specified, we would reply with all the
messages of "level L and below"; for instance, for a 'log-error' we would
present all the messages of level 'error', 'warn', 'sec', 'info' and
'debug'.

We shouldn't be doing it that way, so we just inverted the filter
condition. Now we show only 'L and above'; i.e., for a log level of
'log-warn', show only 'log-warn' and 'log-error'.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-18 11:32:43 -07:00
Sage Weil
9fb3cd281d ceph-authtool: fix clitests
No more --bin option.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-18 10:59:52 -07:00
Sage Weil
4832c46eab ceph-authtool: fix usage
No more -b, --bin.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-18 10:59:28 -07:00
Sage Weil
b180ac25aa Merge branch 'wip-mon-keyring'
Reviewed-by: Greg Farnum <greg@inktank.com>
2012-05-17 20:29:42 -07:00
Sage Weil
9125e908a5 mon: monmap first from 'status' command
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-17 20:23:34 -07:00
Sage Weil
9a1d757bc8 mon: only log map state changes from primary
We still get noise after elections, but only from the winner.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-17 20:23:34 -07:00
Sage Weil
78d0d0976b cephtool: aesthetic change to ceph -w output
* no seq
* name, not ip addr

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-17 20:23:33 -07:00
Sage Weil
13a9a15248 mon: aesthetic changes to map change log entries
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-17 20:23:33 -07:00
Sage Weil
6b76ac3a3c Makefile: drop MMonObserve*
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-17 20:23:33 -07:00
Sage Weil
89316566b5 remove gceph
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-17 20:23:33 -07:00
Sage Weil
a586bdf081 ceph.spec: don't package gceph
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-17 20:23:33 -07:00
Sage Weil
f943f34b83 debian: don't package gceph
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-17 20:23:33 -07:00
Joao Eduardo Luis
035bb125a7 src: get rid of the Observers throughout the code base.
This is a big patch that will remove all references to the observers
throughout the code, including a complete removal of the Observer-related
messages' source files.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-17 16:15:25 -07:00
Joao Eduardo Luis
841372494f cephtool: Slight rework and pub/sub log support.
We reworked the code a bit to accommodate the introduction for the log
monitor's publish/subscribe mechanisms. With this patch we no longer
depend on the observer's, and use instead the much broader approach of
subscribing to events. In our case, we will subscribe to log levels.
If the '-w'/'--watch' flag is defined, the tool will be subscribed to the
'log-info' level by default, unless one of the following flags are defined
(in which case the level will be changed accordingly): '--watch-debug',
'--watch-info', '--watch-sec', '--watch-warn' and '--watch-error'.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-17 16:15:25 -07:00
Joao Eduardo Luis
6fe96cb9fc mon: Add publish/subscribe capabilities to the log monitor and status cmd.
This patch allows us to stir away from the monitor's observer mechanism,
by using instead the already existing publish/subscribe mechanism.
We follow the log levels used by the log monitor, and will recognize any
one of the following subscriptions: 'log-error' (higher priority),
'log-warn', 'log-sec', 'log-info' and 'log-debug' (lowest priority).

Also, add a new 'status' command to the monitor, which may be invoked by
any client (such as the ceph tool), and which shall return the status of
the various cluster components (osdmap, pgmap, ...).

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-17 15:55:57 -07:00
Josh Durgin
572c756036 doc: fix sizes in librbd python examples
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-05-17 13:56:32 -07:00
Josh Durgin
a5dd387270 Merge remote branch 'origin/wip-misc'
Reviewed-by: Sage Weil <sage@inktank.com>
2012-05-17 13:06:45 -07:00
Josh Durgin
e7212714e9 doc: fix link to hardware recommendations section
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-05-17 12:57:50 -07:00
Josh Durgin
25e7889af6 doc: fix formatting and a couple config defaults
``ceph.conf`` needed spaces around it to be parsed correctly.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-05-17 12:57:41 -07:00
Tommi Virtanen
62db60bede FileJournal: Clarify log message on journal too small.
The OSDs tolerate a full journal, it will just result in a latency
spike. Make the error message say operation will continue, just
slower.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
2012-05-17 09:54:02 -07:00
Josh Durgin
96426fa457 ReplicatedPG: fill in data_off in OSDOpReply
The assignment was accidentally made unreachable by
ff55d2f310

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-05-16 18:37:08 -07:00
Josh Durgin
04a75d29ed Merge branch 'next' 2012-05-16 17:43:54 -07:00
Josh Durgin
4277d4d337 Merge branch 'wip-oc-error-handling' into next
Reviewed-by: Sage Weil <sage@inktank.com>
2012-05-16 17:42:56 -07:00
Josh Durgin
1ec3245d11 config: improve comments for rbd caching options
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-05-16 17:02:55 -07:00
Josh Durgin
49c6ad44b4 librbd: check for cache flush errors
Return errors from flushing to the caller. Warn
if an error occurs during invalidation, but don't retry,
since the higher level handles these cases, namely:

* rollback (doing this with an image open is asking for trouble)
* shrink (doing this with writes in flight may create extra objects anyway)
* shutdown (qemu flushes before closing the device)

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-05-16 17:02:53 -07:00