Bug 1387952

Summary: [ceph-iscsi-ansible] Unable to use the same image name from different rados pools
Product: Red Hat Storage Console Reporter: Paul Cuzner <pcuzner>
Component: ceph-ansibleAssignee: Paul Cuzner <pcuzner>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: adeza, aschoen, ceph-eng-bugs, gmeno, hnallurv, jdillama, kdreyer, mchristi, nthomas, sankarshan, tchandra
Target Milestone: ---   
Target Release: 2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-iscsi-ansible-1.5-1.el7scon ceph-iscsi-config-1.5-1.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-22 23:41:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Paul Cuzner 2016-10-24 02:13:09 UTC
Description of problem:
When defining the rbd's through ceph-iscsi-ansible, you provide a pool and image name. The issue is when the image is defined to the lio gateways it only uses the image component - as a result creating a configuration with the same image name from 2 or more pools fails.


Version-Release number of selected component (if applicable):
1.3 and below of ceph-iscsi-ansible/ceph-iscsi-config

How reproducible:
Always

Steps to Reproduce:
1.Create a cluster with multiple pools
2.attempt to create a gateway configuration where the same image name is used from multiple pools

3.

Actual results:
failed: [ceph-1] => (item={'image': 'ansible4', 'host': 'ceph-1.test.lab', 'pool': 'iscsi', 'size': '5G'}) => {"failed": true, "item": {"host": "ceph-1.test.lab", "image": "ansible4", "pool": "iscsi", "size": "5G"}}
msg: failed to add ansible4 to LIO - error(Storage object block/ansible4 exists)

Expected results:
configuration tools should allow the same image name to be used for rbd's backed by different pools

Additional info:
Current code level uses just the image name when creating a storage object within LIO - which won't be unique when dealing with multiple pools

Comment 5 Tejas 2016-11-02 09:18:31 UTC
Verified in build:
ceph-iscsi-ansible-1.5-1.el7test.noarch
ceph-iscsi-config-1.5-1.el7test.noarch

Comment 7 Paul Cuzner 2016-11-03 23:17:32 UTC
1.5 downstream builds made available today for QE

Comment 9 Tejas 2016-11-04 10:19:16 UTC
Verified in ceph-iscsi-ansible-1.5-1

Comment 11 errata-xmlrpc 2016-11-22 23:41:47 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-2016:2817