<html><head><meta http-equiv="content-type" content="text/html; charset=GB2312"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Hi,</div><div><br></div><div>In nova/compute/api.py I see</div><div><pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:'ËÎÌå';font-size:10.5pt;">@<span style="color:#bbb529;">check_instance_state</span>(<span style="color:#aa4926;">vm_state</span>=[<span style="background-color:#344134;">vm_states</span>.ACTIVE<span style="color:#cc7832;">, </span><span style="background-color:#344134;">vm_states</span>.STOPPED<span style="color:#cc7832;">,<br></span><span style="color:#cc7832;">                                </span><span style="background-color:#344134;">vm_states</span>.ERROR])<br><span style="color:#cc7832;font-weight:bold;">def </span><span style="font-weight:bold;">evacuate</span>(<span style="color:#94558d;">self</span><span style="color:#cc7832;">, </span>context<span style="color:#cc7832;">, </span>instance<span style="color:#cc7832;">, </span>host<span style="color:#cc7832;">, </span>on_shared_storage<span style="color:#cc7832;">,<br></span><span style="color:#cc7832;">             </span>admin_password=<span style="color:#cc7832;font-weight:bold;">None</span>):</pre></div>
<div>Does anyone know the reason for only evacuate <span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">ACTIVE,STOPPED,ERROR vms?</span></div><div><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">I find the error state were added due to </span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"></span><a href="https://bugs.launchpad.net/nova/+bug/1298061." microsoft="" yahei="" ui'";="" font-size:="" 14px;="" font-weight:="" normal;="" font-style:="" normal;'="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">https://bugs.launchpad.net/nova/+bug/1298061.</a><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"> </span></div><div><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">Can we alos evacuate vm in state like suspend or others?</span></div><div><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""></span><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>openstack_eagle@163.com</div></div></span></div>
</body></html>