| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
/var/run is mounted as tmpfs and will be cleared after reboot.
On sysvinit ceph init service creates this directory for pid with root ownership.
Fixes: https://tracker.ceph.com/issues/19242
Signed-off-by: Elena Chernikova <elena.chernikoff@gmai.com>
|
|
|
|
|
|
| |
This allows mgr/cephadm to run radosgw-admin.
Signed-off-by: Sage Weil <sage@newdream.net>
|
|
|
|
|
|
|
| |
The current version does not result in a functional mgr after restarting
from a vstart cluster.
Signed-off-by: Sage Weil <sage@newdream.net>
|
|
|
|
|
|
| |
instead of checking for the WITH_PYTHON* options, just hardwire to lib.3
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
| |
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
|
|
|
|
|
|
|
|
|
|
|
| |
if ceph-osd takes longer than 1 seconds to unmount the objectstore, it
won't get a chance to fully persist all of its stuff to disk before
init-ceph kills it again.
in my case, `MemStore::_save()` fails to write $path/collections before
it gets killed, if it has more than 512 PGs.
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
| |
Signed-off-by: Alfredo Deza <adeza@redhat.com>
|
|
|
|
|
|
|
| |
we should not hardwire cython_modules's path to lib.2, it should be
cython_modules/lib.3 if ceph-mgr requires python3.
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
| |
OSD.cc does this on its own; no need for this script to be involved.
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
|
|
| |
otherwise we will have
./bin/init-ceph: 269: [: missing ]
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|\
| |
| |
| |
| | |
src/init-ceph.in: allow one((re)?start|stop) as commands
Reviewed-by: Jos Collin <jcollin@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- One FreeBSD these are the service command to start a service
even if the service is not activated in /etc/rc.conf
Which will allow ceph-disk and ceph-deploy to start even without
setting /etc/rc.conf
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
|
|/
|
|
|
|
|
| |
These libraries are set in vstart.sh, but not in init-ceph. When
init-ceph is not invoked through vstart.sh, library paths are missing.
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
|
|
|
|
|
|
| |
Broken by 299b7d06ac18c5cd30b8b65c7d25df9fc00287db
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
|
|
| |
- FreeBSD find does not have printf option
- use the packaged getopt in /usr/local
- Only apply user-facts when user ceph is available
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the version command is handled by HelpHook, which does not print newline
at the end of the returned JSON. so the output of "status" subcommand
looks like:
=== osd.1 ===
osd.1: running {"version":"Development"}=== osd.2 ===
osd.2: not running.
with this change, a newline is added to the end of version.
also use the "daemon" subcommand to talk to the asok, let the "ceph" cli
to figure out the asok path.
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
|
| |
If the user define "osd crush location hook" in ceph.conf, but the
osd_location_hook tool does not exist,we should exit error.
Signed-off-by:song baisen <song.baisen@zte.com.cn>
|
|
|
|
|
|
| |
ceph-create-keys should not be started on boot of mons with sysv init.
Signed-off-by: Owen Synge <osynge@suse.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`systemd-run` logic in initscripts was introduced because of ticket
http://tracker.ceph.com/issues/7627.
If we have systemd-based operating system, we should use systemd unit files
from systemd directory to start/stop ceph daemons.
Otherwise, `daemon()` from `/etc/init.d/functions` on systemd distro starts service
in `system.slice` and everything works well.
`systemd-run` can not be run on non-systemd distros, so it's not needed
on SysV systems.
also, ceph-disk is now able to run the "systemctl"
to enable and start the ceph-osd, and ceph-deploy is also now
playing well with systemd when it comes to ceph-mon and ceph-mds
Fixes: http://tracker.ceph.com/issues/16440
Signed-off-by: Vladislav Odintsov <odivlad@gmail.com>
|
|
|
|
| |
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
|
|
|
|
| |
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
| |
Signed-off-by: Li Peng <lip@dtdream.com>
|
|
|
|
|
|
| |
commit 65963739cd6815b8008282c8f64cd64365662e60 have introduce a bug
test variables need to be quoted, or -n always return true, even if variables don't exist
|
|
|
|
|
|
| |
Fix init-ceph to handle it when CEPH_* values set
Signed-off-by: David Zafman <dzafman@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Replaced relative paths in shell scripts in
test/ceph_objectstore_tool.py and init-ceph.in to
work with CEPH_FOO environment variables set in cmake.
Also added CEPH_BUILD_DIR environment variable set
to CMAKE_BINARY_DIR. It is used in init-ceph and
ceph_objectstore_tool.py.
Signed-off-by: Ali Maredia <amaredia@redhat.com>
|
|
|
|
|
|
|
| |
I noticed this when openstack/puppet-ceph sliently converted my 'true'
to 'True' in ceph.conf.
Signed-off-by: Eric Cook llua@gmx.com
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
First, it makes sense for both ceph_common.sh and ceph-osd-prestart.sh to
reside in the same directory: make it so.
Second, /usr/lib exists on both RHEL/Fedora and SLE/openSUSE, whereas
the later lacks /usr/libexec. To make this less painful, package
ceph_common.sh and ceph-osd-prestart.sh in /usr/lib/ceph.
Third, allow e.g. FreeBSD to do its own thing by using the $(libexecdir)
Autoconf variable (but set it to /usr/lib in the spec file).
http://tracker.ceph.com/issues/14687 Fixes: #14687
Signed-off-by: Nathan Cutler <ncutler@suse.com>
|
|\ \
| |/
|/|
| |
| | |
init-ceph.in: skip ceph-disk if it is not present
Reviewed-by: Kefu Chai <kchai@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
With the ceph-mon vs ceph-osd split packaging, users are expected to
have the ceph-mon package installed and not ceph-osd (and vice versa).
However, the init script (/etc/init.d/ceph) has a call to `ceph-disk`,
which may not be present on the machine.
Given that our packaging is not yet split upstream, this bug does not
manifest itself currently, because both ceph-mon and ceph-disk are
currently in the same "ceph" package. Once we split the packaging,
though, this will become an issue.
http://tracker.ceph.com/issues/10587 Refs: #10587
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
|
|/
|
|
|
|
| |
..when set in the sysconfig/default file.
Signed-off-by: Sage Weil <sage@redhat.com>
|
|\
| |
| |
| |
| |
| | |
init-ceph: do umount when the path exists.
Reviewed-by: Loic Dachary <ldachary@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If the specified mount point is in use, umount it instead
of skipping mounting the fs.
In previous code , if we forgot that we already mount something unrelated to
*this ceph osd * to the particular mount point, we will skip the mount and
finally get an error complaining superblock not matching OSD ID.
umount & remount is better because
1. If the wrong FS not in use, we can get the right FS we want and make ceph boot smoothly.
2. If the wrong FS is in use, we will get EBUSY on umount, which seems explain the situation
more clearly than superblock mismatch.
Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
|
|\ \
| |/
|/|
| |
| | |
sysvinit: allow custom cluster names
Reviewed-by: Sage Weil <sage@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Richard Chan <richard@treeboxsolutions.com>
|
|/
|
|
|
| |
Fixes: #13474
Signed-off-by: Chuanhong Wang <wang.chuanhong@zte.com.cn>
|
|
|
|
| |
Signed-off-by: Nathan Cutler <ncutler@suse.com>
|
|
|
|
| |
Signed-off-by: Nathan Cutler <ncutler@suse.com>
|
|
|
|
|
|
| |
http://tracker.ceph.com/issues/3015 Fixes: #3015
Signed-off-by: Nathan Cutler <ncutler@suse.com>
|
|
|
|
|
|
|
| |
This allows members of the ceph group to make librados clients (like the
ceph cli and qemu) create sockets in the default /var/run/ceph/* location.
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
| |
On OSX/FreeBSD, /lib/lsb/init-functions does not exist
Signed-off-by: Yan, Zheng <zyan@redhat.com>
|
|
|
|
|
|
| |
use ps(1) instead, which is portable
Signed-off-by: Yan, Zheng <zyan@redhat.com>
|
|
|
|
|
|
| |
'echo -n' is no portable. On OSX, output of 'echo -n' can be '-n'
Signed-off-by: Yan, Zheng <zyan@redhat.com>
|
|
|
|
|
|
|
|
| |
Fix upstart and sysvinit scripts to create /var/run/ceph properly.
Chown existing dir on upgrade.
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
| |
Signed-off-by: Boris Ranto <branto@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Scripts expect the generated init-ceph script
to be +x, and CMake does that if the file you
feed into it is +x. This matches what we already
do with ceph.in.
Signed-off-by: John Spray <john.spray@redhat.com>
|
|
|
|
|
|
|
| |
Our fixed point weights can go down to .0001 -- allow that.
Fixes: #11500
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
|
| |
One host in cluster crashed and rebuilded, but failed to start osds
because the data dir not exist.
Signed-off-by: huangjun <hjwsm1989@gmail.com>
|
|
|
|
|
|
|
| |
ceph-mon needs crushtool in PATH and dev environments may not have
crushtool in the system's PATH.
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
The existence of the pidfile must be checked outside of the loop to send
a signal to the daemon. Otherwise the daemon will remove the pidfile and
stop can return before the process is dead because it only checks
/proc/$pid if the pidfile exists.
http://tracker.ceph.com/issues/10389 Fixes: #10389
Signed-off-by: Loic Dachary <ldachary@redhat.com>
|