Hide Forgot
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
brew builds to test against http://download.eng.bos.redhat.com/brewroot/packages/ceph-iscsi-config/1.4/1.el7cp/noarch/ceph-iscsi-config-1.4-1.el7cp.noarch.rpm http://download.eng.bos.redhat.com/brewroot/packages/ceph-iscsi-ansible/1.4/1.el7scon/noarch/ceph-iscsi-ansible-1.4-1.el7scon.noarch.rpm
Verified in build: ceph-iscsi-ansible-1.5-1.el7test.noarch ceph-iscsi-config-1.5-1.el7test.noarch
1.5 downstream builds made available today for QE
Verified in ceph-iscsi-ansible-1.5-1
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