]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
ceph-ci.git
5 years agoceph-daemon: drop unused VERSION
Sage Weil [Fri, 4 Oct 2019 22:01:00 +0000 (17:01 -0500)]
ceph-daemon: drop unused VERSION

Originally the 'version' command showed this; now it shows the version
inside the container.

Not sure if we should add a --version command and have the cmake parse in
a 'git describe' version into the code... ?

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: clean up dir helpers, tighten up permissions
Sage Weil [Fri, 4 Oct 2019 21:59:24 +0000 (16:59 -0500)]
ceph-daemon: clean up dir helpers, tighten up permissions

- don't pass args.{data,log}_dir to get_{data,log}_dir
- pass uid, gid, and mode to makedirs
- add make_data_dir and make_log_dir helpers, that optionally take uid/gid
- add make_data_dir_base that requires uid/gid
- use standard data and log dir modes, defined at top of file (0o700 for
  data, 0o770 for logs).  The data dir mode applies both to the fsid
  directory for the whole cluster and to each daemon's subdirectory; the
  log mode applies only to the fsid dir for the whole cluster, where
  all daemon logs are combined together in one directory.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: fchmod before writing to keyring file
Sage Weil [Fri, 4 Oct 2019 20:58:19 +0000 (15:58 -0500)]
ceph-daemon: fchmod before writing to keyring file

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotest_ceph_daemon.sh: skip ssh until container image has remoto
Sage Weil [Fri, 4 Oct 2019 19:36:30 +0000 (14:36 -0500)]
test_ceph_daemon.sh: skip ssh until container image has remoto

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: decode utf-8 in run() helper
Sage Weil [Fri, 4 Oct 2019 19:31:59 +0000 (14:31 -0500)]
ceph-daemon: decode utf-8 in run() helper

Less repetition

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: clean up debug cruft
Sage Weil [Fri, 4 Oct 2019 19:31:04 +0000 (14:31 -0500)]
mgr/ssh: clean up debug cruft

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: clean up bare except: block
Sage Weil [Fri, 4 Oct 2019 19:30:56 +0000 (14:30 -0500)]
mgr/ssh: clean up bare except: block

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: clean up bare except: blocks
Sage Weil [Fri, 4 Oct 2019 19:30:40 +0000 (14:30 -0500)]
ceph-daemon: clean up bare except: blocks

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: all imports to top
Sage Weil [Fri, 4 Oct 2019 19:24:26 +0000 (14:24 -0500)]
ceph-daemon: all imports to top

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-volume: no_tmpfs -> tmpfs
Sage Weil [Fri, 4 Oct 2019 19:21:09 +0000 (14:21 -0500)]
ceph-volume: no_tmpfs -> tmpfs

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agodoc/bootstrap: add new bootstrap documentation
Sage Weil [Fri, 4 Oct 2019 17:40:05 +0000 (12:40 -0500)]
doc/bootstrap: add new bootstrap documentation

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: add --output-pub-ssh-key for bootstrap
Sage Weil [Fri, 4 Oct 2019 17:39:16 +0000 (12:39 -0500)]
ceph-daemon: add --output-pub-ssh-key for bootstrap

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: make 'shell' easier to use
Sage Weil [Fri, 4 Oct 2019 17:18:04 +0000 (12:18 -0500)]
ceph-daemon: make 'shell' easier to use

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: support docker; prefer podman
Sage Weil [Fri, 4 Oct 2019 16:25:10 +0000 (11:25 -0500)]
ceph-daemon: support docker; prefer podman

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa: add ceph-daemon
Sage Weil [Fri, 4 Oct 2019 15:22:12 +0000 (10:22 -0500)]
qa: add ceph-daemon

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agodebian: ceph-daemon package, required by ceph-mgr-ssh
Sage Weil [Thu, 3 Oct 2019 21:24:39 +0000 (16:24 -0500)]
debian: ceph-daemon package, required by ceph-mgr-ssh

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph.spec.in: ceph-daemon package, required by ceph-mgr
Sage Weil [Thu, 3 Oct 2019 21:24:25 +0000 (16:24 -0500)]
ceph.spec.in: ceph-daemon package, required by ceph-mgr

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocommon/options: cleanup whitespace
Sage Weil [Thu, 3 Oct 2019 21:16:38 +0000 (16:16 -0500)]
common/options: cleanup whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: simplify getting the cluster fsid
Sage Weil [Thu, 3 Oct 2019 21:15:08 +0000 (16:15 -0500)]
mgr/ssh: simplify getting the cluster fsid

