Bug 947120

Summary: IOError: [Errno 2] No such file or directory: '/mnt/sysimage/etc/sysconfig/network-scripts/ifcfg-eth0' (anaconda crashes at "writing network configuration" because one can remove the only network card in the network spoke)
Product: [Fedora] Fedora Reporter: Reartes Guillermo <rtguille>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 19CC: g.kaviyarasu, jonathan, mkolman, sbueno, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-19.16-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-09 03:38:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
anaconda-tb-xxx file
none
anaconda.log
none
program.log
none
storage.log
none
ifcfg log
none
syslog file
none
X.log
none
packaging.log
none
screen-shot showing the dialog in which you could remove the eth0 device
none
screen-shot of the crash none

Description Reartes Guillermo 2013-04-01 17:18:13 UTC
Created attachment 730352 [details]
anaconda-tb-xxx file

Description of problem:

It is possible to remove the only network card in the Network Spoke and then start installing. but anaconda does still think that the removed device it is there, so if crashes at the end of the installation.


Version-Release number of selected component (if applicable):
F19a TC3 (19.14)

How reproducible:
always

Steps to Reproduce:

1. Reach the Main Hub
2. Enter the Network Spoke
3. Press '+' to add an element
4. Select Bond
5. In the Network Connections Dialog, select eth0 and delete it
6. Press Close, then Done to return to the Network Spoke
7. In Software Selection, change to Minimal to save time.
8. In Storage: Installation Destination, select automatic partitioning deleting whatever there is.
9. Begin Installation
10. Set the root password
11. Wait for anaconda to crash, it will crash after post-installation tasks, in the "writing network configuration" part.
  
Actual results:
anaconda crashes at the end of the installation

Expected results:
no crash

Additional info:

anaconda 19.14 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/simpleconfig.py", line 77, in read
    with open(filename) as f:
  File "/usr/lib64/python2.7/site-packages/pyanaconda/simpleconfig.py", line 187, in read
    SimpleConfigFile.read(self, self.path)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 251, in loadIfcfgFile
    IfcfgFile.read(self)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/installclasses/fedora.py", line 134, in setNetworkOnbootDefault
    dev.loadIfcfgFile()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 764, in write_network_config
    instClass.setNetworkOnbootDefault(ksdata)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 764, in execute
    network.write_network_config(storage, ksdata, instClass, ROOT_PATH)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 72, in doConfiguration
    ksdata.network.execute(storage, ksdata, instClass)
  File "/usr/lib64/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 141, in run
    threading.Thread.run(self, *args, **kwargs)
IOError: [Errno 2] No such file or directory: '/mnt/sysimage/etc/sysconfig/network-scripts/ifcfg-eth0'

Comment 1 Reartes Guillermo 2013-04-01 17:18:42 UTC
Created attachment 730353 [details]
anaconda.log

Comment 2 Reartes Guillermo 2013-04-01 17:19:06 UTC
Created attachment 730354 [details]
program.log

Comment 3 Reartes Guillermo 2013-04-01 17:19:28 UTC
Created attachment 730355 [details]
storage.log

Comment 4 Reartes Guillermo 2013-04-01 17:19:50 UTC
Created attachment 730356 [details]
ifcfg log

Comment 5 Reartes Guillermo 2013-04-01 17:20:08 UTC
Created attachment 730357 [details]
syslog file

Comment 6 Reartes Guillermo 2013-04-01 17:20:36 UTC
Created attachment 730358 [details]
X.log

Comment 7 Reartes Guillermo 2013-04-01 17:21:10 UTC
Created attachment 730359 [details]
packaging.log

Comment 8 Reartes Guillermo 2013-04-01 17:22:17 UTC
Created attachment 730360 [details]
screen-shot showing the dialog in which you could remove the eth0 device

Comment 9 Reartes Guillermo 2013-04-01 17:22:42 UTC
Created attachment 730361 [details]
screen-shot of the crash

Comment 10 Radek Vykydal 2013-04-03 08:34:16 UTC
This should be fixed in anaconda-19.16-1. You shouldn't be able to see the dialog form comment #8 at all.

Comment 11 Fedora Update System 2013-04-05 00:51:09 UTC
anaconda-19.16-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/anaconda-19.16-2.fc19

Comment 12 Fedora Update System 2013-04-06 05:16:40 UTC
Package anaconda-19.16-2.fc19, python-meh-0.22-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-19.16-2.fc19 python-meh-0.22-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5019/python-meh-0.22-1.fc19,anaconda-19.16-2.fc19
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2013-04-09 03:38:41 UTC
anaconda-19.16-2.fc19, python-meh-0.22-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.