Commit Graph

35686 Commits

Author SHA1 Message Date
Loic Dachary
fcf8059721 Merge pull request #2408 from theanalyst/doc/contributing
doc: Add a contributing file at the root of repo

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-09-05 20:59:39 +02:00
Abhishek Lekshmanan
f0a1d281c7 doc: Add a contributing file at the root of repo
Github shows up a `guidelines for contributing` while opening a new pull
request for any repository with a CONTRIBUTING file at the repo
root, which allows for a quick overview to contribute to the
repository.

Currently this file just links to the Submitting Patches and the
documentation start guide.

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-09-06 00:23:24 +05:30
Yehuda Sadeh
4c4131c6a7 Merge pull request #2406 from alram/master
rgw: add .log to default log path

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2014-09-05 10:48:20 -07:00
Alexandre Marangone
4673242089 rgw: add .log to default log path
Fixes: #9353
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
2014-09-05 10:36:24 -07:00
Yehuda Sadeh
8c60286891 Merge pull request #2329 from theanalyst/f/s3_bucket_loc
WIP: S3: Implementation for S3 Get Bucket Location

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2014-09-05 09:06:39 -07:00
Loic Dachary
6cac39e828 Merge pull request #2405 from dachary/wip-workunits
qa: scripts to help test ceph-qa-suite

Reviewed-by: Cheng Cheng <ccheng.leo@gmail.com>
2014-09-05 17:56:45 +02:00
Loic Dachary
df3c70a954 qa: scripts to help test ceph-qa-suite
This workunit will be used by tests as a placeholder that always return
true. This is helpful in tests when a script from the qa/workunits
directory is mandatory but we do not care about testing anything.  For
an example of how it can be used, check
https://github.com/ceph/ceph-qa-suite/pull/120

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-09-05 17:49:40 +02:00
Abhishek Lekshmanan
d8e672f351 rgw: Implementation for S3 Get Bucket Location
S3 API supports getting the location for a bucket, which gives out one
of those geographic zones (US-WEST-1, EU for eg). Also it returns an
empty string for the default region.
(http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html)

Since LocationConstraint corresponds to regions in our case, this API
returns the region, for the "default" region empty string is returned

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
2014-09-05 09:06:27 +05:30
Abhishek Lekshmanan
9e503b56fc test/formatter: Add tests for dump_format_ns
Adding basic unit test to test the new formatter class'
dump_format_ns. Since the functionality only affects XML (and other
implementations mimic dump_format exactly), tests are added for these.
`fmt.close_section()` is avoided in the tests as this calls an
assert (and there is no section to close) and this triggers a test
failure.

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
2014-09-05 09:04:48 +05:30
Abhishek Lekshmanan
eaa2bb0aab rgw_formats: dump_format_ns implementation
Since the base formatter was extended with a dump_format_ns class,
implementing this here. For now, this is exactly same as dump_format, as
the concept of ns in json is not used.

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
2014-09-05 09:04:48 +05:30
Abhishek Lekshmanan
2fb51b2b58 Formatter: add a dump_format_ns to base Formatter
`dump_format_ns` is a generic formatter to dump a simple format along
with a namespace. It is `dump_format` with an optional ns. This also
extends the XML formatter with this functionality. This allows creation
of xml tags with ns and a specified format. The JSON Format doesn't
define a ns, and here the functionality is exactly same as that of
`dump_format`

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
2014-09-05 09:04:48 +05:30
Yan, Zheng
b32712f1fc Merge pull request #2375 from ceph/wip-8648
mds: clear objects' dirty flags after log segment is expired
2014-09-05 08:56:36 +08:00
David Zafman
677bb45b88 Merge pull request #2393 from dachary/wip-warning
erasure-code: warning fix

Reviewed-by: David Zafman <dzafman@redhat.com>
2014-09-04 17:33:21 -07:00
Yan, Zheng
eae88dad4c mds: clear objects' dirty flags after log segment is expired
When standby-replay MDS detects a log segment is expired, it should check
the expired segment's dirty lists and clear corresponding objects' dirty
bits. Otherwise these objects will be pinned in the standby-replay MDS's
cache forever.

Fixes: #8648
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-09-05 08:33:21 +08:00
John Wilkins
bbb77006ec Merge pull request #2399 from ceph/wip-8366
doc: adds a navigational menu for docs

Reviewed-by: John Wilkins <john.wilkins@inktank.com>
2014-09-04 10:51:17 -07:00
Alfredo Deza
69638dfaeb doc: fix missing bracket
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-09-04 13:44:37 -04:00
Alfredo Deza
35663fa55a doc: attempt to get the ayni JS into all head tags
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-09-04 13:44:32 -04:00
Loic Dachary
135ccad117 erasure-code: warning fix
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-09-04 10:14:03 +02:00
Loic Dachary
36554f90eb Merge pull request #2392 from majianpeng/fix1
FileStore: Remove unused code.

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-09-04 10:04:28 +02:00
Ma Jianpeng
7de8d17d2f FileStore: Remove unused code.
Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
2014-09-04 14:01:20 +08:00
Gregory Farnum
1bcf40459c Merge pull request #2373 from ceph/wip-9026
client: vxattr support for stat

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-09-03 21:08:15 -07:00
John Spray
eadc352d45 Merge remote-tracking branch 'origin/next' 2014-09-03 13:52:32 +01:00
John Spray
0f92657d59 Merge pull request #2377 from ceph/wip-session-stats
mds: cap and lease count in `session ls` asok

