]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: add gwcli manual install instructions
authorMike Christie <mchristi@redhat.com>
Tue, 16 Jan 2018 18:04:28 +0000 (12:04 -0600)
committerJason Dillaman <dillaman@redhat.com>
Wed, 31 Jan 2018 18:04:53 +0000 (13:04 -0500)
Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit f45aafed1c7a5393e712f9fbfd7479fc444ad3d8)

doc/rbd/iscsi-target-cli-manual-install.rst [new file with mode: 0644]
doc/rbd/iscsi-target-cli.rst

diff --git a/doc/rbd/iscsi-target-cli-manual-install.rst b/doc/rbd/iscsi-target-cli-manual-install.rst
new file mode 100644 (file)
index 0000000..d5e0bc0
--- /dev/null
@@ -0,0 +1,149 @@
+==================================
+Manual ceph-iscsi-cli Installation
+==================================
+
+**Requirements**
+
+The following packages will be used by ceph-iscsi-cli and target tools.
+They must be installed from your Linux distribution's software repository
+on each machine that will be a iSCSI gateway:
+
+-  libnl3
+-  libkmod
+-  librbd1
+-  pyparsing
+-  python kmod
+-  python pyudev
+-  python gobject
+-  python kmod
+-  python pyudev
+-  python gobject
+-  python urwid
+-  python pyparsing
+-  python rados
+-  python rbd
+-  python netaddr
+-  python netifaces
+-  python crypto
+-  python requests
+-  python flask
+-  pyOpenSSL
+
+**Packages**
+
+-  Linux Kernel
+
+   If not using a distro kernel that contains the required Ceph iSCSI patches,
+   then Linux kernel v4.17 or newer or the ceph-client ceph-iscsi-stable
+   branch must be used. To get the ceph-iscsi-stable branch run:
+
+   ::
+
+       > git clone https://github.com/ceph/ceph-client.git
+       > git checkout ceph-iscsi-stable
+
+   Check your distro's docs for specific instructions on how to build a
+   kernel. The only Ceph iSCSI specific requirements are the following
+   build options must be enabled:
+
+   ::
+
+       CONFIG_TARGET_CORE=m
+       CONFIG_TCM_USER2=m
+       CONFIG_ISCSI_TARGET=m
+
+-  tcmu-runner
+
+   Installation:
+
+   ::
+
+       > git clone https://github.com/open-iscsi/tcmu-runner
+       > cd tcmu-runner
+
+   Ceph iSCSI requires systemd so the following build command must be used:
+
+   ::
+
+       > cmake -Dwith-glfs=false -Dwith-qcow=false -DSUPPORT_SYSTEMD=ON -DCMAKE_INSTALL_PREFIX=/usr
+       > make install
+
+   Enable and start the daemon:
+
+   ::
+
+       > systemctl daemon-reload
+       > systemctl enable tcmu-runner
+       > systemctl start tcmu-runner
+
+-  rtslib-fb
+
+   Installation:
+
+   ::
+
+       > git clone https://github.com/open-iscsi/rtslib-fb.git
+       > cd rtslib-fb
+       > python setup.py install
+
+-  configshell-fb
+
+   Installation:
+
+   ::
+
+       > git clone https://github.com/open-iscsi/configshell-fb.git
+       > cd configshell-fb
+       > python setup.py install
+
+-  targetcli-fb
+
+   Installation:
+
+   ::
+
+       > git clone https://github.com/open-iscsi/targetcli-fb.git
+       > cd targetcli-fb
+       > python setup.py install
+       > mkdir /etc/target
+       > mkdir /var/target
+
+   .. warning:: The ceph-iscsi tools assume they are managing all targets
+      on the system. If targets have been setup and are being managed by
+      targetcli the target service must be disabled.
+
+-  ceph-iscsi-config
+
+   Installation:
+
+   ::
+
+       > git clone https://github.com/ceph/ceph-iscsi-config.git
+       > cd ceph-iscsi-config
+       > python setup.py install
+       > cp usr/lib/systemd/system/rbd-target-gw.service /lib/systemd/system
+
+   Enable and start the daemon:
+
+   ::
+
+       > systemctl daemon-reload
+       > systemctl enable rbd-target-gw
+       > systemctl start rbd-target-gw
+
+-  ceph-iscsi-cli
+
+   Installation:
+
+   ::
+
+       > git clone https://github.com/ceph/ceph-iscsi-cli.git
+       > cd ceph-iscsi-cli
+       > python setup.py install
+       > cp usr/lib/systemd/system/rbd-target-api.service /lib/systemd/system
+
+
+Installation is complete. Proceed to the setup section in the
+`main ceph-iscsi-cli page`_.
+
+.. _`main ceph-iscsi-cli page`: ../iscsi-target-cli
index d3b98c8278961027bba5eb8b285439c2314c4301..eac34af5cbd31989fc007ec4bf581a8ba3546842 100644 (file)
@@ -47,6 +47,18 @@ to the *Installing* section:
 
 **Installing:**
 
+If you are using the upstream ceph-iscsi-cli package follow the
+`manual install instructions`_.
+
+.. _`manual install instructions`: ../iscsi-target-cli-manual-install
+
+.. toctree::
+   :hidden:
+
+   iscsi-target-cli-manual-install
+
+For rpm based instructions execute the following commands:
+
 #. As ``root``, on all iSCSI gateway nodes, install the
    ``ceph-iscsi-cli`` package: