Bug 1560442

Summary: router_interface internal interface status is down & unbound
Product: Red Hat OpenStack Reporter: Eran Kuris <ekuris>
Component: python-networking-ovnAssignee: Lucas Alvares Gomes <lmartins>
Status: CLOSED ERRATA QA Contact: Eran Kuris <ekuris>
Severity: high Docs Contact:
Priority: low    
Version: 13.0 (Queens)CC: amuller, apevec, cgoncalves, chrisw, dalvarez, ekuris, jraju, lhh, lmartins, majopela, nyechiel, psahoo, srevivo, yoliynyk
Target Milestone: z3Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-4.0.2-4.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1560516 1630412 (view as bug list) Environment:
Last Closed: 2018-11-13 23:32:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1560516, 1630412    

Description Eran Kuris 2018-03-26 07:59:12 UTC
Description of problem:
The status of router_interface internal interface is "down" & "unbound" but it accessible.  

[stack@undercloud-0 ~]$ . overcloudrc 
(overcloud) [stack@undercloud-0 ~]$ openstack server list
+--------------------------------------+------+--------+--------------------------------+--------+-----------+
| ID                                   | Name | Status | Networks                       | Image  | Flavor    |
+--------------------------------------+------+--------+--------------------------------+--------+-----------+
| f2fbb17f-29f0-434b-b56a-64f92cf84251 | VM   | ACTIVE | net-64-2=10.0.2.11, 10.0.0.217 | rhel74 | m1.medium |
+--------------------------------------+------+--------+--------------------------------+--------+-----------+
(overcloud) [stack@undercloud-0 ~]$ ping 10.0.0.217
PING 10.0.0.217 (10.0.0.217) 56(84) bytes of data.
64 bytes from 10.0.0.217: icmp_seq=2 ttl=63 time=1.33 ms
64 bytes from 10.0.0.217: icmp_seq=3 ttl=63 time=1.09 ms
^C
--- 10.0.0.217 ping statistics ---
3 packets transmitted, 2 received, 33% packet loss, time 2000ms
rtt min/avg/max/mdev = 1.093/1.214/1.335/0.121 ms
(overcloud) [stack@undercloud-0 ~]$ openstack port list | grep 10.0.2.1
| 330b3a28-5646-4489-bcdd-c59dbe7a2f38 |      | fa:16:3e:4b:12:c1 | ip_address='10.0.2.11', subnet_id='32a3b3fe-5f54-4d19-80c6-014d9c88d705'  | ACTIVE |
| 91860143-9d83-4ef2-b690-1d18899fefcb |      | fa:16:3e:3e:80:f4 | ip_address='10.0.2.1', subnet_id='32a3b3fe-5f54-4d19-80c6-014d9c88d705'   | DOWN   |
(overcloud) [stack@undercloud-0 ~]$ openstack port show 91860143-9d83-4ef2-b690-1d18899fefcb
+-----------------------+---------------------------------------------------------------------------------------+
| Field                 | Value                                                                                 |
+-----------------------+---------------------------------------------------------------------------------------+
| admin_state_up        | UP                                                                                    |
| allowed_address_pairs |                                                                                       |
| binding_host_id       |                                                                                       |
| binding_profile       |                                                                                       |
| binding_vif_details   |                                                                                       |
| binding_vif_type      | unbound                                                                               |
| binding_vnic_type     | normal                                                                                |
| created_at            | 2018-03-25T13:36:09Z                                                                  |
| data_plane_status     | None                                                                                  |
| description           |                                                                                       |
| device_id             | a51f842c-9c67-4143-b13c-8b35fc632913                                                  |
| device_owner          | network:router_interface                                                              |
| dns_assignment        | fqdn='host-10-0-2-1.openstacklocal.', hostname='host-10-0-2-1', ip_address='10.0.2.1' |
| dns_name              |                                                                                       |
| extra_dhcp_opts       |                                                                                       |
| fixed_ips             | ip_address='10.0.2.1', subnet_id='32a3b3fe-5f54-4d19-80c6-014d9c88d705'               |
| id                    | 91860143-9d83-4ef2-b690-1d18899fefcb                                                  |
| ip_address            | None                                                                                  |
| mac_address           | fa:16:3e:3e:80:f4                                                                     |
| name                  |                                                                                       |
| network_id            | 7eaa3558-61ab-45a4-8a0a-47783a3355a7                                                  |
| option_name           | None                                                                                  |
| option_value          | None                                                                                  |
| port_security_enabled | False                                                                                 |
| project_id            | aa3fe6a7406d4b18b9ba9ad9de63edb3                                                      |
| qos_policy_id         | None                                                                                  |
| revision_number       | 7                                                                                     |
| security_group_ids    |                                                                                       |
| status                | DOWN                                                                                  |
| subnet_id             | None                                                                                  |
| tags                  |                                                                                       |
| trunk_details         | None                                                                                  |
| updated_at            | 2018-03-25T13:36:11Z 

Version-Release number of selected component (if applicable):
OSP13 -p 2018-03-02.2


How reproducible:
always

Steps to Reproduce:
1. create network & subnet
2. create router & set internal interface (now you can see that the status is "down" & "unbound")
3. For verify if it is displayed issue-->
4. set the gateway to the router
5. boot vm 
6. associate floatingIP
7. ping to the VM 


