]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoFix debug message in osd::is_healthy 6226/head
Xiaoxi Chen [Thu, 17 Sep 2015 05:45:34 +0000 (13:45 +0800)]
Fix debug message in osd::is_healthy

Display the actual vaule of osd_heartbeat_min_healthy_ratio instead
of 1/3 (default value).

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
9 years agoMerge pull request #5065 from wonzhq/optracker-histogram
Kefu Chai [Sat, 10 Oct 2015 01:15:27 +0000 (09:15 +0800)]
Merge pull request #5065 from wonzhq/optracker-histogram

common: OpTracker age histogram calculation is not correct

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6030 from rzarzynski/wip-11241
Yehuda Sadeh [Fri, 9 Oct 2015 20:28:33 +0000 (13:28 -0700)]
Merge pull request #6030 from rzarzynski/wip-11241

rgw: fix wrong etag calculation during POST on S3 bucket.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #6173 from dachary/wip-13355-docker-test
Loic Dachary [Thu, 8 Oct 2015 20:44:26 +0000 (22:44 +0200)]
Merge pull request #6173 from dachary/wip-13355-docker-test

tests: allow docker-test.sh to run under root

Reviewed-by: Nathan Cutler <ncutler@suse.cz>
9 years agoMerge pull request #6206 from rzarzynski/wip-rgw-manifest-skip
Yehuda Sadeh [Thu, 8 Oct 2015 17:44:27 +0000 (10:44 -0700)]
Merge pull request #6206 from rzarzynski/wip-rgw-manifest-skip

rgw: add support for getting Swift's DLO without manifest handling

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: add support for skipping manifest parsing during GET on Swift object. 6206/head
Radoslaw Zarzynski [Mon, 5 Oct 2015 17:43:13 +0000 (19:43 +0200)]
rgw: add support for skipping manifest parsing during GET on Swift object.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoMerge pull request #6200 from ceph/wip-13364
Yan, Zheng [Thu, 8 Oct 2015 11:22:14 +0000 (19:22 +0800)]
Merge pull request #6200 from ceph/wip-13364

mds/Session: use projected parent for auth path check

9 years agoMerge pull request #6195 from dachary/wip-release-notes
Loic Dachary [Thu, 8 Oct 2015 06:31:47 +0000 (08:31 +0200)]
Merge pull request #6195 from dachary/wip-release-notes

release-notes: draft v0.94.4 release notes

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agomds/Session: use projected parent for auth path check 6200/head
Sage Weil [Thu, 8 Oct 2015 02:59:43 +0000 (22:59 -0400)]
mds/Session: use projected parent for auth path check

In particular, a file's current path might indicate no parent
because the initial link into the tree isn't committed yet.

Fixes: #13364
Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_libcephfs: parse env properly (access) 6197/head
Sage Weil [Thu, 8 Oct 2015 00:25:59 +0000 (20:25 -0400)]
ceph_test_libcephfs: parse env properly (access)

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_libcephfs: parse CEPH_ARGS properly
Sage Weil [Thu, 8 Oct 2015 00:25:48 +0000 (20:25 -0400)]
ceph_test_libcephfs: parse CEPH_ARGS properly

This has to happen after the config parse.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agorelease-notes: draft v0.94.4 release notes 6195/head
Loic Dachary [Wed, 7 Oct 2015 22:40:02 +0000 (00:40 +0200)]
release-notes: draft v0.94.4 release notes

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge branch 'infernalis'
Greg Farnum [Wed, 7 Oct 2015 17:56:35 +0000 (10:56 -0700)]
Merge branch 'infernalis'

9 years agoMerge branch 'wip-yrf-fix1' of git://github.com/H3C/ceph into infernalis
Greg Farnum [Wed, 7 Oct 2015 17:47:21 +0000 (10:47 -0700)]
Merge branch 'wip-yrf-fix1' of git://github.com/H3C/ceph into infernalis

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge branch 'wip-13256' of git://github.com/ukernel/ceph into infernalis
Greg Farnum [Wed, 7 Oct 2015 17:45:36 +0000 (10:45 -0700)]
Merge branch 'wip-13256' of git://github.com/ukernel/ceph into infernalis

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoqa: avoid using sudo in fsstress
John Spray [Wed, 23 Sep 2015 11:58:46 +0000 (12:58 +0100)]
qa: avoid using sudo in fsstress

This test required root in order to copy its built
binary into /usr (presumably to avoid rebuilding it).

