Bug 1393661 - Any host installed with RHVH-4.0-20161018.0-RHVH-x86_64-dvd1.iso is showing same iqn name.
Summary: Any host installed with RHVH-4.0-20161018.0-RHVH-x86_64-dvd1.iso is showing s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: imgbased
Version: 4.0.4
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: ovirt-4.1.0-beta
: ---
Assignee: Ryan Barry
QA Contact: Qin Yuan
URL:
Whiteboard:
Depends On: 1393833
Blocks: 1397007
TreeView+ depends on / blocked
 
Reported: 2016-11-10 06:14 UTC by Kumar Mashalkar
Modified: 2019-12-16 07:21 UTC (History)
12 users (show)

Fixed In Version: imgbased-0.8.19-0.1.el7ev
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
: 1397007 (view as bug list)
Environment:
Last Closed: 2017-04-20 19:01:34 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2759371 0 None None None 2016-11-10 06:17:33 UTC
Red Hat Product Errata RHEA-2017:1114 0 normal SHIPPED_LIVE redhat-virtualization-host bug fix and enhancement update 2017-04-20 22:57:46 UTC
oVirt gerrit 66592 0 None MERGED build: Add IQN randomization 2020-06-23 15:02:05 UTC
oVirt gerrit 66593 0 None MERGED node: Add IQN randomization 2020-06-23 15:02:05 UTC

Description Kumar Mashalkar 2016-11-10 06:14:12 UTC
Description of problem:
Any host installed with latest ISO available on portal is showing same initiator iqn name as iqn.1994-05.com.redhat:94d965987640

Version-Release number of selected component (if applicable):
RHV 4 Host : RHVH-4.0-20161018.0-RHVH-x86_64-dvd1.iso

How reproducible:
100%

Steps to Reproduce:
1. Install the RHV host with ISO RHVH-4.0-20161018.0-RHVH-x86_64-dvd1.iso
2. Check the Initiator iqn name at /etc/iscsi/initiatorname.iscsi
3. It is always same for all the hosts.

Actual results:
same Initiator name as iqn.1994-05.com.redhat:94d965987640 for all the hosts

Expected results:
The iqn name should be generated randomly

Additional info:

Comment 2 Fabian Deutsch 2016-11-10 13:04:52 UTC
This should really be fixed in platform.

But this script can be used to generate a new name:

sed "s/:.*$/:$(cut -d- -f 5 < /proc/sys/kernel/random/uuid)/" < /etc/iscsi/initiatorname.iscsi

Comment 7 Qin Yuan 2016-11-16 09:33:58 UTC
Test this issue on redhat-virtualization-host-4.0-20161115.1.
Test steps are split into two parts, one is initial install test, the other is upgrade test. The test steps and results are as followed:

Initial install test:
1. Install RHVH on several servers(for example, 3 servers)
2. Check the initiator iqn on each server after login to RHVH
   cat /etc/iscsi/initiatorname.iscsi
3. Reboot the server, and check the initiator iqn again

Initial install results:
1. Each server has an unique initiator iqn.
2. After reboot, the iqn can be persisted.


Upgrade test:
1. Install an old version RHVH(redhat-virtualization-host-4.0-20160919.0)
2. Check the initiator iqn after login to the old version RHVH
3. Upgrade to the latest version(redhat-virtualization-host-4.0-20161115.1)
4. Reboot and login to the latest version RHVH
5. Check the initiator iqn again

Upgrade results:
After upgrade, the initiator iqn of the latest RHVH is the same as the old RHVH.


Fabian, there are two questions need your confirmation:

1. If the test steps are sufficient to test this issue?

2. All hosts installed with one old version, such as redhat-virtualization-host-4.0-20160919.0, have the same initiator iqn. Upgrade them to the latest version, the iqn will be persisted. So, after upgrade, all hosts with the latest version will have the same iqn as well.
To resolve this problem, should we generate the unique iqn manually before upgrade?

Comment 10 Yaniv Lavi 2016-12-14 16:24:53 UTC
This bug had requires_doc_text flag, yet no documentation text was provided. Please add the documentation text and only then set this flag.

Comment 11 Qin Yuan 2017-01-19 08:51:29 UTC
Test Versions:
redhat-virtualization-host-4.1-20170116.0
imgbased-0.9.4-0.1.el7ev.noarch

Test Steps:
1. Install RHVH on 3 servers
2. Check the initiator iqn on each server after login to RHVH
   #cat /etc/iscsi/initiatorname.iscsi
3. Reboot the server, and check the initiator iqn again

Test Results:
1. Each server has an unique initiator iqn.
2. After reboot, the iqn can be persisted.

The bug is fixed, set the status to VERIFIED

Comment 12 errata-xmlrpc 2017-04-20 19:01:34 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/RHEA-2017:1114


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