Commit Graph

34821 Commits

Author SHA1 Message Date
John Wilkins
b6bf33cd33 doc: Added configuration discussion at end of gateway install with links to config.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-08-07 14:15:45 -07:00
Sage Weil
f95e82b134 Merge remote-tracking branch 'gh/wip-filestore-bigxattr' 2014-08-07 11:21:06 -07:00
Wido den Hollander
a5ecf1515e powerdns: Update README with better markdown 2014-08-07 15:12:19 +02:00
Sage Weil
9bbd11497b Merge pull request #2220 from somnathr/wip-lock-leak-fix
RadosClient: Fixing potential lock leaks.

Backport: firefly
Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-06 18:42:18 -07:00
Pavan Rallabhandi
f1aad8bcfc RadosClient: Fixing potential lock leaks.
In lookup_pool and pool_delete, a lock is taken
before invoking wait_for_osdmap, but is not
released for the failure case of the call. Fixing the same.

Fixes: #9022
Signed-off-by: Pavan Rallabhandi <pavan.rallabhandi@sandisk.com>
2014-08-06 18:30:01 -07:00
Sage Weil
26750fcfe8 os/FileStore: force any new xattr into omap on E2BIG
If we have a huge xattr (or many little ones), the _fgetattrs() for the
inline_set will fail with E2BIG.  The conditions later where we decide
whether to clean up the old xattr will then also fail.  We *will* put
the xattr in omap, but the non-omap version isn't cleaned up.

Fix this by setting a flag if we get E2BIG that the inline_set is known
to be incomplete.  In that case, take the conservative step of assuming
the xattr might be present and chain_fremovexattr().  Ignore any error
because it might not be there.

This is clearly harmless in the general case because it won't be there.
If it is, we will hopefully remove enough xattrs that the E2BIG
condition will go away (usually by removing some really big chained
xattr).

See original bug #7779.  With this in place, we can repair objects in
the broken state if we know the rados attr(s) that are responsible.
Usually that is user.rgw.manifset, and a rados get + set of the attr
will repair things.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 17:28:45 -07:00
Yehuda Sadeh
d050cf6c82 Merge pull request #2218 from ceph/wip-rados-xattr
rados: fix get/setxattr commands up

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2014-08-06 17:11:44 -07:00
Sage Weil
cc3112efd6 rados: use STD{IN,OUT}_FILENO for magic values
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 17:06:26 -07:00
Sage Weil
e3819b6216 qa/workunits/rados/test_rados_tool: add a few xattr tests
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 17:06:26 -07:00
Sage Weil
645c28a108 rados: optionally read setxattr value from stdin
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 15:31:19 -07:00
Sage Weil
59a715a39c rados: don't add \n to getxattr
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 15:31:15 -07:00
Sage Weil
ea731ae142 qa/workunits/cephtool/test.sh: fix 'ceph df ...' tests
Broken by ee2dbdb0f5 and friends.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 13:16:49 -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
Josh Durgin
8d8b8b1128 Merge pull request #2123 from ceph/wip-rbd-flush
librbd: enable rbd cache by default; writethrough until flush

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-08-06 11:28:56 -07:00
Sage Weil
7d820123d0 Merge pull request #2205 from ceph/wip-librbd-snap-meta
librbd: fix crash with a chain of flattened images

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-06 11:08:43 -07:00
Sage Weil
c0ef8b8746 rocksdb: fix i386 build
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 10:51:33 -07:00
Sage Weil
0e9f3759cc Merge remote-tracking branch 'gh/wip-test-ceph-disk' 2014-08-06 10:41:36 -07:00
Sage Weil
6168c3c988 Merge pull request #2215 from ceph/wip-kb
mon: clean up _kb fields in json and perf counter output

Reviewed-by: John Spray <john.spray@redhat.com>
2014-08-06 10:33:36 -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
3179bb107a mon/PGMonitor: add _bytes perf counters
Leave the _kb ones in place for now.

Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 09:18:27 -07:00
Sage Weil
adb2791adf mon/PGMonitor: add _bytes fields for all usage dumps
Leave the _kb ones in place for now.

Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 09:14:40 -07:00
Loic Dachary
b416446cb9 Merge pull request #2165 from dachary/wip-mailmap
mailmap updates
2014-08-06 17:23:17 +02:00
Sage Weil
895318c0cd README.md: word wrap
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 08:16:21 -07:00
Sage Weil
500b95e568 README: symlink from README.md
It looks better as markdown than rendered as text via the markdown tool,
so just symlink it.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-06 08:15:35 -07:00
Sage Weil
25b9761e24 Merge pull request #2202 from xinxinsh/enable-rocksdb-log-level
Enable rocksdb log level

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-06 07:46:04 -07:00
Sage Weil
859944d3c9 test/osd/osd-test-helpers: mkdir -p for ceph-disk
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-05 16:48:30 -07:00
Sage Weil
818f5b7038 Merge pull request #2208 from lpabon/osd_dev_doc
Developer quick start guide

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-05 15:25:40 -07:00
Sage Weil
c2f58e6694 test/ceph-disk.sh: mkdir -p
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-05 15:11:18 -07:00
Samuel Just
3f9f135f37 Merge remote-tracking branch 'upstream/next' into wip-sam-testing
Conflicts:
	src/osd/OSD.cc