This never changes, so just stash it once.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: pipe ceph-daemon script to stdin of python3
Sage Weil [Thu, 3 Oct 2019 21:13:47 +0000 (16:13 -0500)]
mgr/ssh: pipe ceph-daemon script to stdin of python3

This avoids any need for the script to be present on the remote host.

We introduce a config option to indicate where the script should be
read from, since the location varies between a vstart environment (source
dir) and a real install (/usr/sbin).

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: add support for args and/or stdin from top of script
Sage Weil [Thu, 3 Oct 2019 19:50:19 +0000 (14:50 -0500)]
ceph-daemon: add support for args and/or stdin from top of script

Allow someone to run this script by prepending injected_{args,stdin} to
the top and then piping it all to a python3 binary.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: make ceph-volume use get_config_and_keyring
Sage Weil [Thu, 3 Oct 2019 19:29:10 +0000 (14:29 -0500)]
ceph-daemon: make ceph-volume use get_config_and_keyring

This will always take the first config+keyring json branch.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: ls: behave if /var/log/ceph doesn't exist
Sage Weil [Wed, 2 Oct 2019 21:54:18 +0000 (16:54 -0500)]
ceph-daemon: ls: behave if /var/log/ceph doesn't exist

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: implement 'adopt' for legacy style daemons
Sage Weil [Wed, 2 Oct 2019 21:19:14 +0000 (16:19 -0500)]
ceph-daemon: implement 'adopt' for legacy style daemons

Caveats:

 - this doesn't clean out /etc/ceph/*, since we don't know which is the
   last daemon to go, and/or whether the user wants to keep it around
   for using the ceph CLI on this host
 - leaves behind /var/lib/ceph/bootstrap-* keys, even after all daemons
   have been converted.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: fix fsid detection for legacy osds
Sage Weil [Wed, 2 Oct 2019 21:18:40 +0000 (16:18 -0500)]
ceph-daemon: fix fsid detection for legacy osds

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: make rm-cluster clean up system-ceph*.slice too
Sage Weil [Wed, 2 Oct 2019 20:54:24 +0000 (15:54 -0500)]
ceph-daemon: make rm-cluster clean up system-ceph*.slice too

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: configure ssh orchestrator
Sage Weil [Wed, 2 Oct 2019 02:13:05 +0000 (21:13 -0500)]
ceph-daemon: configure ssh orchestrator

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: be more restrictive with file permissions
Sage Weil [Wed, 2 Oct 2019 02:12:23 +0000 (21:12 -0500)]
ceph-daemon: be more restrictive with file permissions

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: create osd with ceph-daemon
Sage Weil [Tue, 1 Oct 2019 19:16:38 +0000 (14:16 -0500)]
mgr/ssh: create osd with ceph-daemon

Three basic steps:

1- ceph-volume lvm prepare
2- ceph-volume lvm list
3- for each osd, ceph-daemon deploy (which calls c-v activate inside the
   new container)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: pass daemon id separately to _create_daemon
Sage Weil [Tue, 1 Oct 2019 19:15:47 +0000 (14:15 -0500)]
mgr/ssh: pass daemon id separately to _create_daemon

Don't assume it is the hostname (with osds, it's not!).

Also, just pass arbitrary args down, instead of special-casing the
network option.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: add --config-and-keyring to ceph-volume command
Sage Weil [Tue, 1 Oct 2019 19:14:31 +0000 (14:14 -0500)]
ceph-daemon: add --config-and-keyring to ceph-volume command

