There is no disk.local for VMs having ephemeral in flavor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Description
===========
This is not really a functionality issue because the VM did get created, the ephemeral disk is visible in the VM and there is a disk.eph0.
But there is a code in driver checking for disk.local if ephemeral disk is added for disk_mapping,
https:/
there is no local.disk in disk_mapping or real disk inside data/instances/
Reason:
build_and_
# block_device_
build an object having image, device/disk and network info called resources
with resources ASK driver to spawn VM
# resources = block_device_info: {disk, ephemeral, image }, network_info = {}
#https:/
# pass disk_maping to _create_image
# but its not present so disk.local hence did not get created in compute under compute node.
Steps to reproduce
==================
- openstack flavor create --ram 512 --disk 20 --ephemeral 15 --vcpus 1 102
- openstack server create --flavor 102 --network private --image cirros-
Expected result
===============
- there should be a disk.local in directory
data/
or during resize
Actual result
=============
- disk.local is NOT present in instance/
- disk.eph0 is present instance/
- there is a data file ephemeral_
Environment
===========
tested in branch master and stable/train
So basically for which scenarios disk.local should/will get created?