[Openstack] Cannot start VM with Ephemeral disk

Yitao Jiang willierjyt at gmail.com
Mon May 26 16:54:35 UTC 2014


Hi, stackers

I launch a vm with command  nova boot --nic
net-id=8e4d4df7-7534-4733-a2f9-dd44b3b1f90d  --image CentOS64 --flavor
m1.x1-tiny --key-name dvlp_willier_com --ephemeral size=1
 CentOS64_VM01_EPHEMERAL
and m1.x1-tiny with 10G ephemeral disk

[root at devstack:keystone_admin /# nova flavor-show m1.x1-tiny
+----------------------------+------------+
| Property                   | Value      |
+----------------------------+------------+
| OS-FLV-DISABLED:disabled   | False      |
| OS-FLV-EXT-DATA:ephemeral  | 10         |
| disk                       | 10         |
| extra_specs                | {}         |
| id                         | 7          |
| name                       | m1.x1-tiny |
| os-flavor-access:is_public | True       |
| ram                        | 512        |
| rxtx_factor                | 1.0        |
| swap                       | 2048       |
| vcpus                      | 1          |
+----------------------------+------------+

​the vm went running, and ​the ephmeral disk got created

[root at devstack:keystone_admin instances]# virsh domblklist 2
Target     Source
------------------------------------------------
vda        /opt/stack/data/nova/instances/a86bbc9f-92e0-4b63-ae9e-21bf136570d7/disk
vdb        /opt/stack/data/nova/instances/a86bbc9f-92e0-4b63-ae9e-21bf136570d7/disk.eph0
vdc        /opt/stack/data/nova/instances/a86bbc9f-92e0-4b63-ae9e-21bf136570d7/disk.swap

​but after i stopped the vm, the ​disk.eph0 still exists. If i start the
vm, nova-compute.log error occurs
with below exception

2014-05-27 00:52:27.460 ERROR nova.openstack.common.rpc.amqp
[req-6c192903-d117-4406-89a4-0bb4af428275 admin admin] Exception during
message handling
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp Traceback
(most recent call last):
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 461, in
_process_data
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
**args)
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 172, in
dispatch
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
result = getattr(proxyobj, method)(ctxt, **kwargs)
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/compute/manager.py", line 353, in decorated_function
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
return function(self, context, *args, **kwargs)
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/exception.py", line 90, in wrapped
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
payload)
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/exception.py", line 73, in wrapped
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
return f(self, context, *args, **kw)
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/compute/manager.py", line 243, in decorated_function
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp     pass
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/compute/manager.py", line 229, in decorated_function
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
return function(self, context, *args, **kwargs)
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/compute/manager.py", line 294, in decorated_function
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
function(self, context, *args, **kwargs)
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/compute/manager.py", line 271, in decorated_function
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp     e,
sys.exc_info())
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/compute/manager.py", line 258, in decorated_function
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
return function(self, context, *args, **kwargs)
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/compute/manager.py", line 1850, in start_instance
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
self._power_on(context, instance)
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/compute/manager.py", line 1837, in _power_on
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
block_device_info)
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/virt/libvirt/driver.py", line 1969, in power_on
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
self._hard_reboot(context, instance, network_info, block_device_info)
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/virt/libvirt/driver.py", line 1924, in _hard_reboot
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
block_device_info)
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/opt/stack/nova/nova/virt/libvirt/driver.py", line 4380, in
get_instance_disk_info
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
dk_size = int(os.path.getsize(path))
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp   File
"/usr/lib64/python2.6/genericpath.py", line 49, in getsize
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp
return os.stat(filename).st_size
2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp OSError:
[Errno 2] No such file or directory:
'/opt/stack/data/nova/instances/a86bbc9f-92e0-4b63-ae9e-21bf136570d7/disk.local'


How can I start the vm with emphemeral disk

---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140527/50093aa0/attachment.html>


More information about the Openstack mailing list