That's not really a good thing anyway because there's
no guarantee that a binary in that path is the binary
we wanted, so just run the thing straight out of /tmp.  The
build is really quick anyway.

Signed-off-by: John Spray <john.spray@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #6186 from ceph/wip-12913-2
Daniel Gryniewicz [Wed, 7 Oct 2015 17:09:59 +0000 (13:09 -0400)]
Merge pull request #6186 from ceph/wip-12913-2

cls_rgw: fix bucket listing when dealing with invisible entries

9 years agoMerge pull request #6185 from liewegas/wip-13382
Sage Weil [Wed, 7 Oct 2015 15:06:09 +0000 (11:06 -0400)]
Merge pull request #6185 from liewegas/wip-13382

osd/PG: fix generate_past_intervals

Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoMerge pull request #6182 from liewegas/wip-13379
Sage Weil [Wed, 7 Oct 2015 00:51:33 +0000 (20:51 -0400)]
Merge pull request #6182 from liewegas/wip-13379

mon: do not remove proxied sessions

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
9 years agoosd/PG: fix generate_past_intervals 6185/head
Sage Weil [Tue, 6 Oct 2015 18:35:35 +0000 (14:35 -0400)]
osd/PG: fix generate_past_intervals

We may be only calculating older past intervals and have a valid
history.same_interval_since value, in which case the local
same_interval_since value will end at the newest old interval we had to
generate.

This was introduced by 70316541bbb115d9a35954bfba373cf1dc084b7e.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodoc/release-notes: fix math error in firefly notes
Sage Weil [Tue, 6 Oct 2015 18:32:52 +0000 (14:32 -0400)]
doc/release-notes: fix math error in firefly notes

Reported-by: Christopher Kunz <chris@filoo.de>
Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6171 from SUSE/wip-infernalis-obs
branto1 [Tue, 6 Oct 2015 16:05:52 +0000 (18:05 +0200)]
Merge pull request #6171 from SUSE/wip-infernalis-obs

Get infernalis to build in openSUSE Build Service

Reviewed-by: Boris Ranto <branto@redhat.com>
9 years agomon: do not remove proxied sessions 6182/head
Sage Weil [Tue, 6 Oct 2015 14:54:50 +0000 (10:54 -0400)]
mon: do not remove proxied sessions

A proxied session (see handle_forward) isn't registered, so it doesn't
need remove_session.  Moreover, s->con is null, so it will crash in
remove_session.

Fixes: #13379
Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6181 from athanatos/wip-13323
Sage Weil [Tue, 6 Oct 2015 14:44:44 +0000 (10:44 -0400)]
Merge pull request #6181 from athanatos/wip-13323

ReplicatedPG: consider IGNORE_CACHE for all maybe_handle_cache calls

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoceph.spec.in: remove comments regarding ceph UID/GID in SUSE 6171/head
Nathan Cutler [Tue, 6 Oct 2015 13:07:41 +0000 (15:07 +0200)]
ceph.spec.in: remove comments regarding ceph UID/GID in SUSE

It is possible that the ceph user/group will not have fixed UID/GID in SUSE.
Instead, it is possible that the ceph package will depend on a separate package
whose sole purpose will be to create the ceph user/group if they do not exist.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph.spec.in: enable OBS post-build-checks to find systemd-tmpfiles
Nathan Cutler [Tue, 6 Oct 2015 10:25:52 +0000 (12:25 +0200)]
ceph.spec.in: enable OBS post-build-checks to find systemd-tmpfiles

The openSUSE Build Service runs a number of "post-build checks" after the RPMs
have been generated. One of these tests the RPM scriptlets for idempotence.
Without this line in the specfile, the check fails on SLE_12 because it cannot
find the systemd-tmpfiles binary.

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

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoetc/sysconfig/ceph: add CEPH_AUTO_RESTART_ON_UPGRADE
Nathan Cutler [Sat, 3 Oct 2015 10:04:33 +0000 (12:04 +0200)]
etc/sysconfig/ceph: add CEPH_AUTO_RESTART_ON_UPGRADE

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph.spec.in: Standardize systemd preun and postun scripts
Nathan Cutler [Tue, 8 Sep 2015 08:09:35 +0000 (10:09 +0200)]
ceph.spec.in: Standardize systemd preun and postun scripts

Currently, the main ceph package and the ceph-radosgw behave
differently on upgrade. This commit unifies their behavior
to the following:

On package removal, disable and stop all related systemd units.

