settingsLogin | Registersettings

[openstack-dev] 答复: Re: [senlin] How to delete cluster in the state of'DELEING'

0 votes

Or we can add status update for cluster/node and so on

原始邮件

发件人: tengqim@linux.vnet.ibm.com
收件人: openstack-dev@lists.openstack.org
日 期 :2017年09月13日 12:26
主 题 :Re: [openstack-dev] [senlin] How to delete cluster in the state of'DELEING'

You killed mysql? Okay ...

Seems we need to add a "--force" parameter to the delete operation.

  • Qiming

On Tue, Sep 12, 2017 at 09:14:25PM +0800, Lee Yi wrote:

When deleting a cluster named 'server_cluster', I shutdown mysql service.
And then the status of cluster will be 'DELETING' forever, like follow:

{0}nbspopenstack cluster list
+----------+----------------+----------+--------------------
--+----------------------+
| id | name | status | createdat | updatedat
|
+----------+----------------+----------+--------------------
--+----------------------+
| 672d043f | server_cluster | DELETING | 2017-09-12T10:52:16Z |
2017-09-12T11:16:15Z |
+----------+----------------+----------+--------------------
--+----------------------+

I can't delete it again, because:

{0}nbspopenstack cluster delete servercluster
Are you sure you want to delete this cluster(s) [y/N]?y
server
cluster: failed due to 'HttpException: The cluster 'servercluster'
is in status DELETING. (HTTP 409) (Request-ID:
req-42eeda10-9055-40c2-b690-5627ac555922),
The cluster 'server
cluster' is in status DELETING.'

And the action is in WAITING status:

{0}nbspopenstack cluster action show d36fc6b5-ac5e-460e-85dc-afdb680f3242
+---------------+--------------------------------------+
| Field | Value |
+---------------+--------------------------------------+
| action | CLUSTERDELETE |
| cause | RPC Request |
| created
at | 2017-09-12T11:16:15Z |
| dependedby | |
| depends
on | d0f6e1c0-491f-4318-9cc2-41ae2028b99f |
| domainid | None |
| end
at | None |
| id | d36fc6b5-ac5e-460e-85dc-afdb680f3242 |
| inputs | {} |
| interval | -1 |
| location | None |
| name | clusterdelete672d043f |
| outputs | {} |
| ownerid | 9dd42d67-f0c6-4199-8c4f-15f3cd88683b |
| project
id | 3adeed30eb694bdd98257b294120e595 |
| startat | 1505214976.0 |
| status | WAITING |
| status
reason | Waiting for depended actions. |
| targetid | 672d043f-ef7b-4a7a-a41a-176a9929296e |
| timeout | 3600 |
| updated
at | None |
| user_id | 4b805d08ec1644ef8f69078ddd59941c |
+---------------+--------------------------------------+

What can I do about this cluster, and how to delete it again.

