Commit Graph

44946 Commits

Author SHA1 Message Date
Boris Ranto
bc48ef0fef selinux: Fix man page location
The SELinux man page was previously located in two places and the man
page that was supposed to be updated when rgw selinux changes were
proposed did not get updated properly. Fixing this by moving
selinux/ceph_selinux.8 to man/ceph_selinux.8. Also, populate EXTRA_DIST
with ceph_selinux.8.

Signed-off-by: Boris Ranto <branto@redhat.com>
2015-10-06 18:08:15 +02:00
Nathan Cutler
378d56d1e2 man/Makefile-server.am: conditionalize make ceph_selinux manpage
http://tracker.ceph.com/issues/13353 Fixes: #13353

Modified-by: Boris Ranto <branto@redhat.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-10-06 18:08:15 +02:00
Sage Weil
d0ecb0abbc doc/release-notes: initial v9.1.0 notes
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-05 21:57:40 -04:00
Sage Weil
3570ec612a Merge pull request #6110 from ceph/wip-13239-infernalis
rgw: set default value for env->get() call

Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-05 17:32:00 -04:00
Sage Weil
42a2c340e1 Merge pull request #6142 from ceph/wip-13061
ceph.spec.in: Do not always restart the daemons on upgrades/removal

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-10-05 16:12:57 -04:00
Sage Weil
e389fe12d7 Merge pull request #6105 from liewegas/wip-13262
mon: ignore messages from disconnected clients; clean up session checks

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2015-10-05 16:09:03 -04:00
Sage Weil
678384a17c Merge pull request #6176 from liewegas/wip-13283
osdc/Objecter: send FULL_TRY and FULL_FORCE ops despite full flag

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-10-05 14:51:43 -04:00
Sage Weil
a6a6923cc6 osdc/Objecter: send FULL_TRY and FULL_FORCE ops despite full flag
If a request has the FULL_TRY or FULL_FORCE flag, send it despite a full
pool or cluster.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-05 09:17:25 -04:00
Sage Weil
8201f0eceb mon: allow ping through despite synch/quorum status, with session
Attach sessions to ping messages, too.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-05 08:37:50 -04:00
Sage Weil
5008da2a3d mon: drop ops on closed sessions early
We will throw it out in dispatch_op() anyway.  Remove the ancient (~2009)
reuse_caps logic too, which doesn't make any sense nowadays anyway.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-05 08:37:49 -04:00
Sage Weil
17e55b9546 mon: clean up _ms_dispatch
Lots of cruft here.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-05 08:37:49 -04:00
Sage Weil
12bbc08fb6 mon: all MonOpRequests have an attached Session
...except in dispatch, where we initially set it up.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-05 08:37:49 -04:00
Sage Weil
6cf34a3e5d mon: drop any ops from closed sessions in dispatch_op
If we've closed the session we shouldn't waste our time on this op.

Fixes: #13262 (we should not add a subscription to a disconnected session)
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-05 08:37:49 -04:00
Sage Weil
a87582684a mon: always set up session; move waitlist logic
Unconditionally attach a Session, so that when we push an op back through
dispatch_op it isn't in a weird broken state.

Move the waitinglist check to the bottom.  Use s->global_id == 0 to tell
whether a client has authenticated, and zap sessions based on that.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-05 08:37:49 -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
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
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
Boris Ranto
b9159521f4 ceph.spec.in: Do not always restart the daemons on removal
There is no need to restart the daemons when removing ceph-selinux
package if SELinux is not enabled.

Fixes: #13061
Signed-off-by: Boris Ranto <branto@redhat.com>
2015-10-02 12:19:14 +02:00
Boris Ranto
c95c14ba25 ceph.spec.in: Do not always restart the daemons on upgrades
This patch minimizes the amount of daemon stop/start procedures when
upgrading ceph-selinux package. With this patch, the daemons get
restarted only if SELinux is enabled and the SELinux policy version
changed in the meantime.

Fixes: #13061
Signed-off-by: Boris Ranto <branto@redhat.com>
2015-10-02 12:19:07 +02: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
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
4c0277f177 Merge branch 'wip-add-async-log' of git://github.com/yuyuyu101/ceph into infernalis 2015-10-01 08:34:31 -04:00
Samuel Just
a1760b49f6 Merge pull request #6117 from athanatos/wip-12990
Wip 12990

Reviewed-by: Sage Weil <sage@redhat.com>
2015-09-30 10:15:48 -07:00
Samuel Just
142cfc1ad2 Merge pull request #6120 from athanatos/wip-13185
Wip 13185

Reviewed-by: Sage Weil <sage@redhat.com>
2015-09-30 10:15:24 -07:00
Sage Weil
28c57e55fe Merge pull request #6122 from athanatos/wip-13234
OSDMap: fill in known encode_features where possible

Reviewed-by: Sage Weil <sage@redhat.com>
2015-09-30 08:36:36 -04:00
Sage Weil
27d40fda45 Merge branch 'wip-12983' of git://github.com/dzafman/ceph into infernalis 2015-09-29 21:09:43 -04:00
Sage Weil
bc627ba8c2 Merge pull request #6119 from athanatos/wip-13192
Wip 13192

Reviewed-by: Sage Weil <sage@redhat.com>
2015-09-29 20:32:47 -04:00
Sage Weil
b7d35d597c Merge pull request #6121 from athanatos/wip-13199
OSDService::agent_entry: don't use PG::operator<< without pg lock

Reviewed-by: Sage Weil <sage@redhat.com>
2015-09-29 20:24:41 -04:00
Loic Dachary
7af863d3f8 Merge pull request #6113 from dachary/wip-13176-objectstore-tool
ceph-objectstore-tool: delete ObjectStore::Sequencer after umount

Reviewed-by: David Zafman <dzafman@redhat.com>
2015-09-30 02:21:58 +02:00
Samuel Just
bb55d6c0c3 Merge pull request #6036 from liewegas/wip-13116
osd: fix replay requeue when pg is activating

Reviewed-by: Samuel Just <sjust@redhat.com>
2015-09-29 17:19:12 -07:00
Sage Weil
41d59fcc3b Merge remote-tracking branch 'gh/infernalis' 2015-09-29 20:15:31 -04:00
Josh Durgin
a965378e3a ReplicatedPG: clearing a whiteout should create the object
This was uncovered by 7532194372. Since
rbd_create() does a stat, the obc is cached as a whiteout, and the
subsequent create(EXCL) would fall through to return false from
maybe_create_new_object(). This would then skip adding a touch() to
the transaction.

Fixes: #13281
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-09-29 17:04:59 -07:00
Loic Dachary
47f4a03939 ceph-objectstore-tool: delete ObjectStore::Sequencer after umount
An ObjectStore::Sequencer provided to an ObjectStore must not be
deallocated before umount. The ObjectStore::Sequencer may hold a pointer
to the instance with no reference counting. If a Context completes after
the ObjectStore::Sequencer is deleted, it could try to use it and fail.

http://tracker.ceph.com/issues/13176 Fixes: #13176

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-30 00:54:27 +02:00
Sage Weil
de29da4973 Merge pull request #6101 from liewegas/wip-fs
os/fs: fix do loop

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-09-29 17:42:08 -04:00