On package upgrade, do nothing unless there is a file /etc/sysconfig/ceph
containing a parameter CEPH_AUTO_RESTART_ON_UPGRADE. If parameter is set
to "yes", restart the systemd units iff they are running.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph.spec.in: fix for out-of-memory errors in OBS
Nathan Cutler [Fri, 2 Oct 2015 10:15:08 +0000 (12:15 +0200)]
ceph.spec.in: fix for out-of-memory errors in OBS

Add "--param ggc-min-expand=20 --param ggc-min-heapsize=32768"
to RPM_OPT_FLAGS, ensuring gcc does not add debug symbols and is
more aggressive about garbage collection.

Thanks to Berthold Gunreben for debugging this issue.

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

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph.spec.in: Use _smp_mflags instead of _NPROCESSORS_ONLN
Nathan Cutler [Fri, 2 Oct 2015 13:30:41 +0000 (15:30 +0200)]
ceph.spec.in: Use _smp_mflags instead of _NPROCESSORS_ONLN

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoRevert "install-deps.sh: use %bcond_with selinux on SLE/openSUSE"
Nathan Cutler [Sat, 3 Oct 2015 08:46:06 +0000 (10:46 +0200)]
Revert "install-deps.sh: use %bcond_with selinux on SLE/openSUSE"

This reverts commit 1df2cc2bf625a1f65ef4968d9cf313cc8ee9acc5.

9 years agoceph.spec.in: selinux by default on RHEL/Fedora, non-default on SUSE
Nathan Cutler [Sat, 3 Oct 2015 08:43:51 +0000 (10:43 +0200)]
ceph.spec.in: selinux by default on RHEL/Fedora, non-default on SUSE

Surround it with an appropriate conditional.

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

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph.spec.in: use %fillup_only macro in SLE/openSUSE
Nathan Cutler [Sat, 3 Oct 2015 07:05:03 +0000 (09:05 +0200)]
ceph.spec.in: use %fillup_only macro in SLE/openSUSE

SUSE does not allow /etc/sysconfig/ceph to be owned by the ceph
package.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph.spec.in: distro-conditional groupadd and useradd
Nathan Cutler [Fri, 2 Oct 2015 21:21:02 +0000 (23:21 +0200)]
ceph.spec.in: distro-conditional groupadd and useradd

The -o option to groupadd/useradd is not recognized in SLE12. For
SLE/openSUSE, follow the openSUSE packaging guidelines.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph.spec.in: move systemd-tmpfiles stuff to ceph-common
Nathan Cutler [Fri, 2 Oct 2015 21:23:17 +0000 (23:23 +0200)]
ceph.spec.in: move systemd-tmpfiles stuff to ceph-common

Since the ceph user and group are created in the ceph-common
%pre scriptlet, the systemd-tmpfiles --create command needs
to run in that package.

tracker.ceph.com/issues/13346 Fixes: #13346

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph.spec.in: remove SUSE-specific curses hack
Nathan Cutler [Fri, 2 Oct 2015 09:01:44 +0000 (11:01 +0200)]
ceph.spec.in: remove SUSE-specific curses hack

Unclear what this was supposed to fix.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph.spec.in: lttng in SLES12 only
Nathan Cutler [Tue, 29 Sep 2015 08:39:16 +0000 (10:39 +0200)]
ceph.spec.in: lttng in SLES12 only

Over in the SUSE sector, we are trying to enable the SLE_12 and openSUSE_13.2
build targets. The lttng/babeltrace stuff is currently available only in
SLE_12.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph.spec.in: drop %insserv_prereq (obsoleted by systemd)
Nathan Cutler [Tue, 29 Sep 2015 22:08:04 +0000 (00:08 +0200)]
ceph.spec.in: drop %insserv_prereq (obsoleted by systemd)

The %post, etc. scriptlets are no longer calling %insserv, et al.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph.spec.in: fix boost-random build dependency for SLE/openSUSE
Nathan Cutler [Tue, 29 Sep 2015 08:42:39 +0000 (10:42 +0200)]
ceph.spec.in: fix boost-random build dependency for SLE/openSUSE

In Fedora, RHEL and CentOS there is a package called boost-random.
In SLE/openSUSE, there is no such package.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agodoc/release-notes: initial v9.1.0 notes
Sage Weil [Tue, 6 Oct 2015 01:57:40 +0000 (21:57 -0400)]
doc/release-notes: initial v9.1.0 notes

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6110 from ceph/wip-13239-infernalis
Sage Weil [Mon, 5 Oct 2015 21:32:00 +0000 (17:32 -0400)]
Merge pull request #6110 from ceph/wip-13239-infernalis

