Commit Graph

24450 Commits

Author SHA1 Message Date
Yehuda Sadeh
4384e59ad0 rgw: set attrs on various list bucket xml results (swift)
Fixes: #4247
The list buckets operation was missing some attrs on the different
xml result entities. This fixes it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-03-08 08:31:42 -08:00
Yehuda Sadeh
7cb6ee2807 formatter: add the ability to dump attrs in xml entities
xml entities may have attrs assigned to them. Add the ability
to set them. A usage example:

formatter->open_array_section_with_attrs("container",
     FormatterAttrs("name", "foo", NULL));

This will generate the following xml entity:
<container name="foo">

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-03-08 08:31:37 -08:00
Yehuda Sadeh
6669e73fa5 rgw: don't iterate through all objects when in namespace
Fixes: #4363
Backport: argonaut, bobtail
When listing objects in namespace don't iterate through all the
objects, only go though the ones that starts with the namespace
prefix

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-03-08 06:55:03 -08:00
Sage Weil
1e2864a020 osd: increate default pg log size from 1000 -> 3000
This reduces the probability that we will fail to detect a dup op.  See
#4368.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-07 10:31:27 -08:00
Sage Weil
e19b8f5fb0 Merge remote-tracking branch 'gh/wip-log-max' into next
Reviewed-by: Sage Weil <sage@inktank.com>
2013-03-07 09:29:44 -08:00
Josh Durgin
e6caf69cf4 config: note which options are overridden by common_preinit()
Defaults for these differ based on the context in which they're used.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-03-06 17:49:57 -08:00
Josh Durgin
7c208d2f8e common: reduce default in-memory logs for non-daemons
The default of 100000 can result in hundreds of MBs of extra memory
used. This was most obvious when using librbd with caching enabled,
since there was a dout(0) accidentally left in the ObjectCacher.

refs: #4352
backport: bobtail
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-03-06 17:47:28 -08:00
Sage Weil
a58eec90ca init-ceph: fix run dir
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-06 17:09:58 -08:00
Sage Weil
de2c5b3fb7 osd: add ctor for clone_info
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 439d0e334d)
2013-03-06 15:13:16 -08:00
Josh Durgin
cb3ee33532 ObjectCacher: fix debug log level in split
Level 0 should never be used for this kind of debugging.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-03-06 12:32:43 -08:00
Sage Weil
de31531da3 Merge pull request #90 from grosskur/fix-debian-libsnappy
debian: require libsnappy-dev for ceph
2013-03-06 07:54:13 -08:00
Alan Grosskurth
a319f5cb74 debian: require libsnappy-dev for ceph
Debian builds are currently broken without this requirement.
2013-03-06 02:21:12 -08:00
Gary Lowell
e694ea58c2 release-process.rst: Fix typos
Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-03-05 22:08:15 -08:00
Sage Weil
8184b68c37 Merge branch 'wip-prepare'
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Tested-by: Tamil Muthamizhan <tamil.muthamizhan@inktank.com>
2013-03-05 13:33:05 -08:00
Sage Weil
32407c994f ceph-disk-prepare: move in-use checks to the top, before zap
Move the in-use checks to the very top, before we (say) zap!

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-05 13:08:26 -08:00
Sage Weil
8550e5c6ab doc/release-notes: v0.58
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-05 11:03:08 -08:00
carsonoid
b244b87f28 Update doc/radosgw/s3/python.rst
Note about creating conn object for non-ssl implementations.
2013-03-05 11:03:08 -08:00
David Zafman
3bd48cbbad Merge branch 'wip-4207'
Feature: #4207: osd/librados: add ops to list snaps for an object

Signed-off-by: David Zafman <david.zafman@inktank.com>
Reported-by: Sam Just <sam.just@inktank.com>
2013-03-05 10:26:29 -08:00
Gary Lowell
af6b6eddae Merge branch 'master' of https://github.com/ceph/ceph 2013-03-05 09:06:24 -08:00
Gary Lowell
66cadbe515 Merge branch 'next' 2013-03-05 09:05:21 -08:00
David Zafman
7cd1cb2f9e Add list_snaps() calls to snapshots test cases
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-03-04 23:16:50 -08:00
David Zafman
818f3d298e Add rados listsnaps command
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-03-04 23:16:50 -08:00
David Zafman
db4ccc0827 osd/librados: add op to list clones/snaps for an object
Returning snap_set_t with clone info
and snapshots in ascending order
Add clones with snapshots to obj_list_snap_response_t
New rados_types.hpp with snap_set_t/clone_info_t
Move snap_t to rados_types.hpp
Add generate_test_instances() and TYPE() to encoding/types.h

