error happened when deleting a node from cluster

Bug #1537671 reported by Yanyan Hu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Fix Released
Undecided
Yanyan Hu

Bug Description

How to reproduce this error:

1. Create a nova server profile.:
    senlin profile-create -s example/profiles/nova_server.yaml p-nova-server
2. Create a cluster using this profile:
    senlin cluster-create -c 2 -p p-nova-server c-01
3. List nodes belong to cluster c-01 and delete one of them using 'senlin cluster-node-del' command:

The following error will happen:

2016-01-25 04:09:05.876 27731 INFO senlin.engine.event [req-1d3dabb9-8afe-4014-a884-fd9fbc6ba323 9336ef68abd74b6eb2b97a7cd54e81e0 1d567ed4ef51453a85545f018b68c26d - - - None] node_delete_93955aeb [f3dfb1a0] NODE_LEAVE - START: None
2016-01-25 04:09:05.977 27731 ERROR senlin.drivers.openstack.sdk [req-1d3dabb9-8afe-4014-a884-fd9fbc6ba323 9336ef68abd74b6eb2b97a7cd54e81e0 1d567ed4ef51453a85545f018b68c26d - - - None] server_metadata_get() got an unexpected keyword argument 'server_id'
2016-01-25 04:09:05.977 27731 TRACE senlin.drivers.openstack.sdk Traceback (most recent call last):
2016-01-25 04:09:05.977 27731 TRACE senlin.drivers.openstack.sdk File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/drivers/openstack/sdk.py", line 86, in invoke_with_catch
2016-01-25 04:09:05.977 27731 TRACE senlin.drivers.openstack.sdk return func(driver, *args, **kwargs)
2016-01-25 04:09:05.977 27731 TRACE senlin.drivers.openstack.sdk TypeError: server_metadata_get() got an unexpected keyword argument 'server_id'
2016-01-25 04:09:05.977 27731 TRACE senlin.drivers.openstack.sdk
2016-01-25 04:09:06.000 27731 ERROR senlin.engine.actions.base [req-1d3dabb9-8afe-4014-a884-fd9fbc6ba323 9336ef68abd74b6eb2b97a7cd54e81e0 1d567ed4ef51453a85545f018b68c26d - - - None] Unexpected exception occurred during action NODE_LEAVE (f3dfb1a0-6c72-4058-86ca-cd2bfce60646) execution: server_metadata_get() got an unexpected keyword argument 'server_id'
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base Traceback (most recent call last):
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/engine/actions/base.py", line 470, in ActionProc
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base result, reason = action.execute()
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/engine/actions/node_action.py", line 241, in execute
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base res, reason = self._execute()
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/engine/actions/node_action.py", line 203, in _execute
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base return method()
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/engine/actions/node_action.py", line 169, in do_leave
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base res = self.node.do_leave(self.context)
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/engine/node.py", line 346, in do_leave
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base profile_base.Profile.leave_cluster(context, self)
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/profiles/base.py", line 227, in leave_cluster
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base return profile.do_leave(obj)
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/profiles/os/nova/server.py", line 688, in do_leave
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base server_id=obj.physical_id) or {}
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/drivers/openstack/sdk.py", line 89, in invoke_with_catch
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base raise parse_exception(ex)
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/drivers/openstack/sdk.py", line 77, in parse_exception
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base raise senlin_exc.InternalError(code=code, message=message)
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base InternalError: server_metadata_get() got an unexpected keyword argument 'server_id'
2016-01-25 04:09:06.000 27731 TRACE senlin.engine.actions.base
2016-01-25 04:09:06.092 27731 ERROR senlin.engine.event [req-1d3dabb9-8afe-4014-a884-fd9fbc6ba323 9336ef68abd74b6eb2b97a7cd54e81e0 1d567ed4ef51453a85545f018b68c26d - - - None] node_delete_93955aeb [f3dfb1a0] NODE_LEAVE - FAILED: server_metadata_get() got an unexpected keyword argument 'server_id'
2016-01-25 04:09:08.873 27730 DEBUG senlin.engine.actions.cluster_action [req-1d3dabb9-8afe-4014-a884-fd9fbc6ba323 9336ef68abd74b6eb2b97a7cd54e81e0 1d567ed4ef51453a85545f018b68c26d - - - None] CLUSTER_DEL_NODES [2e512fe5] failed _wait_for_dependents /home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/engine/actions/cluster_action.py:80
2016-01-25 04:09:08.915 27730 ERROR senlin.engine.event [req-1d3dabb9-8afe-4014-a884-fd9fbc6ba323 9336ef68abd74b6eb2b97a7cd54e81e0 1d567ed4ef51453a85545f018b68c26d - - - None] cluster_del_nodes_35ec53c8 [2e512fe5] CLUSTER_DEL_NODES - FAILED: CLUSTER_DEL_NODES [2e512fe5] failed

Yanyan Hu (yanyanhu)
Changed in senlin:
assignee: nobody → Yanyan Hu (yanyanhu)
milestone: none → mitaka-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to senlin (master)

Fix proposed to branch: master
Review: https://review.openstack.org/271984

Changed in senlin:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to senlin (master)

Reviewed: https://review.openstack.org/271984
Committed: https://git.openstack.org/cgit/openstack/senlin/commit/?id=21ec4c242ba7b42738d49c4dd7291f42a47173e7
Submitter: Jenkins
Branch: master

commit 21ec4c242ba7b42738d49c4dd7291f42a47173e7
Author: yanyanhu <email address hidden>
Date: Mon Jan 25 04:57:40 2016 -0500

    Fix a bug about cluster-node-add/del

    This patch fixes a server_metadata related bug which influences
    both cluster-node-del and cluster-node-add operations.

    Change-Id: I7f898a68f5e0b165c44e370611bbb31ec8b2de63
    Closes-Bug: #1537671
    Closes-Bug: #1537685

Changed in senlin:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/senlin 1.0.0.0b3

This issue was fixed in the openstack/senlin 1.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.