port is deleted when update server networks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
huangtianhua |
Bug Description
1. create a stack with a nova server, the template snippet as following:
*******
th_server:
type: OS::Nova::Server
properties:
networks:
- port: {get_resource: th_port}
- subnet: {get_param: sub}
.... other properties
th_port:
type: OS::Neutron::Port
properties:
network: {get_param: net}
*******
2. the stack create success, list the resources of the stack:
root@hth:
WARNING (shell) "heat resource-list" is deprecated, please use "openstack stack resource list" instead
+------
| resource_name | physical_
+------
| port | 4f27803c-
| th_server | cccb1b46-
+------
list the interfaces of the server:
root@hth:
/usr/local/
warnings.
+------
| Port State | Port ID | Net ID | IP addresses | MAC Addr |
+------
| ACTIVE | 4f27803c-
| ACTIVE | bb08e0ee-
+------
3. update the stack with template snippet to detach one nic from the server:
*******
th_server:
type: OS::Nova::Server
properties:
networks:
- subnet: {get_param: sub}
.... other properties
th_port:
type: OS::Neutron::Port
properties:
network: {get_param: net}
*******
4. the stack update complete, but the port 4f27803c-
Changed in heat: | |
assignee: | nobody → huangtianhua (huangtianhua) |
importance: | Undecided → High |
Changed in heat: | |
milestone: | none → pike-1 |
tags: | added: ocata-backport-potential |
tags: | removed: ocata-backport-potential |
Fix proposed to branch: master /review. openstack. org/450724
Review: https:/