Updating a network in server resource to refer to the currently used port, cause stack update error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Harald Jensås |
Bug Description
old snippet:
networks:
- subnet: s1
new snippet:
networks:
- port: p1 ---which is the same port
When performing a stack update of a stack created with old_snippet the stack update fail with this error:
Resource UPDATE failed: NotFound: resources.
# openstack subnet list
+------
| ID | Name | Network | Subnet |
+------
| e07e105a-
+------
# cat subnet_
heat_template_
resources:
my_instance:
type: OS::Nova::Server
properties:
name: my_server
image: cirros
flavor: m1.small
networks:
- subnet: provider
# openstack stack create -t subnet_
+------
| Field | Value |
+------
| id | b439d612-
| stack_name | stack |
| description | No description |
| creation_time | 2017-07-
| updated_time | None |
| stack_status | CREATE_IN_PROGRESS |
| stack_status_reason | Stack CREATE started |
+------
# openstack port list
+------
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+------
| 06d13f70-
| | | | subnet_
| | | | eed0a412b10e' | |
| 2fba0b47-
| | | | subnet_
| | | | eed0a412b10e' | |
+------
# cat update_
heat_template_
resources:
my_instance:
type: OS::Nova::Server
properties:
image: cirros
flavor: m1.small
networks:
- port: 2fba0b47-
# openstack stack update -t update_
+------
| Field | Value |
+------
| id | b439d612-
| stack_name | stack |
| description | No description |
| creation_time | 2017-07-
| updated_time | 2017-07-
| stack_status | UPDATE_IN_PROGRESS |
| stack_status_reason | Stack UPDATE started |
+------
# openstack stack show stack
+------
| Field | Value |
+------
| id | b439d612-
| stack_name | stack |
| description | No description |
| creation_time | 2017-07-
| updated_time | 2017-07-
| stack_status | UPDATE_FAILED |
| stack_status_reason | Resource UPDATE failed: NotFound: resources.
| | not be found. (HTTP 404) (Request-ID: req-3321d344-
| parameters | OS::project_id: a946df32ae3241e
| | OS::stack_id: b439d612-
| | OS::stack_name: stack |
| | |
| outputs | [] |
| | |
| links | - href: http://
| | -bc2b-5071d5c1dc6a |
| | rel: self |
| | |
| parent | None |
| disable_rollback | True |
| deletion_time | None |
| stack_user_
| capabilities | [] |
| notification_topics | [] |
| stack_owner | None |
| timeout_mins | None |
| tags | None |
+------
Changed in heat: | |
assignee: | nobody → Harald Jensås (harald-jensas) |
status: | New → In Progress |
Changed in heat: | |
importance: | Undecided → Medium |
milestone: | none → pike-3 |
Changed in heat: | |
milestone: | pike-3 → pike-rc1 |
Changed in heat: | |
milestone: | pike-rc1 → pike-rc2 |
Changed in heat: | |
milestone: | pike-rc2 → queens-1 |
Changed in heat: | |
milestone: | queens-1 → queens-2 |
Changed in heat: | |
assignee: | Harald Jensås (harald-jensas) → nobody |
Changed in heat: | |
milestone: | queens-2 → queens-3 |
Changed in heat: | |
assignee: | nobody → Harald Jensås (harald-jensas) |
Changed in heat: | |
milestone: | queens-3 → queens-rc1 |
Fix proposed: https:/ /review. openstack. org/#/c/ 471969/