nova compute race condition on truncate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Vish Ishaya |
Bug Description
The code that caches and creates the base image needs some kind of guard so that multiple greenthreads don't try to run the caching code at the same time. Specifically it is the truncate command that it is failing. Note that the offending resize only happens for images of size m1.small and greater
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: self._create_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: size=size)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: fn(target=base, *args, **kwargs)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: disk.extend(target, size)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: utils.execute(
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: cmd=cmd)
(nova.exception): TRACE: ProcessExecutio
(nova.exception): TRACE: Command: truncate -s 10737418240 /var/lib/
(nova.exception): TRACE: Exit code: 1
(nova.exception): TRACE: Stdout: ''
(nova.exception): TRACE: Stderr: "truncate: cannot open `/var/lib/
(nova.exception): TRACE:
Related branches
- Rick Harris (community): Approve
- Jay Pipes (community): Approve
-
Diff: 129 lines (+81/-5)2 files modifiednova/tests/test_virt.py (+67/-0)
nova/virt/libvirt_conn.py (+14/-5)
Changed in nova: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Vish Ishaya (vishvananda) |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |