Commit Graph

25607 Commits

Author SHA1 Message Date
John Wilkins
fd8b4d0a9c doc: Removed logging from config index. Set depth to 1 for clean appearance.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-17 18:21:35 -07:00
John Wilkins
cd4b242d26 doc: Removed logging. Added references. Reorganized and edited.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-17 18:20:51 -07:00
John Wilkins
22a5cb66f3 doc: Removed. Not in toc, and otherwise generates a warning.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-17 18:19:34 -07:00
John Wilkins
84b0ec2812 doc: Updated hyperlink.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-17 18:18:46 -07:00
John Wilkins
808ad25a28 doc: Removed fragmented logging info. Consolidated into one doc.
Logging was variously described in the ceph configuration document,
a configuration reference, and a section in operations. Since
logging and debugging are generally used with troubleshooting,
I consolidated the docs and placed them in the troubleshooting
section. Also fixed the example and provided additional detail.

fixes: #3804

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-17 18:18:10 -07:00
Wido den Hollander
3c144e9b6c rbd: Only allow shrinking an image when --allow-shrink flag is passed
Signed-off-by: Wido den Hollander <wido@widodh.nl>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-04-17 15:42:34 -07:00
Greg Farnum
7b408ece37 client: disable invalidate callbacks :(
See #4746; it deadlocks right now.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-04-17 15:41:19 -07:00
Josh Durgin
90a3bb7ae3 Merge pull request #219 from ceph/wip-rbd-progress
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-04-17 15:37:11 -07:00
Sage Weil
db37bd8e73 rbd: add --no-progress switch
Disable progress output to stderr.t

Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-17 15:31:36 -07:00
Greg Farnum
8f21beb23c leveldbstore: handle old versions of leveldb
The filter_policy (bloom filter) stuff is fairly new in LevelDB's life,
and it turns out that precise's version is too old for it. Add conditional
compilation for those members in order to build and work properly.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-04-17 15:14:35 -07:00
Sage Weil
4bf2448210 Merge remote-tracking branch 'gh/wip-4521-fix' into next
Reviewed-by: Sage Weil <sage@inktank.com>
2013-04-17 15:03:03 -07:00
Yan, Zheng
085b3ec444 mds: change XLOCK/XLOCKDONE's next state to LOCK
For simplelock and filelock, XLOCK/XLOCKDONE's next state is SYNC.
But filelock in XLOCK/XLOCKDONE state allow Fb caps, filelock in
SYNC state does not. So filelock can be stuck in XLOCK/XLOCKDONE
state forever if there are Fb caps issued.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-04-17 14:39:22 -07:00
Yan, Zheng
efe7399749 mds: pass proper mask to CInode::get_caps_issued
There is a total of 22 cap bits and file lock uses 8 cap bits.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-04-17 14:39:22 -07:00
Joao Eduardo Luis
f25f922b9e mon: Monitor: convert osdmap_full as well
Store conversion wasn't converting the osdmap_full/ versions, only the
incrementals under osdmap/ and the latest full version stashed.  This
would lead to some serious problems during OSDMonitor's update_from_paxos
when the latest stashed didn't correspond to the first available
incremental.

Fixes: #4521

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-04-17 22:17:51 +01:00
Joao Eduardo Luis
1260041777 mon: PaxosService: add helper function to check if a given version exists
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-04-17 22:17:47 +01:00
Gary Lowell
3d4c87973d Merge pull request #216 from dalgaaf/wip-da-fix-spec
ceph.spec.in: use %{_sbindir} macro again
2013-04-17 14:15:49 -07:00
Danny Al-Gaaf
246b8118a8 osd/PG.cc: initialize PG::flushed in constructor
Initialize PG::flushed in constructor with false as
described in doc/dev/osd_internals/pg.rst .

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit fb840c8ff7)
2013-04-17 13:31:38 -07:00
Sage Weil
d3afae1fc8 Merge pull request #218 from dalgaaf/wip-da-sca-cppcheck
Two small fixes

