Nova Image Resize Generating Errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Low
|
Xuanzhou Perry Dong |
Bug Description
Description
===========
When flavor disk size is larger than the image size, Nova will try to increase the image disk size to match the flavor disk size. In the process, it will call resize2fs to resize the image disk file system as will for raw-format, but this will generate an error since resize2fs should be executed on a partition block device instead of the whole block device (which includes boot sector, partition table, etc).
Steps to Reproduce
==================
1. Set the following configuration for nova-compute:
use_cow_images = False
force_raw_images = True
2. nova boot --image cirros-
The following error log are generated:
Nov 08 14:42:51 devstack01 nova-compute[
Nov 08 14:42:51 devstack01 nova-compute[
Nov 08 14:42:51 devstack01 nova-compute[
Nov 08 14:42:51 devstack01 nova-compute[
Nov 08 14:42:51 devstack01 nova-compute[
Expected Result
===============
Wrong command should not be executed and no error logs should be generated.
Actual Result
=============
Error logs are generated:
Environment
===========
1. Openstack Nova
stack@devstack0
commit 232458ae4e83e8b
Merge: 650c9f3 9d400c3
Author: Jenkins <email address hidden>
Date: Tue Oct 10 06:27:52 2017 +0000
Merge "rp: Move RP._get|
2. Hypervisor
Libvirt + QEMU
stack@devstack0
ii libvirt-bin 3.6.0-1ubuntu5~
ii libvirt-clients 3.6.0-1ubuntu5~
ii libvirt-daemon 3.6.0-1ubuntu5~
ii libvirt-
ii libvirt-dev:amd64 3.6.0-1ubuntu5~
ii libvirt0:amd64 3.6.0-1ubuntu5~
stack@devstack0
ii ipxe-qemu 1.0.0+git-
ii qemu-block-
ii qemu-kvm 1:2.10+
ii qemu-slof 20151103+
ii qemu-system 1:2.10+
ii qemu-system-arm 1:2.10+
ii qemu-system-common 1:2.10+
ii qemu-system-mips 1:2.10+
ii qemu-system-misc 1:2.10+
ii qemu-system-ppc 1:2.10+
ii qemu-system-s390x 1:2.10+
ii qemu-system-sparc 1:2.10+
ii qemu-system-x86 1:2.10+
ii qemu-utils 1:2.10+
stack@devstack0
3. Networking type
Neutron with Openvswitch
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Invalid |
I will try to push a change for this.