neutron port-list with device-id of router does not include the gateway's port
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.20 |
Won't Fix
|
Medium
|
Hampapur Ajay | |||
Trunk |
New
|
Medium
|
Hampapur Ajay |
Bug Description
R2.20 43 Ubuntu 12.04.3 single node setup
Below , neutron port-list with filter of device-id is listing only the left-network's port. The gateway port too has device-id of the router, but is not shown.
Further, when we do port-list with network-id of gateway (test2 below) and device-id of router, we get port of left-vn(test1) instead.
root@nodeb5:~# neutron router-list
neutron
root@nodeb5:~# neutron router-create rtr1
neuCreated a new router:
+------
| Field | Value |
+------
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | rtr1 |
| external_
| id | 6999d8a8-
| name | rtr1 |
| status | ACTIVE |
| tenant_id | 7b218da7c88e4aa
+------
root@nodeb5:~# neutron net-create test1
neuCreated a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | test1 |
| contrail:
| id | 563f3020-
| name | test1 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 7b218da7c88e4aa
+------
root@nodeb5:~# neutron subnet-create test1 100.1.1.0/24
neuCreated a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "100.1.1.2", "end": "100.1.1.254"} |
| cidr | 100.1.1.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 100.1.1.1 |
| host_routes | |
| id | 086def98-
| ip_version | 4 |
| name | |
| network_id | 563f3020-
| tenant_id | 7b218da7c88e4aa
+------
troot@nodeb5:~# neutronnet-create test2
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | test2 |
| contrail:
| id | 363a9201-
| name | test2 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 7b218da7c88e4aa
+------
root@nodeb5:~# neutron subnet-create test2 200.1.1.0/24
nCreated a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "200.1.1.2", "end": "200.1.1.254"} |
| cidr | 200.1.1.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 200.1.1.1 |
| host_routes | |
| id | f05b5e57-
| ip_version | 4 |
| name | |
| network_id | 363a9201-
| tenant_id | 7b218da7c88e4aa
+------
eroot@nodeb5:~# neutron net-update test2 --router:external
Updated network: test2
root@nodeb5:~# neutron router-
Added interface 0910a260-
root@nodeb5:~# neutron router-gateway-set rtr1 363a9201-
Set gateway for router rtr1
root@nodeb5:~# neutron port-list
+------
| id | name | mac_address | fixed_ips |
+------
| 0910a260-
| ccf9ac01-
| 65f6a321-
| 35f999be-
| 6ab58d55-
+------
root@nodeb5:~# neutron port-list --network-id 363a9201-
+------
| id | name | mac_address | fixed_ips |
+------
| 0910a260-
+------
root@nodeb5:~# neutron port-show 6ab58d55-
+------
| Field | Value |
+------
| admin_state_up | True |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | vrouter |
| device_id | 6999d8a8-
| device_owner | network:
| fixed_ips | {"subnet_id": "f05b5e57-
| id | 6ab58d55-
| mac_address | 02:9c:1b:5e:55:ac |
| name | default-
| network_id | 363a9201-
| security_groups | 16f05d56-
| status | ACTIVE |
| tenant_id | 7b218da7c88e4aa
+------
root@nodeb5:~# neutron port-list --network-id 363a9201-
+------
| id | name | mac_address | fixed_ips |
+------
| 65f6a321-
| 6ab58d55-
+------
root@nodeb5:~# neutron port-list --device-id 6999d8a8-
+------
| id | name | mac_address | fixed_ips |
+------
| 0910a260-
+------
root@nodeb5:~#