Reviewed-by: Sage Weil <sage@inktank.com>
2013-04-17 13:31:19 -07:00
Sage Weil
593507ea70 Merge branch 'next'
Conflicts:
	doc/rbd/rbd-cloudstack.rst
2013-04-17 11:05:00 -07:00
Sage Weil
f8183c91e5 Merge pull request #215 from ceph/wip-leveldb-config
os: bring leveldbstore options up to date

Reviewed-by: Sage Weil <sage@inktank.com>
2013-04-17 09:49:11 -07:00
caleb miles
a993d2565f Fix policy handling for RESTful admin api.
Signed-off-by caleb miles <caleb.miles@inktank.com>
2013-04-17 11:42:47 -04:00
caleb miles
f3527d4b51 Fix policy handling for RESTful admin api.
Signed-off-by caleb miles <caleb.miles@inktank.com>
2013-04-17 11:23:44 -04:00
Sage Weil
544eb9bda2 qa: pull qemu-iotests from ceph.com mirror
Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-16 16:40:14 -07:00
Sage Weil
4865fb73c6 Merge pull request #214 from ceph/wip-objectcacher-handler-ordered
keep write responses to clones in order

Reviewed-by: Sage Weil <sage@inktank.com>
2013-04-16 15:48:15 -07:00
Sage Weil
899456617f librbd: flush on diff_iterate
The diff_iterate() tests fail when caching is enabled because recent writes
aren't visible to listsnaps.  Flush from diff_iterate to ensure that they
are.  Someday, maybe, we might make diff_iterate() inspect the cache
contents to make this more efficient, but for now that is not necessary.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-16 15:46:32 -07:00
John Wilkins
103fb9b0fb Merge branch 'next' of https://github.com/ceph/ceph into next 2013-04-16 13:29:15 -07:00
John Wilkins
efce39e221 doc: Cherry-picked from master to next. Uses ceph-mds package during upgrade.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-16 13:28:18 -07:00
John Wilkins
82aab8dcf3 doc: Cherry-picked from master to next. Rewrite of CloudStack document.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-16 13:26:32 -07:00
John Wilkins
97532875ce doc: Cherry-picked from master to next. Updates config to use virtio.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-16 13:24:47 -07:00
John Wilkins
72b3919c81 doc: Cherry-picked from master to next. Reorders ceph osd create.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-16 13:23:56 -07:00
John Wilkins
3afe84b200 doc: Cherry picked from master to next. Adds comments on naming OSDs.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-16 13:22:13 -07:00
Sage Weil
02d3c114ab os/FileJournal: fix journal completion plug removal
We plug completions when transitioning from a full to non-full journal
to ensure that we do not complete items before we have a stable journal
starting point that is past the committed_thru marker.  However, the order
of the header update and completion queueing means that we never remove
the plug if the journalq is empty--the seq test is always false.  The
result is very slow osd requests that only commit when we do a full sync.

This bug was masked until recently by another issue, fixed in
170d4a3d79.

The simple fix is to reorder the completion queuing before we update the
new header.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-04-16 13:20:58 -07:00
Greg Farnum
d8a354d511 config: provide settings for the LevelDB stores we use
Now that we can set up the LevelDB options internally, provide
config options on the OSD and the Monitor. We leave the OSD values
at the defaults for now as they're performance-sensitive, but we
set new values on the Monitor so that it can scale to large PGMaps.
(Previously there were issues with large PGMaps taking forever to write;
these changes to the use of compression and the default block and
write buffers counteract them.)

Since we pass these variables through, users who are interested in
doing so now can test and tune them more appropriately.

Reported-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-04-16 10:59:21 -07:00
Danny Al-Gaaf
fb840c8ff7 osd/PG.cc: initialize PG::flushed in constructor
Initialize PG::flushed in constructor with false as
described in doc/dev/osd_internals/pg.rst .

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-04-16 18:14:49 +02:00
Sam Lang
4a84ddbd30 client: Fix inode remove from snaprealm race
This is a follow on fix to b5ce4d0.  Always remove the inode from the
snaprealm's list of inodes_with_caps before the snaprealm ref is
decremented (and the snaprealm potentially gets freed).

