<div dir="ltr">--force will be better, in my opinion.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 13, 2017 at 1:23 PM,  <span dir="ltr"><<a href="mailto:liu.xuefeng1@zte.com.cn" target="_blank">liu.xuefeng1@zte.com.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_8186554775819458774zcontentRow"> <div style="font-size:12px;font-family:arial"><p><br></p><p>Or we can add status update for cluster/node and so on<br></p><p><br></p></div><div><div class="m_8186554775819458774zhistoryRow" style="display:block"><div class="m_8186554775819458774zhistoryDes" style="width:100%;height:28px;line-height:28px;background-color:#e0e5e9;color:#1388ff;text-align:center">原始邮件</div><div id="m_8186554775819458774zwriteHistoryContainer"><div class="m_8186554775819458774control-group m_8186554775819458774zhistoryPanel"><div class="m_8186554775819458774zhistoryHeader" style="padding:8px;background-color:#f5f6f8"><div><strong>发件人:</strong><span class="m_8186554775819458774zreadUserName"> <<a href="mailto:tengqim@linux.vnet.ibm.com" target="_blank">tengqim@linux.vnet.ibm.com</a>>;</span></div><div><strong>收件人:</strong><span class="m_8186554775819458774zreadUserName" style="display:inline"> <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.<wbr>openstack.org</a>>;</span></div><div><strong>日 期 :</strong><span>2017年09月13日 12:26</span></div><div><strong>主 题 :</strong><span class="m_8186554775819458774zreadTitle"><strong>Re: [openstack-dev] [senlin] How to delete cluster in the state of'DELEING'</strong></span></div></div><p class="m_8186554775819458774zhistoryContent"><br></p><div><span class="">You killed mysql? Okay ...<br><br>Seems we need to add a "--<wbr>force" parameter to the <wbr>delete operation.<br><br>- Qiming<br><br>On Tue, Sep 12, 2017 at 09:14:<wbr>25PM +0800, Lee Yi wrote:<br>> When deleting a cluster <wbr>named 'server_cluster', I <wbr>shutdown mysql service.<br>> And then the status of <wbr>cluster will be 'DELETING' <wbr>forever, like follow:<br>> <br></span>> {0}nbsp;openstack cluster <wbr>list<span class=""><br>> +----------+----------------<wbr>+----------+------------------<wbr>--<br>> --+----------------------+<br>> | id       | name           <wbr>| status   | created_at       <wbr>    | updated_at<br>>           |<br>> +----------+----------------<wbr>+----------+------------------<wbr>--<br>> --+----------------------+<br>> | 672d043f | server_cluster <wbr>| DELETING | 2017-09-12T10:52:<wbr>16Z |<br>> 2017-09-12T11:16:15Z |<br>> +----------+----------------<wbr>+----------+------------------<wbr>--<br>> --+----------------------+<br>> <br>> I can't  delete it again, <wbr>because:<br>> <br></span>> {0}nbsp;openstack cluster <wbr>delete server_cluster<span class=""><br>> Are you sure you want to <wbr>delete this cluster(s) [y/N]?y<br>>  server_cluster: failed due <wbr>to 'HttpException: The <wbr>cluster 'server_cluster'<br>> is in status DELETING. (<wbr>HTTP 409) (Request-ID:<br>> req-42eeda10-9055-40c2-b690-<wbr>5627ac555922),<br>> The cluster 'server_cluster'<wbr> is in status DELETING.'<br>> <br>> And the action is in <wbr>WAITING status:<br>> <br></span>> {0}nbsp;openstack cluster <wbr>action show d36fc6b5-ac5e-<wbr>460e-85dc-afdb680f3242<div><div class="h5"><br>> +---------------+-----------<wbr>---------------------------+<br>> | Field         | Value     <wbr>                           |<br>> +---------------+-----------<wbr>---------------------------+<br>> | action        | CLUSTER_<wbr>DELETE                       |<br>> | cause         | RPC <wbr>Request                       <wbr>   |<br>> | created_at    | 2017-09-<wbr>12T11:16:15Z                 |<br>> | depended_by   |           <wbr>                           |<br>> | depends_on    | d0f6e1c0-<wbr>491f-4318-9cc2-41ae2028b99f |<br>> | domain_id     | None      <wbr>                           |<br>> | end_at        | None      <wbr>                           |<br>> | id            | d36fc6b5-<wbr>ac5e-460e-85dc-afdb680f3242 |<br>> | inputs        | {}        <wbr>                           |<br>> | interval      | -1        <wbr>                           |<br>> | location      | None      <wbr>                           |<br>> | name          | cluster_<wbr>delete_672d043f              |<br>> | outputs       | {}        <wbr>                           |<br>> | owner_id      | 9dd42d67-<wbr>f0c6-4199-8c4f-15f3cd88683b |<br>> | project_id    | <wbr>3adeed30eb694bdd98257b294120e5<wbr>95     |<br>> | start_at      | <wbr>1505214976.0                  <wbr>       |<br>> | status        | WAITING   <wbr>                           |<br>> | status_reason | Waiting <wbr>for depended actions.        |<br>> | target_id     | 672d043f-<wbr>ef7b-4a7a-a41a-176a9929296e |<br>> | timeout       | 3600      <wbr>                           |<br>> | updated_at    | None      <wbr>                           |<br>> | user_id       | <wbr>4b805d08ec1644ef8f69078ddd5994<wbr>1c     |<br>> +---------------+-----------<wbr>---------------------------+<br>> <br>> What can I do about this <wbr>cluster, and how to delete it <wbr>again.<br>> <br>> Obviously, I can modify the <wbr>code (<br>> <a href="https://github.com/openstack/senlin/blob/master/senlin/engine/service.py#L878-L881" target="_blank">https://github.com/<wbr>openstack/senlin/blob/master/<wbr>senlin/engine/service.py#L878-<wbr>L881</a>)<br>> to support to delete the <wbr>cluster again, but I don't <wbr>think it's the best way.<br>> <br>> The same problems exist  <wbr>when do other actions.<br>> <br>> Any suggestion?<br><br>> ____________________________<wbr>______________________________<wbr>________________<br>> OpenStack Development <wbr>Mailing List (not for usage <wbr>questions)<br>> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-<wbr>request@lists.openstack.org?<wbr>subject:unsubscribe</a><br>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br><br><br>______________________________<wbr>______________________________<wbr>______________<br>OpenStack Development Mailing <wbr>List (not for usage questions)<br>Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-<wbr>request@lists.openstack.org?<wbr>subject:unsubscribe</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br></div></div></div><p><br></p></div></div></div></div><p><br></p> </div><br>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
<br></blockquote></div><br></div>