Bug 1132352 - IOError: [Errno 2] Adresár alebo súbor neexistuje: '/mnt/sysimage/etc/resolv.conf'
Summary: IOError: [Errno 2] Adresár alebo súbor neexistuje: '/mnt/sysimage/etc/resolv....
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b7be3145ef62b6d4acbe182af7d...
: 1132623 1133150 1211838 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-21 08:21 UTC by Ferdinand Galko
Modified: 2016-07-19 16:41 UTC (History)
18 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-19 12:02:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (968.41 KB, text/plain)
2014-08-21 08:21 UTC, Ferdinand Galko
no flags Details
File: anaconda.log (21.45 KB, text/plain)
2014-08-21 08:21 UTC, Ferdinand Galko
no flags Details
File: environ (458 bytes, text/plain)
2014-08-21 08:21 UTC, Ferdinand Galko
no flags Details
File: lsblk_output (2.00 KB, text/plain)
2014-08-21 08:21 UTC, Ferdinand Galko
no flags Details
File: nmcli_dev_list (1.14 KB, text/plain)
2014-08-21 08:21 UTC, Ferdinand Galko
no flags Details
File: os_info (381 bytes, text/plain)
2014-08-21 08:21 UTC, Ferdinand Galko
no flags Details
File: program.log (30.06 KB, text/plain)
2014-08-21 08:21 UTC, Ferdinand Galko
no flags Details
File: storage.log (111.98 KB, text/plain)
2014-08-21 08:21 UTC, Ferdinand Galko
no flags Details
File: syslog (56.32 KB, text/plain)
2014-08-21 08:21 UTC, Ferdinand Galko
no flags Details
File: ifcfg.log (1.91 KB, text/plain)
2014-08-21 08:21 UTC, Ferdinand Galko
no flags Details
File: packaging.log (655.83 KB, text/plain)
2014-08-21 08:21 UTC, Ferdinand Galko
no flags Details

Description Ferdinand Galko 2014-08-21 08:21:14 UTC
Version-Release number of selected component:
anaconda-22.3-1

The following was filed automatically by anaconda:
anaconda 22.3-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/shutil.py", line 83, in copyfile
    with open(dst, 'wb') as fdst:
  File "/usr/lib64/python2.7/shutil.py", line 119, in copy
    copyfile(src, dst)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 876, in copyFileToPath
    shutil.copy(fileName, destfile)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 1036, in write_network_config
    copyFileToPath("/etc/resolv.conf", rootpath, overwrite=flags.livecdInstall)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1001, in execute
    network.write_network_config(storage, ksdata, instClass, iutil.getSysroot())
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 90, in doConfiguration
    ksdata.network.execute(storage, ksdata, instClass)
  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 227, in run
    threading.Thread.run(self, *args, **kwargs)
IOError: [Errno 2] Adresár alebo súbor neexistuje: '/mnt/sysimage/etc/resolv.conf'

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-rawhide-x86_64 quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.17.0-0.rc1.git0.1.fc22.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        rawhide

Comment 1 Ferdinand Galko 2014-08-21 08:21:26 UTC
Created attachment 929100 [details]
File: anaconda-tb

Comment 2 Ferdinand Galko 2014-08-21 08:21:28 UTC
Created attachment 929102 [details]
File: anaconda.log

Comment 3 Ferdinand Galko 2014-08-21 08:21:30 UTC
Created attachment 929103 [details]
File: environ

Comment 4 Ferdinand Galko 2014-08-21 08:21:31 UTC
Created attachment 929104 [details]
File: lsblk_output

Comment 5 Ferdinand Galko 2014-08-21 08:21:33 UTC
Created attachment 929105 [details]
File: nmcli_dev_list

Comment 6 Ferdinand Galko 2014-08-21 08:21:34 UTC
Created attachment 929106 [details]
File: os_info

Comment 7 Ferdinand Galko 2014-08-21 08:21:36 UTC
Created attachment 929107 [details]
File: program.log

Comment 8 Ferdinand Galko 2014-08-21 08:21:38 UTC
Created attachment 929108 [details]
File: storage.log

Comment 9 Ferdinand Galko 2014-08-21 08:21:40 UTC
Created attachment 929109 [details]
File: syslog

Comment 10 Ferdinand Galko 2014-08-21 08:21:42 UTC
Created attachment 929110 [details]
File: ifcfg.log

Comment 11 Ferdinand Galko 2014-08-21 08:21:50 UTC
Created attachment 929111 [details]
File: packaging.log

Comment 12 David Shea 2014-08-21 13:54:24 UTC
/etc/resolv.conf is a broken symlink into /run/systemd, again.

Comment 13 David Shea 2014-08-21 17:02:25 UTC
*** Bug 1132623 has been marked as a duplicate of this bug. ***

