Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 628599

Summary: there should be a validation process for iscsi initiator name setup
Product: Red Hat Enterprise Linux 6 Reporter: Vivian Bian <vbian>
Component: ovirt-nodeAssignee: Joey Boggs <jboggs>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: gouyang, kxiong, mburns, moli, mshao, ovirt-maint, rwu, sgordon, ycui
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-node-2.2.3-1.el6 Doc Type: Bug Fix
Doc Text:
Previously the value entered for iSCSI Initiator Name was not validated. An update has been made and this field is checked to ensure it contains a valid iSCSI Qualified Name (IQN).
Story Points: ---
Clone Of:
: 772281 (view as bug list) Environment:
Last Closed: 2012-07-19 14:13:37 UTC Type: ---
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: 772281    
Bug Blocks:    

Description Vivian Bian 2010-08-30 13:43:38 UTC
Description of problem:
http://en.wikipedia.org/wiki/ISCSI

iSCSI Qualified Name (IQN)
    Format: iqn.yyyy-mm.{reversed domain name} (e.g. iqn.2001-04.com.acme:storage.tape.sys1.xyz) (Note: there is an optional colon with arbitrary text afterwards. This text is there to help better organize or label resources.)

so we need to make sure that we have the validation for iSCSI initiator name setup . And it's better to have an example displayed . 

Version-Release number of selected component (if applicable):
rhev-hypervisor-6.0-13

How reproducible:
always

Steps to Reproduce:
 iSCSI Initiator Configuration


Enter iSCSI Initiator Name (If blank one will be automatically generated)
Enter Q to quit
asdf
File already persisted: /etc/iscsi/initiatorname.iscsi

Initiator name set as: asdf


Actual results:
[root@123 ~]# cat /etc/iscsi/initiatorname.iscsi 
InitiatorName=asdf

Expected results:


Additional info:

Comment 2 Joey Boggs 2011-05-26 12:54:26 UTC
*** Bug 707872 has been marked as a duplicate of this bug. ***

Comment 5 Guohua Ouyang 2012-02-21 05:37:22 UTC
verified on 6.3-20120215.0, the iscsi initiator name have validation now:

iqn.1994    Invalid IQN Format
iqn.test    Invalid IQN Format
iqn.test.com.redhat:rhevh    Invalid IQN Format


iqn.1994-05.com.redhat:rhevh    ok

Comment 6 Stephen Gordon 2012-03-27 18:13:40 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously the value entered for iSCSI Initiator Name was not validated. An update has been made and this field is now validated to ensure it contains a valid iSCSI Qualified Name (IQN).

Comment 7 Stephen Gordon 2012-05-28 15:50:59 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-Previously the value entered for iSCSI Initiator Name was not validated. An update has been made and this field is now validated to ensure it contains a valid iSCSI Qualified Name (IQN).+Previously the value entered for iSCSI Initiator Name was not validated. An update has been made and this field is checked to ensure it contains a valid iSCSI Qualified Name (IQN).

Comment 9 errata-xmlrpc 2012-07-19 14:13:37 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.

http://rhn.redhat.com/errata/RHBA-2012-0741.html