Server is missing network info after update its nic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
huangtianhua |
Bug Description
1. create a instance with the template:
*******
heat_template_
parameters:
net:
type: string
default: 05d8e681-
image:
type: string
default: 9b5add38-
resources:
sub:
type: OS::Neutron::Subnet
properties:
network: {get_param: net}
cidr: 70.0.0.0/24
nic:
type: AWS::EC2:
properties:
SubnetId: {get_resource: sub}
ins:
type: AWS::EC2::Instance
properties:
InstanceType: 1
ImageId: {get_param: image}
NetworkIn
- 'NetworkInterfa
*******
2. stack create successful, then to update the stack with new 'net' parameter
3. the resources 'sub' and 'nic' were replaced, the stack update successful, but the instance has no network (e.g. ip)
4. find that the resource 'nic' referenced by instance has been updated to the new resource after resource 'nic' is created.
Changed in heat: | |
assignee: | nobody → huangtianhua (huangtianhua) |
Changed in heat: | |
milestone: | none → newton-3 |
tags: | added: mitaka-backport-potential |
The same problem for nova server resource, with template:
heat_template_ version: 2015-04-30 4b37-4570- bc8d-810089f706 b2 e42c-4fc2- aedc-4c4ee3062f b6
parameters:
net:
type: string
default: 05d8e681-
image:
type: string
default: 9b5add38-
resources:
port:
type: OS::Neutron::Port
properties:
network: {get_param: net}
ins:
type: OS::Nova::Server
properties:
flavor: 1
image: {get_param: image}
networks:
- port: {get_resource: port}