Comment 14 Zbigniew Jędrzejewski-Szmek 2014-08-22 02:25:51 UTC
(In reply to David Shea from comment #12)
> /etc/resolv.conf is a broken symlink into /run/systemd, again.
Yes, anaconda should remove not follow the symlink.

systemd-216-2 temporarily again has the patch to not create the symlink.

Comment 15 David Shea 2014-08-22 12:51:39 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #14)
> (In reply to David Shea from comment #12)
> > /etc/resolv.conf is a broken symlink into /run/systemd, again.
> Yes, anaconda should remove not follow the symlink.

Then what's the point of installing the symlink? (NB: I don't actually care about the answer to this) /etc/resolv.conf has been a regular file pointing to regular file things for the last *thirty years!*, you can't just replace vital system files and expect everyone else to clean up the mess you've made.

Anaconda is trying to write to /etc/resolv.conf. We can't write to /etc/resolv.conf because someone put something broken in the way. Removing the symlink is a workaround, not a solution.

Comment 16 Zbigniew Jędrzejewski-Szmek 2014-08-22 15:21:56 UTC
(In reply to David Shea from comment #15)
> (In reply to Zbigniew Jędrzejewski-Szmek from comment #14)
> > (In reply to David Shea from comment #12)
> > > /etc/resolv.conf is a broken symlink into /run/systemd, again.
> > Yes, anaconda should remove not follow the symlink.
> 
> Then what's the point of installing the symlink?
The first reason to keep resolv.conf out of /etc is that the contents are variable, and moving it out is a prerequisite for a read-only /etc. A second
reason is that there are multiple programs which can provide resolv.conf, e.g. systemd-resolved, NetworkManager, other dhcp clients, etc. Which one is used can then be easily determined by the administrator by setting the symlink.

> (NB: I don't actually care
> about the answer to this) /etc/resolv.conf has been a regular file pointing
> to regular file things for the last *thirty years!*, you can't just replace
> vital system files and expect everyone else to clean up the mess you've made.
Things change. There are valid technical reasons for the change.
 
> Anaconda is trying to write to /etc/resolv.conf. We can't write to
> /etc/resolv.conf because someone put something broken in the way. Removing
> the symlink is a workaround, not a solution.
There's no reason for anaconda to follow the symlink, no matter if it points to an existing file or not.

Comment 17 David Shea 2014-08-25 13:41:53 UTC
*** Bug 1133150 has been marked as a duplicate of this bug. ***

Comment 18 Zbigniew Jędrzejewski-Szmek 2015-02-03 03:45:46 UTC
Has anaconda been updated to remove the symlink?

Comment 19 David Shea 2015-02-03 07:32:44 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #18)
> Has anaconda been updated to remove the symlink?

No.

Comment 20 Zbigniew Jędrzejewski-Szmek 2015-02-03 13:54:22 UTC
Can we set a time schedule when this will happen then? We're currently patching out this part of upstream functionality, but I don't want to carry the workaround for another release.

Comment 21 Jaroslav Reznik 2015-03-03 16:14:00 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 22 Ian Sutherland 2015-03-25 22:31:39 UTC
Another user experienced a similar problem:

Install to Hard Drive with live image fc23 rawhide

cmdline:        /usr/bin/python2  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-WS-x86_64-rawhide-20 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
hashmarkername: anaconda
kernel:         4.0.0-0.rc4.git2.1.fc23.x86_64
other involved packages: python-libs-2.7.9-5.fc22.x86_64
package:        anaconda-core-23.4-1.fc23.x86_64
product:        Fedora
reason:         IOError: [Errno 2] No such file or directory: '/mnt/sysimage/etc/resolv.conf'
release:        Fedora release 23 (Rawhide)
version:        Rawhide

Comment 23 mulhern 2015-04-15 11:23:32 UTC
*** Bug 1211838 has been marked as a duplicate of this bug. ***

Comment 24 Joseph D. Wagner 2015-04-15 14:45:12 UTC
I got this on the rawhide install image yesterday.

Comment 25 c.jones1968 2015-04-29 19:56:29 UTC
Another user experienced a similar problem:

error occured whist attempting to install fedora rawhide, Fedora-Live-MATE-Compiz-i686-29150429.iso, as guest on Oracle VM Virtualbox version 4.3.26
r98988.

cmdline:        /usr/bin/python2  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-MATE-i686-rawhide-20 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
hashmarkername: anaconda
kernel:         4.1.0-0.rc1.git0.1.fc23.i686
other involved packages: python-libs-2.7.9-10.fc23.i686
package:        anaconda-core-23.7-1.fc23.i686
product:        Fedora
reason:         IOError: [Errno 2] No such file or directory: '/mnt/sysimage/etc/resolv.conf'
release:        Fedora release 23 (Rawhide)
version:        Rawhide

Comment 26 Fedora End Of Life 2016-07-19 12:02:54 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 27 Zbigniew Jędrzejewski-Szmek 2016-07-19 16:41:42 UTC
Anyway, we create the symlink from systemd-resolved when it starts now.


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