Possible new bug, similar to bug 121. DHCP failover and view leases


#1

Using release 1.0.4. When DHCP server is in failover mode:

vyos@vyos1# show service dhcp-server
 disabled false
 shared-network-name LAN {
     subnet 172.30.2.184/29 {
         default-router 172.30.2.185
         dns-server 172.30.2.185
         domain-name vyoslan.localnet
         failover {
             local-address 172.30.2.186
             name LAN
             peer-address 172.30.2.187
             status primary
         }
         lease 86400
         start 172.30.2.188 {
             stop 172.30.2.190
         }
     }
 }

I’m unable to view leases:

vyos@vyos1:/config$ show dhcp server leases
Malformed lease: missing start time! at /opt/vyatta/share/perl5/Vyatta/DHCPServerOpMode.pm line 174.

IP address       Hardware address   Lease expiration     Pool       Client Name
----------       ----------------   ----------------     ----       -----------
vyos@vyos1:/config$

It seems a bit similar to bug 121, but this time it complains on missing start time, and not missing IP address. Anyone experienced this before?

It could be this that creates the error. From /config/dhcpd.leases:

...
lease 172.30.2.188 {
#shared-network: LAN
  binding state free;
}
lease 172.30.2.189 {
#shared-network: LAN
  binding state free;
}
lease 172.30.2.190 {
#shared-network: LAN
  binding state free;
}
...

Should I reopen bug 121, or report a new bug?

Edit: Have reopened bug 121, and added the same info as above.