Commit Graph

34770 Commits

Author SHA1 Message Date
John Spray
8eef89e663 doc: fix example s/inspect/journal inspect/
Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-18 18:40:51 +01:00
John Spray
5438500af8 mds: fix journal reformat failure in standbyreplay
In the 0.82 release, standbyreplay MDS daemons would try
to reformat the jouranl if they saw an older version on
disk, where this should have only been done by the active
MDS for the rank.  Depending on timing, this could cause
fatal corruption of the journal.

This change handles the following cases:
* only do reformat if not in standbyreplay (else raise EAGAIN
to keep trying til an active mds reformats it)
* if journal header goes away while in standbyreplay then raise
EAGAIN (handle rewrite happening in background)
* if journal version is greater than the max supported, suicide

Fixes: #8811

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-18 18:40:51 +01:00
John Spray
ed3bc4c385 osdc/Journaler: validate header on load and save
Previously if the journal header contained invalid
write, expire or trimmed offsets, we would end up
hitting a hard-to-understand assertion much later.

Instead, raise the error right away if the fields
are identifiably bad at load time, and assert that
they're valid before persisting them.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-18 18:40:51 +01:00
Sage Weil
5093666151 Merge pull request #2104 from ceph/wip-dencoder
move ceph-dencoder to ceph from ceph-common

Reviewed-by: Dan Mick <dan.mick@inktank.com>
2014-07-18 10:29:50 -07:00
Sage Weil
094db11623 Merge pull request #2114 from ceph/wip-vstart
vstart.sh: default to 3 osds

Not-NAKed-by: John Spray <john.spray@inktank.com>
2014-07-18 10:27:51 -07:00
John Spray
18ca6b60d1 test: add a missing semicolon
Broke in df8f48628.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-18 18:00:44 +01:00
Sage Weil
113c3656a0 Merge pull request #2119 from ceph/wip-vstart-existing-mds
Wip vstart existing mds

Reviewed-by: Sage Weil <sage@redhat.com>
2014-07-18 09:51:13 -07:00
Sage Weil
df8f486288 Merge pull request #2108 from kevincox/sizeint
Fix size of network protocol intergers.

Reviewed-by: Sage Weil <sage@redhat.com>
2014-07-18 09:15:09 -07:00
John Spray
0cd0268421 qa: generalise cephtool for vstart+MDS
Previously this test assumed no pre-existing
filesystem and no MDS running.  Generalize it
to nuke any existing filesystems found before
running, so that you can use it inside a vstart
cluster that had MDS>0.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-18 16:53:58 +01:00
John Spray
bb5a574f12 mon: carry last_failure_osd_epoch across fs new
So that new MDSs in a new filesystem are guaranteed
to be up to date with anything we blacklisted
from a filesystem coming before.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-18 16:53:48 +01:00
John Spray
b936a276e3 mon/MDSMonitor: fix msg on idempotent fs rm
Was outputting trailing "unrecognised command"
because we returned 0 instead of setting r=0.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-18 16:53:48 +01:00
Dan Mick
06a8f7b99c configure: do not link leveldb with everything
Detect leveldb, but do not let autoconf blindly link it with everything on the
planet.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Sighed-off-by: Sage Weil <sage@redhat.com>
2014-07-17 21:44:06 -07:00
Sage Weil
0193d3aa29 AUTHORS
Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-17 21:33:22 -07:00
Dan Mick
b3eebec5ce Merge pull request #2116 from ceph/wip-logrotate
logrotate.conf: fix osd log rotation

Reviewed-by: Dan Mick <dan.mick@inktank.com>
2014-07-17 16:46:06 -07:00
Sage Weil
14a9ca602f logrotate.conf: fix osd log rotation under upstart
In commit 7411c3c6a4 we generalized this
enumeration code by copying what was in the upstart scripts.  However,
while the mon and mds directories get a 'done' file, the OSDs get a 'ready'
file.  Bah!  Trigger off of either one.

Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
2014-07-17 16:40:06 -07:00
Wido den Hollander
7b342ef030 doc: Add Note about European mirror in Quick Start 2014-07-17 22:56:01 +02:00
Sage Weil
2c4f22faa6 Merge pull request #2109 from ceph/wip-8849
remove ceph restarts on upgrades for RPMs

