Stack reported complete with Senlin Cluster resource create fails
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_
+------
| id | stack_name | stack_status | creation_time | updated_time |
+------
| 2d624744-
+------
[stack@autoscale2 os-senlin]$ heat stack-list
+------
| id | stack_name | stack_status | creation_time | updated_time |
+------
| 2d624744-
+------
[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-
| links | http://
| notification_topics | [] |
| outputs | [] |
| parameters | { |
| | "OS::project_id": "626a5628b39c45
| | "OS::stack_id": "2d624744-
| | "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_
| tags | None |
| template_
| | 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-
| init_at | 2016-02-09T18:11:09 |
| max_size | 3 |
| metadata | {} |
| min_size | 1 |
| name | socop |
| nodes | 2718cd5e-
| | eec0150d-
| policies | [] |
| profile_id | 7b7b53a5-
| profile_name | socop-oprofile-
| project | 626a5628b39c450
| status | ERROR |
| status_reason | CLUSTER_CREATE [c5082993] failed |
| timeout | 60 |
| updated_at | None |
| user | 6fa095d680f8480
+------
[stack@X os-senlin]$ cat senlin_
heat_template_
description: "A heat stack using Senlin with profile and cluster definitions."
resources:
ocluster:
type: "OS::Senlin:
properties:
desired_
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"
[stack@X os-senlin]$
[stack@X ~]$ cd heat
[stack@autoscale2 heat]$ git log HEAD | sed '1,3!d'
commit 278e7a67be570d1
Merge: 905203b 45ae1b7
Author: Jenkins <email address hidden>
[stack@X heat]$
Changed in heat: | |
assignee: | nobody → zhaozhilong (zhaozhilong) |
Changed in heat: | |
status: | New → Confirmed |
no longer affects: | senlin |
Changed in heat: | |
milestone: | none → no-priority-tag-bugs |
Hi zhilong, could you confirm that if this bug still happen in latest codes?