OS::Neutron::RouterInterface needs "port_id" property
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
JunJie Nan |
Bug Description
I tried to create subnet resource and connect multiple routers through heat template.
However it is failed, because "OS::Neutron:
In my understand, when use "subnet_id" for to connect subnet, neutron acquire "gateway_ip" automatically.
The "gateway_ip" is only one property of each subnets.
It means, multiple routers can't connect same subnet in this method.
I think, it can resolve to add "port_id" property to "OS::Neutron:
The command line example that used neutron is:
=======
$ neutron router-create router1
Created a new router:
+------
| Field | Value |
+------
| admin_state_up | True |
| external_
| id | ae478782-
| name | router1 |
| status | ACTIVE |
| tenant_id | 616ffbe0c00d4cf
+------
$ neutron router-create router2
Created a new router:
+------
| Field | Value |
+------
| admin_state_up | True |
| external_
| id | a47942c5-
| name | router2 |
| status | ACTIVE |
| tenant_id | 616ffbe0c00d4cf
+------
$ neutron net-create net
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| id | 918d2f8c-
| name | net |
| provider:
| provider:
| provider:
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 616ffbe0c00d4cf
+------
$ neutron subnet-create net 192.168.0.0/24
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "192.168.0.2", "end": "192.168.0.254"} |
| cidr | 192.168.0.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 192.168.0.1 |
| host_routes | |
| id | d6b6108e-
| ip_version | 4 |
| name | |
| network_id | 918d2f8c-
| tenant_id | 616ffbe0c00d4cf
+------
$ neutron port-create net
Created a new port:
+------
| Field | Value |
+------
| admin_state_up | True |
| binding:
| binding:host_id | |
| binding:vif_type | bridge |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": "d6b6108e-
| id | e7183085-
| mac_address | fa:16:3e:c0:20:44 |
| name | |
| network_id | 918d2f8c-
| status | DOWN |
| tenant_id | 616ffbe0c00d4cf
+------
$ neutron port-create net
Created a new port:
+------
| Field | Value |
+------
| admin_state_up | True |
| binding:
| binding:host_id | |
| binding:vif_type | bridge |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": "d6b6108e-
| id | 9577cafd-
| mac_address | fa:16:3e:47:b6:fe |
| name | |
| network_id | 918d2f8c-
| status | DOWN |
| tenant_id | 616ffbe0c00d4cf
+------
$ neutron router-
Added interface e7183085-
$ neutron router-
Added interface 9577cafd-
=======
From my personal point of view, "port_id" is essential property for general use cases.
Example for, the vm should be connect both Internet and maintainance network via different subnets.
Changed in heat: | |
assignee: | nobody → Jun Jie Nan (nanjj) |
Changed in heat: | |
milestone: | none → icehouse-1 |
importance: | Undecided → Medium |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | icehouse-1 → 2014.1 |
Could you post your heat template to show the usage further?