Bug 833662

Summary: OSError: [Errno 17] File exists in fetch_images when IMAGE_CACHE=True
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: lab controllerAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.9CC: bpeck, dcallagh, rmancy, stl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-26 06:41:15 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:

Description Dan Callaghan 2012-06-20 05:11:06 UTC
If for some reason the kernel or initrd images already exist on disk when we do a configure_netboot, this will happen:

2012-06-20 14:17:27 [ERROR   ] Error processing command 3917137
Traceback (most recent call last):
  File "src/bkr/labcontroller/provision.py", line 80, in handle
    handle_configure_netboot(command)
  File "src/bkr/labcontroller/provision.py", line 127, in handle_configure_netboot
    command['netboot']['initrd_url'], command['fqdn'])
  File "/home/dcallagh/work/beaker/LabController/proxy/src/bkr/labcontroller/netboot.py", line 153, in fetch_images
    os.path.join(images_dir, 'kernel'))
OSError: [Errno 17] File exists

Only occurs in the code path with IMAGE_CACHE=True.

Comment 1 Dan Callaghan 2012-06-20 05:28:24 UTC
On Gerrit: http://gerrit.beaker-project.org/1152

Comment 2 Dan Callaghan 2012-06-21 22:29:02 UTC
This bug has been addressed in Beaker 0.9.0-3 which is currently running on stage:

https://beaker-stage.engineering.redhat.com/

Comment 3 Dan Callaghan 2012-06-26 06:41:15 UTC
Beaker 0.9.0 has been released.