Bug 1089566 - [abrt] livecd-tools: kickstart.py:276:apply:IOError: [Errno 2] No such file or directory: '/run/media/jones/2tp001data/createlive/temp/imgcreate-_dX8Us/install_root/etc/rpm/macros.imgcreate'
Summary: [abrt] livecd-tools: kickstart.py:276:apply:IOError: [Errno 2] No such file o...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: livecd-tools
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:3480f341b981c2cd4601fe49b2c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-20 23:16 UTC by Peter H. Jones
Modified: 2015-02-16 19:31 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-16 19:31:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (960 bytes, text/plain)
2014-04-20 23:16 UTC, Peter H. Jones
no flags Details
File: environ (3.24 KB, text/plain)
2014-04-20 23:16 UTC, Peter H. Jones
no flags Details

Description Peter H. Jones 2014-04-20 23:16:35 UTC
Description of problem:
running livecd-creator with firewalld as the only package in the kickstart file

Version-Release number of selected component:
livecd-tools-19.9-1.fc19

Additional info:
reporter:       libreport-2.2.0
cmdline:        /usr/bin/python -tt /usr/bin/livecd-creator -t temp -dvc local.ks
dso_list:       python-imgcreate-19.9-1.fc19.x86_64
executable:     /usr/bin/livecd-creator
kernel:         3.13.10-100.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
kickstart.py:276:apply:IOError: [Errno 2] No such file or directory: '/run/media/jones/2tp001data/createlive/temp/imgcreate-_dX8Us/install_root/etc/rpm/macros.imgcreate'

Traceback (most recent call last):
  File "/usr/bin/livecd-creator", line 228, in <module>
    sys.exit(main())
  File "/usr/bin/livecd-creator", line 212, in main
    creator.configure()
  File "/usr/lib/python2.7/site-packages/imgcreate/creator.py", line 730, in configure
    kickstart.RPMMacroConfig(self._instroot).apply(self.ks)
  File "/usr/lib/python2.7/site-packages/imgcreate/kickstart.py", line 276, in apply
    f = open(self.path("/etc/rpm/macros.imgcreate"), "w+")
IOError: [Errno 2] No such file or directory: '/run/media/jones/2tp001data/createlive/temp/imgcreate-_dX8Us/install_root/etc/rpm/macros.imgcreate'

Local variables in innermost frame:
ks: <pykickstart.parser.KickstartParser instance at 0x2fc8ab8>
self: <imgcreate.kickstart.RPMMacroConfig object at 0x38ff190>

Comment 1 Peter H. Jones 2014-04-20 23:16:38 UTC
Created attachment 887982 [details]
File: backtrace

Comment 2 Peter H. Jones 2014-04-20 23:16:40 UTC
Created attachment 887983 [details]
File: environ

Comment 3 Brian Lane 2014-04-21 18:53:36 UTC
You need to include the correct packages to support the install. Usually this means at least @standard.

Comment 4 Richard W.M. Jones 2014-10-28 10:09:46 UTC
Reopening.  This bug occurs on Fedora Rawhide, even though I
have specified @standard packages.

ERROR: Command failed. See logs for output.
 # ['/usr/bin/livecd-creator', '-c', '/tmp/koji-image-f22-build-7959447.ks', '-d', '-v', '--logfile', '/tmp/livecd.log', '--cache', '/tmp/koji-livecd', '-f', 'virt-p2v-1.29.2-1']
ounting directory /var/tmp/imgcreate-vgBpF9/install_root
Losetup remove /dev/loop0
 

Traceback (most recent call last):
  File "/usr/bin/livecd-creator", line 236, in <module>
     sys.exit(main())
  File "/usr/bin/livecd-creator", line 213, in main
     creator.configure()
  File "/usr/lib/python2.7/site-packages/imgcreate/creator.py", line 749, in configure
     kickstart.RPMMacroConfig(self._instroot).apply(self.ks)
  File "/usr/lib/python2.7/site-packages/imgcreate/kickstart.py", line 276, in apply
     f = open(self.path("/etc/rpm/macros.imgcreate"), "w+")
IOError :  [Errno 2] No such file or directory: '/var/tmp/imgcreate-vgBpF9/install_root/etc/rpm/macros.imgcreate'

Comment 5 Richard W.M. Jones 2014-10-28 10:18:17 UTC
From the log file it seems that 'rpm' is not being installed, so
perhaps it's no longer included in @standard.

I have tried a build adding rpm explicitly to the list of packages.

Really if livecd-creator needs some packages installed (eg. firewalld),
it should either include them implicitly, or give a clear error
message about what it needs.

Comment 6 Richard W.M. Jones 2014-10-28 10:29:07 UTC
Adding just 'rpm' (and removing @standard) was sufficient to
fix this.

However there's still a bug here in that these tools require
packages to work, and don't give a clear error message about it.
I have had to include:
 - rpm (this bug)
 - kernel (otherwise there is no boot menu)
 - firewalld (bug 884935 et al)
to get everything to work properly.

Comment 7 Fedora End Of Life 2015-01-09 21:18:56 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Brian Lane 2015-02-16 19:31:43 UTC
I don't think there's really much that can be done here. We can't set requirements on the package since they have nothing to do with the kickstart, and depending on the repo metadata being used in the kickstart it may or may not include the right stuff.


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