hard reboot fails with preallocate_images=performance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Jiajun Liu |
Bug Description
I have in /etc/nova/nova.conf
preallocate_
for obvious speed reasons.
I had the need to hard reboot some instances (somehow soft reboot does not seem to work often with me) and I got this error in the logs for every instance:
013-07-10 18:53:40.638 DEBUG nova.utils [req-911ae4d0-
2013-07-10 18:53:40.652 DEBUG nova.utils [req-911ae4d0-
2013-07-10 18:53:40.653 ERROR nova.compute.
Command: fallocate -n -l 42949672960 /var/lib/
Exit code: 1
Stdout: ''
Stderr: 'fallocate: /var/lib/
Basically the hard reboot tries to re-allocate the disk space (which - in this case? - is already allocated) and fails because the disk file is owned by root (I think) rather than nova. Doing a chown nova:nova on the disk files resolves the issue for me.
I see three (combined) options:
1) do not try to reallocate in case it is already the right size
2) execute the fallocate part under root
3) make sure the disk is owned/writeable by nova
tags: | added: compute |
Changed in nova: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Jiajun Liu (ljjjustin) |
tags: | added: grizzly-backport-potential |
tags: | added: havana-backport-potential |
tags: | added: havana-rc-potetntial |
tags: |
added: havana-rc-potential removed: havana-rc-potetntial |
Changed in nova: | |
milestone: | none → havana-rc2 |
tags: | removed: havana-rc-potential |
Changed in nova: | |
milestone: | havana-rc2 → 2013.2 |
tags: | removed: grizzly-backport-potential in-stable-grizzly |
tags: | removed: havana-backport-potential |
Fix proposed to branch: master /review. openstack. org/40864
Review: https:/