Bug 833662 - OSError: [Errno 17] File exists in fetch_images when IMAGE_CACHE=True
Summary: OSError: [Errno 17] File exists in fetch_images when IMAGE_CACHE=True
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: lab controller
Version: 0.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dan Callaghan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-20 05:11 UTC by Dan Callaghan
Modified: 2019-05-22 13:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-26 06:41:15 UTC
Embargoed:


Attachments (Terms of Use)

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.


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