Red Hat Bugzilla – Bug 885850
RHEVH iSCSI initiator name change not persistent until a reboot
Last modified: 2014-01-21 14:16:49 EST
Description of problem: In RHEVH console, under Remote Storage Configuration, change the intiator name on the RHEVH host. Without rebooting RHEVH, try and connect to a iSCSI target. Initiator name on the storage device is identified as the original name for the RHEVH host, not the updated name. A reboot of the RHEVH host resolves this. Version-Release number of selected component (if applicable): 3.1 GA RHEV Hypervisor - 6.3 - 20121121.0.el6_3 How reproducible: Every time. Steps to Reproduce: 1. Change the initiator name on the RHEVH host. 2. Connect to a iSCSI target. Observe the initiator name used was the original, not the new name. 3. Reboot RHEVH host to resolve initiator name change. Actual results: Initiator name change in RHEV console does not take affect until a reboot. Expected results: Initiator name change in RHEV console should be immediately persistent without a reboot. Additional info: N/A
NOTE: this is for filing upstream ovirt-node bugs, not RHEV-H bugs. Those should go through a support case with Red Hat. The bug itself will likely apply to ovirt-node iso images as well, so I'll keep it open. Joey -- probably just a matter of restarting the right iscsi daemon after making the change.
looks to be a problem with the iscsi service starting and only in RHEV-H moving there [root@localhost ~]# service iscsi status No active sessions [root@localhost ~]# service iscsi restart Stopping iscsi: [ OK ] [root@localhost ~]# service iscsi status iscsi is stopped ----------------- commenting out the below and finishing out the init script start function # if no nodes are setup to startup automatically exit cleanly # grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes # [ $? -eq 0 ] || exit 0 ------------------- [root@localhost ~]# service iscsi restart Stopping iscsi: [ OK ] Starting iscsi: iscsiadm: No records found [ OK ] [root@localhost ~]# service iscsi status No active sessions
I'm guessing that all the management console is doing is editing /etc/iscsi/initiatorname.iscsi ? Unfortunately iscsid will not pick up changes without a restart. Also, in comment #2 there are references to the iscsi service. The iscsi service is for bringing up persistent sessions configures as automatic. What needs to be restarted is the iscsid service.
*** Bug 902592 has been marked as a duplicate of this bug. ***
Reviewed text
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-2014-0033.html