[vbox] vbox_scripts for don't create VDI image if vm name template contains dot.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Low
|
Evgeny Kozhemyakin |
Bug Description
At the moment functions/vm.sh script when creating an hdd relays on virtual box feature to add .vdi extension to the filename.
VBoxManage createhd --filename "$vm_disk_
The problem is that vm_name depends on vm_name_prefix variable in config.sh.
if user set vm_name_prefix to the name with "." (dot) in it the virtual box threat the part after dot as a filename extension and does not create .vdi extension.
Solution is to use disk_filename instead disk_name
VBoxManage createhd --filename "$vm_disk_
Steps to reproduce
#VBoxManage createhd --filename "test1" --size 10 --format VDI
0%...10%
Disk image created. UUID: 4ffc1fb9-
#VBoxManage createhd --filename "test2.ext" --size 10 --format VDI
0%...10%
Disk image created. UUID: 1f248cf2-
#VBoxManage createhd --filename "test3_ext" --size 10 --format VDI
0%...10%
Disk image created. UUID: d0dda225-
#ls -1
test1.vdi
test2.ext
test3_ext.vdi
Changed in fuel: | |
milestone: | none → 6.0 |
assignee: | nobody → Miroslav Anashkin (manashkin) |
Changed in fuel: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Fix proposed to branch: master /review. openstack. org/126857
Review: https:/