Neutron port replaced when switching network from name->ID
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
In Progress
|
High
|
Steven Hardy |
Bug Description
When updating an OS::Neutron::Port resource, it should be possible to move the "network" property value from a name, to the ID of the same network without replacing the port.
Other neutron resources probably have the same problem.
E.g
heat_template_
parameters:
NeutronContro
default: 'ctlplane'
type: string
description: Neutron ID or name for ctlplane network.
resources:
ControlVirtualIP:
type: OS::Neutron::Port
properties:
name: test123
network: {get_param: NeutronControlP
replaceme
heat stack-create test123 -f neutron-port.yaml
$ heat resource-list test123
+------
| resource_name | physical_
+------
| ControlVirtualIP | 84b47f21-
+------
$ neutron net-list
+------
| id | name | subnets |
+------
| 750132e9-
+------
$ neutron port-list | grep test123
| 84b47f21-
heat stack-update -x test123 -P"NeutronContr
$ heat resource-list test123
+------
| resource_name | physical_
+------
| ControlVirtualIP | 750cd9c1-
+------
$ neutron port-list | grep test123
| 750cd9c1-
Changed in heat: | |
assignee: | nobody → Steven Hardy (shardy) |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → mitaka-2 |
Fix proposed to branch: master /review. openstack. org/257581
Review: https:/