Feature: #4207

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-03-04 23:16:43 -08:00
David Zafman
3b5933e0a0 Remove unused SnapContext in librados.hpp
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-03-04 21:35:00 -08:00
David Zafman
1ebfb41455 osd: Improve snapshot test
In SelfManagedSnapRollbackPP add some overlapping writes
New SelfManagedSnapOverlap creates overlapping writes

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-03-04 21:35:00 -08:00
David Zafman
84183303a6 osd: correct comment
SnapSet snaps are in descending order

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-03-04 21:35:00 -08:00
Sage Weil
a6196de9e2 ceph-disk-prepare: verify device is not in use by device-mapper
Be nice and tell the user which devices/mappings are consuming the device,
too.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-04 20:57:52 -08:00
Sage Weil
3bd0ac0ab0 ceph-disk-prepare: verify device is not mounted before using
Make sure the data and/or journal device(s) are not in use (mounted)
before using them.  Make room for additional "in-use" checks in the future.

Closes: #3256
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-04 17:30:13 -08:00
Josh Durgin
867586c674 debian: require >= python2.6 for ceph as well
ceph-disk-prepare and ceph-disk-activate use the with statement,
str.format, and possibly other new features from python 2.6.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-03-04 16:49:14 -08:00
Sage Weil
f03f62697f ceph-disk-prepare: clean up stupid check for a digit
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-04 16:29:57 -08:00
Sage Weil
59505546e5 ceph-disk-prepare: use os.path.realpath()
My janky symlink resolution is broken in various ways.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-04 16:08:15 -08:00
Gary Lowell
ba3f91e750 v0.58 2013-03-04 15:18:24 -08:00
Filippos Giannakos
66df847e00 Add X-Python-Version >=2.6 to debian control file.
python-ceph complains when installed to debian squeeze about the 'with'
statement. Apparently installation tries to install the python-ceph package for
python 2.5, which does not support the 'with' statement natively.

Signed-off-by: Filippos Giannakos <philipgian@grnet.gr>
2013-03-04 15:10:00 -08:00
Samuel Just
a06ea30f84 PG,ReplicatedPG: use pg_has_reset_since to discard old async events
Local async events are obsolete if the pg is deleting or if the
epoch at which they were created is prior to last_peering_reset.

Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 62999ea2d3)
2013-03-04 13:54:06 -08:00
Samuel Just
83e9aa5038 PG::build_scrub_map: detect race with peering via last_peering_reset
Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 67225339dc)
2013-03-04 13:54:04 -08:00
Samuel Just
9e4722595c ReplicatedPG::C_OSD_CommittedPushedObject: use intrusive_ptr for pg
Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 04ee8f478b)
2013-03-04 13:53:59 -08:00
Samuel Just
3e596678fd ReplicatedPG::C_OSD_CommittedPushedObject take epoch submitted
What we really care about is that the epoch in which the Context
was submitted is at complete() time >= last_peering_reset.

Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit a01dea6af9)
2013-03-04 13:53:55 -08:00
Sage Weil
2a7e802d69 init-ceph: fix --restart option
Reported-by: Bryan K. Wright <bkw1a@ayesha.phys.virginia.edu>
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-04 12:34:58 -08:00
John Wilkins
007c83db1b doc: Updated year in footer.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-03-04 11:48:14 -08:00
John Wilkins
0167d2ae74 Merge branch 'master' of https://github.com/ceph/ceph 2013-03-04 10:59:50 -08:00
John Wilkins
1d33436043 doc: Added instructions for ensuring ceph config file and keyring prior to mounting ceph fuse.
fixes: #3796

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-03-04 10:59:18 -08:00
Sage Weil
872753bd29 Merge pull request #89 from Elbandi/master
remove unused variable from makefile
2013-03-04 10:33:15 -08:00
Sage Weil
1cfc3ae0d4 jounal: disable aio
There is a deadlock issue in the aio code, see #4079.  Disable for the time
being.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-04 10:08:49 -08:00
Sage Weil
a3f50267ae Merge remote-tracking branch 'gh/wip-3484'
Reviewed-by: Sage Weil <sage@inktank.com>
2013-03-04 09:18:28 -08:00
Andras Elso
7e2785a33c Build: no longer need to use LEVELDB_INCLUDE
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-03-04 13:36:10 +01:00
Joao Eduardo Luis
d5a453f06b tools: ceph: add 'ceph df' usage
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-03-04 11:37:17 +00:00
Joao Eduardo Luis
de6d0a222b mon: Monitor: 'ceph df'
Fixes: #3484

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-03-04 11:37:17 +00:00
Gary Lowell
e3847986cf README: Add libsnappy-dev to build requirements.
Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-03-01 23:32:54 -08:00
Dan Mick
14daccc1fb doc: missing blank line in radosgw/config-ref 2013-03-01 19:53:33 -08:00
Gary Lowell
83705e6497 Merge pull request #85 from dalgaaf/wip-da-spec-1
Fix package requirements to get sgdisk and merge some changes back from SUSE spec file.

Reviewed-by: Gary Lowell <gary.lowell@inktank.com>
2013-03-01 19:09:04 -08:00