Bug 962865

Summary: IOError: iface iter could not read dir /var/lib/iscsi/nodes/iqn.2009-02.net.tirfa.:for.all/192.168.0.5,3260,1.
Product: [Fedora] Fedora Reporter: Tim Flink <tflink>
Component: python-blivetAssignee: Chris Lumens <clumens>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: anaconda-maint-list, awilliam, bcl, dlehman, dshea, g.kaviyarasu, ignatenko, jonathan, jstodola, mbanas, mkolman, rvykydal, sbueno, tflink, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8bfc618171799a3de0fcd43fc21e4cc70377a332149464d96f76322d595f1bb7 AcceptedFreezeException
Fixed In Version: python-blivet-0.14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-19 19:55:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 834088, 920667    
Attachments:
Description Flags
File: anaconda.log
none
File: backtrace
none
File: environ
none
File: ifcfg.log
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: packaging.log
none
File: program.log none

Description Tim Flink 2013-05-14 15:41:05 UTC
Description of problem:
I did a basic install in a VM using one vdisk and one iscsi LUN w/o auth
The following was filed automatically by anaconda:
anaconda 19.25-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 3693, in dracutSetupArgs
    auth = self.node.getAuth()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/bootloader.py", line 806, in set_boot_args
    setup_args = dep.dracutSetupArgs()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/bootloader.py", line 2336, in writeBootLoader
    keyboard=ksdata.keyboard)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 148, in doInstall
    writeBootLoader(storage, payload, instClass, ksdata)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 168, in run
    threading.Thread.run(self, *args, **kwargs)
IOError: iface iter could not read dir /var/lib/iscsi/nodes/iqn.2009-02.net.tirfa.:for.all/192.168.0.5,3260,1.

Version-Release number of selected component:
anaconda-19.25-1

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019-Beta-TC4\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-301.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta-TC4

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 168, in run
    threading.Thread.run(self, *args, **kwargs)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 148, in doInstall
    writeBootLoader(storage, payload, instClass, ksdata)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/bootloader.py", line 2336, in writeBootLoader
    keyboard=ksdata.keyboard)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/bootloader.py", line 806, in set_boot_args
    setup_args = dep.dracutSetupArgs()
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 3693, in dracutSetupArgs
    auth = self.node.getAuth()
IOError: iface iter could not read dir /var/lib/iscsi/nodes/iqn.2009-02.net.tirfa.:for.all/192.168.0.5,3260,1.

Comment 1 Tim Flink 2013-05-14 15:41:08 UTC
Created attachment 747736 [details]
File: anaconda.log

Comment 2 Tim Flink 2013-05-14 15:41:09 UTC
Created attachment 747737 [details]
File: backtrace

Comment 3 Tim Flink 2013-05-14 15:41:11 UTC
Created attachment 747738 [details]
File: environ

Comment 4 Tim Flink 2013-05-14 15:41:12 UTC
Created attachment 747739 [details]
File: ifcfg.log

Comment 5 Tim Flink 2013-05-14 15:41:14 UTC
Created attachment 747740 [details]
File: lsblk_output

Comment 6 Tim Flink 2013-05-14 15:41:17 UTC
Created attachment 747741 [details]
File: nmcli_dev_list

Comment 7 Tim Flink 2013-05-14 15:41:20 UTC
Created attachment 747742 [details]
File: packaging.log

Comment 8 Tim Flink 2013-05-14 15:41:23 UTC
Created attachment 747743 [details]
File: program.log

Comment 9 Radek Vykydal 2013-05-15 13:26:43 UTC
We probably need to do

from . import ROOT_PATH

in iscsi.write() when ROOT_PATH is set to '/mnt/sysimage' by enable_installer_mode() rather then at the beginning of iscsi.py module

Comment 10 Radek Vykydal 2013-05-15 13:40:08 UTC
I'll pass this to Dave as he has better notion of how ROOT_PATH setting with enable_installer_mode() should work. Perhaps also other places (fcoe, dasd, ...) should be checked for the issue.

Comment 11 Radek Vykydal 2013-05-15 13:44:52 UTC
Err, Chris has already acked patch for it.

Comment 12 Fedora Blocker Bugs Application 2013-05-15 15:57:39 UTC
Proposed as a Freeze Exception for 19-beta by Fedora user tflink using the blocker tracking app because:

 This bug blocks installation using iSCSI targets without authentication which is a blocker for final. It would be useful to enable those installs now so that we can get test cases in order and make sure everything is working.

Comment 13 Chris Lumens 2013-05-15 16:57:46 UTC
Yeah, I got the blivet portion of it done but it appears there's another way to hit this if you go into custom partitioning instead of going through the reclaim dialog.  So, I guess there's some work to do in anaconda now.

Comment 14 Chris Lumens 2013-05-15 17:46:32 UTC
I was wrong, back to blivet.  But I'm sending off a patch too.

Comment 15 Adam Williamson 2013-05-15 23:37:14 UTC
Discussed at 2013-05-15 freeze exception review meeting: http://meetbot.fedoraproject.org/fedora-blocker-review/2013-05-15/f19beta-blocker-review-6.2013-05-15-16.02.html . Accepted as a freeze exception issue: this would be a final blocker, and obviously fixing it would improve our potential iSCSI test coverage with Beta.

Comment 16 Dave Cantrell 2013-05-16 12:25:59 UTC
*** Bug 960610 has been marked as a duplicate of this bug. ***

Comment 17 Adam Williamson 2013-05-19 19:55:36 UTC
https://admin.fedoraproject.org/updates/FEDORA-2013-8322/python-blivet-0.14-1.fc19,pykickstart-1.99.31-1.fc19,anaconda-19.28-1.fc19 was pushed stable, closing. But tflink, can you check this with RC2?

Comment 18 Tim Flink 2013-05-21 17:11:46 UTC
(In reply to Adam Williamson from comment #17)
> https://admin.fedoraproject.org/updates/FEDORA-2013-8322/python-blivet-0.14-
> 1.fc19,pykickstart-1.99.31-1.fc19,anaconda-19.28-1.fc19 was pushed stable,
> closing. But tflink, can you check this with RC2?

Verified fix with F19 beta RC2.