...to provide a ceph.conf and the bootstrap-osd key.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: create log path for shell (if needed)
Sage Weil [Tue, 1 Oct 2019 19:14:05 +0000 (14:14 -0500)]
ceph-daemon: create log path for shell (if needed)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: use _run_ceph_daemon for _create_daemon
Sage Weil [Tue, 1 Oct 2019 16:37:52 +0000 (11:37 -0500)]
mgr/ssh: use _run_ceph_daemon for _create_daemon

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: factor _run_ceph_daemon out of _get_device_inventory
Sage Weil [Tue, 1 Oct 2019 16:35:38 +0000 (11:35 -0500)]
mgr/ssh: factor _run_ceph_daemon out of _get_device_inventory

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon/ConfigMonitor: allow entity type only for 'config get'
Sage Weil [Tue, 1 Oct 2019 16:34:22 +0000 (11:34 -0500)]
mon/ConfigMonitor: allow entity type only for 'config get'

e.g., 'ceph config get osd debug_osd' to return the config value that
would apply to a generic OSD (either from the osd or global section of
the config).

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: add ceph-volume subcommand
Sage Weil [Tue, 1 Oct 2019 16:33:32 +0000 (11:33 -0500)]
ceph-daemon: add ceph-volume subcommand

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: remove unused CephContainer dname property
Sage Weil [Tue, 1 Oct 2019 16:10:29 +0000 (11:10 -0500)]
ceph-daemon: remove unused CephContainer dname property

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: drop useless uid/gid checks
Sage Weil [Tue, 1 Oct 2019 16:09:07 +0000 (11:09 -0500)]
ceph-daemon: drop useless uid/gid checks

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: deploy new mgrs with ceph-daemon
Sage Weil [Tue, 1 Oct 2019 15:52:37 +0000 (10:52 -0500)]
mgr/ssh: deploy new mgrs with ceph-daemon

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: factor _create_daemon out of create_mon
Sage Weil [Tue, 1 Oct 2019 15:52:19 +0000 (10:52 -0500)]
mgr/ssh: factor _create_daemon out of create_mon

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon/MonCap: allow mgr to create new auth keys
Sage Weil [Tue, 1 Oct 2019 15:51:40 +0000 (10:51 -0500)]
mon/MonCap: allow mgr to create new auth keys

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: run c-v with podman when getting inventory
Sage Weil [Tue, 1 Oct 2019 15:30:42 +0000 (10:30 -0500)]
mgr/ssh: run c-v with podman when getting inventory

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: simplify ssh connection management
Sage Weil [Tue, 1 Oct 2019 15:29:53 +0000 (10:29 -0500)]
mgr/ssh: simplify ssh connection management

- Use a single instance of the config and identity files for the whole
module.  There's no need to create these for *every* connection--it just
pollutes /tmp.
- Drop the SSHConnection wrapper, since the temp files are tied to the
daemon lifecycle now.
- Prefix the tmp files so I can tell wtf is going on.
- Always connect to root@host, to avoid remoto's localhost detection
feature.  This ensures we have a consistent connection model and user.
(The daemon might be running as user ceph and try to connect to localhost,
but end up running the command as the wrong user and/or inside the
ceph-mgr container.)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: use ceph-daemon for deploying mon
Sage Weil [Tue, 1 Oct 2019 15:11:25 +0000 (10:11 -0500)]
mgr/ssh: use ceph-daemon for deploying mon

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: allow --mon-network for deploying new mon (vs specifying IP)
Sage Weil [Tue, 1 Oct 2019 15:10:39 +0000 (10:10 -0500)]
ceph-daemon: allow --mon-network for deploying new mon (vs specifying IP)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: --config-and-keyring (not key)
Sage Weil [Tue, 1 Oct 2019 15:10:16 +0000 (10:10 -0500)]
ceph-daemon: --config-and-keyring (not key)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocommon/options: add 'image' config option
Sage Weil [Tue, 1 Oct 2019 14:11:44 +0000 (09:11 -0500)]
common/options: add 'image' config option

