Commit Graph

102 Commits

Author SHA1 Message Date
Sage Weil
44ce7cc1de os: rename keyvaluestore-dev -> keyvaluestore; mark experimental
Use a clean name for keyvaluestore (no -dev suffix), but mark as
experimental to ensure users know what they are signing up for.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-29 14:19:14 -08:00
Sage Weil
20a4c57c4b Merge remote-tracking branch 'gh/next'
Conflicts:
	PendingReleaseNotes
2014-12-22 06:51:14 -08:00
Sage Weil
7f9c03d1bf mon/PGMap: restructure 'pg stat' formatted output
The + character, which appears in state names, is not a valid XML token.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-22 06:41:25 -08:00
Sage Weil
18d6b20039 doc/release-notes: v0.90
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-19 14:21:09 -08:00
Sage Weil
f8d37a2cc4 Merge remote-tracking branch 'gh/master' into wip-watch-notify
Conflicts:
	PendingReleaseNotes

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Josh During <jdurgin@redhat.com>
2014-12-16 14:02:32 -08:00
Dan Mick
5ba9b8f21f rados.py: remove Rados.__del__(); it just causes problems
Recent versions of Python contain a change to thread shutdown that
causes ceph to hang on exit; see http://bugs.python.org/issue21963.
As it turns out, this is relatively easy to avoid by not spawning
threads on exit, as Rados.__del__() will certainly do by calling
shutdown(); I suspect, but haven't proven, that the problem is
that shutdown() tries to start() a threading.Thread() that never
makes it all the way back to signal start().

Also add a PendingReleaseNote and extra doc comments to clarify.

Fixes: #8797
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2014-12-10 13:19:16 -08:00
Sage Weil
1a36eb370d PendingReleaseNotes: a few notes about watch/notify changes
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-04 10:37:22 -08:00
Samuel Just
a6a8aeaefb Merge pull request #2979 from ceph/wip-kill-category
osd: kill 'category' from pg_stats_t

Reviewed-by: Samuel Just <sjust@redhat.com>
2014-12-04 09:29:31 -08:00
Sage Weil
3f2f42dda4 doc/release-notes: v0.89
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-04 09:15:37 -08:00
Sage Weil
4e1f4cfed1 rados: drop optional 'create [category]' arg
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:37:56 -08:00
Sage Weil
3008ca4eb1 rados: change 'df' output now that categories are gone
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:37:17 -08:00
Sage Weil
39c46a2de7 PendingReleaseNotes: not about dropping category
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-01 09:36:57 -08:00
Sage Weil
3776f078c0 common/Formatter: fix JSON dump of floating point values
These are numbers -- they should not be quoted.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-12 10:27:18 -08:00
Sage Weil
e27b0d9e42 mon: fix formatted 'pg stat'
Previously it did a full pg dump, which is almost certainly not what the
user wants.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-12 10:27:18 -08:00
Sage Weil
05a1c3f128 doc/release-notes: v0.88
Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-11 16:15:08 -08:00
David Zafman
a03f85a8e7 osd, osdc, librados, tools, rgw: Implement pgls of all namespaces
Add release note
New librados interface
New pg_nls_response_t over the wire protocol
Ignore internal namespace (.ceph_internal)
Enhance ObjListCtx to keep independent IoCtxImpl so nspace won't change out from under listing code
Add ListObject with private implementation ListObjectImpl to return from iterator
Add EINVAL error for old librados interface when LIBRADOS_ALL_NSPACES set
Add throw to old librados c++ interface when all_nspaces set

Fixes: #9031

Signed-off-by: David Zafman <dzafman@redhat.com>
2014-10-20 10:47:50 -07:00
Sage Weil
836a6701d6 doc/release-notes: v0.85
Signed-off-by: Sage Weil <sage@redhat.com>
2014-09-08 12:19:34 -07:00
Sage Weil
ce6e9a916b doc/release-notes: v0.84
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-18 11:57:59 -07:00
Sage Weil
e3e4883081 Merge remote-tracking branch 'gh/next'
Conflicts:
	PendingReleaseNotes
2014-08-12 09:35:08 -07:00
Sage Weil
b0f5ba9595 rados: remove {read,write}_kb fields from rados df json output
Redundant.  Do not backport.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-11 11:53:10 -07:00
Sage Weil
5663f91b60 rados: fix {read,write}_bytes value
Fill this in with kb * 1024 instead of the ops count.

Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-11 11:53:10 -07:00
Sage Weil
0bd7c34140 PendingReleaseNotes: make note about rbd cache default change
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 11:37:22 -07:00
Sage Weil
ee2dbdb0f5 mon/PGMonitor: remove {rd,wr}_kb from pool stat dumps
These fields are replaced with corresponding *_bytes fields.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 10:33:04 -07:00
Sage Weil
4c8e3224ea mon: remove *_kb perf counters
This is an incompatible change.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 10:33:02 -07:00
Sage Weil
3cfda577b1 doc/release-notes: v0.83
Signed-off-by: Sage Weil <sage@redhat.com>
2014-07-29 16:53:09 -07:00
Sage Weil
62027ec9f4 doc/release-notes: v0.82
Signed-off-by: Sage Weil <sage@inktank.com>
2014-06-27 13:25:41 -07:00
Sage Weil
4958786c6a Merge commit '4225e2f6c9f69682d0e7288d7809851b61a17c70'
Conflicts:
	PendingReleaseNotes