Reviewed-by: Yan, Zheng <ukernel@gmail.com>
2014-09-03 13:39:25 +01:00
John Spray
ebd1152944 Merge pull request #2376 from ceph/wip-request-count
mds: Fix Session::get_request_count

Reviewed-by: Yan, Zheng <ukernel@gmail.com>
2014-09-03 13:39:19 +01:00
Yan, Zheng
ca6eb61285 client: vxattr support for rstat
copy the kernel client code (which uses table to present vxattrs)

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-09-03 06:30:24 +08:00
Samuel Just
299f28b0eb Merge pull request #2363 from ceph/wip-9285
osd/ReplicatedPG: do not evict blocked objects

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-09-02 14:09:55 -07:00
John Spray
8657022cc8 Merge pull request #2343 from ceph/wip-9151
Wip 9151 + 9152

Reviewed-by: Sage Weil <sage@redhat.com>
2014-09-02 22:02:59 +01:00
Samuel Just
d0e0eb47e9 Merge pull request #2362 from ceph/wip-9294
osd/ReplicatedPG: avoid dereferencing iterator at end()

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-09-02 12:47:51 -07:00
John Wilkins
ed62ae58cd Merge pull request #2322 from ceph/wip-doc-authentication
doc: Refactored authentication docs.

Reviewed-by: John Wilkins <john.wilkins@inktank.com>
2014-09-02 11:40:22 -07:00
John Wilkins
c2443b9584 doc: Provided additional detail on daemon-specific caps syntax.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-09-02 11:38:16 -07:00
John Wilkins
8569b93cba doc: Updated Keyring settings from comments and ceph-deploy defaults.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-09-02 11:37:33 -07:00
Loic Dachary
9c98d555c4 Merge pull request #2372 from dachary/wip-disk-thread-ioprio
documentation: document disk thread ioprio options

Reviewed-by: Volker Voigt <volker.voigt@1und1.de>
2014-09-02 19:18:35 +02:00
Loic Dachary
b6a97d83da documentation: disk thread ioprio options
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-09-02 19:08:00 +02:00
John Spray
c8d2388060 mon: add MDS metric metadata to health detail
This is a bit wonky because the mon health structure expects
a string, and we have a key-val structure, but it's better
to output this somehow than to have it rot as a purely internal
thing.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:25 +01:00
John Spray
9ee801524f mds: add thread to progress queues outside dispatch
This speeds up processing of queued waiters.

Fixes: #9252

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:25 +01:00
John Spray
1058a9e18a mon: handle beacon health metrics in MDSMonitor
Fixes: #9151

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:25 +01:00
John Spray
0fc8a0da1a mds: populate health metrics in beacon
Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:25 +01:00
John Spray
12ab937a71 messages: add health fields to MMDSBeacon
Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:25 +01:00
John Spray
f5e7a4be4a mds: use HeartbeatMap to control beacons
...so that if something hogs mds_lock without
pinging the heartbeat map, we will stop sending
beacons to the mon and it will have the chance
to recognise that we are laggy.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:25 +01:00
John Spray
681f4f8bd1 mds: const getters in MDLog
Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:24 +01:00
John Spray
124856ab58 include/CompatSet: more const-ness
Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:24 +01:00
John Spray
232757f45e mds: promote Beacon to be a Dispatcher
This allows it to handle its own MSG_MDS_BEACON
messages from the mon, outside of mds_lock.

This is less important than the sending of beacons
being outside the lock, but still nice to have and
gets all the beacon messaging in one place.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:24 +01:00
John Spray
17d547ed3e mds: extract beacon state from MDS lock
For clarity, give it its own class for the
state protected by the separate lock too.

Fixes: #9152

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:24 +01:00
John Spray
e69f3214d1 include/CompatSet: make merge const()
With usual shenanigans to deal with [] on map
not being const-safe.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:24 +01:00
John Spray
4d9927e048 mds: cap and lease count in session ls asok
Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 13:18:39 +01:00
John Spray
ea2a8d0415 mds: Fix Session::get_request_count
Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 13:18:19 +01:00
Loic Dachary
3215c520e1 Merge pull request #2366 from dachary/wip-mailmap
mailmap: add .peoplemap

Reviewed-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-09-01 11:24:12 +02:00
Loic Dachary
5554c7e7d2 Merge pull request #2370 from ceph/wip-9309
lockdep: increase max locks (1000 -> 2000)

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
2014-09-01 10:14:57 +02:00
Sage Weil
a5b4c58316 lockdep: increase max locks (1000 -> 2000)
We hit the 1000 lock limit on

 ubuntu@teuthology:/a/teuthology-2014-08-31_02:30:01-rados-next-testing-basic-multi/463411

Fixes: #9309
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-31 17:46:33 -07:00
Sage Weil
41914ec3a4 Merge pull request #2369 from dachary/wip-mark-unfound-lost
documentation: add the mark_unfound_lost delete option

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-31 17:32:42 -07:00