The default_ephemeral_device in instances table is NULL when deploying a VM

Bug #1799340 reported by Sun Mengyun
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Incomplete
Medium
priyaduggirala

Bug Description

Description
===========
I deploy a vm with flavor:
+----------+-----------+------+-----------+------+-------+-------------+---------
| Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor |
+----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| smy_test | 512 | 10 | 5 | 1 | 2 | 1.0 | True | - |
+----------+-----------+------+-----------+------+-------+-------------+---------

When the VM is deployed successfully and running normally,the default_ephemeral_device is not updated in instances table in database. Obviously default_swap_device and root_device_name is updated.
+------------------+--------------------------+---------------------+
| root_device_name | default_ephemeral_device | default_swap_device |
+------------------+--------------------------+---------------------+
| /dev/vda | NULL | /dev/vdc |
+------------------+--------------------------+---------------------+

Steps to reproduce
==================
1. create a flavor using ephemeral
2. deploy a VM with this flavor

Expected result
===============
check instances table and default_ephemeral_device is NULL;

Actual result
=============
default_ephemeral_device has a value;

Environment
===========
[root@nail1 ~]# rpm -qa | grep nova
openstack-nova-api-18.0.2-1.el7.noarch
openstack-nova-common-18.0.2-1.el7.noarch
python2-novaclient-11.0.0-1.el7.noarch
openstack-nova-placement-api-18.0.2-1.el7.noarch
openstack-nova-scheduler-18.0.2-1.el7.noarch
openstack-nova-conductor-18.0.2-1.el7.noarch
openstack-nova-novncproxy-18.0.2-1.el7.noarch
python-nova-18.0.2-1.el7.noarch
openstack-nova-compute-18.0.2-1.el7.noarch
openstack-nova-console-18.0.2-1.el7.noarch

hypervisor:
Libvirt + KVM

Matt Riedemann (mriedem)
tags: added: libvirt
Sun Mengyun (kmehxhcr)
tags: added: database device ephemeral nova
removed: libvirt
tags: removed: device
Charlotte Han (hanrong)
Changed in nova:
importance: Undecided → Medium
priyaduggirala (priyad)
Changed in nova:
assignee: nobody → priyaduggirala (priyad)
Revision history for this message
Brin Zhang (zhangbailin) wrote :

The current BUG is similar to https://bugs.launchpad.net/nova/+bug/1815476

Their type is 'Integer' in the db model and "" or 'NULL' in the response.

Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

I can reproduce what the reported described.

Is there any user facing impact of the missing value?

Changed in nova:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.