Defaults to 'ceph/daemon-base'.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotest_ceph_daemon: specify image name
Sage Weil [Mon, 30 Sep 2019 22:01:51 +0000 (17:01 -0500)]
test_ceph_daemon: specify image name

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agovstart.sh: add --ssh to enable+configure ssh orchestrator
Sage Weil [Mon, 30 Sep 2019 22:01:38 +0000 (17:01 -0500)]
vstart.sh: add --ssh to enable+configure ssh orchestrator

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: use ssh identity from config-key, if present
Sage Weil [Mon, 30 Sep 2019 18:54:29 +0000 (13:54 -0500)]
mgr/ssh: use ssh identity from config-key, if present

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: hardcode default ssh_config
Sage Weil [Mon, 30 Sep 2019 18:53:11 +0000 (13:53 -0500)]
mgr/ssh: hardcode default ssh_config

Use this unless either ssh_config or ssh_config_file are present.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: store ssh identity in mon config-key store
Sage Weil [Mon, 30 Sep 2019 18:51:12 +0000 (13:51 -0500)]
ceph-daemon: store ssh identity in mon config-key store

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: --privileged arg for 'exec'
Sage Weil [Mon, 30 Sep 2019 18:04:24 +0000 (13:04 -0500)]
ceph-daemon: --privileged arg for 'exec'

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: make deploy work for osd (do a c-v prepare)
Sage Weil [Mon, 30 Sep 2019 17:56:29 +0000 (12:56 -0500)]
ceph-daemon: make deploy work for osd (do a c-v prepare)

This is sufficient to deploy an OSD that is based on ceph-volume lvm.
YMMV if it's not an lvm-based OSD.

Run the OSD container privileged so we can open the raw block device.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: make shell privileged
Sage Weil [Mon, 30 Sep 2019 17:55:01 +0000 (12:55 -0500)]
ceph-daemon: make shell privileged

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: move get_container_mounts to a helper
Sage Weil [Mon, 30 Sep 2019 17:54:50 +0000 (12:54 -0500)]
ceph-daemon: move get_container_mounts to a helper

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: pass full path for entrypoint
Sage Weil [Mon, 30 Sep 2019 17:54:11 +0000 (12:54 -0500)]
ceph-daemon: pass full path for entrypoint

Sometimes we run things in /usr/sbin...

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: make id portion of 'shell' optional
Sage Weil [Mon, 30 Sep 2019 17:53:24 +0000 (12:53 -0500)]
ceph-daemon: make id portion of 'shell' optional

This lets you start up a 'generic' container of a particular class,
without a data mount, but with the appropriate other mounts and privilege
levels.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-volume: accept --no-tmpfs argument for bluestore
Sage Weil [Mon, 30 Sep 2019 17:23:52 +0000 (12:23 -0500)]
ceph-volume: accept --no-tmpfs argument for bluestore

When activating a bluestore inside a container, we want to (be able to)
make the osd dir metadata persistent inside the container.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: 'unit' command
Sage Weil [Sun, 29 Sep 2019 20:32:40 +0000 (15:32 -0500)]
ceph-daemon: 'unit' command

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: fix run command to use call(), not check_output()
Sage Weil [Sun, 29 Sep 2019 20:27:49 +0000 (15:27 -0500)]
ceph-daemon: fix run command to use call(), not check_output()

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agosrc/ceph-daemon: whitespace
Sage Weil [Sun, 29 Sep 2019 20:18:23 +0000 (15:18 -0500)]
src/ceph-daemon: whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: add 'enter', 'exec' commands
Sage Weil [Sun, 29 Sep 2019 20:18:16 +0000 (15:18 -0500)]
ceph-daemon: add 'enter', 'exec' commands

'enter' is really just 'exec' + bash

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: bind config to default location
Sage Weil [Fri, 27 Sep 2019 22:00:13 +0000 (17:00 -0500)]
ceph-daemon: bind config to default location

This is one less thing on the command line, and an easier time when inside
the container.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotest_ceph_daemon.sh: test deploy mds too
Sage Weil [Fri, 27 Sep 2019 19:56:43 +0000 (14:56 -0500)]
test_ceph_daemon.sh: test deploy mds too

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: generate ssh keys
Sage Weil [Fri, 27 Sep 2019 19:56:36 +0000 (14:56 -0500)]
ceph-daemon: generate ssh keys

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: --config, not --conf
Sage Weil [Fri, 27 Sep 2019 19:55:24 +0000 (14:55 -0500)]
ceph-daemon: --config, not --conf

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: long lines
Sage Weil [Fri, 27 Sep 2019 19:30:52 +0000 (14:30 -0500)]
ceph-daemon: long lines

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: add --config to bootstrap
Sage Weil [Fri, 27 Sep 2019 14:50:40 +0000 (09:50 -0500)]
ceph-daemon: add --config to bootstrap

