Commit Graph

29398 Commits

Author SHA1 Message Date
Sage Weil
92ea0d19bb test/librados/cmd: fix compile error
From commit f0805cb61f.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-15 15:32:07 -07:00
Samuel Just
c69e76cbdd ReplicatedPG: remove the other backfill related flushes
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-10-15 15:19:10 -07:00
Samuel Just
3469dd896f RadosModel: send racing read on write
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-10-15 15:19:09 -07:00
Samuel Just
0246d47f56 ReplicatedPG: block reads on an object until the write is committed
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-10-15 15:19:05 -07:00
Samuel Just
c658258d9e OSD: ping tphandle during pg removal
Fixes: #6528
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-10-15 15:16:56 -07:00
Sage Weil
0d508156ca Merge pull request #687 from ceph/wip-pool
mon: make 'mon {add,remove}_data_pool ...' take pool name or id

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-10-15 15:09:09 -07:00
Sage Weil
3b97b4166a Merge pull request #718 from ceph/wip-6553
rgw: fix authenticated users acl group check

Reviewed-by: Sage Weil <sage@inktank.com>
2013-10-15 15:04:41 -07:00
Sage Weil
53ff63c2f8 Merge pull request #723 from ceph/wip-6334
common: don't do special things for unprivileged daemons

Reviewed-by: Greg Farnum <greg@inktank.com>
2013-10-15 15:03:50 -07:00
Sage Weil
4f403c26dc common: don't do special things for unprivileged daemons
We generally do want an admin socket and log, and people usually run these
as root.  This is more confusing than useful.

Fixes: #6334
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-15 14:35:20 -07:00
Sage Weil
5aa237e8a8 mon, osd: send leveldb log to /dev/null by default
Fixes: #5175
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-15 14:23:43 -07:00
Sage Weil
ee480d8685 Merge pull request #542 from ceph/wip-6122
test/librados/cmd.cc: tolerate thrashing on pg_command tests
2013-10-15 13:46:25 -07:00
John Wilkins
ab8f9b17d6 doc: Update from user feedback. Needed to enable S3/Keystone.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-15 13:38:48 -07:00
Alan Somers
bd7a7dd689 os/FileStore: fix fiemap double-free(s)
If GenericFileStoreBackend::do_fiemap returns anything other than 0, then
fiemap will not be allocated. However,
GenericFileStoreBackend::detect_features will free fiemap regardless,
triggering an assertion in tcmalloc. The attached patch will fix the bug
by only freeing fiemap when necessary.

In my case, do_fiemap returns -ENOSYS because fiemap is not implemented
on FreeBSD. However, this bug could also happen on Linux when do_fiemap
returns -ENOMEM.

Fixes: #6504
Signed-off-by: Alan Somers <asomers@gmail.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-10-15 13:26:15 -07:00
Alan Somers
26228ed701 ceph-dencoder: select_generated() should properly validate its input
If m_list.size() == 0, then calling select_generated(0) will result in
uninitialized data being assigned to m_object, which will cause a segfault
down the road. This patch fixes that.

To Reproduce:
$ ceph-dencoder type MWatchNotify select_test 0 encode decode
Segmentation fault (core dumped)

After the patch:
$ ./ceph-dencoder type MWatchNotify select_test 0 encode decode
error: invalid id for generated object
$ echo $?
1

Fixes: #6510
Signed-off-by: Alan Somers <asomers@gmail.com>
2013-10-15 13:06:54 -07:00
Sage Weil
8b43d72453 vstart.sh: create dev/ automatically
Otherwise you have to explicitly create it on a new checkout.

Also mkdir -p for consistency, tho it's not needed if dev/ is already
there.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-15 12:53:05 -07:00
Yehuda Sadeh
8d7dbf8547 rgw: change default log level
Fixes: #6554
Backport: cuttlefish, dumpling
Default log level was just too high, bring it down a bit.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-10-15 12:32:58 -07:00
Sage Weil
87445ae9ef Merge pull request #720 from liewegas/wip-6521
mon/PGMonitor: set floor below which we do not warn about objects/pg

