Error happened when creating cluster with nova-server profile

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

Bug Description

1. Create nova server profile:
> senlin profile-create -s examples/profiles/nova_server.yaml p-nova-server

2. Create a cluster using nova server profile:
> senlin cluster-create -p p-nova-server -c 1 c-01

The following error happened during cluster creation:

2016-01-18 01:21:50.192 2464 ERROR senlin.engine.actions.base [req-79720735-7dd5-429f-ac8d-08c5cdbcd2f8 9336ef68abd74b6eb2b97a7cd54e81e0 1d567ed4ef51453a85545f018b68c26d - - - None] Unexpected exception occurred during action NODE_CREATE (84693196-a601-4b86-b252-489405ea9fe5) execution: 'unicode' object has no attribute 'id'
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base Traceback (most recent call last):
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/engine/actions/base.py", line 469, in ActionProc
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base result, reason = action.execute()
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/engine/actions/node_action.py", line 217, in execute
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base res, reason = self._execute()
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/engine/actions/node_action.py", line 179, in _execute
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base return method()
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/engine/actions/node_action.py", line 67, in do_create
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base res = self.node.do_create(self.context)
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/engine/node.py", line 250, in do_create
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base physical_id = profile_base.Profile.create_object(context, self)
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/profiles/base.py", line 190, in create_object
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base profile = cls.load(ctx, obj.profile_id)
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/profiles/base.py", line 143, in load
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base return cls.from_db_record(profile)
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base File "/home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/profiles/base.py", line 119, in from_db_record
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base 'id': record.id,
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base AttributeError: 'unicode' object has no attribute 'id'
2016-01-18 01:21:50.192 2464 TRACE senlin.engine.actions.base
2016-01-18 01:21:50.212 2465 DEBUG oslo_messaging._drivers.amqpdriver [-] received reply msg_id: 30e6bd64e05d4df798d956d3cb6724d9 __call__ /home/stack/huyanyan/python/virtualenv/SENLINENV/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py:294
2016-01-18 01:21:50.227 2465 DEBUG senlin.engine.actions.cluster_action [req-79720735-7dd5-429f-ac8d-08c5cdbcd2f8 9336ef68abd74b6eb2b97a7cd54e81e0 1d567ed4ef51453a85545f018b68c26d - - - None] CLUSTER_CREATE [bf75f720] failed _wait_for_dependents /home/stack/huyanyan/openstack_repo/openstack/senlin/senlin/engine/actions/cluster_action.py:81
2016-01-18 01:21:50.229 2464 ERROR senlin.engine.event [req-79720735-7dd5-429f-ac8d-08c5cdbcd2f8 9336ef68abd74b6eb2b97a7cd54e81e0 1d567ed4ef51453a85545f018b68c26d - - - None] node_create_d399be8c [84693196] NODE_CREATE - FAILED: 'unicode' object has no attribute 'id'
2016-01-18 01:21:50.286 2465 ERROR senlin.engine.event [req-79720735-7dd5-429f-ac8d-08c5cdbcd2f8 9336ef68abd74b6eb2b97a7cd54e81e0 1d567ed4ef51453a85545f018b68c26d - - - None] cluster_create_d55e8ed3 [bf75f720] CLUSTER_CREATE - FAILED: CLUSTER_CREATE [bf75f720] failed

Yanyan Hu (yanyanhu)
Changed in senlin:
assignee: nobody → Yanyan Hu (yanyanhu)
Yanyan Hu (yanyanhu)
Changed in senlin:
milestone: none → mitaka-2
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/268895

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

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

commit ee54faf1b25bfe77c2851f0d5ffd312f92b77046
Author: yanyanhu <email address hidden>
Date: Mon Jan 18 01:38:13 2016 -0500

    Fix a bug in profile base module

    This patch fixes a bug in profile base module which is caused by
    incorrect profile_id parameter transmission.

    Change-Id: I12c7e0d4576d28aa18438f009cacdac3cc91d671
    Closes-Bug: #1535192

Changed in senlin:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/senlin 1.0.0.0b2

This issue was fixed in the openstack/senlin 1.0.0.0b2 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.