Commit Graph

29310 Commits

Author SHA1 Message Date
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
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
Yehuda Sadeh
c1acf9a555 rgw_quoa.{h,cc}: add copyright notice
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-11 16:43:00 -07:00
Yehuda Sadeh
fb96740651 Merge branch 'wip-6444' into next
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-11 15:44:00 -07:00
John Wilkins
8d8ae58c42 doc: Created new index to incorporate side-by-side deb/rpm installs.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-11 15:08:22 -07:00
John Wilkins
bc50dbbbe5 doc: Created installation doc for Yum priorities. Ceph-specific packages need it.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-11 15:07:40 -07:00
John Wilkins
05b2e445da doc: Created new QEMU install for RPMs with provision for Ceph-specific packages.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-11 15:07:08 -07:00
John Wilkins
f37c75b05d doc: Created new QEMU install for debian.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-11 15:06:30 -07:00
John Wilkins
869b721052 doc: Added new libvirt install for RPM.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-11 15:06:02 -07:00
John Wilkins
d4668742ec doc: Created new libvirt install for debian/ubuntu.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-11 15:05:36 -07:00
John Wilkins
99fe31e538 doc: Removed Gatway from Ceph Object Storage. Added Yum repo information.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-11 15:05:08 -07:00
John Wilkins
cdd851b984 doc: Moved installation portion to the installation section.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-11 15:03:34 -07:00
John Wilkins
1dff92ba88 doc: Moved installation portion to the installation section.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-11 15:02:38 -07:00
Yehuda Sadeh
a1825356ad librados: add some clarifying comments
about async pool operation handle

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-10-11 14:53:45 -07:00
Yehuda Sadeh
7ef5eb06ec librados: drop reference to completion in container destructor
Move the PoolAsyncCompletionImpl reference drop from
C_PoolAsync_Safe::finish() to ~C_PoolAsyncSafe(), as finish() is only
called when the async request is actually sent.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-11 14:53:25 -07:00
John Wilkins
f13cc684c6 doc: Fixed hyperlinks. Cleanup of old references to Chef.
fixes: #6493

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-11 14:04:36 -07:00
Joao Eduardo Luis
70250e8456 osd: osd_types: Output pool's flag names during dump
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-10-11 17:50:16 +01:00
Sage Weil
7113186c32 osdc/Objecter: clean up completion handlers that set *prval=0
If the OSD operations returns 0, these are unnecessary.  If it does not,
then these are misleading.  In both cases here, the OSD sets the result to
zero, so this has no client-visible change.r

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-11 09:23:10 -07:00
Sage Weil
82e93303fb osdc/Objecter: only make handlers set *prval if EIO
The normal Objecter handlers set *prval for each operation; we only need to
(re)set it if we have a special reason (like a decoding error).

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-11 09:23:10 -07:00
Joao Eduardo Luis
1c2886964a mon: OSDMonitor: allow (un)setting 'hashpspool' flag via 'osd pool set'
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-10-11 08:05:02 -07:00