rgw: set default value for env->get() call

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6142 from ceph/wip-13061
Sage Weil [Mon, 5 Oct 2015 20:12:57 +0000 (16:12 -0400)]
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>
9 years agoMerge pull request #6105 from liewegas/wip-13262
Sage Weil [Mon, 5 Oct 2015 20:09:03 +0000 (16:09 -0400)]
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>
9 years agoMerge pull request #6176 from liewegas/wip-13283
Sage Weil [Mon, 5 Oct 2015 18:51:43 +0000 (14:51 -0400)]
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>
9 years agoosdc/Objecter: send FULL_TRY and FULL_FORCE ops despite full flag 6176/head
Sage Weil [Mon, 5 Oct 2015 13:15:55 +0000 (09:15 -0400)]
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>
9 years agomon: allow ping through despite synch/quorum status, with session 6105/head
Sage Weil [Wed, 30 Sep 2015 01:13:48 +0000 (21:13 -0400)]
mon: allow ping through despite synch/quorum status, with session

Attach sessions to ping messages, too.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomon: drop ops on closed sessions early
Sage Weil [Tue, 29 Sep 2015 14:09:37 +0000 (10:09 -0400)]
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>
9 years agomon: clean up _ms_dispatch
Sage Weil [Tue, 29 Sep 2015 14:09:04 +0000 (10:09 -0400)]
mon: clean up _ms_dispatch

Lots of cruft here.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomon: all MonOpRequests have an attached Session
Sage Weil [Tue, 29 Sep 2015 12:48:51 +0000 (08:48 -0400)]
mon: all MonOpRequests have an attached Session

...except in dispatch, where we initially set it up.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomon: drop any ops from closed sessions in dispatch_op
Sage Weil [Tue, 29 Sep 2015 12:50:16 +0000 (08:50 -0400)]
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>
9 years agomon: always set up session; move waitlist logic
Sage Weil [Tue, 29 Sep 2015 13:49:50 +0000 (09:49 -0400)]
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>
9 years agoMerge remote-tracking branch 'gh/infernalis'
Sage Weil [Sat, 3 Oct 2015 16:42:00 +0000 (12:42 -0400)]
Merge remote-tracking branch 'gh/infernalis'

9 years agomon: fix msg leak in resend_routed_requests
Sage Weil [Fri, 2 Oct 2015 21:43:22 +0000 (17:43 -0400)]
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>
9 years agoMon: Fix decoded message leak when this monitor is leader
Haomai Wang [Fri, 2 Oct 2015 11:14:59 +0000 (19:14 +0800)]
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>
9 years agoMerge pull request #6139 from liewegas/wip-13283
Sage Weil [Sat, 3 Oct 2015 12:50:25 +0000 (08:50 -0400)]
Merge pull request #6139 from liewegas/wip-13283

librados: add FULL_TRY flag; EDQUOT != ENOSPC

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agotests: allow docker-test.sh to run under root 6173/head
Loic Dachary [Sat, 3 Oct 2015 12:42:44 +0000 (14:42 +0200)]
tests: allow docker-test.sh to run under root

Do not attempt to create a user if it is root because it already exists.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agotests: remove fedora docker files
Loic Dachary [Sat, 3 Oct 2015 12:42:06 +0000 (14:42 +0200)]
tests: remove fedora docker files

They are not used (missing version number at the end of the directory).

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agolibrados: document new flag 6139/head
Sage Weil [Fri, 2 Oct 2015 21:47:54 +0000 (17:47 -0400)]
librados: document new flag

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6169 from rzarzynski/wip-13326
Yehuda Sadeh [Fri, 2 Oct 2015 21:17:42 +0000 (14:17 -0700)]
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>
9 years agoMerge pull request #6168 from SUSE/wip-13333-infernalis
Ken Dreyer [Fri, 2 Oct 2015 19:30:37 +0000 (13:30 -0600)]
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>
9 years agoceph.spec.in: correctly declare systemd dependency for SLE/openSUSE 6168/head
Nathan Cutler [Tue, 29 Sep 2015 21:28:00 +0000 (23:28 +0200)]
ceph.spec.in: correctly declare systemd dependency for SLE/openSUSE

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 7b1882f87509092380d11ec68b504a7bc1f77830)