Obviously, I can modify the code (
https://github.com/openstack/senlin/blob/master/senlin/engine/service.py#L878-L881)
to support to delete the cluster again, but I don't think it's the best way.

The same problems exist when do other actions.

Any suggestion?


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
asked Sep 13, 2017 in openstack-dev by liu.xuefeng1_at_zte. (320 points)  

5 Responses

0 votes

You killed mysql? Okay ...

Seems we need to add a "--force" parameter to the delete operation.

  • Qiming

On Tue, Sep 12, 2017 at 09:14:25PM +0800, Lee Yi wrote:
When deleting a cluster named 'server_cluster', I shutdown mysql service.
And then the status of cluster will be 'DELETING' forever, like follow:

$ openstack cluster list
+----------+----------------+----------+--------------------
--+----------------------+
| id | name | status | createdat | updatedat
|
+----------+----------------+----------+--------------------
--+----------------------+
| 672d043f | server_cluster | DELETING | 2017-09-12T10:52:16Z |
2017-09-12T11:16:15Z |
+----------+----------------+----------+--------------------
--+----------------------+

I can't delete it again, because:

$ openstack cluster delete servercluster
Are you sure you want to delete this cluster(s) [y/N]?y
server
cluster: failed due to 'HttpException: The cluster 'servercluster'
is in status DELETING. (HTTP 409) (Request-ID:
req-42eeda10-9055-40c2-b690-5627ac555922),
The cluster 'server
cluster' is in status DELETING.'

And the action is in WAITING status:

$ openstack cluster action show d36fc6b5-ac5e-460e-85dc-afdb680f3242
+---------------+--------------------------------------+
| Field | Value |
+---------------+--------------------------------------+
| action | CLUSTERDELETE |
| cause | RPC Request |
| created
at | 2017-09-12T11:16:15Z |
| dependedby | |
| depends
on | d0f6e1c0-491f-4318-9cc2-41ae2028b99f |
| domainid | None |
| end
at | None |
| id | d36fc6b5-ac5e-460e-85dc-afdb680f3242 |
| inputs | {} |
| interval | -1 |
| location | None |
| name | clusterdelete672d043f |
| outputs | {} |
| ownerid | 9dd42d67-f0c6-4199-8c4f-15f3cd88683b |
| project
id | 3adeed30eb694bdd98257b294120e595 |
| startat | 1505214976.0 |
| status | WAITING |
| status
reason | Waiting for depended actions. |
| targetid | 672d043f-ef7b-4a7a-a41a-176a9929296e |
| timeout | 3600 |
| updated
at | None |
| user_id | 4b805d08ec1644ef8f69078ddd59941c |
+---------------+--------------------------------------+

What can I do about this cluster, and how to delete it again.

Obviously, I can modify the code (
https://github.com/openstack/senlin/blob/master/senlin/engine/service.py#L878-L881)
to support to delete the cluster again, but I don't think it's the best way.

The same problems exist when do other actions.

Any suggestion?


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Sep 13, 2017 by Qiming_Teng (7,380 points)   3 9 12
0 votes

When deleting a cluster named 'server_cluster', I shutdown mysql service.
And then the status of cluster will be 'DELETING' forever, like follow:

$ openstack cluster list
+----------+----------------+----------+--------------------
--+----------------------+
| id | name | status | createdat | updatedat
|
+----------+----------------+----------+--------------------
--+----------------------+
| 672d043f | server_cluster | DELETING | 2017-09-12T10:52:16Z |
2017-09-12T11:16:15Z |
+----------+----------------+----------+--------------------
--+----------------------+

I can't delete it again, because:

$ openstack cluster delete servercluster
Are you sure you want to delete this cluster(s) [y/N]?y
server
cluster: failed due to 'HttpException: The cluster 'servercluster'
is in status DELETING. (HTTP 409) (Request-ID:
req-42eeda10-9055-40c2-b690-5627ac555922),
The cluster 'server
cluster' is in status DELETING.'

And the action is in WAITING status:

$ openstack cluster action show d36fc6b5-ac5e-460e-85dc-afdb680f3242
+---------------+--------------------------------------+
| Field | Value |
+---------------+--------------------------------------+
| action | CLUSTERDELETE |
| cause | RPC Request |
| created
at | 2017-09-12T11:16:15Z |
| dependedby | |
| depends
on | d0f6e1c0-491f-4318-9cc2-41ae2028b99f |
| domainid | None |
| end
at | None |
| id | d36fc6b5-ac5e-460e-85dc-afdb680f3242 |
| inputs | {} |
| interval | -1 |
| location | None |
| name | clusterdelete672d043f |
| outputs | {} |
| ownerid | 9dd42d67-f0c6-4199-8c4f-15f3cd88683b |
| project
id | 3adeed30eb694bdd98257b294120e595 |
| startat | 1505214976.0 |
| status | WAITING |
| status
reason | Waiting for depended actions. |
| targetid | 672d043f-ef7b-4a7a-a41a-176a9929296e |
| timeout | 3600 |
| updated
at | None |
| user_id | 4b805d08ec1644ef8f69078ddd59941c |
+---------------+--------------------------------------+

What can I do about this cluster, and how to delete it again.

Obviously, I can modify the code (
https://github.com/openstack/senlin/blob/master/senlin/engine/service.py#L878-L881)
to support to delete the cluster again, but I don't think it's the best way.

The same problems exist when do other actions.

Any suggestion?


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Sep 13, 2017 by Lee_Yi (300 points)  
0 votes

Sounds good! We delete this cluster in any status if set --force True.

I will do it.

On Wed, Sep 13, 2017 at 12:21 PM, Qiming Teng tengqim@linux.vnet.ibm.com
wrote:

You killed mysql? Okay ...

Seems we need to add a "--force" parameter to the delete operation.

  • Qiming

On Tue, Sep 12, 2017 at 09:14:25PM +0800, Lee Yi wrote:

When deleting a cluster named 'server_cluster', I shutdown mysql service.
And then the status of cluster will be 'DELETING' forever, like follow:

$ openstack cluster list
+----------+----------------+----------+--------------------
--+----------------------+
| id | name | status | createdat |
updated
at
|
+----------+----------------+----------+--------------------
--+----------------------+
| 672d043f | server_cluster | DELETING | 2017-09-12T10:52:16Z |
2017-09-12T11:16:15Z |
+----------+----------------+----------+--------------------
--+----------------------+

I can't delete it again, because:

$ openstack cluster delete servercluster
Are you sure you want to delete this cluster(s) [y/N]?y
server
cluster: failed due to 'HttpException: The cluster
'servercluster'
is in status DELETING. (HTTP 409) (Request-ID:
req-42eeda10-9055-40c2-b690-5627ac555922),
The cluster 'server
cluster' is in status DELETING.'

And the action is in WAITING status:

$ openstack cluster action show d36fc6b5-ac5e-460e-85dc-afdb680f3242
+---------------+--------------------------------------+
| Field | Value |
+---------------+--------------------------------------+
| action | CLUSTERDELETE |
| cause | RPC Request |
| created
at | 2017-09-12T11:16:15Z |
| dependedby | |
| depends
on | d0f6e1c0-491f-4318-9cc2-41ae2028b99f |
| domainid | None |
| end
at | None |
| id | d36fc6b5-ac5e-460e-85dc-afdb680f3242 |
| inputs | {} |
| interval | -1 |
| location | None |
| name | clusterdelete672d043f |
| outputs | {} |
| ownerid | 9dd42d67-f0c6-4199-8c4f-15f3cd88683b |
| project
id | 3adeed30eb694bdd98257b294120e595 |
| startat | 1505214976.0 |
| status | WAITING |
| status
reason | Waiting for depended actions. |
| targetid | 672d043f-ef7b-4a7a-a41a-176a9929296e |
| timeout | 3600 |
| updated
at | None |
| user_id | 4b805d08ec1644ef8f69078ddd59941c |
+---------------+--------------------------------------+

What can I do about this cluster, and how to delete it again.

Obviously, I can modify the code (
https://github.com/openstack/senlin/blob/master/senlin/
engine/service.py#L878-L881)
to support to delete the cluster again, but I don't think it's the best
way.

The same problems exist when do other actions.

Any suggestion?



OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:
unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Sep 13, 2017 by Lee_Yi (300 points)  
0 votes

--force will be better, in my opinion.

On Wed, Sep 13, 2017 at 1:23 PM, liu.xuefeng1@zte.com.cn wrote:

Or we can add status update for cluster/node and so on

原始邮件
发件人: tengqim@linux.vnet.ibm.com;
收件人: openstack-dev@lists.openstack.org;
日 期 :2017年09月13日 12:26
*主 题 :**Re: [openstack-dev] [senlin] How to delete cluster in the state
of'DELEING'*

You killed mysql? Okay ...

Seems we need to add a "--force" parameter to the delete operation.

  • Qiming

On Tue, Sep 12, 2017 at 09:14:25PM +0800, Lee Yi wrote:

When deleting a cluster named 'server_cluster', I
shutdown mysql service.
And then the status of cluster will be 'DELETING' forever, like follow:

{0}nbsp;openstack cluster list
+----------+----------------+----------+--------------------
--+----------------------+
| id | name | status | createdat
| updated
at
|
+----------+----------------+----------+--------------------
--+----------------------+
| 672d043f | server_cluster | DELETING | 2017-09-12T10:52:16Z |
2017-09-12T11:16:15Z |
+----------+----------------+----------+--------------------
--+----------------------+

I can't delete it again, because:

{0}nbsp;openstack cluster delete servercluster
Are you sure you want to delete this cluster(s) [y/N]?y
server
cluster: failed due to 'HttpException: The
cluster 'servercluster'
is in status DELETING. (HTTP 409) (Request-ID:
req-42eeda10-9055-40c2-b690-5627ac555922),
The cluster 'server
cluster' is in status DELETING.'

And the action is in WAITING status:

{0}nbsp;openstack cluster action show d36fc6b5-ac5e-
460e-85dc-afdb680f3242

+---------------+--------------------------------------+
| Field | Value |
+---------------+--------------------------------------+
| action | CLUSTERDELETE |
| cause | RPC Request |
| created
at | 2017-09-12T11:16:15Z |
| dependedby | |
| depends
on | d0f6e1c0-491f-4318-9cc2-41ae2028b99f |
| domainid | None |
| end
at | None |
| id | d36fc6b5-ac5e-460e-85dc-afdb680f3242 |
| inputs | {} |
| interval | -1 |
| location | None |
| name | clusterdelete672d043f |
| outputs | {} |
| ownerid | 9dd42d67-f0c6-4199-8c4f-15f3cd88683b |
| project
id | 3adeed30eb694bdd98257b294120e595 |
| startat | 1505214976.0 |
| status | WAITING |
| status
reason | Waiting for depended actions. |
| targetid | 672d043f-ef7b-4a7a-a41a-176a9929296e |
| timeout | 3600 |
| updated
at | None |
| user_id | 4b805d08ec1644ef8f69078ddd59941c |
+---------------+--------------------------------------+

What can I do about this cluster, and how to delete it again.

Obviously, I can modify the code (
https://github.com/openstack/senlin/blob/master/
senlin/engine/service.py#L878-L881)
to support to delete the cluster again, but I don't
think it's the best way.

The same problems exist when do other actions.

Any suggestion?



OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?
subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Sep 13, 2017 by Lee_Yi (300 points)  
0 votes

Vote for '--force'. Status update operation smells an overkill in this
case.

  • Qiming
    On Wed, Sep 13, 2017 at 01:37:44PM +0800, Lee Yi wrote:
    > --force will be better, in my opinion.
    >
    > On Wed, Sep 13, 2017 at 1:23 PM, liu.xuefeng1@zte.com.cn wrote:
    >
    > > You killed mysql? Okay ...
    > >
    > > Seems we need to add a "--force" parameter to the delete operation.
    > >
    > > - Qiming
    > >
    > > On Tue, Sep 12, 2017 at 09:14:25PM +0800, Lee Yi wrote:
    > > > When deleting a cluster named 'servercluster', I
    > > shutdown mysql service.
    > > > And then the status of cluster will be 'DELETING' forever, like follow:
    > > >
    > > > {0}nbsp;openstack cluster list
    > > > +----------+----------------+----------+--------------------
    > > > --+----------------------+
    > > > | id | name | status | created
    at
    > > | updatedat
    > > > |
    > > > +----------+----------------+----------+--------------------
    > > > --+----------------------+
    > > > | 672d043f | server
    cluster | DELETING | 2017-09-12T10:52:16Z |
    > > > 2017-09-12T11:16:15Z |
    > > > +----------+----------------+----------+--------------------
    > > > --+----------------------+
    > > >
    > > > I can't delete it again, because:
    > > >
    > > > {0}nbsp;openstack cluster delete servercluster
    > > > Are you sure you want to delete this cluster(s) [y/N]?y
    > > > server
    cluster: failed due to 'HttpException: The
    > > cluster 'servercluster'
    > > > is in status DELETING. (HTTP 409) (Request-ID:
    > > > req-42eeda10-9055-40c2-b690-5627ac555922),
    > > > The cluster 'server
    cluster' is in status DELETING.'
    > > >
    > > > And the action is in WAITING status:
    > > >
    > > > {0}nbsp;openstack cluster action show d36fc6b5-ac5e-
    > > 460e-85dc-afdb680f3242
    > >
    > > > +---------------+--------------------------------------+
    > > > | Field | Value |
    > > > +---------------+--------------------------------------+
    > > > | action | CLUSTERDELETE |
    > > > | cause | RPC Request |
    > > > | created
    at | 2017-09-12T11:16:15Z |
    > > > | dependedby | |
    > > > | depends
    on | d0f6e1c0-491f-4318-9cc2-41ae2028b99f |
    > > > | domainid | None |
    > > > | end
    at | None |
    > > > | id | d36fc6b5-ac5e-460e-85dc-afdb680f3242 |
    > > > | inputs | {} |
    > > > | interval | -1 |
    > > > | location | None |
    > > > | name | clusterdelete672d043f |
    > > > | outputs | {} |
    > > > | ownerid | 9dd42d67-f0c6-4199-8c4f-15f3cd88683b |
    > > > | project
    id | 3adeed30eb694bdd98257b294120e595 |
    > > > | startat | 1505214976.0 |
    > > > | status | WAITING |
    > > > | status
    reason | Waiting for depended actions. |
    > > > | targetid | 672d043f-ef7b-4a7a-a41a-176a9929296e |
    > > > | timeout | 3600 |
    > > > | updated
    at | None |
    > > > | user_id | 4b805d08ec1644ef8f69078ddd59941c |
    > > > +---------------+--------------------------------------+
    > > >
    > > > What can I do about this cluster, and how to delete it again.
    > > >
    > > > Obviously, I can modify the code (
    > > > https://github.com/openstack/senlin/blob/master/
    > > senlin/engine/service.py#L878-L881)
    > > > to support to delete the cluster again, but I don't
    > > think it's the best way.
    > > >
    > > > The same problems exist when do other actions.
    > > >
    > > > Any suggestion?
    > >
    > > > __________________________________________________________
    > > ________________


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Sep 15, 2017 by Qiming_Teng (7,380 points)   3 9 12
...