no error found in logs. Saw the same behavior on OSP13 ODL

Comment 5 Lucas Alvares Gomes 2018-06-15 10:20:44 UTC
It's now been merged upstream and backported https://code.engineering.redhat.com/gerrit/141672

Comment 38 Shelley Dunne 2018-10-12 15:36:36 UTC
Updating Target Milestone to z3 for all Modified low bugs

Comment 44 Eran Kuris 2018-10-29 12:45:20 UTC
fix verified:
(overcloud) [stack@undercloud-0 ~]$ openstack port show d29c49a2-d5a3-4995-973f-ef7b120b7e61 
+-----------------------+---------------------------------------------------------------------------------------+
| Field                 | Value                                                                                 |
+-----------------------+---------------------------------------------------------------------------------------+
| admin_state_up        | UP                                                                                    |
| allowed_address_pairs |                                                                                       |
| binding_host_id       | controller-0.localdomain                                                              |
| binding_profile       |                                                                                       |
| binding_vif_details   | port_filter='True'                                                                    |
| binding_vif_type      | ovs                                                                                   |
| binding_vnic_type     | normal                                                                                |
| created_at            | 2018-10-29T12:33:02Z                                                                  |
| data_plane_status     | None                                                                                  |
| description           |                                                                                       |
| device_id             | a2760ef8-5812-4fd6-a2c4-239732e89119                                                  |
| device_owner          | network:router_gateway                                                                |
| dns_assignment        | fqdn='host-10-0-0-221.ovn.test.', hostname='host-10-0-0-221', ip_address='10.0.0.221' |
| dns_name              |                                                                                       |
| extra_dhcp_opts       |                                                                                       |
| fixed_ips             | ip_address='10.0.0.221', subnet_id='094ddae8-196b-4032-9577-d20635c49a4e'             |
| id                    | d29c49a2-d5a3-4995-973f-ef7b120b7e61                                                  |
| ip_address            | None                                                                                  |
| mac_address           | fa:16:3e:d3:50:1b                                                                     |
| name                  |                                                                                       |
| network_id            | 98b4f705-6ef7-4629-94ac-aee58b965475                                                  |
| option_name           | None                                                                                  |
| option_value          | None                                                                                  |
| port_security_enabled | False                                                                                 |
| project_id            |                                                                                       |
| qos_policy_id         | None                                                                                  |
| revision_number       | 72                                                                                    |
| security_group_ids    |                                                                                       |
| status                | ACTIVE                                                                                |
| subnet_id             | None                                                                                  |
| tags                  |                                                                                       |
| trunk_details         | None                                                                                  |
| updated_at            | 2018-10-29T12:34:01Z                                                                  |
+-----------------------+---------------------------------------------------------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ openstack port show 186a41a0-3dee-42c3-bc1f-42fa69fc7666
+-----------------------+---------------------------------------------------------------------------------+
| Field                 | Value                                                                           |
+-----------------------+---------------------------------------------------------------------------------+
| admin_state_up        | UP                                                                              |
| allowed_address_pairs |                                                                                 |
| binding_host_id       |                                                                                 |
| binding_profile       |                                                                                 |
| binding_vif_details   |                                                                                 |
| binding_vif_type      | unbound                                                                         |
| binding_vnic_type     | normal                                                                          |
| created_at            | 2018-10-29T12:32:38Z                                                            |
| data_plane_status     | None                                                                            |
| description           |                                                                                 |
| device_id             | a2760ef8-5812-4fd6-a2c4-239732e89119                                            |
| device_owner          | network:router_interface                                                        |
| dns_assignment        | fqdn='host-10-0-2-1.ovn.test.', hostname='host-10-0-2-1', ip_address='10.0.2.1' |
| dns_name              |                                                                                 |
| extra_dhcp_opts       |                                                                                 |
| fixed_ips             | ip_address='10.0.2.1', subnet_id='f0c753b9-7c8a-4c5a-8de7-edd79b1192b5'         |
| id                    | 186a41a0-3dee-42c3-bc1f-42fa69fc7666                                            |
| ip_address            | None                                                                            |
| mac_address           | fa:16:3e:69:fc:8e                                                               |
| name                  |                                                                                 |
| network_id            | 8507ed1e-ddf1-4fa9-8576-b1956c4a5ded                                            |
| option_name           | None                                                                            |
| option_value          | None                                                                            |
| port_security_enabled | False                                                                           |
| project_id            | 65cfd177d92842d385f389c782ee943e                                                |
| qos_policy_id         | None                                                                            |
| revision_number       | 8                                                                               |
| security_group_ids    |                                                                                 |
| status                | ACTIVE                                                                          |
| subnet_id             | None                                                                            |
| tags                  |                                                                                 |
| trunk_details         | None                                                                            |
| updated_at            | 2018-10-29T12:32:40Z                                                            |

puddle:2018-10-24.1
[root@compute-0 ~]#  rpm -qa | grep networking-ovn
python-networking-ovn-4.0.3-1.el7ost.noarch
python-networking-ovn-metadata-agent-4.0.3-1.el7ost.noarch

Comment 46 errata-xmlrpc 2018-11-13 23:32:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3614