Commit Graph

45058 Commits

Author SHA1 Message Date
Sage Weil
453698fc2b messages/MOSDOp: cleanup
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-09 10:56:32 -04:00
Sage Weil
8e930e3d2f messages/MOSDOp: avoid uninit/undecoded fields in print()
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-03 13:32:30 -04:00
Sage Weil
d1e6976289 Merge remote-tracking branch 'gh/infernalis' 2015-10-03 12:42:00 -04:00
Sage Weil
362b18a532 mon: fix msg leak in resend_routed_requests
MForward takes its own ref so we can drop ours.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-03 12:40:53 -04:00
Haomai Wang
c9dad52c96 Mon: Fix decoded message leak when this monitor is leader
Fix #13109
Signed-off-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-03 12:40:40 -04:00
Sage Weil
16554eb45e Merge pull request #6139 from liewegas/wip-13283
librados: add FULL_TRY flag; EDQUOT != ENOSPC

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-10-03 08:50:25 -04:00
Sage Weil
3ed25c1f79 librados: document new flag
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-02 17:47:54 -04:00
Yehuda Sadeh
79d8f895a5 Merge pull request #6169 from rzarzynski/wip-13326
rgw: improve handling of already removed buckets in object expirer.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-10-02 14:17:42 -07:00
Ken Dreyer
3139ab4de0 Merge pull request #6168 from SUSE/wip-13333-infernalis
ceph.spec.in: correctly declare systemd dependency for SLE/openSUSE

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-10-02 13:30:44 -06:00
Nathan Cutler
929e5d04a0 ceph.spec.in: correctly declare systemd dependency for SLE/openSUSE
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 7b1882f875)
2015-10-02 21:24:09 +02:00
Sage Weil
8d8fcee427 osd/ReplicatedPG: exempt MDS from the failsafe check, too
This mimics the prior behavior.  We probably want to change this at some
point!

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-02 14:12:22 -04:00
Radoslaw Zarzynski
81c23745c1 rgw: improve handling of already removed buckets in object expirer.
Fixes: #13326
Backport: infernalis
Signed-off-by: Radoslaw Zarzynski <rzarzynski@github.com>
2015-10-02 18:20:11 +02:00
Loic Dachary
f19a39cace Merge pull request #5907 from dachary/wip-release-notes
release-notes: draft v0.94.4 release notes

Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-02 17:50:30 +02:00
Loic Dachary
662ad523fc release-notes: draft v0.94.4 release notes
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-10-02 17:48:36 +02:00
Loic Dachary
2228c22605 tools: ceph-release-notes handle multiple issues
* handle the case where a single pull request is associated with
  multiple pull requests
* encapsulate the quest for the original in a function for easier
  maintenance
* add the --verbose flag for debugging

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-10-02 17:47:12 +02:00
Sage Weil
08c15821ec Merge pull request #6096 from liewegas/wip-13260
osd/ReplicatedPG: preserve (some) flags when proxying reads

Reviewed-by: Samuel Just <sjust@redhat.com>
2015-10-02 08:47:33 -04:00
Sage Weil
c0481cf9e6 Merge pull request #6107 from liewegas/wip-13206
osd: init started to 0
2015-10-02 08:39:24 -04:00
Sage Weil
4936f5916c Merge pull request #6136 from liewegas/wip-13114
osd/librados: fix notify completion race

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-10-02 08:38:39 -04:00
Loic Dachary
392c56c10e Merge pull request #6137 from SUSE/wip-13324-infernalis
install-deps.sh: use %bcond_with selinux on SLE/openSUSE 

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-10-02 00:34:53 +02:00
Samuel Just
4c089ee93f Merge remote-tracking branch 'jdurgin/wip-13281' into infernalis
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2015-10-01 14:55:37 -07:00
Nathan Cutler
1df2cc2bf6 install-deps.sh: use %bcond_with selinux on SLE/openSUSE
http://tracker.ceph.com/issues/13324 Fixes: #13324

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-10-01 21:47:49 +02:00
Sage Weil
32962740ce ceph_test_rados_api_aio: test pool full gets EDQUOT when FULL_TRY flag is set
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 15:34:59 -04:00
Sage Weil
8b1f234288 librados: expose OPERATION_FULL_TRY flag
Allow librados users to opt to receive ENOSPC or EDQUOT when they submit
an operation against a full cluster.  This should only be used if the
librados app can handle those errors gracefully (librbd, for example,
cannot).

Also note that this allows savvy librados users to send delete operations;
they will get either a success or EDQUOT, depending on whether the
operation results in a net drop in space utilization.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 15:03:22 -04:00
Sage Weil
ea93ead2ab osd: return -EDQUOT instead of -ENOSPC if it is a pool quota
The pool quota error should return EDQUOT intead of ENOSPC.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 15:01:59 -04:00
Sage Weil
e86d033854 osdc/Objecter: distinguish between multiple notify completions
We may send a notify to the cluster multiple times due to OSDMap
changes.  In some cases, earlier notify attempts may complete with
an error, while later attempts succeed.  We need to only pay
attention to the most-recently send notify's completion.