2014-08-05 14:06:23 -07:00
Luis Pabón
a923e2c9eb Renamed README to README.md to render in markdown
Signed-off-by: Luis Pabón <lpabon@redhat.com>
2014-08-05 14:51:16 -04:00
Luis Pabón
52cf693e8d Developer quick start guide
Signed-off-by: Luis Pabón <lpabon@redhat.com>
2014-08-05 14:48:47 -04:00
xinxin shu
c09036aca2 enable info_log_level config option for rocksdb
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
2014-08-06 02:11:38 +08:00
John Wilkins
e6935dd461 Merge pull request #2206 from ceph/wip-8875
doc: be a bit more explicit about 'ceph-deploy new' in quickstart

Reviewed-by: John Wilkins <john.wilkins@inktank.com>
2014-08-05 10:21:58 -07:00
Alfredo Deza
66de51d1a5 be a bit more explicit about 'ceph-deploy new' in quickstart
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-08-05 12:52:00 -04:00
Sage Weil
3876da15b6 Merge branch 'master' of github.com:ceph/ceph 2014-08-05 09:15:34 -07:00
Sage Weil
bc1d2b8328 Merge remote-tracking branch 'gh/wip-8880'
Conflicts:
	src/osd/OSD.cc
2014-08-05 09:15:12 -07:00
Alfredo Deza
19b9ee947d Merge pull request #2204 from osynge/wip-dont-mkdir-by-mistake2
Do not make directories by mistake.

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2014-08-05 11:50:57 -04:00
Sage Weil
b8c1cabd94 Merge pull request #1883 from ceph/wip-msgr
messenger refactoring for xio

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-08-05 08:50:05 -07:00
Owen Synge
b4c80e31e3 Do not make directories by mistake.
Rational: I found I had created a series of OSD directories under "/dev/" when disks I thought existed did not exist.
Warning: This change will be noticed by end users and may effect deployment infrastructures.

Signed-off-by: Owen Synge <osynge@suse.com>
2014-08-05 17:28:16 +02:00
Sage Weil
e5b3c093c5 Merge pull request #2200 from theanalyst/typo
doc: typo s/loose/lose

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-05 07:57:51 -07:00
Wido den Hollander
f773b24e25 powerdns: Define a application variable when not invoked from Shell
This allows to be run directly using mod_wsgi behind Apache.
2014-08-05 16:33:03 +02:00
Abhishek Lekshmanan
1682e62eeb doc: typo s/loose/lose
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-08-05 10:35:03 +05:30
Sage Weil
541006c83d Merge pull request #1875 from dachary/wip-8437
erasure-code: benchmarking jerasure

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-04 17:41:53 -07:00
xinxin shu
b9b022e5de add annotation for rocksdb config option
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
2014-08-05 06:24:44 +08:00
Samuel Just
dceab8dc49 Merge pull request #2198 from ceph/wip-8998
fix OSD SEGV in heartbeat()

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-08-04 15:12:25 -07:00
Sage Weil
8dcfbd8e3b osd: simplify dout_prefix macros
Use a get_osdmap_epoch() helper that is a bit lighter weight (by avoiding
copying around an OSDMapRef).

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-04 15:01:15 -07:00
Sage Weil
80829d7805 osd: reorder OSDService methods under proper dout_prefix macro
The dout_prefix for OSDService uses get_osdmap() to grab a shared_ptr for
the epoch printout.  The OSD one does not, and is not safe to run in all
thread contexts.

In particular, update_osd_stat() is run by the heartbeat thread and can
race with the shared_ptr itself being updated with a new map.

Ironically, if this were simply an OSDMap*, there would be no race since
the pointer is a single word and updates atomically.

Fix this, and any similar issues, by moving the OSDService methods up in
OSD.cc so that they use the safe dout macro.

Fixes: #8998
Backport: firefly (in a minimal form, I think!)
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-04 14:57:28 -07:00
Sage Weil
0b445e0f6f Merge remote-tracking branch 'gh/next' 2014-08-04 13:56:24 -07:00
Sage Weil
047c18db6f doc/release-notes: make note about init-radosgw change
This changed back in 524aee6f95 but
was not mentioned in the release notes.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-04 13:48:06 -07:00