Backport: firefly
Reviewed-by: Sage Weil <sage@redhat.com>
2014-07-17 12:30:18 -07:00
Alfredo Deza
0f11aaeefd remove suse service restarts
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-07-17 15:06:10 -04:00
Alfredo Deza
e3a5756f58 remove ceph restarts on upgrades for RPMs
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-07-17 15:03:19 -04:00
Sage Weil
4d6899c756 qa/workunits/cephtool/test.sh: fix erasure_code_profile get test
I broke this in ce9f12d7a2 (the pool isn't
type erasure).

Signed-off-by: Sage Weil <sage@redhat.com>
2014-07-17 10:14:35 -07:00
John Spray
fe8c04f482 Merge pull request #2113 from ceph/wip-8857
mon/MDSMonitor: make legacy 'newfs' command idempotent

Reviewed-by: John Spray <john.spray@redhat.com>
2014-07-17 14:20:47 +01:00
Sage Weil
ce9f12d7a2 qa/workunits/cephtool/test.sh: test osd pool get erasure_code_profile
Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-16 17:55:36 -07:00
Ma Jianpeng
e8ebcb79a4 mon: OSDMonitor: add "osd pool get <pool> erasure_code_profile" command
Enable us to obtain the erasure-code-profile for a given erasure-pool.

Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-16 17:49:00 -07:00
Sage Weil
5ccfd37b19 vstart.sh: default to 3 osds
Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-16 17:46:11 -07:00
Sage Weil
5f6b11a6ad mon/MDSMonitor: make legacy 'newfs' command idempotent
We need to return success if we get a dup command.  Simply check whether
the fs is already enabled with the same pools and name.

Fixes: #8857
Signed-off-by: Sage Weil <sage@redhat.com>
2014-07-16 17:24:36 -07:00
Sage Weil
bf252c8df9 Merge remote-tracking branch 'gh/next' 2014-07-16 15:28:10 -07:00
Yehuda Sadeh
b89ab5f78d rgw: don't try to wait for pending if list is empty
Fixes: #8846
Backport: firefly, dumpling

This was broken at ea68b93723. We ended
up calling wait_pending_front() when pending list was empty.
This commit also moves the need_to_wait check to a different place,
where we actually throttle (and not just drain completed IOs).

Reported-by: Sylvain Munaut <s.munaut@whatever-company.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit f9f2417d7d)
2014-07-16 15:27:49 -07:00
Josh Durgin
512c7aad79 Merge pull request #2110 from ceph/wip-8846
rgw: don't try to wait for pending if list is empty

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-07-16 15:17:30 -07:00
Josh Durgin
ba7ad44fae Merge pull request #2095 from onlyjob/rbdmap
rbdmap: per-device post-map/pre-unmap hooks

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-07-16 14:58:33 -07:00
Josh Durgin
19e68ac5c3 rbd: respect rbd_default_* parameters
Treat rbd_default_{format,order,stripe_unit,stripe_count} as defaults for
the usual arguments for specifying those properties.

librbd::create() is affected by rbd_default_format, so we need to
explicitly override it if --image-format is set. The rest of the
parameters are passed explicitly when they are used, so their rbd_default
equivalents don't matter.

Fixes: #8821
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-07-16 14:34:15 -07:00
Josh Durgin
e891a93711 rbd: remove accidental repeated option
--stripe-count is already parsed above this

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-07-16 14:34:14 -07:00
Josh Durgin
0f87c55355 librbd: use order-agnostic default stripe parameters
This way the default striping style of splitting into
object-sized chunks still works with non-default orders
specified.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-07-16 14:34:14 -07:00
Gregory Farnum
1bf077246e Merge pull request #2107 from ceph/wip-set_layout
Wip set layout

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-07-16 14:10:40 -07:00
Yehuda Sadeh
f9f2417d7d rgw: don't try to wait for pending if list is empty
Fixes: #8846
Backport: firefly, dumpling

This was broken at ea68b93723. We ended
up calling wait_pending_front() when pending list was empty.
This commit also moves the need_to_wait check to a different place,
where we actually throttle (and not just drain completed IOs).

