stack update failed due to AttributeError: 'NoneType' object has no attribute 'properties'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Low
|
Angus Salkeld |
Bug Description
I try same stack update cases on different resource type , it is failed for below cases:
Note:
1. all the cases base on YAML format heat template
2. all the case pass the stack create , but failed on stack update.
3. all the exception trace back log in engine.log file show same reason for the failed cases.
case1 :
1) create a stack named "stack_test" with only one resource type "OS::Heat:
2) update this template, add a new resource type "OS::Heat:
3) run "stack-update -f template_file stack_test" >>>> failed
I think the expected result should be an new resource "yy" create success and the nova instances which belong to this resource create success as well.
case2 :
1) create a stack named "stack_test" with only one resource type "OS::Heat:
2) update this template, change the value of "Size", such as 1 --- > 2
3) run "stack-update -f template_file stack_test" >>>> failed
I think the expected result should be one nova instance which belong to this resource create success.
case3:
1) create a stack named "stack_test" with resource type "AWS::AutoScali
[root@xhu01 heat_action_test]# more autoscalinggrou
heat_template_
resources:
my_config:
type: AWS::AutoScalin
properties:
ImageId: xx
InstanceType: xhu.test
my_asg:
type: AWS::AutoScalin
properties:
Availabil
MinSize: 1
MaxSize: 3
DesiredCa
LaunchCon
[root@xhu01 heat_action_test]
2) update this template, add new resource "OS::Heat:
[root@xhu01 heat_action_test]# more autoscalinggrou
heat_template_
resources:
my_config:
type: AWS::AutoScalin
properties:
ImageId: xx
InstanceType: xhu.test
my_asg:
type: AWS::AutoScalin
properties:
Availabil
MinSize: 2
MaxSize: 3
DesiredCa
LaunchCon
your_config:
type: AWS::AutoScalin
properties:
ImageId: xx
InstanceType: xhu.test
your_asg:
type: AWS::AutoScalin
properties:
Availabil
MinSize: 2
MaxSize: 3
DesiredCa
LaunchCon
3) run "stack-update -f template_file stack_test" >>>> failed
I think the expected result should be new resource "your_asg" create success, and 3 nova instances which belong to this resource create success.
case4:
1) base on case 3 step 1)
2) update this template, change the value of "DesiredCapacity", such as 1 --- > 2
3) run "stack-update -f template_file stack_test" >>>> failed
I think the expected result should be one nova instances which belong to "my_asg" create success.
the engine.log :
2014-09-30 18:08:29.029 21787 INFO heat.engine.
2014-09-30 18:08:29.055 21787 INFO heat.engine.
2014-09-30 18:08:29.100 21787 INFO heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
2014-09-30 18:08:29.100 21787 TRACE heat.engine.
I don't see the my test way/step has issue, basically, I refer to http://
Changed in heat: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in heat: | |
status: | New → Triaged |
importance: | Undecided → Low |
assignee: | nobody → Angus Salkeld (asalkeld) |
milestone: | none → next |
Changed in heat: | |
status: | Fix Committed → Fix Released |
I have reproduced this and can add:
heat event-list st ------- --+---- ------- ------- ------- ------- ------+ ------- ------- ------- ------- ------- ------- ------- ------- ------- --+---- ------- ------- --+---- ------- ------- ----+ status_ reason | resource_status | event_time | ------- --+---- ------- ------- ------- ------- ------+ ------- ------- ------- ------- ------- ------- ------- ------- ------- --+---- ------- ------- --+---- ------- ------- ----+ 5145-4d93- 950e-bbf521231b 6e | AttributeError: 'NoneType' object has no attribute 'properties' | CREATE_FAILED | 2014-10- 01T00:46: 13Z | 93cd-40da- 83d9-a3debd9ccf bf | state changed | CREATE_IN_PROGRESS | 2014-10- 01T00:46: 13Z | 4e65-4e86- 8465-64dcb5e28e 38 | state changed | CREATE_COMPLETE | 2014-10- 01T00:44: 12Z | a9bb-4da1- b467-a7e83d4016 00 | state changed | CREATE_COMPLETE | 2014-10- 01T00:44: 11Z | dd86-43fb- 841e-716f23f220 e5 | state changed | CREATE_IN_PROGRESS | 2014-10- 01T00:44: 11Z | 6fc2-490b- 9c3b-39cbbde5a5 b3 | state changed | CREATE_IN_PROGRESS | 2014-10- 01T00:44: 11Z | ------- --+---- ------- ------- ------- ------- ------+ ------- ------- ------- ------- ------- ------- ------- ------- ------- --+---- ------- ------- --+---- ------- ------- ----+
+------
| resource_name | id | resource_
+------
| your_asg | 3420cf21-
| your_asg | 36a43554-
| my_asg | d492c470-
| my_config | 0f3c76b9-
| my_config | 873a6220-
| my_asg | fd11f4de-
+------
I added the your_asg and your_conf in the update.
Notice that your_conf has not been created, so it looks like the update dependencies are not working correctly.