Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1502021 - rbd-target-gw does not support cluster name different than 'ceph'
rbd-target-gw does not support cluster name different than 'ceph'
Status: CLOSED ERRATA
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: iSCSI (Show other bugs)
3.0
Unspecified Unspecified
medium Severity unspecified
: rc
: 3.1
Assigned To: Jason Dillaman
mkasturi
Aron Gunn
:
: 1503556 (view as bug list)
Depends On: 1459861
Blocks: 1494421 1584264
  Show dependency treegraph
 
Reported: 2017-10-13 14:22 EDT by leseb
Modified: 2018-09-26 14:18 EDT (History)
12 users (show)

See Also:
Fixed In Version: ceph-iscsi-config-2.6-3.el7cp
Doc Type: Bug Fix
Doc Text:
.The iSCSI gateway supports custom cluster names Previously, the Ceph iSCSI gateway only worked with the default storage cluster name (`ceph`). In this release, the `rbd-target-gw` now supports arbitrary Ceph configuration file locations, which allows the use of storage clusters not named `ceph`. The Ceph iSCSI gateway can be deployed using Ceph Ansible or using the command-line interface with a custom cluster name.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-09-26 14:16:44 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
ansible-vvv.log (2.24 MB, text/plain)
2018-07-03 10:53 EDT, mkasturi
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Github ceph/ceph-iscsi-config/pull/30 None None None 2017-10-13 14:22 EDT
Red Hat Product Errata RHBA-2018:2819 None None None 2018-09-26 14:18 EDT

  None (edit)
Description leseb 2017-10-13 14:22:37 EDT
Description of problem:

rbd-target-gw has hardcoded ceph command.

Version-Release number of selected component (if applicable):


How reproducible:

Deploy a cluster with a name different than 'ceph', try to start rbd-target-gw.

Steps to Reproduce:
1.
2.
3.

Actual results:

Daemon fails with:

Oct 13 16:20:29 ceph-iscsi-gw0 systemd[1]: Started Setup system to export rbd images through LIO.
Oct 13 16:20:29 ceph-iscsi-gw0 systemd[1]: Starting Setup system to export rbd images through LIO...
Oct 13 16:20:29 ceph-iscsi-gw0 rbd-target-gw[5975]: Processing osd blacklist entries for this node
Oct 13 16:20:30 ceph-iscsi-gw0 rbd-target-gw[5975]: Failed to run 'ceph osd blacklist ls'. Please resolve manually...
Expected results:

Runs normally:

-- Logs begin at Fri 2017-10-13 15:36:46 UTC. --
Oct 13 17:19:06 ceph-iscsi-gw0 rbd-target-gw[20764]: No OSD blacklist entries found
Oct 13 17:19:06 ceph-iscsi-gw0 rbd-target-gw[20764]: Reading the configuration object to update local LIO configuration
Oct 13 17:19:06 ceph-iscsi-gw0 rbd-target-gw[20764]: Processing Gateway configuration
Oct 13 17:19:06 ceph-iscsi-gw0 rbd-target-gw[20764]: (Gateway.create_tpg) created TPG '1' for target iqn 'iqn.2003-01.com.redhat.iscsi-gw:ceph-igw'
Oct 13 17:19:06 ceph-iscsi-gw0 rbd-target-gw[20764]: (Gateway.create_target) created an iscsi target with iqn of 'iqn.2003-01.com.redhat.iscsi-gw:ceph-igw'
Oct 13 17:19:06 ceph-iscsi-gw0 rbd-target-gw[20764]: Processing LUN configuration
Oct 13 17:19:06 ceph-iscsi-gw0 rbd-target-gw[20764]: No LUNs to export
Oct 13 17:19:06 ceph-iscsi-gw0 rbd-target-gw[20764]: Processing client configuration
Oct 13 17:19:06 ceph-iscsi-gw0 rbd-target-gw[20764]: Adding the IP to the enabled tpg, allowing iSCSI logins
Oct 13 17:19:06 ceph-iscsi-gw0 rbd-target-gw[20764]: iSCSI configuration load complete


Additional info:
Comment 4 leseb 2017-10-18 04:38:32 EDT
We fall into the category "Services don't start (e.g. can't launch monitor or RGW, etc.) when following prescribed methodology in published product documentation", but the workaround can be "don't use a ceph cluster name different than the default 'ceph'.

So I don't know.
Federico, can you help us with this?
Thanks.
Comment 5 Jason Dillaman 2017-10-18 09:05:04 EDT
tcmu-runner doesn't support a cluster name other than "ceph", so I think this just becomes a release note / doc update saying that is iSCSI is being utilized, you must name your cluster "ceph" (or manually copy the generated "/etc/ceph/<cluster name>.conf" to "/etc/ceph/ceph.conf").
Comment 6 leseb 2017-10-18 09:20:19 EDT
*** Bug 1503556 has been marked as a duplicate of this bug. ***
Comment 7 Federico Lucifredi 2017-11-02 19:58:17 EDT
I thought Sage was obsoleting cluster names with Luminous anyway?
Comment 8 leseb 2017-11-03 04:15:42 EDT
AFAIR the plan is to keep cluster name around for containers and clusters on demand purposes.
Comment 15 mkasturi 2018-07-03 10:53 EDT
Created attachment 1456259 [details]
ansible-vvv.log

Attaching the ansible log
Comment 30 errata-xmlrpc 2018-09-26 14:16:44 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2819

Note You need to log in before you can comment on or make changes to this bug.