Bug 1387952 - [ceph-iscsi-ansible] Unable to use the same image name from different rados pools
Summary: [ceph-iscsi-ansible] Unable to use the same image name from different rados p...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Storage Console
Classification: Red Hat
Component: ceph-ansible
Version: 2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2
Assignee: Paul Cuzner
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-24 02:13 UTC by Paul Cuzner
Modified: 2016-11-22 23:41 UTC (History)
11 users (show)

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:
Clone Of:
Environment:
Last Closed: 2016-11-22 23:41:47 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2817 0 normal SHIPPED_LIVE ceph-iscsi-ansible and ceph-ansible bug fix update 2017-04-18 19:50:43 UTC

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


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