Commit Graph

28225 Commits

Author SHA1 Message Date
Christophe Courtaut
5082fec18f doc: Add a page about rgw S3 API compliance
Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
2013-08-09 10:26:06 +02:00
Loic Dachary
fd0626108a ant is missing from the list of packages to install
to build the documentation.

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-08-09 10:17:26 +02:00
Samuel Just
0aacd10e25 RadosClient: shutdown monclient after dropping lock
Otherwise, the monclient shutdown may deadlock waiting
on a context trying to take the RadosClient lock.

Fixes: #5897
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-08 22:40:53 -07:00
Yan, Zheng
ca3987fff1 mds: notify clients about deleted inode
To make sure clients trim the deleted inode from the their cache
ASAP. After all clients release the inode, we can reclaim space.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-08 22:29:59 -07:00
Sage Weil
151e6d24e4 Merge remote-tracking branch 'yan/wip-mds'
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-08 22:19:21 -07:00
Sage Weil
7e285149fb Merge remote-tracking branch 'gh/next' 2013-08-08 22:18:16 -07:00
Sage Weil
b2515b9e0b buffer: change #include order
huangjun <hjwsm1989@gmail.com> reports that this fixes the compilation on
CentOS5.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-08 18:38:50 -07:00
Alfredo Deza
6cbe0f021f make sure we are using the mount options
Signed-off-by: Alfredo Deza <alfredo@deza.pe>
(cherry picked from commit 34831d0989)
2013-08-08 18:38:08 -07:00
Sage Weil
469d30b851 Merge pull request #480 from dachary/master
Add the definition of PG temp to the glossary

Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-08 18:34:19 -07:00
Sage Weil
f4aa05a44f Merge pull request #487 from ceph/wip-5746
ceph.in: Re-enable ceph interactive mode (missing its output).

Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-08 18:29:57 -07:00
Sage Weil
5bdbe9d617 Merge pull request #489 from ceph/wip-5903
make sure we are using the mount options

Backport: dumpling, cuttlefish
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-08 18:06:16 -07:00
Alfredo Deza
34831d0989 make sure we are using the mount options
Signed-off-by: Alfredo Deza <alfredo@deza.pe>
2013-08-08 16:09:26 -07:00
Sage Weil
a71fc46b4b Merge pull request #488 from dmick/wip-dmick-daemon-einval
Wip dmick daemon einval

Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-08 12:33:43 -07:00
Dan Mick
fd1923589c ceph.in: return EINVAL on daemon command error
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-08-08 10:23:34 -07:00
Dan Mick
0be14757e2 ceph.in: Re-enable ceph interactive mode (missing its output).
Also, loop on error.  There's no reason to exit the interpreter loop on
an error, and it's probably less annoying if we don't.  Print the error,
and any output, and continue.

Fixes: #5746
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-08-08 09:38:04 -07:00
Sage Weil
2e280874f6 mon: fix 'osd crush rule rm ...' dup arg
This was broken way back in 0d66c9ebbf, but
we were ignoring the dup until recently.
t
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-08 08:30:01 -07:00
Sage Weil
0c1fd629fa qa/workunits/cephtool/test.sh: test set/unset of all osd flags
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-07 08:35:48 -07:00
Sage Weil
298e7d876e mon/MonCommands: fix typo nobackfile -> nobackfill
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-07 08:32:08 -07:00
Dan Mick
afa21e8074 Add back the mistakenly removed "ceph osd set noscrub/nodeep-scrub"
Fixes: #5868
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-07 08:29:17 -07:00
Samuel Just
fb06bf60c1 Merge branch 'wip-recovery-op-warn' into next
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-06 18:05:08 -07:00
Samuel Just
6820390357 OSD: suspend timeout on process_peering_events pg lock
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-08-06 15:04:33 -07:00
Yehuda Sadeh
f71ec8e63a Merge pull request #476 from dalgaaf/wip-CID-1058791
Fix CID 1058791

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
2013-08-06 14:25:52 -07:00
Joao Eduardo Luis
da69756ce9 test: mon: moncap: add 'allow command foo with arg="bar.baz"' tests
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-08-06 14:01:48 -07:00
Joao Eduardo Luis
258135b9ad qa: workunits: mon: workunit to stress the monitor's caps
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-08-06 14:01:48 -07:00
Joao Eduardo Luis
5c6dc1c8c1 mon: AuthMonitor: change 'auth add' behaviour
If an entity already existed, 'auth add' would smash its key and caps
with whatever was on the supplied keyring file; if a keyring weren't
specified, we would simply generate a new key and destroy all existing
caps (unless caps were specified and happened to be different from the
already in-place caps).  This behaviour is obviously sketchy.

