Failed to Update the resource of AWS::EC2::SecurityGroup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Low
|
Ethan Lynn |
Bug Description
The first update the resource type of AWS::EC2:
The problem as follows:
-------
1.created test.yaml,its contents are as follows:
$ cat test.yaml
heat_template_
description: test
resources:
securitygroup:
type: AWS::EC2:
properties:
GroupDesc
SecurityG
- IpProtocol: 'icmp'
FromPort: '-1'
ToPort: '-1'
CidrIp: '0.0.0.0/0'
- IpProtocol: 'tcp'
FromPort: '22'
ToPort: '22'
CidrIp: '0.0.0.0/0'
2.created a stack with test.yaml
$ heat stack-create –f test.yaml test
3.updated test.yaml, added 80 port ,its contents are as follows:
$ cat test.yaml
heat_template_
description: test
resources:
securitygroup:
type: AWS::EC2:
properties:
GroupDesc
SecurityG
- IpProtocol: 'icmp'
FromPort: '-1'
ToPort: '-1'
CidrIp: '0.0.0.0/0'
- IpProtocol: 'tcp'
FromPort: '22'
ToPort: '22'
CidrIp: '0.0.0.0/0'
- IpProtocol: 'tcp'
FromPort: '80'
ToPort: '80'
CidrIp: '0.0.0.0/0'
4.updated stack
$ heat stack-update –f test.yaml test
5.it will get“UPDATE_FAILED”
$ heat event-list test
+------
| resource_name | id | resource_
+------
| test | 7f84df5e-
| securitygroup | 8142ab59-
| securitygroup | 92847493-
| test | 96676760-
| test | bafc7ee4-
| securitygroup | bfa11ae7-
| securitygroup | 8549fda5-
+------
6.No modified test.yaml,update stack again:
$ heat stack-update -f test.yaml test
7. it will get“CREATE_
$ heat event-list test
+------
| resource_name | id | resource_
+------
| test | 7f84df5e-
| securitygroup | 8142ab59-
| securitygroup | 92847493-
| test | 96676760-
| test | bafc7ee4-
| securitygroup | bfa11ae7-
| securitygroup | 8549fda5-
| test | c6d66db2-
| securitygroup | c84b7de6-
| securitygroup | 173f5a6c-
+------
-------
Reason: when updating the resource of AWS::EC2:
But creating the resource of AWS::EC2:
And when Nova creates the resource of SecurityGroup,just have SecurityGroupIn
-------
information type: | Private Security → Public |
Changed in heat: | |
status: | New → Triaged |
importance: | Undecided → Low |
milestone: | none → mitaka-1 |
summary: |
- Updated AWS::EC2::SecurityGroup has some problem + Failed to Update the resource of AWS::EC2::SecurityGroup |
Changed in heat: | |
milestone: | mitaka-1 → mitaka-2 |
Changed in heat: | |
milestone: | mitaka-2 → mitaka-3 |
Changed in heat: | |
milestone: | mitaka-3 → mitaka-rc1 |
Changed in heat: | |
assignee: | Ethan Lynn (ethanlynn) → PanFengyun (pan-feng-yun) |
Changed in heat: | |
assignee: | PanFengyun (pan-feng-yun) → nobody |
Changed in heat: | |
assignee: | nobody → Ethan Lynn (ethanlynn) |
1. Before getting the property value of SecurityGroupIn gress
and SecurityGroupEgress from SecurityGroup, need to determine whether
SecurityGroup contains the property of them. 2. Getting the property value of
a list object by property name, instead of number.