Bug 1288423

Summary: iscsi initiatorname is identical for all overcloud nodes
Product: Red Hat OpenStack Reporter: Martin Tessun <mtessun>
Component: openstack-tripleoAssignee: James Slagle <jslagle>
Status: CLOSED DUPLICATE QA Contact: yeylon <yeylon>
Severity: high Docs Contact:
Priority: urgent    
Version: 7.0 (Kilo)CC: calfonso, chorn, dmesser, jmelvin, mburns, mcornea, rhel-osp-director-maint, skinjo, srevivo, yeylon
Target Milestone: ga   
Target Release: 8.0 (Liberty)   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-31 01:51:29 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1290377    

Description Martin Tessun 2015-12-04 07:42:22 UTC
Description of problem:
The Overcloud will be deployed using the "overcloud-full" image.
This image will be deployed on ALL Overclodu nodes and this image has an iSCSI initiator name:
cat /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.1994-05.com.redhat:d0c58fd0f44

This iSCSI initiatorname is the same on ALL Overcloud nodes and if you don't change this name the Live Migration will not work at all in an environment with the same IQN on ALL nodes!

Version-Release number of selected component (if applicable):
OSP-d 7.1.0
OSP 7.0.2

How reproducible:
always

Steps to Reproduce:
1. Install 2+ Overcloud nodes
2. Check that the /etc/iscsi/initiatorname contains the same entry on all nodes

Actual results:
The content is identical across all nodes

Expected results:
Every node should have its own unique initiator-id

Additional info:
I fixed this problem by a Pre-Deployment script for the Controller and Compute Nodes:

# Set unique iSCSI IQN
IQN=$(/sbin/iscsi-iname)
/bin/crudini --set /etc/iscsi/initiatorname.iscsi '' InitiatorName "$IQN"

This (or something similiar) sould be added to the installer.

Comment 1 Christian Horn 2015-12-07 08:41:20 UTC
related/DUP? 
bz1244328 - blockdev cannot see logged iscsi target after live migration

Comment 3 Mike Burns 2016-01-26 13:25:52 UTC
*** Bug 1301188 has been marked as a duplicate of this bug. ***

Comment 4 Perry Myers 2016-01-31 01:51:29 UTC

*** This bug has been marked as a duplicate of bug 1244328 ***