OS::Neutron::Port doesn't work because default value of security_groups property is always set.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Thomas Herve |
Bug Description
[[ Issue ]]
OS::Neutron::Port resource has security_groups property that default value is [].
When firewall_driver option in Neutron is
'neutron.
OS::Neutron::Port via Heat (cause 400 error).
[[ Reproduce ]]
1. Set NoopFirewallDriver in firewall_driver at Neutron (e.g. using ovsdriver)
vim /etc/neutron/
> [securitygroup]
> firewall_driver = neutron.
2. Restart Neutron server to update config
3. Create a port with Heat
devstack@
{
"AWSTemplateF
"Parameters": {
"network_id" : {
"Type" : "String"
}
},
"Resources" : {
"Port1": {
"Type": "OS::Neutron:
"Properties": {
}
}
}
}
devstack@
+------
| id | name | subnets |
+------
| 4f71a420-
| c7cb47d6-
+------
devstack@
+------
| id | stack_name | stack_status | creation_time |
+------
| 59defb70-
+------
devstack@
+------
| id | stack_name | stack_status | creation_time |
+------
| 59defb70-
+------
devstack@
+------
| Property | Value |
+------
| capabilities | [] |
| creation_time | 2014-01-
| description | No description |
| disable_rollback | True |
| id | 59defb70-
| links | http://
| notification_topics | [] |
| parameters | { |
| | "network_id": "4f71a420-
| | "AWS::StackId": "arn:openstack:
| | "AWS::Region": "ap-southeast-1", |
| | "AWS::StackName": "stack1" |
| | } |
| stack_name | stack1 |
| stack_status | CREATE_FAILED |
| stack_status_reason | Resource create failed: NeutronClientEx
| | Unrecognized attribute(s) 'security_groups' |
| template_
| timeout_mins | 60 |
| updated_time | 2014-01-
+------
[[ IMO ]]
I think the problem is that the resource always sends
security_groups option as []. If it didn't specified at the template, this
option should be omitted and not send to neutronclient.
Changed in heat: | |
assignee: | nobody → Thomas Herve (therve) |
milestone: | none → icehouse-3 |
importance: | Undecided → Medium |
description: | updated |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | icehouse-3 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/68073
Review: https:/