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 985122 - iscsi target connected twice
Summary: iscsi target connected twice
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: iscsi-initiator-utils
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Chris Leech
QA Contact: Bruno Goncalves
URL:
Whiteboard:
Depends On:
Blocks: 883874 1080147
TreeView+ depends on / blocked
 
Reported: 2013-07-16 20:52 UTC by michal novacek
Modified: 2021-09-03 13:43 UTC (History)
3 users (show)

Fixed In Version: iscsi-initiator-utils-6.2.0.873-11.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:33:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description michal novacek 2013-07-16 20:52:00 UTC
Description of problem:
Iscsi target is connected twice on boot with iscsi.service enabled.

Version-Release number of selected component (if applicable):
7.0-20130705.n.0
iscsi-initiator-utils-6.2.0.873-7.el7.x86_64

How reproducible: always


Steps to Reproduce:
1. discover and log into the target
2. enable iscsi.service with systemctl
3. reboot

Actual results: target drive is connected twice

Expected results: target drive connected once 

Additional info: 
Everything seemed fine unless I created PVs which than gave me errors on
running 'pvs':

$ cat /proc/partitions 
...
   8        0   41943040 sda
   8       16   41943040 sdb

$ iscsiadm -m session
tcp: [1] 10.34.70.17:3260,1 iqn.2008-09.com.example:beaker-disk-2224-d1-path1
tcp: [2] 10.34.70.17:3260,1 iqn.2008-09.com.example:beaker-disk-2224-d1-path1

$ pvs
  PV         VG            Fmt  Attr PSize PFree
  /dev/vda2  rhel_virt-168 lvm2 a--  7.51g    0 

$ pvcreate /dev/sda
  Physical volume "/dev/sda" successfully created

$ pvs
  Found duplicate PV PDLSYj8gdcC0YIQpIJsELbp1Z3pH1NsG: using /dev/sdb not /dev/sda
  PV         VG            Fmt  Attr PSize  PFree 
  /dev/sdb                 lvm2 a--  40.00g 40.00g
  /dev/vda2  rhel_virt-168 lvm2 a--   7.51g     0

Comment 3 Chris Leech 2013-07-22 18:01:54 UTC
This seems to be caused by the NetworkManager hook script restarting iscsi.service multiple times as network interfaces come online.

Removing /etc/NetworkManager/dispatcher.d/04-iscsi fixes this, but then iSCSI sessions configured for automatic login will not be retried once the network is ready.  It needs to do something other than a service restart, or at least the restart behavior need to be changed from the default.

Comment 4 Nenad Peric 2013-08-29 09:32:37 UTC
This behavior is still present and it makes LVM testing almost impossible. 

It does not help if I log out of targets and log back in:

iscsiadm -m node -u --> properly logs everything out.
iscsiadm -m node -l --> logs back in again twice, creating double PVs. 

Happens with:

iscsi-initiator-utils-6.2.0.873-13.el7
kernel-3.10.0-12.el7

Comment 5 Nenad Peric 2013-08-29 09:51:36 UTC
Hmm disregard my comment please.. 
It was not iscsi related at all this time.
 
It is a bug in my freakin' terminal, doubled the connection (without actually displaying it to me) :(

Comment 6 Bruno Goncalves 2013-09-04 15:20:49 UTC
It looks duplicated of BZ#981320

And the fix is verified on iscsi-initiator-utils-6.2.0.873-13.el7.x86_64.

Comment 8 Ludek Smid 2014-06-13 12:33:08 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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