9 years agoosd/ReplicatedPG: exempt MDS from the failsafe check, too
Sage Weil [Fri, 2 Oct 2015 18:12:22 +0000 (14:12 -0400)]
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>
9 years agorgw: improve handling of already removed buckets in object expirer. 6138/head 6169/head
Radoslaw Zarzynski [Thu, 1 Oct 2015 19:06:13 +0000 (21:06 +0200)]
rgw: improve handling of already removed buckets in object expirer.

Fixes: #13326
Backport: infernalis
Signed-off-by: Radoslaw Zarzynski <rzarzynski@github.com>
9 years agoMerge pull request #5907 from dachary/wip-release-notes
Loic Dachary [Fri, 2 Oct 2015 15:50:30 +0000 (17:50 +0200)]
Merge pull request #5907 from dachary/wip-release-notes

release-notes: draft v0.94.4 release notes

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agorelease-notes: draft v0.94.4 release notes 5907/head
Loic Dachary [Sun, 13 Sep 2015 12:49:39 +0000 (14:49 +0200)]
release-notes: draft v0.94.4 release notes

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agotools: ceph-release-notes handle multiple issues
Loic Dachary [Wed, 30 Sep 2015 16:58:40 +0000 (18:58 +0200)]
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>
9 years agoMerge pull request #6096 from liewegas/wip-13260
Sage Weil [Fri, 2 Oct 2015 12:47:33 +0000 (08:47 -0400)]
Merge pull request #6096 from liewegas/wip-13260

osd/ReplicatedPG: preserve (some) flags when proxying reads

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #6107 from liewegas/wip-13206
Sage Weil [Fri, 2 Oct 2015 12:39:24 +0000 (08:39 -0400)]
Merge pull request #6107 from liewegas/wip-13206

osd: init started to 0

9 years agoMerge pull request #6136 from liewegas/wip-13114
Sage Weil [Fri, 2 Oct 2015 12:38:39 +0000 (08:38 -0400)]
Merge pull request #6136 from liewegas/wip-13114

osd/librados: fix notify completion race

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoceph.spec.in: Do not always restart the daemons on removal 6142/head
Boris Ranto [Fri, 2 Oct 2015 08:37:04 +0000 (10:37 +0200)]
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>
9 years agoceph.spec.in: Do not always restart the daemons on upgrades
Boris Ranto [Fri, 2 Oct 2015 07:56:01 +0000 (09:56 +0200)]
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>
9 years agoMerge pull request #6137 from SUSE/wip-13324-infernalis
Loic Dachary [Thu, 1 Oct 2015 22:34:53 +0000 (00:34 +0200)]
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>
9 years agoMerge remote-tracking branch 'jdurgin/wip-13281' into infernalis
Samuel Just [Thu, 1 Oct 2015 21:55:37 +0000 (14:55 -0700)]
Merge remote-tracking branch 'jdurgin/wip-13281' into infernalis

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoReplicatedPG: consider IGNORE_CACHE for all maybe_handle_cache calls 6181/head
Samuel Just [Thu, 1 Oct 2015 19:11:18 +0000 (12:11 -0700)]
ReplicatedPG: consider IGNORE_CACHE for all maybe_handle_cache calls

Otherwise, we could erroneously promote a snap after not promoting
the missing head for which we have a cached obc and ssc.

Fixes: #13323
Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoinstall-deps.sh: use %bcond_with selinux on SLE/openSUSE 6137/head
Nathan Cutler [Thu, 1 Oct 2015 19:04:29 +0000 (21:04 +0200)]
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>
9 years agoceph_test_rados_api_aio: test pool full gets EDQUOT when FULL_TRY flag is set
Sage Weil [Thu, 1 Oct 2015 19:34:59 +0000 (15:34 -0400)]
ceph_test_rados_api_aio: test pool full gets EDQUOT when FULL_TRY flag is set

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agolibrados: expose OPERATION_FULL_TRY flag
Sage Weil [Thu, 1 Oct 2015 19:03:22 +0000 (15:03 -0400)]
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>
9 years agoosd: return -EDQUOT instead of -ENOSPC if it is a pool quota
Sage Weil [Thu, 1 Oct 2015 19:01:59 +0000 (15:01 -0400)]
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>
9 years agoosdc/Objecter: distinguish between multiple notify completions 6136/head
Sage Weil [Thu, 1 Oct 2015 18:50:34 +0000 (14:50 -0400)]
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>
9 years agoosd: reply to notify request with our unique notify_id
Sage Weil [Thu, 1 Oct 2015 18:50:00 +0000 (14:50 -0400)]
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>
9 years agoMerge remote-tracking branch 'gh/infernalis'
Sage Weil [Thu, 1 Oct 2015 15:51:50 +0000 (11:51 -0400)]
Merge remote-tracking branch 'gh/infernalis'

