Wrong 'fixed_ips' defaults in OS::Neutron::Port
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Sergey Kraynev |
Bug Description
Let's assume we have an template:
{
"Resources" : {
"port" : {
"Type" : "OS::Neutron:
}
}
}
}
In this case after stack-create Neutron will create port without assigned fixed_ips. This this because heat engine explicitly assigns default value for 'fixed_ips'=[]. See here:
https:/
It is wrong behaviour because in case of missing 'fixed_ips' neutron should assign some fixed ip address to the port. Look how it is implemented in neutronclient:
=======
from neutronclient.v2_0 import client as neutron_client
neutron = neutron_
username=
password=
tenant_
auth_url="http://
# Case 1. Creating port with missed fixed_ips param
neutron.
# Case 2. Creating port with fixed_ips=[]
neutron.
=======
In the above example created ports will look like are as follows:
stack@stack:~$ neutron port-list
| some-uuid1 | port_with_ip | fa:16:3e:53:f3:4b | {"subnet_id": "495328abcf60", "ip_address": "10.0.0.14"} |
| some-uuid2 | port_without_ip | fa:16:3e:55:6f:2d | |
=======
If you can see in case 1 when 'fixed_ips' param is missed in port definintion neutron automatically assigns some address and subnet.
So Heat should allow both cases with missed fixed_ips and user-defined.
Changed in heat: | |
assignee: | nobody → Sergey Kraynev (skraynev) |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | icehouse-3 → 2014.1 |
Okay, that's unfortunate, but who thought that doing that in Neutron was a good idea? I mean seriously this is a really strange behavior, and completely implicit. I'm okay to fix that in Heat, but I think a bug should be reported in Neutron to fix this.