Fixes #4694.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-04-16 09:04:42 -07:00
Danny Al-Gaaf
0dc0f5b736 osd/PG.h: remove unused variable prior_set_built
Commit 540f42ce28 removed usage of prior_set_built, remove
also the related protected variable from the header.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-04-16 18:02:08 +02:00
Sage Weil
6133ea5e59 librbd: use initialized data for DiffIterateDiscard test
Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-15 21:50:09 -07:00
Sage Weil
638eb24fe5 librbd: print seed for all DiffIterate tests
This will aid debugging on failures, and give better coverage.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-15 21:32:03 -07:00
Sage Weil
1ddea41fc5 Merge pull request #217 from alram/master
Fix: use absolute path with udev

Reviewed-by: Sage Weil <sage@inktank.com>
2013-04-15 20:32:46 -07:00
John Wilkins
b343c5251a doc: Changed MDS upgrade to use ceph-mds package.
fixes: #4727

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-15 16:31:18 -07:00
Alexandre Marangone
785b25f53d Fix: use absolute path with udev
Avoids the following: udevd[61613]: failed to execute '/lib/udev/bash'
'bash -c 'while [ ! -e /dev/mapper/....

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
2013-04-15 15:57:00 -07:00
John Wilkins
b4fc83ccde doc: Overhauled Wido's CloudStack document.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-15 07:39:32 -07:00
Danny Al-Gaaf
d801ca3077 ceph.spec.in: use %{_sbindir} macro again
Commit ae71b576a7 change some paths
again to absolute path to /usr/sbin. Use the correct macro %{_sbindir}
again as done in 4b90a958d1.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-04-15 12:47:27 +02:00
Josh Durgin
06a95a6e38 Merge branch 'next' 2013-04-12 18:33:57 -07:00
Josh Durgin
98de67d424 qa: add workunit for running qemu-iotests
This uses the old stand-alone qemu-iotests repo so it works with the
version of qemu in Ubuntu 12.04. The tests depend tightly on qemu
version, so to use later tests we'd need to install corresponding
versions of qemu.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-04-12 17:59:35 -07:00
Greg Farnum
a0ae2ece49 os: bring leveldbstore options up to date
LevelDB has a lot of options which we don't implement right now. Add
an options struct to the LevelDBStore which users can access as they
wish in order to set values different from the defaults.
This will let us set various size values, as well as turning on
caching or bloom filter read optimizations.

Signed-off-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-04-12 16:29:02 -07:00
Gregory Farnum
98e4c86474 Merge pull request #205 from dalgaaf/wip-da-md_config-class
md_config_t: change from class to struct as the name indicates

Reviewed-by: Greg Farnum <greg@inktank.com>
2013-04-12 14:21:42 -07:00
Greg Farnum
6b98162f2b mds: output error number when failing to load an MDSTable
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-04-12 13:14:17 -07:00
Gary Lowell
ae71b576a7 init-radosgw.sysv: New radosgw init file for rpm based systems
Added init-radosgw.sys file for rpm based systems, added it to
the tarball list in the makefile, and updated the specfile to
install it.  Also added the a dependency in ceph since it uses
utility routes from that package (On debian systems these are
packaged in ceph-common).  Incorporated review comments from
Alex. (Bug #4571)

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
Reviewed-by: Alexandre Marangone  <alexandre.marangone@inktank.com>
2013-04-11 23:02:08 -07:00
Greg Farnum
f875c0c913 mds: only go through the max_size change rigamarole if the client requested it
The previous patch was forcing a new size change even if we were
doing it as part of our regular optimistic settings; we don't much
want to do that. This is a small optimization, but Sage asked for
it and it's very easy.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-04-11 17:42:59 -07:00