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 1602785 - Ceph ceph-ansible does not install the gwcli command during iscsi-gw install
Ceph ceph-ansible does not install the gwcli command during iscsi-gw install
Status: CLOSED ERRATA
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Ceph-Ansible (Show other bugs)
3.1
All Linux
high Severity high
: rc
: 3.1
Assigned To: Guillaume Abrioux
Manohar Murthy
John Brier
:
Depends On:
Blocks: 1584264
  Show dependency treegraph
 
Reported: 2018-07-18 09:35 EDT by jquinn
Modified: 2018-09-26 14:24 EDT (History)
15 users (show)

See Also:
Fixed In Version: RHEL: ceph-ansible-3.1.0-0.1.rc17.el7cp Ubuntu: ceph-ansible_3.1.0~rc17-2redhat1
Doc Type: Bug Fix
Doc Text:
.Ceph ceph-ansible now installs the gwcli command during iscsi-gw install Previously, when using Ansible playbooks from `ceph-ansible` to configure an iSCSI target, the `gwcli` command needed to verify the installation was not available. This was because the `ceph-iscsi-cli` package, which provides the `gwcli` command, was not included as a part of the install for the Ansible playbooks. With this update to {product}, the Ansible playbooks now install the `ceph-iscsi-cli` package as a part of iSCSI target configuration.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-09-26 14:23:43 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)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github ceph/ceph-ansible/pull/2966 None None None 2018-08-02 06:03 EDT
Red Hat Product Errata RHBA-2018:2819 None None None 2018-09-26 14:24 EDT

  None (edit)
Description jquinn 2018-07-18 09:35:24 EDT
Description of problem:

Following our iscsi target installation steps that are documented here [1], after running the playbook the user should then verify that gwcli has been installed.  The gwcli command is not available following the install.  

I have tested with the following ceph-ansible versions and get the same results. 

Old package: ceph-ansible-3.0.14-1.el7cp.noarch
New package: ceph-ansible-3.0.39-1.el7cp.noarch


To install the gwcli I had to use the manual steps below.  

1. Install ceph-iscsi-cli  

[root@vm250-194 ~]# yum -y install ceph-iscsi-cli

2. Try to run gwcli and it fails. 

[root@vm250-194 ~]# gwcli
Unable to access the configuration object : REST API failure, code : 500
GatewayError: 

3. Need to enable and start the rbd-target-api service for the gwcli to work

[root@vm250-194 ~]# systemctl enable rbd-target-api
[root@vm250-194 ~]# systemctl start rbd-target-api
[root@vm250-194 ~]# systemctl status rbd-target-api
● rbd-target-api.service - Ceph iscsi target configuration API
   Loaded: loaded (/usr/lib/systemd/system/rbd-target-api.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2018-07-12 09:17:05 EDT; 1min 11s ago
 Main PID: 16836 (rbd-target-api)
   CGroup: /system.slice/rbd-target-api.service
           └─16836 /usr/bin/python /usr/bin/rbd-target-api

Jul 12 09:17:05 vm250-194.gsslab.pnq2.redhat.com systemd[1]: Started Ceph iscsi target configuration API.
Jul 12 09:17:05 vm250-194.gsslab.pnq2.redhat.com systemd[1]: Starting Ceph iscsi target configuration API...
Jul 12 09:17:09 vm250-194.gsslab.pnq2.redhat.com rbd-target-api[16836]: Started the configuration object watcher
Jul 12 09:17:09 vm250-194.gsslab.pnq2.redhat.com rbd-target-api[16836]: Checking for config object changes every 1s
Jul 12 09:17:09 vm250-194.gsslab.pnq2.redhat.com rbd-target-api[16836]: API server using TLSv1 (older version of werkzeug)
Jul 12 09:17:09 vm250-194.gsslab.pnq2.redhat.com rbd-target-api[16836]:  * Running on https://0.0.0.0:5000/
[root@vm250-194 ~]# 



[1] https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/3/html/block_device_guide/using_an_iscsi_gateway#configuring_the_iscsi_target_using_ansible


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


How reproducible:every time


Steps to Reproduce:
1.Follow documentation to install iscsi gw target. 
2.
3.

Actual results:


Expected results:gwcli needs to be installed as part of the ceph-ansible run to complete the configuration. 


Additional info:checking the ansible.log there is no reference to a task to install the ceph-iscsi-cli package
Comment 15 errata-xmlrpc 2018-09-26 14:23:43 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.