Reviewed-by: Greg Farnum <greg@inktank.com>
2013-10-15 12:16:26 -07:00
Sage Weil
70cc681326 mon/PGMonitor: set floor below which we do not warn about objects/pg
If a cluster has very few objects, do not generate warnings when the
objects/pg for a pool diverges from the cluster average.  This avoids
spurious errors when you have a relatively empty cluster and a lone pool
with a modest number of objects is too far off the (mostly meaningless)
cluster-wide average.

Also include a per-pool min so we ignore mostly-empty pools.

Fixes: #6521
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-15 11:22:16 -07:00
Sage Weil
7f7f760890 Merge pull request #706 from ceph/wip-6059
Wip 6059

Partly-reviewed-by: Greg Farnum <greg@inktank.com>
Partly-reviewed-by: Sage Weil <sage@inktank.com>
2013-10-15 10:27:56 -07:00
Yehuda Sadeh
bebbd6cb7b rgw: fix authenticated users acl group check
Fixes: #6553
Backport: bobtail, cuttlefish, dumpling
Authenticated users group acl bit was not working correctly. Check to
test whether user is anonymous was wrong.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-15 10:23:39 -07:00
Sage Weil
0ad33423f0 Merge pull request #717 from dachary/master
mon: osd pool set syntax relaxed, modify unit tests

Reviewed-by: Sage Weil <sage@inktank.com>
2013-10-15 10:12:07 -07:00
Loic Dachary
08327fed82 mon: osd pool set syntax relaxed, modify unit tests
The argument is no longer restricted to a numerical value. Another
variable was added ( hashpspool ) check that it is a valid variable.

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-10-15 19:03:25 +02:00
Sage Weil
a0ffba6de2 Merge pull request #596 from ceph/wip-6147
mon: keep track of per-pool stats

Reviewed-by: Sage Weil <sage@inktank.com>
2013-10-14 17:06:48 -07:00
Sage Weil
a3368cfc5f Merge remote-tracking branch 'gh/next' 2013-10-14 17:06:13 -07:00
huangjun
02b5eb281a ceph.spec.in: do not list ceph-rest-api twice; add missing cls_hello files
Reported-by: hjwsm1989@gmail.com
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-14 17:05:49 -07:00
Sage Weil
7a3e13de0d Merge pull request #712 from ceph/wip-mon-pool-set
rework ceph osd pool set <pool> <field> <val>

