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 903398 - The iscsi initiator name is being modified during a RHEV-H upgrade.
Summary: The iscsi initiator name is being modified during a RHEV-H upgrade.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ovirt-node
Version: 6.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Joey Boggs
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 917847 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-23 21:57 UTC by Gordon Watson
Modified: 2018-12-02 16:41 UTC (History)
15 users (show)

Fixed In Version: ovirt-node-2.5.0-17.el6
Doc Type: Bug Fix
Doc Text:
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.
Clone Of:
Environment:
Last Closed: 2013-02-28 16:47:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 299373 0 None None None Never
Red Hat Product Errata RHBA-2013:0556 0 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update 2013-02-28 21:29:06 UTC

Description Gordon Watson 2013-01-23 21:57:19 UTC
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.

Comment 2 cshao 2013-01-24 08:06:34 UTC
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.

Comment 11 errata-xmlrpc 2013-02-28 16:47:54 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-2013-0556.html

Comment 12 Mike Burns 2013-03-06 13:14:16 UTC
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.

Comment 13 Mike Burns 2013-03-06 14:58:36 UTC
*** Bug 917847 has been marked as a duplicate of this bug. ***


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