Do this by making note of the notify_id in the initial ACK (only
present when talking to newer OSDs).  When we get a notify
completion, match it against our expected notify_id (if we have
one) or else discard it.

This is important because in some cases an early notify completion
may be an error while a later one succeeds.

Note that if we are talking to an old cluster we will simply not record a
notify_id and our behavior will be the same as before (we will trust any
notify completion we get).

Fixes: #13114
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 14:50:34 -04:00
Sage Weil
049ea702b9 osd: reply to notify request with our unique notify_id
The OSD assigns a unique ID to each notify it queues for
processing.  Include this in the reply to the notifier so that
they can match it up with the eventual completions they receive.

This is necessary to distinguish between multiple completions
they may receive if there is PG peering and the notify is resent.
In particular, an earlier notify may return an error when a later
attempt succeeds.

This is forwards and backwards compatible: new clients will make use of
this reply payload but older clients ignore it.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 14:50:00 -04:00
Sage Weil
8a21398ffb Merge remote-tracking branch 'gh/infernalis' 2015-10-01 11:51:50 -04:00
Sage Weil
8d02f49e12 Merge branch 'wip-mdscap'
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
2015-10-01 11:03:09 -04:00
Ken Dreyer
965e62890e Merge pull request #6114 from SUSE/wip-suse-spec-fixes
ceph.spec.in: correctly declare systemd dependency for SLE/openSUSE

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-10-01 09:04:17 -06:00
Sage Weil
99651f0eac Merge pull request #6134 from SUSE/wip-13318-infernalis
install-deps.sh: openSUSE-release/sles-release/sled-release are always present
2015-10-01 10:15:52 -04:00
Nathan Cutler
0f9dca458b install-deps.sh: openSUSE-release/sles-release/sled-release are always present
http://tracker.ceph.com/issues/13318 Fixes: #13318

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-10-01 16:04:26 +02:00
Sage Weil
b6b9e85689 ceph_test_libcephfs: remove remaining pool name assumptions
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:37 -04:00
Sage Weil
ac0314436a client: clarify setattr forced sync behavior
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:37 -04:00
Sage Weil
527241699d qa/workunits/fs/test_auth_caps: superceded by ceph_test_libcephfs
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:36 -04:00
Sage Weil
283be861ce ceph_test_libcephfs: fix LibCephFS.OpenLayout test
We can't make assumptions about the name of the data pool.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:36 -04:00
Sage Weil
9b48e24d13 unittest_mds_authcap: improve user tests
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:36 -04:00
Sage Weil
e54ff357a8 mds: drop MAY_CREATE
The check is a no-op.  We already verify the uid/gid combo is valid and
that the dir is writeable with MAY_WRITE.  The new file is always set to
the caller uid:gid.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:36 -04:00
Sage Weil
96ee6c9f6c mds/MDSAuthCap: verify the caller_gid is valid
Verify both the caller uid and gid are a match for the given rule.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:36 -04:00
Sage Weil
614e4cf5a4 mds: fix chown/chgrp check and tests
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:36 -04:00
Sage Weil
d473732d0a mds/MDSAuthCaps: rename args for is_capable
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:36 -04:00
Sage Weil
a6fe4ae676 ceph_test_libcephfs: add AccessTest.User
Covers read/write/create.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:36 -04:00
Sage Weil
371ed4b704 mds/SessionMap: fix MAY_CREATE check
It's about caller_uid/gid.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:36 -04:00
Sage Weil
c77450be6a ceph_test_libcephfs: make foo, path tests use unique paths, users
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:36 -04:00
Sage Weil
7569239940 qa/workunits: drop bash path tests
ceph_test_libcephfs ones are better.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:36 -04:00
Sage Weil
aed5caddf9 mds/SessionMap: fix check_access for stray inodes
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:36 -04:00
Sage Weil
fa43c6f28c mds/SessionMap: move Session method definitions together
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:35 -04:00
Sage Weil
d76093bc17 mds/Locker: do not ack from do_cap_update
Caller (handle_client_caps) already does it if we return
false.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:35 -04:00
Sage Weil
269e2de0cd ceph_test_libcephfs: fix update-after-unlink test
This needs to be done with a user restricted to a path.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:35 -04:00
Sage Weil
a43f5c7553 mds/Server: skip auth check on session-less mdr's
The mds internal requests don't have a session.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:35 -04:00
Sage Weil
1957aeddbf client: do sync setattr when caller != last cap dirtier
This way we can still do cap writeback in general when the caller is not
the same as the mount_uid/gid, but we flip to a sync setattr when we have
to because the dirty caps have a different uid/gid than the current
caller.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-01 09:42:35 -04:00