-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 1.3.0
-
Fix Version/s: 1.3.0
-
Component/s: None
-
Labels:None
-
Environment:
Office controller with DHCP enabled
The symptom that we saw was Ray's computer was assigned an IP address from ONOS, but his computer said that address was already in use, so it couldn't use it.
My theory on what happened is this:
1. DHCP app starts up, ONOS assigns this address to a host that requests: 10.1.11.99
2. This host disappears, and the lease times out.
3. Ray's computer comes along and requests an address - he is assigned 10.1.11.99 because this is available from the DHCP app's point of view.
4. Ray's computer sends an ARP request for this address to check it's not in use. ONOS answers this request with the MAC address of the original host that was assigned the address. This host is still in the host store because this data never times out. Therefore Ray's computer thinks the address is in use and can't use it.
Somehow we need to invalidate stale entries in the host store.
onos> hosts | grep 10.1.11.99 id=78:31:C1:C1:19:4A/-1, mac=78:31:C1:C1:19:4A, location=of:0000010001010212/48, vlan=-1, ip(s)=[fe80::7a31:c1ff:fec1:194a, 10.1.11.99] id=A4:5E:60:C2:20:BF/-1, mac=A4:5E:60:C2:20:BF, location=of:0000010001010212/48, vlan=-1, ip(s)=[10.1.11.99] onos> dhcp- dhcp-lease dhcp-list dhcp-remove-static-mapping dhcp-set-static-mapping onos> dhcp- dhcp-lease dhcp-list dhcp-remove-static-mapping dhcp-set-static-mapping onos> dhcp- dhcp-lease dhcp-list dhcp-remove-static-mapping dhcp-set-static-mapping onos> dhcp-lease Lease Time: 300s Renewal Time: 150s Rebinding Time: 200s onos> dhcp- dhcp-lease dhcp-list dhcp-remove-static-mapping dhcp-set-static-mapping onos> dhcp-list MAC ID: 70:3E:AC:19:3A:47 -> IP ASSIGNED 10.1.11.89 MAC ID: 78:31:C1:D5:F8:02 -> IP ASSIGNED 10.1.11.98 MAC ID: 9C:FC:01:54:77:E5 -> IP ASSIGNED 10.1.11.85 MAC ID: 60:F8:1D:C9:EF:80 -> IP ASSIGNED 10.1.11.91 MAC ID: 40:F4:07:A7:64:42 -> IP ASSIGNED 10.1.11.97 MAC ID: 6C:71:D9:CB:CA:68 -> IP ASSIGNED 10.1.11.93 MAC ID: A4:5E:60:EA:FF:A7 -> IP ASSIGNED 10.1.11.88 MAC ID: 14:10:9F:DD:2C:B9 -> IP ASSIGNED 10.1.11.86 MAC ID: F8:A9:D0:3F:42:62 -> IP ASSIGNED 10.1.11.96 MAC ID: 34:36:3B:C9:B6:A6 -> IP ASSIGNED 10.1.11.95 MAC ID: 48:E9:F1:B7:24:44 -> IP ASSIGNED 10.1.11.90 MAC ID: 78:31:C1:C1:19:4A -> IP ASSIGNED 10.1.11.99 MAC ID: 34:23:BA:A5:0C:3B -> IP ASSIGNED 10.1.11.94 MAC ID: 38:AA:3C:E6:99:71 -> IP ASSIGNED 10.1.11.92 onos> onos> onos> dhcp- dhcp-lease dhcp-list dhcp-remove-static-mapping dhcp-set-static-mapping onos> onos> onos> app deactivate org.onosproject. org.onosproject.dhcp org.onosproject.drivers org.onosproject.fwd org.onosproject.mobility org.onosproject.openflow org.onosproject.proxyarp onos> app deactivate org.onosproject.dhcp