]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Nathan Cutler [Thu, 13 Aug 2015 13:36:02 +0000 (15:36 +0200)]
ceph.spec.in: test %preun argument is zero for removal-only operations
The %preun section now contains logic for disabling and stopping all the
Ceph systemd units when the ceph package is removed. However, there is no
conditional around it, so the units are disabled and stopped on RPM upgrade
as well as removal.
http://tracker.ceph.com/issues/12685 Fixes: #12685
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Tim Serong <tserong@suse.com>
Samuel Just [Fri, 7 Aug 2015 11:50:20 +0000 (04:50 -0700)]
Merge pull request #5413 from guangyy/wip-12523
osd: copy the RecoveryCtx::handle for when creating RecoveryCtx instance from another one
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
John Spray [Thu, 6 Aug 2015 16:17:25 +0000 (17:17 +0100)]
Merge pull request #5488 from oritwas/wip-cmake-fix-rbd
cmake: add global lib to rbd
Reviewed-by: John Spray <john.spray@redhat.com>
Sage Weil [Thu, 6 Aug 2015 13:29:02 +0000 (09:29 -0400)]
Merge pull request #5475 from cxwshawn/com-fix
rgw_user.h: modify interface comments.
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 6 Aug 2015 13:25:55 +0000 (09:25 -0400)]
Merge pull request #5483 from oddomatik/patch-1
Fix location of --access=full in SWIFT user creation
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 6 Aug 2015 13:25:17 +0000 (09:25 -0400)]
Merge pull request #5484 from cxwshawn/de-fix
ceph-dencoder: add RGWRegion, RGWZoneParams, RGWOLHInfo support.
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 6 Aug 2015 13:12:24 +0000 (09:12 -0400)]
Merge pull request #5421 from ceph/wip-selinux-policy-no-user
SELinux support for ceph
Reviewed-by: Kefu Chai <kchai@redhat.com>
Tested-by: Yuri Weinstein <yweinstei@redhat.com>
John Spray [Thu, 6 Aug 2015 09:10:03 +0000 (10:10 +0100)]
Merge pull request #5487 from ceph/wip-12619
mds: initialize InodeStoreBase::damage_flags
Reviewed-by: John Spray <john.spray@redhat.com>
Orit Wasserman [Thu, 6 Aug 2015 08:20:04 +0000 (10:20 +0200)]
cmake: add global lib to rbd
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Yan, Zheng [Thu, 6 Aug 2015 08:12:27 +0000 (16:12 +0800)]
mds: initialize InodeStoreBase::damage_flags
Fixes: #12619
Signed-off-by: Yan, Zheng <zyan@redhat.com>
shawn [Thu, 6 Aug 2015 02:48:23 +0000 (10:48 +0800)]
ceph-dencoder: add RGWRegion, RGWZoneParams, RGWOLHInfo support.
since ceph-dencoder does not support the up-list structures, so
I add these three supports to analyze data more quickly.
Signed-off-by: shawn chen <cxwshawn@gmail.com>
Brian Andrus [Wed, 5 Aug 2015 23:25:48 +0000 (16:25 -0700)]
Fix location of --access=full in SWIFT user creation
--access=full was incorrectly placed in the output of the command, while it was supposed to have been a flag run with the command.
Boris Ranto [Wed, 5 Aug 2015 15:54:13 +0000 (17:54 +0200)]
ceph.spec.in: Make SELinux opt-out, not opt-in
We should enable SELinux support by default on rpm-based systems that
build with SELinux support to get better QE coverage in future runs.
Signed-off-by: Boris Ranto <branto@redhat.com>
Loic Dachary [Wed, 5 Aug 2015 15:06:02 +0000 (17:06 +0200)]
Merge pull request #5478 from dachary/wip-test-rados-striper
tests: rados striper tests use 7116 instead of 7113
Reviewed-by: Sebastien Ponce <sebastien.ponce@cern.ch>
Sage Weil [Wed, 5 Aug 2015 14:34:21 +0000 (10:34 -0400)]
Merge pull request #5459 from cxwshawn/master
radosgw-admin: use cout instead of cerr to print help message.
Reviewed-by: Sage Weil <sage@redhat.com>
Boris Ranto [Tue, 28 Jul 2015 18:13:18 +0000 (20:13 +0200)]
selinux: Add .gitignore file
The gitbuilders release script needs this. Otherwise, the ceph-release
build will fail because there were some untracked files.
Signed-off-by: Boris Ranto <branto@redhat.com>
Boris Ranto [Tue, 28 Jul 2015 09:28:40 +0000 (11:28 +0200)]
ceph.spec.in: stop/start service on policy upgrade/removal
Signed-off-by: Boris Ranto <branto@redhat.com>
Boris Ranto [Tue, 28 Jul 2015 09:11:42 +0000 (11:11 +0200)]
selinux: Update the SELinux policy rules
Few new denials were found while testing the policy. Updating the policy
rules to refelct that.
Signed-off-by: Boris Ranto <branto@redhat.com>
Boris Ranto [Sat, 25 Jul 2015 12:05:43 +0000 (14:05 +0200)]
SELinux Makefile can't work in parallel
We need to force single-core compilation of SELinux policy files in the
sub-make target as SELinux Makefile does not work properly when run in
parallel mode.
Signed-off-by: Boris Ranto <branto@redhat.com>
Milan Broz [Fri, 24 Jul 2015 11:30:11 +0000 (13:30 +0200)]
ceph-disk: set selinux context
Ensure that SELinux context is properly set according to policy.We
need this as SELinux context is not preserved across mount points.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Boris Ranto [Wed, 15 Jul 2015 16:20:52 +0000 (18:20 +0200)]
selinux: Allow setuid and setgid to ceph-mon and ceph-osd
Signed-off-by: Boris Ranto <branto@redhat.com>
Milan Broz [Wed, 17 Jun 2015 11:08:17 +0000 (13:08 +0200)]
Update selinux policy (after local test).
Changes enerated with ceph-test package.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Milan Broz [Fri, 12 Jun 2015 11:07:05 +0000 (13:07 +0200)]
Fix selinux context after intitial OSD mount.
The SELinux context is not preserved across file-systems, we need to
manually set the context of the root of the file-system in order to
preserve SELinux context inheritence rules.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
Boris Ranto [Fri, 15 May 2015 13:18:05 +0000 (15:18 +0200)]
Add initial SELinux support
This patch modifies the build system and spec file to provide a support
for SELinux enforcing in an opt-in matter via ceph-selinux package.
Signed-off-by: Boris Ranto <branto@redhat.com>
John Spray [Wed, 5 Aug 2015 13:06:37 +0000 (14:06 +0100)]
Merge pull request #4860 from ceph/wip-nobjectiterator-crash
librados: fix empty NObjectIterator crash on comparisons
Reviewed-by: Sage Weil <sage@redhat.com>
John Spray [Tue, 28 Apr 2015 17:40:57 +0000 (18:40 +0100)]
librados: fix empty NObjectIterator crash on comparisons
This would segfault if you did a
NObjectIterator i;
i == ...
Fix comparisons by allowing pointer-wise comparisons
for iterators with impl==NULL, and asserting in
other methods that require a non-null ::impl
Signed-off-by: John Spray <john.spray@redhat.com>
Loic Dachary [Wed, 5 Aug 2015 12:46:57 +0000 (14:46 +0200)]
tests: rados striper tests use 7116 instead of 7113
Change src/test/libradosstriper/rados-striper.sh monitor address to 7116
because src/test/mon/osd-crush.sh uses 7113 already.
Signed-off-by: Loic Dachary <ldachary@redaht.com>
Kefu Chai [Wed, 5 Aug 2015 08:35:43 +0000 (16:35 +0800)]
Merge pull request #5474 from kylinstorage/wip-sparse_read_bugfix
osd/ReplicatedPG: sparse read should return (extent_map, data_bufferlist)
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
Yunchuan Wen [Wed, 5 Aug 2015 05:04:38 +0000 (13:04 +0800)]
osd/ReplicatedPG: sparse read should return (extent_map, data_bufferlist)
Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
shawn [Wed, 5 Aug 2015 03:40:22 +0000 (11:40 +0800)]
rgw_user.h: modify interface comments.
Signed-off-by: shawn chen <cxwshawn@gmail.com>
Josh Durgin [Wed, 5 Aug 2015 01:13:52 +0000 (18:13 -0700)]
Merge remote-tracking branch 'origin/next'
Conflicts:
src/Makefile-client.am (link rbd to libglobal again)
Jason Dillaman [Fri, 31 Jul 2015 17:06:33 +0000 (13:06 -0400)]
Revert "rbd: remove dependency on non-ABI controlled CephContext"
This reverts commit
fa78739933d7b9501116a12a4fbfd58b5ca99cdb .
Original approach broke krbd map/unmap functions and did not fully
address ABI issues.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Sage Weil [Tue, 4 Aug 2015 18:05:41 +0000 (14:05 -0400)]
Merge pull request #5446 from ceph/wip-systemd
systemd support
Reviewed-by: Owen Synge <osynge@suse.com>
Loic Dachary [Tue, 4 Aug 2015 17:13:02 +0000 (19:13 +0200)]
Merge pull request #5469 from theanalyst/doc/v0.94.3-release
doc: release notes for v0.94.3
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Abhishek Lekshmanan [Tue, 4 Aug 2015 15:53:27 +0000 (21:23 +0530)]
doc: release notes for v0.94.3
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Sage Weil [Tue, 4 Aug 2015 13:57:41 +0000 (09:57 -0400)]
client/Makefile: ship InodeRef
Signed-off-by: Sage Weil <sage@redhat.com>
John Spray [Tue, 4 Aug 2015 13:13:40 +0000 (14:13 +0100)]
Merge pull request #4753 from ceph/wip-client-inode-refs
client: hold reference for returned inode
Reviewed-by: John Spray <john.spray@redhat.com>
John Spray [Tue, 4 Aug 2015 13:12:38 +0000 (14:12 +0100)]
Merge pull request #5466 from ceph/wip-12578
mds: open base inode's snaprealm after decoding snapblob
Reviewed-by: John Spray <john.spray@redhat.com>
Yan, Zheng [Tue, 4 Aug 2015 11:18:10 +0000 (19:18 +0800)]
mds: open base inode's snaprealm after decoding snapblob
base inode has no parent, so can we mark its snaprealm open
immediately. This change makes sure replica mdsdir's snaplream
is opened.
Fixes: #12578
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Kefu Chai [Tue, 4 Aug 2015 11:08:24 +0000 (19:08 +0800)]
Merge pull request #5140 from tchaikov/wip-pg-ls-update-pending-rel-notes
doc: add changes to "pg ls*" commands to pending release notes
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Kefu Chai [Fri, 3 Jul 2015 10:28:24 +0000 (18:28 +0800)]
doc: add changes to "pg ls*" commands to pending release notes
"pg ls*" commands now accept recovering instead of recovery as
one of its states.
Fixes: #11569
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 4 Aug 2015 07:04:29 +0000 (15:04 +0800)]
Merge pull request #5337 from branch-predictor/bp-reduce-mallocs
Thread.cc: remove malloc/free pair
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 4 Aug 2015 07:03:11 +0000 (15:03 +0800)]
Merge pull request #5000 from ceph/wip-da-SCA-
20150601
Various SCA and Coverity fixes
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 4 Aug 2015 05:58:21 +0000 (13:58 +0800)]
Merge pull request #5312 from xinxinsh/wip-sparse-copy
use SEEK_HOLE/SEEK_DATA for sparse copy
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 4 Aug 2015 05:52:15 +0000 (13:52 +0800)]
Merge pull request #5420 from ceph/wip-12429
osd/OSDMap: handle incrementals that modify+del pool
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
shawn [Tue, 4 Aug 2015 03:14:31 +0000 (11:14 +0800)]
radosgw-admin: use cout not cerr to print help message.
everytime I print radosgw-admin help message, it's too long, and I wanna add | more,
but the help message prints to cerr, so I can only add 2>&1 again, so I think it's
so inconvenient.
Signed-off-by: shawn chen <cxwshawn@gmail.com>
Sage Weil [Tue, 4 Aug 2015 01:49:38 +0000 (21:49 -0400)]
Merge pull request #5431 from kylinstorage/test_cache_pool_script_fix
fix: qa/workunits/rados/test_cache_pool.sh
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 4 Aug 2015 01:47:41 +0000 (21:47 -0400)]
Merge pull request #5430 from ceph/wip-12537
rgw: url encode exposed bucket
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 3 Aug 2015 19:15:51 +0000 (15:15 -0400)]
Merge pull request #5397 from ceph/wip-12222
mon: reject over-large values of max_mds
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Sage Weil [Mon, 3 Aug 2015 19:14:37 +0000 (15:14 -0400)]
Merge pull request #5400 from tchaikov/wip-12451
tools/rados: update the help message
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 3 Aug 2015 18:41:28 +0000 (14:41 -0400)]
logrotate: fix log rotation with systemd
systemctl does not have a nice way to enumerate (active) units so we can
reload them. On centos7, the is-active wildcard syntax does not appear to
be supported. On fedora 22, it prints the state only but not which unit
the state belongs to.
Simply killall -1 instead.
Signed-off-by: Sage Weil <sage@redhat.com>
Josh Durgin [Mon, 3 Aug 2015 18:05:55 +0000 (11:05 -0700)]
Merge pull request #5440 from vumrao/wip-vumrao-12458-doc
doc: change --keyfile description in man page of rbd help
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Vikhyat Umrao [Fri, 31 Jul 2015 11:54:37 +0000 (17:24 +0530)]
doc: change "--keyfile" description in man page of rbd help
"--keyring" has higher priority than "--keyfile".
"--keyfile" option is overridden by "--keyring"
if latter is also specified.
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
Kefu Chai [Mon, 3 Aug 2015 17:18:47 +0000 (01:18 +0800)]
Merge pull request #5455 from ceph/wip-cephfs-cmake
CMake fixes for CephFS
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Mon, 3 Aug 2015 16:09:33 +0000 (12:09 -0400)]
Merge pull request #5456 from kylinstorage/wip-do_autogen.sh
Allow do_autogen.sh pass configure parameters
Reviewed-by: Sage Weil <sage@redhat.com>
John Spray [Mon, 3 Aug 2015 15:27:12 +0000 (16:27 +0100)]
CMake: add crushtool
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 3 Aug 2015 15:26:49 +0000 (16:26 +0100)]
CMake: fix librados build
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 3 Aug 2015 15:11:22 +0000 (16:11 +0100)]
CMake: fix rbd build
Don't link with 'global' from rbd (to match
autotools update
fa78739 ). Fixes "g_ceph_context
defined twice" error.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 3 Aug 2015 11:59:00 +0000 (12:59 +0100)]
CMake: libblkid not only needed with rbd
It's linked in libcommon.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 3 Aug 2015 11:52:58 +0000 (12:52 +0100)]
CMake: smalliobenchrbd should dep on rbd
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 3 Aug 2015 11:48:32 +0000 (12:48 +0100)]
CMake: set WITH_CEPHFS by default
Option was referenced in CMakeLists but
not actually set.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 3 Aug 2015 12:14:16 +0000 (13:14 +0100)]
CMake: fix cephfs cls build
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 3 Aug 2015 11:51:42 +0000 (12:51 +0100)]
CMake: fix cephfs test targets
These had bad lib names.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Fri, 31 Jul 2015 12:26:12 +0000 (13:26 +0100)]
CMake: add cephfs tools
cephfs-table-tool, cephfs-data-scan, cephfs-journal-tool
Signed-off-by: John Spray <john.spray@redhat.com>
Sage Weil [Mon, 3 Aug 2015 14:57:14 +0000 (10:57 -0400)]
Makefile: include systemd udev rules in tarball
Signed-off-by: Sage Weil <sage@redhat.com>
Kefu Chai [Mon, 3 Aug 2015 14:37:35 +0000 (22:37 +0800)]
Merge pull request #5422 from ceph/wip-fix-filestore-getattr
tests: fix the ObjectStore/StoreTest.SimpleCloneTest in "ceph_test_objectstore"
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Yan, Zheng [Mon, 3 Aug 2015 13:28:47 +0000 (21:28 +0800)]
Merge pull request #5375 from ceph/wip-config-root-ino
Make UID of new root inos configurable
Yunchuan Wen [Mon, 3 Aug 2015 13:05:18 +0000 (13:05 +0000)]
add help to do_autogen.sh
Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
Reviewed-by: Li Wang <liwang@ubuntukylin.com>
Yunchuan Wen [Mon, 3 Aug 2015 13:03:47 +0000 (13:03 +0000)]
Allow do_autogen.sh to pass configure parameters
Currently do_autogen.sh does not allow to pass parameters
of configure to disable/enable components during building, which is not
flexible, this patch add the ability to it.
Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
Reviewed-by: Li Wang <liwang@ubuntukylin.com>
Yan, Zheng [Wed, 24 Jun 2015 07:39:31 +0000 (15:39 +0800)]
client: use smart pointer to track temporary inode reference
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Yan, Zheng [Wed, 24 Jun 2015 07:54:31 +0000 (15:54 +0800)]
client: use smart pointer to track 'cwd' and 'root_parents'
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Yan, Zheng [Wed, 24 Jun 2015 07:52:10 +0000 (15:52 +0800)]
client: convert Inode::snapdir_parent to smart pointer
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Yan, Zheng [Wed, 24 Jun 2015 07:24:41 +0000 (15:24 +0800)]
client: convert CapSnap::in to smart pointer
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Yan, Zheng [Wed, 24 Jun 2015 07:50:10 +0000 (15:50 +0800)]
client: convert Fh::inode to smart pointer
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Yan, Zheng [Wed, 24 Jun 2015 07:00:50 +0000 (15:00 +0800)]
client: use smart pointers in MetaRequest
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Yan, Zheng [Wed, 24 Jun 2015 03:21:23 +0000 (11:21 +0800)]
client: convert Dentry::inode to smart pointer
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Yan, Zheng [Sat, 23 May 2015 12:01:46 +0000 (20:01 +0800)]
client: hold reference for returned inode
CLient::make_request() returns pointer of target inode, but it does not
increase reference count of the returned inode. The inode may get freed
when CLient::make_request() releases MetaRequest.
he fix is hold a reference for the returned inode. Since there are many
of places use CLient::make_request() directly or indirectly, it's easy
to leak reference. This patch uses intrusive_ptr to track the reference.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Sage Weil [Fri, 31 Jul 2015 19:44:15 +0000 (15:44 -0400)]
systemd: fix ceph-radosgw@ service
There's no prestart. Fix the instance name. Cleanup.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 31 Jul 2015 19:16:30 +0000 (15:16 -0400)]
ceph.spec: install the new systemd-based udev rules from ddiss
Signed-off-by: Sage Weil <sage@redhat.com>
Owen Synge [Fri, 31 Jul 2015 13:03:40 +0000 (15:03 +0200)]
ceph.spec.in:Fixup renamed ceph-rgw.conf
This is a simple renaming bug.
Signed-off-by: Owen Synge <osynge@suse.com>
Owen Synge [Fri, 31 Jul 2015 11:15:02 +0000 (13:15 +0200)]
ceph.spec.in:fixup bad merge of systemd logic
Sage Weil [Thu, 30 Jul 2015 14:00:29 +0000 (10:00 -0400)]
remove ceph-disk-{activate,prepare} wrappers
These ancient aliases shouldn't be used. We should have removed them
immediately way back when, honestly.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 30 Jul 2015 13:41:35 +0000 (09:41 -0400)]
ceph.spec: ship ceph-disk-* units
Signed-off-by: Sage Weil <sage@redhat.com>
David Disseldorp [Mon, 11 May 2015 23:45:34 +0000 (01:45 +0200)]
systemd: activate disks via systemd service instead of udev
The udev(7) man page states:
RUN
...
This can only be used for very short-running foreground tasks. Running
an event process for a long period of time may block all further
events for this or a dependent device.
Starting daemons or other long-running processes is not appropriate
for udev; the forked processes, detached or not, will be
unconditionally killed after the event handling has finished.
ceph-disk activate is far from a short-running task:
- check whether path is a block dev, for dirs call through to
activate_dir()
- call blkid to obtain the filesystem type for the block dev
- pull mount options from hard-coded ceph.conf file
- mount the OSD dev at a temporary path
- check the ceph magic for mounted filesystem
- read cluster uuid and locate corresponding /etc/ceph/{cluster}.conf
path
- read or generate (if missing) the OSD uuid
- create a file indicating init system usage (systemd)
- mount the device at a second (final) location
- umount (lazy) the temporary mount path
- enable the systemd ceph-osd@{osd_id} service
- start the systemd ceph-osd@{osd_id} service
This logic is therefore best left in a systemd service for execution. As
it is less limited in terms of execution time, and also allows for
improved event handling in future (fsck, dmcrypt mapping etc.).
This change sees 95-ceph-osd.rules.systemd trigger ceph-disk activate or
ceph-disk activate-journal via new ceph-disk-activate-journal@.service,
ceph-disk-activate@.service and ceph-disk-dmcrypt-activate@.service
systemd service files.
ceph-disk-dmcrypt-activate@.service makes use of the newly added
--dmcrypt parameter for ceph-disk activate.
Signed-off-by: David Disseldorp <ddiss@suse.de>
Sage Weil [Thu, 30 Jul 2015 13:39:51 +0000 (09:39 -0400)]
ceph.spec: use sysvinit rbdmap script for now
Signed-off-by: Sage Weil <sage@redhat.com>
David Disseldorp [Tue, 12 May 2015 15:07:30 +0000 (17:07 +0200)]
ceph-disk: map dmcrypt devices prior to activation
Support mapping of dmcrypt devices during activation via the new
ceph-disk activate[-journal] --dmcrypt and --dmcrypt-key-dir parameters.
Signed-off-by: David Disseldorp <ddiss@suse.de>
David Disseldorp [Wed, 13 May 2015 10:58:50 +0000 (12:58 +0200)]
ceph-disk: split get_dmcrypt_key_path from key creation
In preparation for mapping dmcrypt cyphertext devs during activation.
Signed-off-by: David Disseldorp <ddiss@suse.de>
David Disseldorp [Tue, 12 May 2015 12:08:16 +0000 (14:08 +0200)]
ceph-disk: add --log-stdout parameter
This can be used when ceph-disk is run by systemd services, to ensure
that output is captured in the journal.
Signed-off-by: David Disseldorp <ddiss@suse.de>
Sage Weil [Wed, 29 Jul 2015 19:12:54 +0000 (15:12 -0400)]
ceph.spec: no rcceph[-radosgw] with systemd
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 29 Jul 2015 19:10:36 +0000 (15:10 -0400)]
systemd: add ceph-create-keys@ service
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 27 Jul 2015 19:11:10 +0000 (15:11 -0400)]
ceph.spec: include systemd units files
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 27 Jul 2015 18:38:45 +0000 (14:38 -0400)]
system: include all unit files
Signed-off-by: Sage Weil <sage@redhat.com>
Owen Synge [Tue, 26 May 2015 17:23:58 +0000 (19:23 +0200)]
Autotools to install systemd unit files.
To simplify the spec file we should install as much using autotools
and as little as possible in the spec file.
Signed-off-by: Owen Synge <osynge@suse.com>
Owen Synge [Wed, 10 Jun 2015 13:33:54 +0000 (15:33 +0200)]
Add unit files to the spec file.
%{_unitdir}/ceph-mds@.service
%{_unitdir}/ceph-mon@.service
%{_unitdir}/ceph-osd@.service
%{_unitdir}/ceph.target
Signed-off-by: Owen Synge <osynge@suse.com>
Owen Synge [Thu, 25 Jun 2015 11:30:17 +0000 (13:30 +0200)]
radosgw systemd prestart moved to systemd
prestart scripts are going to be added to systemd to simplify the switching behavior.
Signed-off-by: Owen Synge <osynge@suse.com>
Owen Synge [Wed, 18 Mar 2015 09:17:05 +0000 (10:17 +0100)]
radosgw systemd support
Added a radosgw systemd support and associated prestart script.
- With improved checking over first revison.
- ceph-radosgw-prestart.sh now installed in /usr/lib/ceph-radosgw
Signed-off-by: Owen Synge <osynge@suse.com>
Owen Synge [Tue, 9 Jun 2015 14:55:10 +0000 (16:55 +0200)]
ceph.spec.in: Change redhat defaults for rgw
Changes
--with-rgw-user=$USER \
--with-rgw-group=$GROUP \
to
USER=root
GROUP=root
from
USER=apache
GROUP=apache
Signed-off-by: Owen Synge <osynge@suse.com>
Owen Synge [Wed, 3 Jun 2015 10:55:01 +0000 (12:55 +0200)]
Added tmpfiles.d for rgw: templated user and group.
tmpfiles.d are part of system.d and define how temporary directories are setup.
rgw needs a socket directory. To do this we template tmpfiles.d user and group
for rgw and fill in the values using autotools.
Note1: Added to spec file.
Note2: Name changed to rgw from radosgw as is preferred name by Sage.
Note3: Adds configure options
--with-rgw-user=UserName
--with-rgw-group=GroupName
Note4: Defaults set for debian
Note5: spec file overrides defaults for redhat and suse
Signed-off-by: Owen Synge <osynge@suse.com>
Owen Synge [Mon, 18 May 2015 10:07:03 +0000 (12:07 +0200)]
ceph.spec.in:Update rpm hooks and file content
Take rpm hooks from SUSE rpm and move upstream.
These are tested on SLE12 to include the correct files.
Signed-off-by: Owen Synge <osynge@suse.com>
Orit Wasserman [Fri, 31 Jul 2015 19:39:04 +0000 (21:39 +0200)]
Merge pull request #5445 from ceph/wip-12432
Wip 12432