Bug 630666 - Cannot kickstart a system from spacewalk server - fails with file not found error
Summary: Cannot kickstart a system from spacewalk server - fails with file not found e...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.1
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space12
TreeView+ depends on / blocked
 
Reported: 2010-09-06 15:27 UTC by James Hogarth
Modified: 2012-03-06 09:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-09-08 08:11:25 UTC
Embargoed:


Attachments (Terms of Use)

Description James Hogarth 2010-09-06 15:27:25 UTC
Description of problem:
Cannot kickstart a system on Spacewalk 1.1

Version-Release number of selected component (if applicable): 
1.1

How reproducible:
Every time 

Steps to Reproduce:
1. Create a new kickstart
2. View the kickstart and verify the %post line before the GPG imports has %post --logfile /mnt/sysimage/root/ks-rhn-post.log in place automatically put by spacewalk.
3. Try to kickstart a system. 
  
Actual results:
Kickstart fails with:
Traceback (most recent call first):
 File "/tmp/treedir.27146/instimage/usr/lib/anaconda/iutil.py", line
45, in execWithRedirect
   stdout = open(stdout, "w")
 File "/usr/lib/anaconda/kickstart.py", line 75, in run
   root = scriptRoot)
 File "/usr/lib/anaconda/kickstart.py", line 901, in <lambda>
   map (lambda s: s.run(anaconda.rootPath, serial, anaconda.intf), postScripts)
 File "/usr/lib/anaconda/kickstart.py", line 901, in postAction
   map (lambda s: s.run(anaconda.rootPath, serial, anaconda.intf), postScripts)
 File "/tmp/treedir.27146/instimage/usr/lib/anaconda/packages.py",
line 44, in doPostAction
   anaconda.id.instClass.postAction(anaconda, flags.serial)
 File "/usr/lib/anaconda/dispatch.py", line 204, in moveStep
   rc = stepFunc(self.anaconda)
 File "/usr/lib/anaconda/dispatch.py", line 127, in gotoNext
   self.moveStep()
 File "/usr/lib/anaconda/text.py", line 727, in run
   anaconda.dispatch.gotoNext()
 File "/usr/bin/anaconda", line 974, in ?
   anaconda.intf.run(anaconda)
IOError: [Errno 2] No such file or directory:
'/mnt/sysimage//mnt/sysimage/root/ks-rhn-post.log'

Local variables in innermost frame:
searchPath: 0
stdout: /mnt/sysimage//mnt/sysimage/root/ks-rhn-post.log
stdin: 0
argv: ['/tmp/ks-script-ugX7Or']
chroot: <function chroot at 0xdc43f50>
command: /bin/sh
stderr: /mnt/sysimage//mnt/sysimage/root/ks-rhn-post.log
root: /mnt/sysimage

If the kickstart in /var/lib/rhn/kickstarts is manually edited to read %post --logfile /root/ks-rhn-post.log (ie remove /mnt/sysimage) teh kickstart completes okay.


Expected results:
Kickstart shoudl complete okay with an installed system.

Additional info:
This spacewalk server has been incrementally updated over the past year or so from 0.8 through to 1.1 as each version has come out. This is the first time I have tried to kickstart on 1.1.

Comment 1 James Hogarth 2010-09-06 16:13:55 UTC
Looking at the source code it looks like this was fixed in Master via this commit:

189fcb5cd860abfe3b6a5bb496613205766656cc

Any chance of a backport to spacewalk-1.1 so that kickstarts will be working again for current users?

James

Comment 2 Michael Mráka 2010-09-08 08:11:25 UTC
Fix has been backported and spacewalk-java-1.1.52-1 has been released.


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