Reported-by: Sylvain Munaut <s.munaut@whatever-company.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2014-07-16 13:33:26 -07:00
Sage Weil
834772354c Merge pull request #2106 from ceph/wip-8813
eat up the level from logging output when not using the `-v` flag

Reviewed-by: Sage Weil <sage@redhat.com>
2014-07-16 12:18:31 -07:00
Alfredo Deza
420f0a471a set the default log level to WARNING
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-07-16 11:11:01 -04:00
Sage Weil
3e0d980076 init-ceph: wrap daemon startup with systemd-run when running under systemd
We want to make sure the daemon runs in its own systemd environment.  Check
for systemd as pid 1 and, when present, use systemd-run -r <cmd> to do
this.

Probably fixes #7627

Signed-off-by: Sage Weil <sage@redhat.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
Tested-by: Dan Mick <dan.mick@inktank.com>
2014-07-15 18:11:41 -07:00
Sage Weil
99dfaf7df4 doc/release-notes: v0.80.4
Signed-off-by: Sage Weil <sage@redhat.com>
2014-07-15 16:32:35 -07:00
Gregory Farnum
911038ecdb Merge pull request #2101 from ceph/wip-mds-session-asok-squash
Provide client session handling and information via the admin socket.

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-07-15 15:32:19 -07:00
Kevin Cox
80ea6067f7 Fix size of network protocol intergers.
This fixes the size of some integers that are visible in the network
protocol.  There should be no change for machines where sizeof(int) ==
4.

Signed-Of-By: Kevin Cox <kevincox@kevincox.ca>
2014-07-15 16:56:18 -04:00
John Spray
6c48d076ae doc: add cephfs layout documentation
This clarifies how to deal with layouts in CephFS
using vxattrs.  We can point people here if they
ask what they should use instead of the deprecated
`cephfs set_layout`.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-15 14:28:32 +01:00
John Spray
af740ecd49 cephfs: pool safety & print deprecation warning
Print a message indicating to users that this tool
is now deprecated in favour of vxattrs.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-15 12:45:34 +01:00
rootfs
d915ceb0a9 update hadoop-wordcount test to be able to run on hadoop 2.x. The hadoop and mapreduce library are no longer hard coded so they can be specified to point to the right path. The relative paths hdfs are changed to absolute paths.
A sample command to run the test on hadoop 2.x is
TESTDIR=/home/test HADOOP_HOME=/usr/lib/hadoop HADOOP_MR_HOME=/usr/lib/hadoop-mapreduce sh workunits/hadoop-wordcount/test.sh starting hadoop-wordcount test

Signed-off-by: rootfs <hchen@redhat.com>
2014-07-15 07:44:01 -04:00
John Spray
cceab2b7cb qa: retire kclient-specific layout test
`cephfs set_layout` was broken and is now deprecated
in favour of using xattrs for layout.  Retire the
kclient-specific test.

Fixes: #8773

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-15 12:23:39 +01:00
Sage Weil
95f5a448b5 ceph.spec: move ceph-dencoder to ceph from ceph-common
Signed-off-by: Sage Weil <sage@redhat.com>
2014-07-14 17:02:05 -07:00
Sage Weil
b37e3bde3b debian: move ceph-dencoder to ceph from ceph-common
It links against the world currently (notably leveldb).  Not nice for the
client-side lib.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-07-14 17:00:55 -07:00
João Eduardo Luís
aeaac69f41 Merge pull request #2098 from ceph/wip-dump-new-crush
crush: include CRUSH_V3, v2/v3 rules checks in dump_tunables()

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-07-14 23:41:38 +01:00
Sage Weil
ce72a3b527 Merge pull request #2103 from ceph/wip-8830
XfsFileStoreBackend: default to disabling extsize on xfs

Reviewed-by: Sage Weil <sage@redhat.com>
2014-07-14 15:38:59 -07:00
Samuel Just
01cd3cdc72 XfsFileStoreBackend: default to disabling extsize on xfs
This appears to be responsible for the deep scrub mismatches on some rbd
workloads.

Fixes: 8830
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-07-14 14:55:38 -07:00
Sage Weil
a560519c29 Merge pull request #2102 from ceph/wip-8823
ceph_test_rados_api_tier: fix [EC] HitSet{Read,Write,Trim} tests

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-07-14 10:43:35 -07:00