<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>You can delete the vm and boot a VM from the volume<br><br>发自我的 iPhone</div><div><br>在 2014年7月3日,4:52,Daniel Snider <<a href="mailto:Daniel.Snider@hypert.com">Daniel.Snider@hypert.com</a>> 写道:<br><br></div><blockquote type="cite"><div>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<div name="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #000000; margin: 0">
<div id=":19q" class="ii gt m143fd58344bfb3bb adP adO" style="font-size:13px; direction:ltr; margin:5px 15px 0px 0px; padding-bottom:5px; position:relative; z-index:0; font-family:arial,sans-serif; background-color:rgb(255,255,255)">
<div id=":19r" class="a3s" style="overflow:hidden">
<div style="font-size:14px; font-family:Calibri,sans-serif; word-wrap:break-word">
<div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">Hi,</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;"><br>
</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">I detached my root volume from my instance (which is in an rbd store) so I could extend it with cinder, then I reattached it. When I go to start the instance it's like nova has forgotten
or doesn't know the volume is in an rbd store and NOT at "/var/lib/nova/instances/<wbr>d1338984-4402-4af4-819e-<wbr>64f312c5149b/disk". I'd really like to boot this instance rather than creating a new one. Can I make nova use the rbd volume correctly?</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;"><br>
</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;"><br>
</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">Error caused by starting instance with a reattached and extended rbd volume:</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 ERROR nova.openstack.common.rpc.amqp [req-96a0463b-3d83-4691-8acb-<wbr>de9dc0490557 daec025b753740c5a2b0cffd51b6c6<wbr>98 6343e9dce46843d18435ccf29a33bf<wbr>a9]
Exception during message handling</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/openstack/<wbr>common/rpc/amqp.py", line 461, in _process_data</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp **args)</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/openstack/<wbr>common/rpc/dispatcher.py", line 172, in dispatch</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp result = getattr(proxyobj, method)(ctxt, **kwargs)</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/compute/manager.<wbr>py", line 353, in decorated_function</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp return function(self, context, *args, **kwargs)</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/exception.py", line 90, in wrapped</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp payload)</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/exception.py", line 73, in wrapped</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp return f(self, context, *args, **kw)</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/compute/manager.<wbr>py", line 243, in decorated_function</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp pass</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/compute/manager.<wbr>py", line 229, in decorated_function</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp return function(self, context, *args, **kwargs)</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/compute/manager.<wbr>py", line 294, in decorated_function</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp function(self, context, *args, **kwargs)</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/compute/manager.<wbr>py", line 271, in decorated_function</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp e, sys.exc_info())</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/compute/manager.<wbr>py", line 258, in decorated_function</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp return function(self, context, *args, **kwargs)</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/compute/manager.<wbr>py", line 1849, in start_instance</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp self._power_on(context, instance)</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/compute/manager.<wbr>py", line 1836, in _power_on</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp block_device_info)</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/virt/libvirt/<wbr>driver.py", line 1969, in power_on</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp self._hard_reboot(context, instance, network_info, block_device_info)</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/virt/libvirt/<wbr>driver.py", line 1924, in _hard_reboot</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp block_device_info)</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-<wbr>packages/nova/virt/libvirt/<wbr>driver.py", line 4380, in get_instance_disk_info</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp dk_size = int(os.path.getsize(path))</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/<wbr>genericpath.py", line 49, in getsize</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp return os.stat(filename).st_size</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">2014-07-02 15:53:05.546 4039504 TRACE nova.openstack.common.rpc.amqp OSError: [Errno 2] No such file or directory: '/var/lib/nova/instances/<wbr>d1338984-4402-4af4-819e-<wbr>64f312c5149b/disk'</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;"><br>
</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">I should add that the rbd volume was initially attached on /dev/vda but after resizing it I attached it to /dev/vdb because of this error:</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;"># nova volume-attach 9c1b7f98-81dc-49be-83ac-<wbr>ffdcadde5729 957ee433-47bc-4c4a-a12b-<wbr>1b93b7ecfa8d /dev/vda</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">ERROR: The supplied device path (/dev/vda) is in use. (HTTP 409) (Request-ID: req-14d572ea-e31f-4454-b22c-<wbr>ffa88207499d) </div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;"><br>
</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">Any ideas? This has been plaguing me all day.</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;"><br>
</div>
<div style="font-family: arial, sans-serif; font-size: 12.666666984558105px;">Thanks a lot! </div>
<div class="yj6qo"></div>
</div>
</div>
</div>
</div>
<div class="hq gt a10" style="margin:15px 0px; clear:both; font-size:13px; font-family:arial,sans-serif; background-color:rgb(255,255,255)">
</div>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></span><br><span>Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a></span><br><span>Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></span><br></div></blockquote></body></html>