With this patch we now enforce the following behaviour:

- if entity does not exist in current state, check if we are about to
  create it (by checking the pending state); if so, wait for the new state
  to be committed and re-handle the command then, so we don't get bad
  results from pending request
- if the command reproduces the current state (same key, same caps), we
  return 0; else,
- if entity exists and supplied key OR caps are different, return -EINVAL
- else create a new entity.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-06 13:59:33 -07:00
Sage Weil
94002c43de mon: drop old _allowed_command()
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-06 13:59:33 -07:00
Joao Eduardo Luis
612444a887 mon: services: no longer needed to enforce caps on a per-service basis
We now perform all perm checks for commands on Monitor::handle_command().
Services no longer need to check them.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-08-06 13:59:33 -07:00
Joao Eduardo Luis
2071af2ff0 mon: Monitor: purge old permission checking format on handle_command()
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-08-06 13:59:33 -07:00
Joao Eduardo Luis
f087d84ba0 mon: Monitor: check caps considering command's requirements
Fixes: #5648

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-08-06 13:59:15 -07:00
Samuel Just
944f3b7353 OSD: only start osd_recovery_max_single_start at once
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-08-06 13:51:51 -07:00
Samuel Just
8b53a14081 ReplicatedPG: ping tphandle between pushes
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-08-06 13:51:51 -07:00
Samuel Just
d0cbdde25e ReplicatedPG: ping TPHandle during scan_range
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-08-06 13:51:51 -07:00
Samuel Just
95b3604bef OSD: also suspend timeout while grabbing recovery_tp lock
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-08-06 13:51:51 -07:00
Samuel Just
321f57de97 OpRequest: don't warn as quickly for slow recovery ops
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-08-06 13:51:51 -07:00
Dan Mick
0017010735 mon, osd: Clean up "flush(stringstream)" continued
Missing files in last commit; sorry!

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-08-06 13:13:42 -07:00
Dan Mick
e904018872 mon, osd: Clean up "flush(stringstream); bl.append(stringstream.str())
Also: One redundant flush in AuthMonitor, two in PGMonitor, and
a ds << that should have been conditional in Monitor.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-06 06:28:45 -07:00
John Wilkins
2e9c25f5ae doc: fixing reported bug in CRUSH map example.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 14:48:38 -07:00
John Wilkins
cafccfaf06 doc: Added many new fields to config reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 14:13:52 -07:00
John Wilkins
a5d8605797 doc: Added trouble shooting entry. Fixed formatting.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 13:49:58 -07:00
John Wilkins
e3d59a2c73 doc: Nomenclature update.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 13:45:24 -07:00
John Wilkins
1db0f25426 doc: Nomenclature update.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 13:44:59 -07:00
John Wilkins
a38ab07a81 doc: Nomenclature update.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 13:44:44 -07:00
John Wilkins
0f56e3ebb5 doc: Nomenclature update.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 13:44:20 -07:00
John Wilkins
ea80532d2b doc: Nomenclature update. Added topic for monitor key caps. Added default pool steps.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 13:43:21 -07:00
Sage Weil
db27c3f5a3 qa/workunits/cephtool/test.sh: add tests for 'pg dump ...'
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-05 13:06:42 -07:00
Dan Mick
42582f02f9 mon/PGMonitor: add 'pg dump pgs_brief' subcommand
It is useful to map OSDs to PGs and vice-versa; pg dump gives that
information, but gives a lot of other stuff.  This is the same dump
as pg dump pgs, but omitting everything except pgid, state, and
osd up and acting sets.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-05 13:06:42 -07:00
Dan Mick
5a495b1ee6 Merge branch 'wip-python-cleanup' into next
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-05 13:03:21 -07:00
Sage Weil
a0929955cb mds: fix locking, use-after-free/race in handle_accept
We need to hold mds_lock here.

Normally the con also holds a reference, but an ill-timed connection reset
could drop it.

Fixes: #5883
Backport: dumpling, cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-05 12:52:44 -07:00
Yehuda Sadeh
9e88b1b48c rgw: only log (as in ops logging) certain operations
Fixes: #5875
ops logging should (at this point) should only include object
store related operations.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-05 12:30:17 -07:00
Yehuda Sadeh
b165d33a89 rgw_admin: flush replicalog entries
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-05 12:30:17 -07:00