9 years agoMerge branch 'wip-mdscap'
Sage Weil [Thu, 1 Oct 2015 15:03:09 +0000 (11:03 -0400)]
Merge branch 'wip-mdscap'

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #6114 from SUSE/wip-suse-spec-fixes
Ken Dreyer [Thu, 1 Oct 2015 15:04:15 +0000 (09:04 -0600)]
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>
9 years agoMerge pull request #6134 from SUSE/wip-13318-infernalis
Sage Weil [Thu, 1 Oct 2015 14:15:52 +0000 (10:15 -0400)]
Merge pull request #6134 from SUSE/wip-13318-infernalis

install-deps.sh: openSUSE-release/sles-release/sled-release are always present

9 years agoinstall-deps.sh: openSUSE-release/sles-release/sled-release are always present 6134/head
Nathan Cutler [Thu, 1 Oct 2015 14:04:26 +0000 (16:04 +0200)]
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>
9 years agoceph_test_libcephfs: remove remaining pool name assumptions
Sage Weil [Thu, 3 Sep 2015 17:47:55 +0000 (13:47 -0400)]
ceph_test_libcephfs: remove remaining pool name assumptions

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoclient: clarify setattr forced sync behavior
Sage Weil [Thu, 3 Sep 2015 17:41:43 +0000 (13:41 -0400)]
client: clarify setattr forced sync behavior

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoqa/workunits/fs/test_auth_caps: superceded by ceph_test_libcephfs
Sage Weil [Thu, 3 Sep 2015 17:29:33 +0000 (13:29 -0400)]
qa/workunits/fs/test_auth_caps: superceded by ceph_test_libcephfs

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_libcephfs: fix LibCephFS.OpenLayout test
Sage Weil [Thu, 3 Sep 2015 17:28:45 +0000 (13:28 -0400)]
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>
9 years agounittest_mds_authcap: improve user tests
Sage Weil [Thu, 3 Sep 2015 17:08:00 +0000 (13:08 -0400)]
unittest_mds_authcap: improve user tests

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: drop MAY_CREATE
Sage Weil [Thu, 3 Sep 2015 16:44:20 +0000 (12:44 -0400)]
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>
9 years agomds/MDSAuthCap: verify the caller_gid is valid
Sage Weil [Thu, 3 Sep 2015 16:34:33 +0000 (12:34 -0400)]
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>
9 years agomds: fix chown/chgrp check and tests
Sage Weil [Thu, 3 Sep 2015 16:21:47 +0000 (12:21 -0400)]
mds: fix chown/chgrp check and tests

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/MDSAuthCaps: rename args for is_capable
Sage Weil [Thu, 3 Sep 2015 14:56:11 +0000 (10:56 -0400)]
mds/MDSAuthCaps: rename args for is_capable

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_libcephfs: add AccessTest.User
Sage Weil [Thu, 3 Sep 2015 14:45:18 +0000 (10:45 -0400)]
ceph_test_libcephfs: add AccessTest.User

Covers read/write/create.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/SessionMap: fix MAY_CREATE check
Sage Weil [Thu, 3 Sep 2015 14:44:59 +0000 (10:44 -0400)]
mds/SessionMap: fix MAY_CREATE check

It's about caller_uid/gid.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_libcephfs: make foo, path tests use unique paths, users
Sage Weil [Wed, 2 Sep 2015 14:43:44 +0000 (10:43 -0400)]
ceph_test_libcephfs: make foo, path tests use unique paths, users

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoqa/workunits: drop bash path tests
Sage Weil [Wed, 2 Sep 2015 02:31:39 +0000 (22:31 -0400)]
qa/workunits: drop bash path tests

ceph_test_libcephfs ones are better.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/SessionMap: fix check_access for stray inodes
Sage Weil [Wed, 2 Sep 2015 02:30:36 +0000 (22:30 -0400)]
mds/SessionMap: fix check_access for stray inodes

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/SessionMap: move Session method definitions together
Sage Weil [Wed, 2 Sep 2015 02:26:01 +0000 (22:26 -0400)]
mds/SessionMap: move Session method definitions together

Signed-off-by: Sage Weil <sage@redhat.com>