Preliminary remark: Perhaps some people still know the ceph-iscsi project under the name ceph-iscsi-cli.
Installation of necessary Debian packages
apt install ca-certificates
apt install librbd1 libkmod2 python-pyparsing python-kmodpy python-pyudev python-gobject python-urwid python-rados python-rbd python-netifaces python-crypto python-requests python-flask python-openssl python-rpm ceph-common
Ceph setup with pool and user
iscsi-ceph takes over the administration between iscsi devices and the conversion to rbd images. For this we need a separate ceph pool and a separate user. Contrary to the standard documentation, I do not use client.admin but create a restricted user client.iscsi.
Pool
The standard pool has the name rbd, here we give it the name iscsi.
ceph osd pool create <pool-name> 2048 2048 replicated <rule-name>
User
The user iscsi is created with the necessary authorizations for rbd on the pool iscsi
ceph auth add client.iscsi mon 'profile rbd' osd 'profile rbd pool=\<pool-name>'
Installation of necessary Debian packages for ceph-iscsi
apt install tcmu-runner targetcli-fb python-rtslib-fb
Manuelle Installation ceph-iscsi
apt install git
git clone https://github.com/ceph/ceph-iscsi.git
apt install python-setuptools python-configshell-fb
apt install librbd1 libkmod2 python-pyparsing python-kmodpy python-pyudev python-gobject python-urwid python-rados python-rbd python-netifaces python-crypto python-requests python-flask python-openssl python-rpm ceph-common
cd ceph-iscsi
python setup.py install --install-scripts=/usr/bin
cp usr/lib/systemd/system/rbd-target-gw.service /lib/systemd/system
cp usr/lib/systemd/system/rbd-target-api.service /lib/systemd/system
systemctl daemon-reload
systemctl enable rbd-target-gw
systemctl start rbd-target-gw
systemctl enable rbd-target-api
systemctl start rbd-target-api