<div dir="ltr"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small">Hi, stackers</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small">
<br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small">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</div>
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small">and m1.x1-tiny with 10G ephemeral disk</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_default" style>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">[root@devstack:keystone_admin /# nova flavor-show m1.x1-tiny</font></div></div><div class="gmail_default" style><div class="gmail_default" style><font face="trebuchet ms, sans-serif">+----------------------------+------------+</font></div>
</div><div class="gmail_default" style><div class="gmail_default" style><font face="trebuchet ms, sans-serif">| Property | Value |</font></div></div><div class="gmail_default" style><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">+----------------------------+------------+</font></div></div><div class="gmail_default" style><div class="gmail_default" style><font face="trebuchet ms, sans-serif">| OS-FLV-DISABLED:disabled | False |</font></div>
</div><div class="gmail_default" style><div class="gmail_default" style><font face="trebuchet ms, sans-serif">| OS-FLV-EXT-DATA:ephemeral | 10 |</font></div></div><div class="gmail_default" style><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">| disk | 10 |</font></div></div><div class="gmail_default" style><div class="gmail_default" style><font face="trebuchet ms, sans-serif">| extra_specs | {} |</font></div>
</div><div class="gmail_default" style><div class="gmail_default" style><font face="trebuchet ms, sans-serif">| id | 7 |</font></div></div><div class="gmail_default" style><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">| name | m1.x1-tiny |</font></div></div><div class="gmail_default" style><div class="gmail_default" style><font face="trebuchet ms, sans-serif">| os-flavor-access:is_public | True |</font></div>
</div><div class="gmail_default" style><div class="gmail_default" style><font face="trebuchet ms, sans-serif">| ram | 512 |</font></div></div><div class="gmail_default" style><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">| rxtx_factor | 1.0 |</font></div></div><div class="gmail_default" style><div class="gmail_default" style><font face="trebuchet ms, sans-serif">| swap | 2048 |</font></div>
</div><div class="gmail_default" style><div class="gmail_default" style><font face="trebuchet ms, sans-serif">| vcpus | 1 |</font></div></div><div class="gmail_default" style><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">+----------------------------+------------+</font></div></div></blockquote><font face="trebuchet ms, sans-serif"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;display:inline">
the vm went running, and the ephmeral disk got created</div></font><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>
[root@devstack:keystone_admin instances]# virsh domblklist 2</div><div>
Target Source</div><div>
------------------------------------------------</div><div>
vda /opt/stack/data/nova/instances/a86bbc9f-92e0-4b63-ae9e-21bf136570d7/disk</div><div>
vdb /opt/stack/data/nova/instances/a86bbc9f-92e0-4b63-ae9e-21bf136570d7/disk.eph0</div><div>
vdc /opt/stack/data/nova/instances/a86bbc9f-92e0-4b63-ae9e-21bf136570d7/disk.swap</div><div><br></div></blockquote><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small">but after i stopped the vm, the disk.eph0 still exists. If i start the vm, nova-compute.log error occurs </div>
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small">with below exception</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small">
<br>
</div><div class="gmail_default" style><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_default" style><div class="gmail_default" style><font face="trebuchet ms, sans-serif">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</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">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</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp **args)</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">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</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp result = getattr(proxyobj, method)(ctxt, **kwargs)</font></div><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">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</font></div><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp return function(self, context, *args, **kwargs)</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">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</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp payload)</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">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</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp return f(self, context, *args, **kw)</font></div><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">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</font></div><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp pass</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">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</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp return function(self, context, *args, **kwargs)</font></div><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">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</font></div><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp function(self, context, *args, **kwargs)</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">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</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp e, sys.exc_info())</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">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</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp return function(self, context, *args, **kwargs)</font></div><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">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</font></div><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp self._power_on(context, instance)</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">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</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp block_device_info)</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">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</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp self._hard_reboot(context, instance, network_info, block_device_info)</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">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</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp block_device_info)</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">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</font></div>
<div class="gmail_default" style><font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp dk_size = int(os.path.getsize(path))</font></div><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">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</font></div><div class="gmail_default" style>
<font face="trebuchet ms, sans-serif">2014-05-27 00:52:27.460 3773 TRACE nova.openstack.common.rpc.amqp return os.stat(filename).st_size</font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif">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'</font></div>
</div></blockquote></div><div><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small">How can I start the vm with emphemeral disk</div><div><div><div dir="ltr"><div><font face="trebuchet ms, sans-serif"><br>
</font></div><font face="trebuchet ms, sans-serif">---<br>Thanks,<br>Yitao(依涛 姜)<br><a href="http://jiangyt.github.io" target="_blank">jiangyt.github.io</a></font></div></div>
</div></div>