ceph/src
Matthew Oliver 9b7dcb894c cephadm: give ceph-iscsi permissions to configfs
The cephadm container mounts the configfs and then bind mounts (-v) it
into the container. Currently the container is not a priviliaged
container which leads to 2 problems:

 1. The container can't insert the iscsi_target_mod kernel module; and
 2. The container can't write to the configfs as that's only writeable
    by root.

We _can_ get around 1, by preloading the kernel module. I.E add it the
systemd unit file. But that doesn't help with 2.

I've tried mounting the configfs with uid and gid options, but configfs
doesn't use them.

If we make the container a priviliged container then magically both 1
and 2 are solved. We don't need to preload the module so that's one less
workaround. But more importantly, configfs can be written to so we can
create ISCSI targets etc.

So that's what this patch does, it makes iscsi containers privileged
containers by setting the CephContainer --priviliged while creating it.

Fixes: https://tracker.ceph.com/issues/45252
Signed-off-by: Matthew Oliver <moliver@suse.com>
2020-05-05 16:17:06 +10:00
..
arch
auth
bash_completion bash_completion: Do not auto complete obsolete and hidden cmds 2020-04-24 15:12:53 +05:30
blkin@f24ceec055
c-ares@fd6124c74d
ceph-volume Merge PR #34272 into master 2020-04-12 17:33:57 -05:00
cephadm cephadm: give ceph-iscsi permissions to configfs 2020-05-05 16:17:06 +10:00
civetweb@bb99e93da0
client Merge pull request #34531 from lxbsz/libfuse3 2020-04-21 22:08:15 -07:00
cls Merge pull request #34697 from dillaman/wip-44596 2020-04-25 10:29:01 +03:00
common Merge pull request #34846 from tchaikov/wip-45147 2020-05-01 13:08:29 +08:00
compressor Merge pull request #33790 from bstillwell/add_conf_option_zstd_compression_level 2020-04-27 11:28:05 +08:00
crimson Merge pull request #34603 from liu-chunmei/crimson_msgr_local_conf 2020-04-30 17:39:26 +08:00
crush
crypto
dmclock@11063a31ea dmclock: pick up change to s/uint/unsigned/ 2020-04-09 12:31:22 +08:00
doc
erasure-code common: Add dlfcn_compat.h for win32 2020-04-14 11:11:32 +00:00
fmt@7ad3015f5b
global
googletest@10b1902d89
include mgr: do not load disabled modules 2020-04-30 19:11:22 +08:00
isa-l@806b55ee57
java
journal
json_spirit
key_value_store
kv Merge pull request #34786 from aclamk/wip-common-pretty-binary 2020-05-01 13:06:59 +08:00
librados common: move to_string and to_integer overloads into root namespace 2020-04-06 04:11:12 -04:00
libradosstriper
librbd Merge pull request #34699 from yison/rwl-image-writeback-cache-seq5 2020-04-28 14:12:42 -04:00
log
lua@1fce39c639
mds Merge pull request #33479 from simon-rock/simon_split_stray 2020-04-22 14:55:57 +08:00
messages
mgr mgr: do not load disabled modules 2020-04-30 19:11:22 +08:00
mon Merge pull request #33065 from ifed01/wip-ifed-spurious-readerr-alert 2020-04-23 11:32:25 +03:00
mount
msg Merge pull request #33816 from rzarzynski/wip-msg-no-extra-alloc-in-secure 2020-04-14 17:52:46 +08:00
objclass objclass: add method to get pool stripe width 2020-04-17 11:49:59 +01:00
objsync
ocf
os Merge pull request #34786 from aclamk/wip-common-pretty-binary 2020-05-01 13:06:59 +08:00
osd Merge pull request #34363 from majianpeng/osd-thread-per-shard-ssd 2020-05-01 12:58:51 +08:00
osdc
perfglue perfglue: Build ceph-osd without using namespace declarations in headers 2020-04-06 11:15:06 -04:00
powerdns
pybind Merge pull request #34738 from sebastian-philipp/insights-rm-tox 2020-05-01 13:03:18 +08:00
python-common python-common: Fix wrong type annotation 2020-04-29 13:22:22 +02:00
rapidjson@f54b0e47a0
rbd_fuse ceph-fuse: link to libfuse3 if fuse3 is installed 2020-04-18 05:57:29 -04:00
rbd_replay
rgw Merge pull request #34641 from yuvalif/fix_zer_size_in_notifications 2020-04-30 10:21:34 -04:00
rocksdb@4c736f1778
script Merge pull request #34328 from liewegas/cpatch 2020-04-22 18:34:36 -07:00
seastar@663f9bb6cb
spawn@9ee6d12f35 spawn: update submodule 2020-04-08 14:40:13 -04:00
spdk@06d09c1108
telemetry
test Merge pull request #34786 from aclamk/wip-common-pretty-binary 2020-05-01 13:06:59 +08:00
tools Merge pull request #34090 from trociny/wip-ceph-erasure-code-tool 2020-04-27 11:37:00 +08:00
tracing
xxHash@1f40c6511f
zstd@83b51e9f88
.gitignore
btrfs_ioc_test.c
ceph_common.sh
ceph_fuse.cc ceph-fuse: link to libfuse3 if fuse3 is installed 2020-04-18 05:57:29 -04:00
ceph_mds.cc
ceph_mgr.cc
ceph_mon.cc
ceph_osd.cc osd: Build ceph-osd without using namespace declarations in headers 2020-04-06 11:15:06 -04:00
ceph_release src/ceph_release: pacific, 16, dev 2020-04-08 08:09:41 -05:00
ceph_syn.cc
ceph_ver.c
ceph_ver.h.in.cmake
ceph-clsinfo
ceph-coverage.in
ceph-crash.in
ceph-create-keys
ceph-debugpack.in
ceph-osd-prestart.sh
ceph-post-file.in
ceph-rbdnamer
ceph-run
ceph.conf.twoosds
ceph.in bash_completion: Do not auto complete obsolete and hidden cmds 2020-04-24 15:12:53 +05:30
ckill.sh src/cstart.sh: initial version 2020-04-17 18:05:44 -04:00
cls_acl.cc
cls_crypto.cc
CMakeLists.txt cmake: link against FUSE::FUSE 2020-04-17 14:10:55 +08:00
cmonctl
cstart.sh cstart.sh: work with docker or podman 2020-04-17 18:05:44 -04:00
etc-rbdmap
init-ceph.in
init-radosgw
init-rbdmap
krbd.cc
libcephfs.cc
librados-config.cc
loadclass.sh
logrotate.conf
mount.fuse.ceph
mrgw.sh
mrun
mstart.sh
mstop.sh
multi-dump.sh
mypy.ini
perf_histogram.h
ps-ceph.pl
push_to_qemu.pl
rbd-replay-many
rbdmap
README
sample.ceph.conf
stop.sh vstart: Use "NFS" instead "GANESHA" for starting nfs ganesha clusters 2020-04-08 17:21:17 +05:30
TODO
vnewosd.sh
vstart.sh mgr/volumes: Make cluster id option mandatory in nfs create export 2020-04-08 17:21:17 +05:30
yasm-wrapper

Sage Weil <sage@newdream.net>
Ceph - scalable distributed storage system