Reviewed-by: Sage Weil <sage@redhat.com>
2014-06-25 11:05:50 -07:00
Joao Eduardo Luis
4225e2f6c9 osd: remove OSD-specific leveldb options
OSDs will now rely on 'leveldb_*' config options.  We do keep however
leveldb's log enabled for OSDs by passing 'leveldb_log=""' as a default
argument to global_init() on ceph_osd.cc -- however, users will be able
to override this at their own discretion.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-23 22:41:35 +01:00
Joao Eduardo Luis
52b147c8b3 ceph-mon: override 'leveldb_*' config options for the monitor
'leveldb_*' options are currently used both by the monitor and the osd.
However, the monitor has quite different requirements from those of the
osds.

We need to specify some default values that must squash the defaults we
have for 'leveldb_*' options, while allowing users to overriding them too.
We take this not-exactly-ideal-but-still-good-enough approach of
defining the monitor-specific defaults in the 'default arguments' to
global_init(), thus allowing the user's options to take precedence over
whatever we define.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-23 21:59:13 +01:00
Joao Eduardo Luis
d42d19df2a mon: MonitorDBStore: remove mon-specific leveldb options.
From this point onward, users should use leveldb's options and add them
to the appropriate config sections of their configuration file.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-23 19:28:07 +01:00
Sage Weil
4bd1b5e2b0 PendingReleaseNotes: note about keyvaluestore-dev on-disk format change
Signed-off-by: Sage Weil <sage@inktank.com>
2014-06-16 09:17:36 -07:00
Sage Weil
4f834fa8ef doc/release-notes: v0.81
Signed-off-by: Sage Weil <sage@inktank.com>
2014-06-02 22:24:42 -07:00
Joao Eduardo Luis
fd970bbc95 mon: OSDMonitor: disallow nonsensical cache-mode transitions
Fixes: 8155

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-05-03 03:42:19 +01:00
Sage Weil
025ab9f47b doc/release-notes: v0.80
Signed-off-by: Sage Weil <sage@inktank.com>
2014-04-21 18:20:56 -07:00
Joao Eduardo Luis
b2112d5087 mon: OSDMonitor: HEALTH_WARN on 'mon osd down out interval == 0'
A 'status' or 'health' request will return a HEALTH_WARN whenever the
monitor handling the request has the option set to zero.

Fixes: 7784

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-04-18 19:15:52 +01:00
Joao Eduardo Luis
c252345889 osd: OSDMap: have osdmap json dump print valid boolean instead of string
Fixes: 8108

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-04-15 18:32:17 +01:00
Sage Weil
18201efd65 doc/release-notes: v0.79 release notes
Signed-off-by: Sage Weil <sage@inktank.com>
2014-04-03 18:28:15 -07:00
Sage Weil
bcc18d4877 osd: increase default leveldb write buffer, cache size
The FileStore's leveldb currently uses libleveldb's defaults for cache and
write buffer size, which are both 4 MB. Increase the cache size to 128MB and
the write buffer to 8MB.

Tested-by: Dmitry Smirnov <onlyjob@member.fsf.org>
Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-23 10:05:39 -08:00
Sage Weil
b3bb9efea3 doc/release-notes: v0.77
Also pending notes for v0.78

Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-19 16:57:25 -08:00
Josh Durgin
e550ad7915 ReplicatedPG: avoid undefined behavior in xattr comparison
Reading past the end of a pointer returned by string.data() in c++98
is undefined. While we're fixing this, also allow comparison of xattrs
containing null bytes.

Fixes: #7250
Backport: dumpling
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-02-18 12:34:33 -08:00
Josh Durgin
abca34aa59 Objecter: keep ObjectOperation rval pointers for writes
Just before sending an op, prepare_mutate_op() is called, creating a
new Op. prepare_read_op() already copied over all the out-params
correctly, but for write operations the individual op return value
pointers were not copied, so they would not be filled in. With this
fixed, librados users can get the per-op return codes again.

Partially fixes: #6483
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-02-18 12:34:31 -08:00
Sage Weil
cc1e84490d PendingReleaseNotes: note about cephfs backtrace updates
Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-12 17:42:16 -08:00
Sage Weil
e47e49d23a doc/release-notes: v0.77 draft notes
Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-03 21:55:45 -08:00
Sage Weil
8ec7fa85ab PendingReleaseNotes: note ceph -s fix
See 790dda9c0b.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-01-16 22:44:26 -08:00
Sage Weil
8b09a43657 doc/release-notes: v0.76 draft notes
Signed-off-by: Sage Weil <sage@inktank.com>
2014-01-15 19:02:23 -08:00
Sage Weil
e55a08964f doc/release-notes: v0.75
Signed-off-by: Sage Weil <sage@inktank.com>
2014-01-14 09:37:52 -08:00
Sage Weil
cec8d85853 mds: require CEPH_FEATURE_OSD_TMAP2OMAP
Require that all OSDs support TMAP2OMAP before starting the MDS.  This
avoids doing some work and then crashing with EOPNOTSUPP, and gives us
a more informative message in the logs.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-01-11 07:41:40 +08:00
Sage Weil
41987db876 doc/release-notes: v0.74
Signed-off-by: Sage Weil <sage@inktank.com>
2014-01-01 17:58:30 -08:00
Josh Durgin
ac547a5b7d rbd: return 0 and an empty list when pool is entirely empty
rbd_list will return -ENOENT when no rbd_directory object
exists. Handle this in the cli tool and interpret it as success with
an empty list.

Add this to the release notes since it changes command line behavior.

Fixes: #6693
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-12-31 17:02:28 -08:00
Loic Dachary
dd81858ca6 mon: implement --osd-pool-default-crush-replicated-ruleset
--osd-pool-default-crush-replicated-ruleset replaces
--osd-pool-default-crush-rule

If --osd-pool-default-crush-rule is set it takes precedence over
--osd-pool-default-crush-replicated-ruleset and a deprecation warning is
displayed.

The CrushWrapper::get_osd_pool_default_crush_replicated_ruleset helper is
used to implement this behaviour.

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-12-27 00:13:47 +01:00