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.
Previously, a Red Hat Enterprise Virtualization Hypervisor node upgraded from the Manager would have its iSCSI initiator configuration file (/etc/iscsi/initiatorname.iscsi) modified as part of the upgrade. The modification could cause a loss of connectivity to storage infrastructure.
Now, the upgrade logic includes a check to see if an upgrade or a fresh installation of the hypervisor is being performed, and does not modify the iSCSI initiator configuration file on upgrade.
Description of problem:
The iscsi initiator name is being modified during a RHEV-H upgrade, i.e. the '/etc/iscsi/initiatorname.iscsi' file is being rewritten with a new value.
The 'ovirt-config-iscsi' script does the following;
function set_initiator {
if [ -z "$1" ]; then
INITIATOR_NAME=$(iscsi-iname)
else
INITIATOR_NAME=$1
fi
echo "InitiatorName=$INITIATOR_NAME" > $INITIATOR_FILE
ovirt_store_config $INITIATOR_FILE
rc=$?
if [ $rc = 0 ]; then
printf "Initiator name set as: $INITIATOR_NAME\n"
else
printf "Setting initiator name failed\n"
fi
}
# AUTO for auto-install
if [ "$1" = "AUTO" ]; then
set_initiator $OVIRT_ISCSI_NAME
else
printf "\n\n iSCSI Initiator Configuration\n\n"
prompt_user
fi
It would seem that a conditional check for an upgrade could be added above. I had assumed that checking for OVIRT_UPGRADE being set would suffice, but I didn't see this being set during my upgrade attempt.
I then noticed BZ 513456, for an older release. That bug appeared to address this very issue (refer to comments 6,7,8) by modifying 'ovirt-config-boot' to check to see if the '/etc/iscsi/initiatorname.iscsi' file had already been persisted or not. However, at some later time, it appears that (at least) the iscsi-related code was removed from 'ovirt-config-boot' in deference to 'ovirt-config-iscsi'. However, the code added to not modify the iscsi initiator name during an upgrade appears to be have omitted.
So, maybe adding a similar check for persistency as existed previously in 'ovirt-config-boot' might be the way to go ?
Version-Release number of selected component (if applicable):
RHEV Hypervisor 6.3 (20121212.0.el6_3).
How reproducible:
It occurred the one time that I performed a RHEV-H upgrade and eight times for the customer. The specific upgrade in each case was from 20121012.0 to 20121212.0.
Steps to Reproduce:
1. 'cat /etc/iscsi/initiatorname.iscsi'.
2. Upgrade RHEV-H.
3. 'cat /etc/iscsi/initiatorname.iscsi', the initiator name will have changed.
Actual results:
The iscsi initiator name is being modified during a RHEV-H upgrade.
Expected results:
The iscsi initiator name should remain unchanged as a result of a RHEV-H upgrade.
Additional info:
The customer in question had to manually modify the targets on the server with the new initiator name. However, when I tried an upgrade here, the new initiator name was propagated to the target server. Regardless, the point is that the initiator name is being modified during an upgrade, but it's still of value to note that this caused the customer in question some inconvenience.
Any questions, please let me know.
Thanks, GFW.
RHEV-H QE can reproduce this issue always when upgrade RHEV-H via RHEV-M,
But can't reproduce if upgrade rhevh via command line.
Test steps:
1. Install rhev-hypervisor6-6.3-20121025.0.el6_3 and register to RHEV-M Si build.
2. Upgrade RHEV-H to rhev-hypervisor6-6.3-20121212.0.el6_3 via RHEV-M.Actual
Test results:
The iscsi initiator name is being modified during upgrade RHEV-H via rhevm.
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-2013-0556.html
Note that this will work when doing media upgrade to this version or any upgrade from this version to a higher version. Doing an upgrade from an older version to this version through the RHEV-M interface will still show this bug. Subsequent upgrades will not.
Description of problem: The iscsi initiator name is being modified during a RHEV-H upgrade, i.e. the '/etc/iscsi/initiatorname.iscsi' file is being rewritten with a new value. The 'ovirt-config-iscsi' script does the following; function set_initiator { if [ -z "$1" ]; then INITIATOR_NAME=$(iscsi-iname) else INITIATOR_NAME=$1 fi echo "InitiatorName=$INITIATOR_NAME" > $INITIATOR_FILE ovirt_store_config $INITIATOR_FILE rc=$? if [ $rc = 0 ]; then printf "Initiator name set as: $INITIATOR_NAME\n" else printf "Setting initiator name failed\n" fi } # AUTO for auto-install if [ "$1" = "AUTO" ]; then set_initiator $OVIRT_ISCSI_NAME else printf "\n\n iSCSI Initiator Configuration\n\n" prompt_user fi It would seem that a conditional check for an upgrade could be added above. I had assumed that checking for OVIRT_UPGRADE being set would suffice, but I didn't see this being set during my upgrade attempt. I then noticed BZ 513456, for an older release. That bug appeared to address this very issue (refer to comments 6,7,8) by modifying 'ovirt-config-boot' to check to see if the '/etc/iscsi/initiatorname.iscsi' file had already been persisted or not. However, at some later time, it appears that (at least) the iscsi-related code was removed from 'ovirt-config-boot' in deference to 'ovirt-config-iscsi'. However, the code added to not modify the iscsi initiator name during an upgrade appears to be have omitted. So, maybe adding a similar check for persistency as existed previously in 'ovirt-config-boot' might be the way to go ? Version-Release number of selected component (if applicable): RHEV Hypervisor 6.3 (20121212.0.el6_3). How reproducible: It occurred the one time that I performed a RHEV-H upgrade and eight times for the customer. The specific upgrade in each case was from 20121012.0 to 20121212.0. Steps to Reproduce: 1. 'cat /etc/iscsi/initiatorname.iscsi'. 2. Upgrade RHEV-H. 3. 'cat /etc/iscsi/initiatorname.iscsi', the initiator name will have changed. Actual results: The iscsi initiator name is being modified during a RHEV-H upgrade. Expected results: The iscsi initiator name should remain unchanged as a result of a RHEV-H upgrade. Additional info: The customer in question had to manually modify the targets on the server with the new initiator name. However, when I tried an upgrade here, the new initiator name was propagated to the target server. Regardless, the point is that the initiator name is being modified during an upgrade, but it's still of value to note that this caused the customer in question some inconvenience. Any questions, please let me know. Thanks, GFW.