Reviewed-by: Sage Weil <sage@inktank.com>
2013-10-14 16:56:41 -07:00
Sage Weil
dd33c9802f osd/osd_types: generalize pg_pool_t::get_flags_string()
This way the method doesn't have to be modified when new flags are added.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-14 16:54:07 -07:00
Joao Eduardo Luis
5abe5c273a mon: OSDMonitor: add 'osd pool stats' command
Fixes: #6147

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-10-15 00:51:35 +01:00
Joao Eduardo Luis
2cd5320019 mon: PGMap: rework client IO rate calc and output
Create a function so we can use the same format when outputting per-pool
stats

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-10-15 00:51:35 +01:00
Joao Eduardo Luis
e3ba8e82ac mon: PGMap: reuse existing summary functions to output pool stats
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-10-15 00:51:35 +01:00
Joao Eduardo Luis
82e3317d79 mon: PGMap: keep track of per-pool stats deltas
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-10-15 00:51:30 +01:00
Sage Weil
b0994e7011 Merge pull request #694 from grosskur/fix-rpm-junit4
ceph.spec.in: Always depend on junit4 (fixes bug #6216)

Reviewed-by: Loic Dachary <loic@dachary.org>
2013-10-14 16:48:17 -07:00
Sage Weil
e2602c549f mon: make 'mon {add,remove}_data_pool ...' take pool name or id
Take either a pool name or an id.  Fix up the tests accordingly.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-14 16:46:58 -07:00
Yehuda Sadeh
7f0d644cb4 Merge branch 'wip-rgw-quota'
Conflicts:
	src/test/cli/radosgw-admin/help.t

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-14 14:14:17 -07:00
Yehuda Sadeh
f2645e1c6d rgw: swift update obj metadata also add generic attrs
Fixes: #6462
We were missing the generic attributes when we updated the object
metadata (operation that only exists in the swift api).

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-14 11:26:39 -07:00
Gregory Farnum
097d61d104 Merge pull request #711 from ceph/wip-objecter-errors
These two patches fix several completion Contexts which are inappropriately setting the Op rval to zero.

Reviewed-by: Greg Farnum <greg@inktank.com>
2013-10-14 11:22:53 -07:00
Alan Somers
6641273b19 SignalHandler: fix infinite loop on BSD systems
SignalHandler::entry shouldn't poll for POLLOUT, because it never actually
writes to the pipes in question. Polling for POLLOUT causes poll(2) to
immediately return, so the function spins the CPU and never blocks. Remove
the POLLOUT flag, unnecessarily introduced in commit
8e4a78f169 when switching from select() to poll().

This fixes the problem on FreeBSD and doesn't break anything (AFAICT) on
Linux. Tested on FreeBSD 9.1 amd64 and Ubuntu Server 13.04 amd64.

Fixes: #6492

Signed-off-by: Alan Somers <asomers@gmail.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-10-14 11:14:44 -07:00
John Wilkins
2cc5805a14 doc: Removed underscore for consistency.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-14 10:31:51 -07:00
John Wilkins
516fe8ceb1 Merge pull request #713 from dachary/master
doc: disable cephx requires auth_supported = none
2013-10-14 10:27:52 -07:00
Yehuda Sadeh
4b8eb4ffdd radosgw-admin: add --quota-scope param to usage
and also look at it when setting quota on a bucket.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-14 10:26:49 -07:00
Gregory Farnum
fe23a281fa Merge pull request #708 from ceph/wip-truncate2
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-10-14 09:32:53 -07:00
Gregory Farnum
1572136489 Merge pull request #715 from ceph/wip-5025
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-10-14 09:28:52 -07:00
Yan, Zheng
f5685013a4 mds: flock: fix F_GETLK
fixes #5025
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2013-10-14 16:39:48 +08:00
Yan, Zheng
3c6710b906 qa/workunits/misc/dirfrag: make it work on ubuntu
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2013-10-14 09:19:56 +08:00
Samuel Just
b0f49e0fba ReplicatedPG.h: while there cannot be a read in progress, there may be a read blocked
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-10-13 09:47:58 -07:00
Loic Dachary
bf82ba90bc doc: disable cephx requires auth_supported = none
auth cluster required = none
    auth service required = none
    auth client required = none

is not enough to disable cephx if there is a

    auth_supported = cephx

line in the [global] section. It will produce the following error

    # ceph --id myself auth list
    2013-10-13 11:05:00.368638 7f812aea3700  0 librados: client.myself authentication error (1) Operation not permitted
    Error connecting to cluster: PermissionError

Changing the line to

    auth_supported = none

fixes the problem.

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-10-13 11:18:27 +02:00
Yehuda Sadeh
0f73f0acaf rgw: switch out param to a pointer instead of reference
following code review

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-11 17:21:21 -07:00
Yehuda Sadeh
8aa7f65f4b test: update cli test for radosgw-admin
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-11 17:08:06 -07:00
Yehuda Sadeh
91f0c82cd2 radosgw-admin: clarify --max-size param
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-11 17:07:38 -07:00
Yehuda Sadeh
ad409f8a6d formatter: dump_bool dumps unquoted strings
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-11 16:56:46 -07:00