Settle on --config|-c too, not --conf.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: add 'shell' command
Sage Weil [Fri, 27 Sep 2019 16:59:03 +0000 (11:59 -0500)]
ceph-daemon: add 'shell' command

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: do not import subprocess symbols directly
Sage Weil [Fri, 27 Sep 2019 16:58:48 +0000 (11:58 -0500)]
ceph-daemon: do not import subprocess symbols directly

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: add mons with 'deploy mon.x ...'
Sage Weil [Fri, 27 Sep 2019 16:41:32 +0000 (11:41 -0500)]
ceph-daemon: add mons with 'deploy mon.x ...'

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: add 'ls'
Sage Weil [Fri, 27 Sep 2019 15:58:24 +0000 (10:58 -0500)]
ceph-daemon: add 'ls'

Eventually we should teach this to understand rook mons+osds and
ceph-ansible containerized daemons.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: simplify uid/gid a bit
Sage Weil [Fri, 27 Sep 2019 14:48:32 +0000 (09:48 -0500)]
ceph-daemon: simplify uid/gid a bit

Assume user ceph and group ceph exist inside the container.  We still need
the uid/gid for creating daemon directories, though, and for the bootstrap,
where we are creating files on the host and passing them through.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: fix libudev
Sage Weil [Fri, 27 Sep 2019 14:26:12 +0000 (09:26 -0500)]
ceph-daemon: fix libudev

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: autodetect uid/gid from container image
Sage Weil [Fri, 27 Sep 2019 14:23:38 +0000 (09:23 -0500)]
ceph-daemon: autodetect uid/gid from container image

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: default to empty log files, log to stderr (systemd journal)
Sage Weil [Fri, 27 Sep 2019 13:53:39 +0000 (08:53 -0500)]
ceph-daemon: default to empty log files, log to stderr (systemd journal)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: rm-{daemon,cluster}
Sage Weil [Fri, 27 Sep 2019 13:51:56 +0000 (08:51 -0500)]
ceph-daemon: rm-{daemon,cluster}

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: fix bootstrap config
Sage Weil [Fri, 27 Sep 2019 16:40:56 +0000 (11:40 -0500)]
ceph-daemon: fix bootstrap config

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: fix args.fsid usage
Sage Weil [Fri, 27 Sep 2019 13:51:08 +0000 (08:51 -0500)]
ceph-daemon: fix args.fsid usage

Pass it explicitly, since it only sometimes comes from args.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: be careful overwriting live files
Sage Weil [Thu, 26 Sep 2019 22:35:17 +0000 (17:35 -0500)]
ceph-daemon: be careful overwriting live files

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: slurp some options over from the standard systemd unit
Sage Weil [Thu, 26 Sep 2019 22:21:26 +0000 (17:21 -0500)]
ceph-daemon: slurp some options over from the standard systemd unit

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: add ceph.target and ceph-$fsid.target units
Sage Weil [Thu, 26 Sep 2019 22:19:25 +0000 (17:19 -0500)]
ceph-daemon: add ceph.target and ceph-$fsid.target units

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotest_ceph_daemon.sh: stupid test script
Sage Weil [Thu, 26 Sep 2019 21:46:49 +0000 (16:46 -0500)]
test_ceph_daemon.sh: stupid test script

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: bootstrap and deploy (mgr) work
Sage Weil [Thu, 26 Sep 2019 21:44:51 +0000 (16:44 -0500)]
ceph-daemon: bootstrap and deploy (mgr) work

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: initial checkin
Sage Weil [Thu, 26 Sep 2019 19:13:47 +0000 (14:13 -0500)]
ceph-daemon: initial checkin

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-mon: fix debug print of public_addr
Sage Weil [Thu, 26 Sep 2019 19:13:38 +0000 (14:13 -0500)]
ceph-mon: fix debug print of public_addr

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #30542 into master
Patrick Donnelly [Wed, 2 Oct 2019 11:09:22 +0000 (04:09 -0700)]
Merge PR #30542 into master

