<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML \9884\8BBE\683C\5F0F Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLChar
        {mso-style-name:"HTML \9884\8BBE\683C\5F0F Char";
        mso-style-priority:99;
        mso-style-link:"HTML \9884\8BBE\683C\5F0F";
        font-family:"Courier New";}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Hi,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New"">I am trying to use devstack to launch an all-in-one openstack environment on my machine.<span style="color:#1F497D">
</span>Unfortunately it says error when I delete an instance<span style="color:#333333">.<o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">I can create an instance successfully and ping&ssh also works. ‘openstack server list’ shows active. When I try to delete it, no messages
 occur on the screen. However, it shows the instance is in ‘ERROR’ state when I check ‘openstack server list’. When I retry delete the instance which is now in ERROR state, the result is the same. Then I try to rescue the instance, but still failed.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">When create the server:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><img width="868" height="64" id="_x56fe__x7247__x0020_4" src="cid:image004.jpg@01D362E9.21530FB0"></span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">When delete the server:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><img width="506" height="96" id="_x56fe__x7247__x0020_5" src="cid:image008.jpg@01D362E9.21530FB0"></span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">When rescue & unrescue the server:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><img width="462" height="93" id="_x56fe__x7247__x0020_6" src="cid:image010.jpg@01D362E9.21530FB0"></span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Log shows : Failed to deallocate network for instance. Error: Remote error: InvalidRequestError Could not evaluate current criteria in Python.
 Specify 'fetch' or False for the synchronize_session parameter.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">ubuntu nova-compute[44206]: [u'Traceback (most recent call last):\n', u'  File "/opt/stack/stack/nova/nova/conductor/manager.py", line 123,
 in _object_dispatch\n    return getattr(target, method)(*args, **kwargs)\n', u'  File "/opt/stack/.local/lib/python2.7/site-packages/oslo_versionedobjects/base.py", l    ine 184, in wrapper\n    result = fn(cls, context, *args, **kwargs)\n', u'  File "/opt/stack/stack/nova/nova/objects/virtual_interface.py",
 line 112, in delete_b    y_instance_uuid\n    db.virtual_interface_delete_by_instance(context, instance_uuid)\n', u'  File "/opt/stack/stack/nova/nova/db/api.py", line 716, in virtual_in    terface_delete_by_instance\n    return IMPL.virtual_interface_delete_by_instance(context,
 instance_id)\n', u'  File "/opt/stack/stack/nova/nova/db/sqlalchemy/api    .py", line 179, in wrapper\n    return f(*args, **kwargs)\n', u'  File "/opt/stack/stack/nova/nova/db/sqlalchemy/api.py", line 250, in wrapped\n    return f(cont    ext, *args, **kwargs)\n',
 u'  File "/opt/stack/stack/nova/nova/db/sqlalchemy/api.py", line 1691, in virtual_interface_delete_by_instance\n    filter_by(instance_    uuid=instance_uuid).\\\n', u'  File "/opt/stack/.local/lib/python2.7/site-packages/oslo_db/sqlalchemy/orm.py", line 32,
 in soft_delete\n    synchronize_session=s    ynchronize_session)\n', u'  File "/opt/stack/.local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 3366, in update\n    update_op.exec_()\n', u'  File "/opt/stack/.local/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py",
 line 1308, in exec_\n    self._do_pre_synchronize()\n', u'  File "/opt/stack/.lo    cal/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 1384, in _do_pre_synchronize\n    "Could not evaluate current criteria in Python. "\n', u"In    validRequestError:
 Could not evaluate current criteria in Python. Specify 'fetch' or False for the synchronize_session parameter.\n"].
<img width="963" height="33" id="_x56fe__x7247__x0020_1" src="cid:image012.jpg@01D362E9.21530FB0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Traceback shows<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><img width="859" height="502" id="_x56fe__x7247__x0020_7" src="cid:image013.jpg@01D362E9.21530FB0"></span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">It sames like the sqlalchemy report an error.
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">I change the synchronize_session parameter from ‘evaluate’ to ‘fetch’ as the log says. Then the server could be deleted.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><img width="442" height="35" id="_x56fe__x7247__x0020_3" src="cid:image014.jpg@01D362E9.21530FB0"><span style="font-size:9.0pt;font-family:"Courier New";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">However,I still don’t know what actually causes the problem.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">My environments:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">         Server: ARMv8 architecture server,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">         OS: Ubuntu 16.04,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">         Devstack: stable/pike,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">         Sqlalchemy: 1.2.0b2<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">         Sqlalchemy-migrate: 0.11.0<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">What I did:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Check the log in detail, I find that instance has been deleted successfully in hypervisor with the message ‘Took 1.10 seconds to destroy the
 instance on the hypervisor.’ Next it try to deallocate the network for instance but failed. Therefore vm_state is set to ERROR. When deallocate the network, it uses rpc to call the sqlalchemy and get an error message in return.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">I have checked mysql, it works well. All query request have responses.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">As stack user:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Try ./unstack.sh and ./stack.sh to reinstall the devstack. The problem is still in.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Try to reinstall mysql and then ./unstack.sh & ./stack.sh.  Still doesn’t work.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">/opt/stack/Local.conf:     [[local|localrc]]<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">ADMIN_PASSWORD=secret<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">DATABASE_PASSWORD=$ADMIN_PASSWORD<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">RABBIT_PASSWORD=$ADMIN_PASSWORD<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">SERVICE_PASSWORD=$ADMIN_PASSWORD<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">HOST_IP=10.67.247.28<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">LOGFILE=$DEST/logs/stack.sh.log<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">VERBOSE=true<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">SCREEN_LOGDIR=/opt/stack/logs<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">LOGDAYS=2<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">LOG_COLOR=true<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">CINDER_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">GLANCE_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">HORIZON_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">KEYSTONE_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">KEYSTONECLIENT_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">NOVA_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">NOVACLIENT_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">NEUTRON_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">SWIFT_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">I must get something wrong, please point it out for me.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Thank you in advance,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Lingyan Huang<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>