Stack reported complete with Senlin Cluster resource create fails

Bug #1543722 reported by Charles Schulz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Confirmed
Undecided
zhaozhilong

Bug Description

When creating a stack consisting of only a OS::Senlin::Profile and OS::Senlin::Cluster Heat reports the stack status as CREATE-COMPLETE even though the Senlin cluster status is reported as ERROR.

[stack@X os-senlin]$ heat stack-create -f senlin_ocluster_oprofile.yaml socop
+--------------------------------------+------------+--------------------+---------------------+--------------+
| id | stack_name | stack_status | creation_time | updated_time |
+--------------------------------------+------------+--------------------+---------------------+--------------+
| 2d624744-9645-4d39-9f78-f142ef7f20b4 | socop | CREATE_IN_PROGRESS | 2016-02-09T18:11:08 | None |
+--------------------------------------+------------+--------------------+---------------------+--------------+
[stack@autoscale2 os-senlin]$ heat stack-list
+--------------------------------------+------------+-----------------+---------------------+--------------+
| id | stack_name | stack_status | creation_time | updated_time |
+--------------------------------------+------------+-----------------+---------------------+--------------+
| 2d624744-9645-4d39-9f78-f142ef7f20b4 | socop | CREATE_COMPLETE | 2016-02-09T18:11:08 | None |
+--------------------------------------+------------+-----------------+---------------------+--------------+
[stack@autoscale2 os-senlin]$ senlin cluster-list
+----------+-------+--------+------------+------------+
| id | name | status | created_at | updated_at |
+----------+-------+--------+------------+------------+
| 90973076 | socop | ERROR | None | None |
+----------+-------+--------+------------+------------+

[stack@X os-senlin]$ heat stack-show socop
+-----------------------+------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+-----------------------+------------------------------------------------------------------------------------------------------------------------+
| capabilities | [] |
| creation_time | 2016-02-09T18:11:08 |
| description | A heat stack using Senlin with profile and cluster |
| | definitions. |
| disable_rollback | True |
| id | 2d624744-9645-4d39-9f78-f142ef7f20b4 |
| links | http://10.114.223.72:8004/v1/626a5628b39c4506a7daeaa869dd66b7/stacks/socop/2d624744-9645-4d39-9f78-f142ef7f20b4 (self) |
| notification_topics | [] |
| outputs | [] |
| parameters | { |
| | "OS::project_id": "626a5628b39c4506a7daeaa869dd66b7", |
| | "OS::stack_id": "2d624744-9645-4d39-9f78-f142ef7f20b4", |
| | "OS::stack_name": "socop" |
| | } |
| parent | None |
| stack_name | socop |
| stack_owner | None |
| stack_status | CREATE_COMPLETE |
| stack_status_reason | Stack CREATE completed successfully |
| stack_user_project_id | 763146fb95ea4663bee294315b70cc2a |
| tags | None |
| template_description | A heat stack using Senlin with profile and cluster |
| | definitions. |
| timeout_mins | None |
| updated_time | None |
+-----------------------+------------------------------------------------------------------------------------------------------------------------+
[stack@X os-senlin]$ senlin cluster-show socop
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| created_at | None |
| data | {} |
| desired_capacity | 2 |
| domain | None |
| id | 90973076-9c04-41fa-8562-6c5af87b88ff |
| init_at | 2016-02-09T18:11:09 |
| max_size | 3 |
| metadata | {} |
| min_size | 1 |
| name | socop |
| nodes | 2718cd5e-53e4-4dcc-92bb-dfc32682c998 |
| | eec0150d-7b38-43f9-9c94-102c6c3f5bf7 |
| policies | [] |
| profile_id | 7b7b53a5-9d10-4f75-8236-f0a012a8a2fe |
| profile_name | socop-oprofile-y34ywrawzu64 |
| project | 626a5628b39c4506a7daeaa869dd66b7 |
| status | ERROR |
| status_reason | CLUSTER_CREATE [c5082993] failed |
| timeout | 60 |
| updated_at | None |
| user | 6fa095d680f84800afe03c95f6af0839 |
+------------------+--------------------------------------+

[stack@X os-senlin]$ cat senlin_ocluster_oprofile.yaml
heat_template_version: 2013-05-23
description: "A heat stack using Senlin with profile and cluster definitions."
resources:
  ocluster:
    type: "OS::Senlin::Cluster"
    properties:
      desired_capacity: 2
      max_size: 3
      min_size: 1
      name: {get_param: 'OS::stack_name'}
      profile: {get_resource: oprofile}
      timeout: 60

  oprofile:
    type: OS::Senlin::Profile
    properties:
      spec: '{"type":"os.nova.server","version":"1.0","properties":{"name":"cirros_server","flavor":1,"image":"cirros-0.3.4-x86_64-uec","key_name":"oskey","networks":[{"network":"private"}]}}'
    [stack@X os-senlin]$

[stack@X ~]$ cd heat
[stack@autoscale2 heat]$ git log HEAD | sed '1,3!d'
commit 278e7a67be570d174eea8037bdf2ae42f8aac0fc
Merge: 905203b 45ae1b7
Author: Jenkins <email address hidden>
[stack@X heat]$

Changed in heat:
assignee: nobody → zhaozhilong (zhaozhilong)
Changed in heat:
status: New → Confirmed
Revision history for this message
Ethan Lynn (ethanlynn) wrote :

Hi zhilong, could you confirm that if this bug still happen in latest codes?

Revision history for this message
zhaozhilong (zhaozhilong) wrote :

Ok,I will check it late.
@Ethan Lynn

Qiming Teng (tengqim)
no longer affects: senlin
Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
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.