Bug 1602785 - Ceph ceph-ansible does not install the gwcli command during iscsi-gw install
Summary: Ceph ceph-ansible does not install the gwcli command during iscsi-gw install
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 3.1
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: 3.1
Assignee: Guillaume Abrioux
QA Contact: Manohar Murthy
John Brier
URL:
Whiteboard:
Depends On:
Blocks: 1584264
TreeView+ depends on / blocked
 
Reported: 2018-07-18 13:35 UTC by jquinn
Modified: 2021-12-10 16:47 UTC (History)
15 users (show)

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.
Clone Of:
Environment:
Last Closed: 2018-09-26 18:23:43 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 2966 0 None closed iscsigw: install ceph-iscsi-cli package 2020-09-16 20:51:15 UTC
Red Hat Issue Tracker RHCEPH-2662 0 None None None 2021-12-10 16:47:50 UTC
Red Hat Product Errata RHBA-2018:2819 0 None None None 2018-09-26 18:24:33 UTC

Description jquinn 2018-07-18 13:35:24 UTC
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 18:23:43 UTC
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.