* refs/pull/30542/head:
doc: cleanup CephFS Landing Page

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agomgr/dashboard: Show smartctl summary in OSD tab (#30378)
Lenz Grimmer [Wed, 2 Oct 2019 09:22:44 +0000 (09:22 +0000)]
mgr/dashboard: Show smartctl summary in OSD tab (#30378)

mgr/dashboard: Show smartctl summary in OSD tab

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #29922 from smithfarm/wip-41524
Nathan Cutler [Wed, 2 Oct 2019 08:42:04 +0000 (10:42 +0200)]
Merge pull request #29922 from smithfarm/wip-41524

cmake: set empty RPATH for some test executables

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
5 years agoMerge PR #30416 into master
Patrick Donnelly [Wed, 2 Oct 2019 04:23:57 +0000 (21:23 -0700)]
Merge PR #30416 into master

* refs/pull/30416/head:
client: add procession of SEEK_HOLE and SEEK_DATA in lseek.

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #30653 from tchaikov/wip-os/drop-kinetic
Kefu Chai [Wed, 2 Oct 2019 02:16:58 +0000 (10:16 +0800)]
Merge pull request #30653 from tchaikov/wip-os/drop-kinetic

os: remove KineticStore

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #28569 from alimaredia/wip-rgw-ioctx-operate-replace
Ali Maredia [Tue, 1 Oct 2019 20:48:11 +0000 (16:48 -0400)]
Merge pull request #28569 from alimaredia/wip-rgw-ioctx-operate-replace

rgw: replace direct calls to ioctx.operate()

5 years agoMerge pull request #30655 from tchaikov/wip-cmake/crimson/pass-args
Kefu Chai [Tue, 1 Oct 2019 14:28:58 +0000 (22:28 +0800)]
Merge pull request #30655 from tchaikov/wip-cmake/crimson/pass-args

cmake: pass arguments to crimson tests

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoclient: add procession of SEEK_HOLE and SEEK_DATA in lseek.
shenhang [Tue, 17 Sep 2019 02:55:21 +0000 (10:55 +0800)]
client: add procession of SEEK_HOLE and SEEK_DATA in lseek.

Fixes: https://tracker.ceph.com/issues/42107
Signed-off-by: Shen Hang <harryshen18@gmail.com>
5 years agoMerge pull request #30613 from joke-lee/rgw-ceph-dencoder-add-RGWPeriodLatestEpochInfo
Casey Bodley [Tue, 1 Oct 2019 13:59:30 +0000 (09:59 -0400)]
Merge pull request #30613 from joke-lee/rgw-ceph-dencoder-add-RGWPeriodLatestEpochInfo

ceph-dencoder: add RGWPeriodLatestEpochInfo support.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agocmake: pass arguments to crimson tests
Kefu Chai [Tue, 1 Oct 2019 09:29:16 +0000 (17:29 +0800)]
cmake: pass arguments to crimson tests

otherwise they will take all CPU cores and all memory

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agobuild/ops: set empty RPATH for some test executables
Nathan Cutler [Tue, 27 Aug 2019 08:24:11 +0000 (10:24 +0200)]
build/ops: set empty RPATH for some test executables

Fixes: https://tracker.ceph.com/issues/41524
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #30587 from sebastian-philipp/python-common-readme
Sebastian Wagner [Tue, 1 Oct 2019 10:05:00 +0000 (12:05 +0200)]
Merge pull request #30587 from sebastian-philipp/python-common-readme

python-common: Add small Readme

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agoMerge PR #30341 into master
Patrick Donnelly [Tue, 1 Oct 2019 08:21:16 +0000 (01:21 -0700)]
Merge PR #30341 into master

* refs/pull/30341/head:
cephfs-shell: better complain info, when deleting non-empty directory

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>