Description of problem:
According to https://tools.ietf.org/html/rfc3720#section-3.2.6.3.1 and https://tools.ietf.org/html/rfc3721#page-5,
the iSCSI qualified name can be iqn.2001-04.com.example:storage:diskarrays-sn-a8675309,but this name can't match ISCSI_IQN_NAME_REGEX in anaconda/pyanaconda/core/regexes.py.
Version-Release number of selected component (if applicable):
All
How reproducible:
Use anaconda to install os in iSCSI storage and input initiator name with two or more colons and fill other necessary information.Can't go to next to log in;
Steps to Reproduce:
1.use anaconda to install os in iSCSI storage
2.input initiator name with two or more colons,e.g.,iqn.2001-04.com.example:storage:diskarrays-sn-a8675309
Actual results:
ISCSI_IQN_NAME_REGEX in anaconda/pyanaconda/core/regexes.py can't match this qualified name.
Expected results:
ISCSI_IQN_NAME_REGEX in anaconda/pyanaconda/core/regexes.py should match this qualified name.
Additional info:
The ISCSI_IQN_NAME_REGEX in anaconda/pyanaconda/core/regexes.py is
ISCSI_IQN_NAME_REGEX = re.compile(r'^iqn\.\d{4}-\d{2}((?<!-)\.(?!-)[a-zA-Z0-9\-]+){1,63}(?<!-)(?<!\.)(:[^:]+)?$')
As far as I am considered,it should be change to
ISCSI_IQN_NAME_REGEX = re.compile(r'^iqn\.\d{4}-\d{2}((?<!-)\.(?!-)[a-zA-Z0-9\-]+){1,63}(?<!-)(?<!\.)(:[\S]+)?$') according to rfc3720