Bug 182328
| Summary: | "Error: [Errno 17] File exists" on xm create due to dangling /var/lib/xen/xenbl | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Stephen Tweedie <sct> | ||||
| Component: | xen | Assignee: | Jeremy Katz <katzj> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | CC: | bstein, katzj | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2006-02-23 21:53:40 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 150222 | ||||||
| Attachments: |
|
||||||
|
Description
Stephen Tweedie
2006-02-21 21:08:26 UTC
Created attachment 124983 [details]
Always delete the /var/lib/xen/xenbl file on error.
Simple XenBootloader.py patch to add a try...finally: construct to make sure we
delete /var/lib/xen/xenbl on error.
We still need to handle the case where it exists on entry, by forming a new
filename (based on pid?) to avoid collisions.
I vaguely remember there being a reason why I was using a defined name instead of actually doing a mktemp'd name. Let me look further Can't tell what it was. Committed a fix to CVS and sent upstream |