Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1341017

Summary: [Neutron] - binding_failed when the binding:host_id is ip and not hostname
Product: [oVirt] ovirt-engine Reporter: Michael Burman <mburman>
Component: BLL.NetworkAssignee: Dan Kenigsberg <danken>
Status: CLOSED WONTFIX QA Contact: Meni Yakove <myakove>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0.0CC: bugs, ylavi
Target Milestone: ---Flags: mburman: planning_ack?
mburman: devel_ack?
mburman: testing_ack?
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-01 09:46:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1316049    
Attachments:
Description Flags
binding secceeded controller
none
binding secceeded compute
none
binding failed controller
none
binding failed compute
none
engine log none

Description Michael Burman 2016-05-31 06:08:38 UTC
Created attachment 1163031 [details]
binding secceeded controller

Description of problem:
[Neutron] - binding_failed when the binding:host_id is ip and not hostname. 

If installing the server in rhev with ip as the address instead a hostname(fqdn), and then trying to run VM using a neutron network, the binding failing and we can't get ip fron neutron's dhcp. 
Once installing the server with hostname and running the VM, binding succeeded and VM got ip from neutron's dhcp.  

Version-Release number of selected component (if applicable):
4.1.0-0.0.master.20160526111325.git538ad4f.el7.centos

How reproducible:
100

Steps to Reproduce:
Setup:
- Install neutron external provider
- Create network on the provider and import to rhev
- Install neutron packages and vdsm-openstacknet-hook on the host 
1. Install the host in rhev using the hostname as the address
2. Add vNIC with neutron's profile to a VM and run it

- Remove the server 

3. Install the host in rhev using an ip as the address
4. Run the VM

Actual results:

Step 2. binding succeeded, VM got ip --> 

da219d32-84e6-406a-9f7e-e7d7fa63e45f | nic1 | ACTIVE | oVirt                    | red-vds2.qa.lab.tlv.redhat.com

admin_state_up        | True                                                                                                |
| allowed_address_pairs |                                                                                                     |
| binding:host_id       | red-vds2.qa.lab.tlv.redhat.com                                                                      |
| binding:profile       | {}                                                                                                  |
| binding:vif_details   | {"port_filter": true, "ovs_hybrid_plug": true}                                                      |
| binding:vif_type      | ovs                                                                                                 |
| binding:vnic_type     | normal                                                                                              |
| device_id             | 422adc9b-e0a8-463e-b998-ddfddc304ba0                                                                |
| device_owner          | oVirt                                                                                               |
| dns_assignment        | {"hostname": "host-12-0-0-20", "ip_address": "12.0.0.20", "fqdn": "host-12-0-0-20.openstacklocal."}

- Step 4 -->

binding failed and vm didn't get the ip

16caf482-ac4e-40a8-b364-b9c48b38900d | nic1 | DOWN   | oVirt                    | 10.35.128.9

admin_state_up        | True                                                                                                |
| allowed_address_pairs |                                                                                                     |
| binding:host_id       | 10.35.128.9                                                                                         |
| binding:profile       | {}                                                                                                  |
| binding:vif_details   | {}                                                                                                  |
| binding:vif_type      | binding_failed                                                                                      |
| binding:vnic_type     | normal                                                                                              |
| device_id             | 422adc9b-e0a8-463e-b998-ddfddc304ba0                                                                |
| device_owner          | oVirt                                                                                               |
| dns_assignment        | {"hostname": "host-12-0-0-14", "ip_address": "12.0.0.14", "fqdn": "host-12-0-0-14.openstacklocal."}
 

Expected results:
Should work with ip and hostname as the address of the host. 

Additional info:

Comment 1 Michael Burman 2016-05-31 06:10:01 UTC
Created attachment 1163032 [details]
binding secceeded compute

Comment 2 Michael Burman 2016-05-31 06:10:34 UTC
Created attachment 1163033 [details]
binding failed controller

Comment 3 Michael Burman 2016-05-31 06:11:02 UTC
Created attachment 1163034 [details]
binding failed compute

Comment 4 Michael Burman 2016-05-31 06:11:26 UTC
Created attachment 1163035 [details]
engine log

Comment 5 Yaniv Lavi 2016-06-01 09:46:11 UTC
We support adding host FQDN, not IP. Therefore please move to use that in testing.