Bug 707846 - OSError: [Errno 20] Not a directory: '/mnt/isodir/Fedora-15-i386-DVD.iso'
Summary: OSError: [Errno 20] Not a directory: '/mnt/isodir/Fedora-15-i386-DVD.iso'
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 15
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: anaconda_trace_hash:92eefcaf41ea3e12e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-26 07:03 UTC by nullakilla
Modified: 2011-06-27 16:26 UTC (History)
5 users (show)

Fixed In Version: anaconda-16.12-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-27 16:26:53 UTC
Type: ---


Attachments (Terms of Use)
Attached traceback automatically from anaconda. (410.29 KB, text/plain)
2011-05-26 07:03 UTC, nullakilla
no flags Details
Attached traceback automatically from anaconda. (637.11 KB, text/plain)
2011-05-29 04:55 UTC, Adam Hough
no flags Details
Attached traceback automatically from anaconda. (521.90 KB, text/plain)
2011-05-29 05:02 UTC, Adam Hough
no flags Details

Description nullakilla 2011-05-26 07:03:47 UTC
The following was filed automatically by anaconda:
anaconda 15.31 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/pyanaconda/image.py", line 34, in findFirstIsoImage
    files = os.listdir(path)
  File "/usr/lib/python2.7/site-packages/pyanaconda/image.py", line 156, in mountImage
    image = findFirstIsoImage(isodir, messageWindow)
  File "/usr/lib/python2.7/site-packages/pyanaconda/yuminstall.py", line 431, in _mountInstallImage
    mountImage(self.isodir, self.tree, self.anaconda.intf.messageWindow)
  File "/usr/lib/python2.7/site-packages/pyanaconda/yuminstall.py", line 455, in configBaseURL
    self._mountInstallImage()
  File "/usr/lib/python2.7/site-packages/pyanaconda/yuminstall.py", line 356, in setup
    self.configBaseURL()
  File "/usr/lib/python2.7/site-packages/pyanaconda/yuminstall.py", line 1231, in doBackendSetup
    self.ayum.setup()
  File "/usr/lib/python2.7/site-packages/pyanaconda/backend.py", line 192, in doBackendSetup
    if anaconda.backend.doBackendSetup(anaconda) == DISPATCH_BACK:
  File "/usr/lib/python2.7/site-packages/pyanaconda/dispatch.py", line 211, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/python2.7/site-packages/pyanaconda/dispatch.py", line 130, in gotoNext
    self.moveStep()
  File "/usr/lib/python2.7/site-packages/pyanaconda/gui.py", line 1257, in nextClicked
    self.anaconda.dispatch.gotoNext()
OSError: [Errno 20] Not a directory: '/mnt/isodir/Fedora-15-i386-DVD.iso'

Comment 1 nullakilla 2011-05-26 07:03:55 UTC
Created attachment 500999 [details]
Attached traceback automatically from anaconda.

Comment 2 Adam Hough 2011-05-29 04:55:10 UTC
Created attachment 501558 [details]
Attached traceback automatically from anaconda.

Comment 3 Adam Hough 2011-05-29 05:02:01 UTC
Created attachment 501559 [details]
Attached traceback automatically from anaconda.

Comment 4 Jon Disnard 2011-06-24 03:22:48 UTC
I have a similar issue, possibly related.

My PXE syslinux menu:

LABEL 5
MENU LABEL ^Fedora 15 - x86_64 nfs-iso (interactive)
IPAPPEND 2
KERNEL FC/15/x86_64/vmlinuz
APPEND initrd=FC/15/x86_64/initrd.img ramdisk_size=5939 text repo=nfsiso:192.168.1.234:/mnt/DroboFS/Shares/build/ISO/FC/Fedora-15-x86_64-DVD.iso ksdevice=bootif ipv6=auto mtu=9000 lang=en_US.UTF-8

~~~~
I get an error:

"Could't Mount ISO Source"
An Error occurred mounting the source device 192.168.1.234/mnt/DroboFS/Shares/build/ISO/Fedora-5-x86_64-DVD.iso. This may happen if your ISO images are located on an advanced storage device like LVM or RAID, or if there was a problem mounting a partition. Click exit to abort the installation.

~~~~
When I press ALT+F3 I see another error msg:

INFO anaconda: moving (1) to step reposetup
ERR anaconda: couldn't mount ISO source directory: (32, 'mount.nfs: mount point /mnt/isodir is not a directory')

~~~~
When I press ALT+F2 I see a root prompt:

I'm able to see that the dir exists by typing:

  [anaconda root@localhost /]# ls -ld /mnt/isodir
  drwxr--xr-x. 2 root root - Jun 23 22:20 /mnt/isodir


When I manually attempt to NFS mount the remote ISODIR to the local /mnt/isodir

  [anaconda root@localhost /]# mount -o nolock 192.168.1.234:/mnt/DroboFS/Shares/build/ISO/FC/ /mnt/isodir

The command succeeds
  [anaconda root@localhost /]# echo $?
  0

I can see the ISO file.
  [anaconda root@localhost /]# ls -lh /mnt/isodir/Fedora-15-x86_64-DVD.iso
  -rrwxrwxrwx. 1 root root 3.4G Jun 21 23:40 /mnt/isodir/Fedora-15-x86_64-DVD.iso

~~~~
When I switch into /tmp and read the /tmp/anaconda.log, here is what I see:

DEBUG anaconda: reposetup is a direct step
DEBUG anaconda: isys.py:mount()- going to mount 192.168.1.234:/mnt/DroboFS/Shares/build/ISO/FC/Fedora-15-x86_64-DVD.iso on /mnt/isodir as nfs with options defaults
ERR anaconda: couldn't mount ISO source directory: (32, 'mount.nfs: mountpoint /mnt/isodir is not a directory')


~~~~


This seems to imply to me that specifying the DVD.iso too much information, or perhaps anaconda should be separating the dirname and basename, especially if the path ends in .iso. Anyhow, I digress... to test this implication, I then altered my syslinux PXE boot menu to remove the DVD.iso. Fully expecting an error because no DVD.iso was specified.

I got to the Same spot where the error had previously occured, time went, and went.... expecting an error any moment now. Note, I'm on the ALT+F3 screen tailling the logs.... nothing ever came for abotu a minute, AND THEN CAME:

INFO anaconda: Preparing to install packages

WTF! It worked?!?!




So here is the deal, I have a bunch of ISO images in the location I specify, so it made sense to explicitly append the FC15 dvd iso. When I flip over into ALT+F2 to examine the /tmp/anaconda.log, I see stuff about trying to download some iso files, check it out:

INFO loader transferring nfsiso:192.168.1.234:/mnt/DroboFS/Shares/build/ISO/FC//images/updates.img

and 

INFO loader transferring nfsiso:192.168.1.234:/mnt/DroboFS/Shares/build/ISO/FC//images/product.img


Both ERR.

Now the funny part is that I was attempting to install Fedora 15, but this NFSISO location contained man ISO, including my previous Fedora 14 iso.

You see where I'm going with this?

When I rebooted the login showed me Fedora release 14 (Laughlin)

I guess there is some magic to pick up the first iso, usling lexical scope rules?

I would have liked to have picked from a dialog menu which files to install from, but that is a feature request. 

The bottom line: TL;DR: is it works if we omit the file name.


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