Page MenuHomePhabricator

DHCP hostfile-update isn't removing hostfile entries on expiry.
Open, NormalPublicBUG

Description

When a DHCP lease expires, it should be removed from /etc/hosts, but this isn't always happening:

dhcpd[6380]: execute_statement argv[0] = /usr/libexec/vyos/system/on-dhcp-event.sh
dhcpd[6380]: execute_statement argv[1] = release
dhcpd[6380]: execute: bad arg 2
hostfile-update
shared-network-name VLAN101 {
  authoritative
  subnet 172.16.101.0/24 {
      default-router 172.16.101.254
      dns-server 172.16.101.254
      domain-name guest.example.org
      failover {
          local-address 172.16.101.253
          name VLAN101
          peer-address 172.16.101.252
          status secondary
      }
      lease 3600
      range 0 {
          start 172.16.101.1
          stop 172.16.101.250
      }
   }
}

Details

Difficulty level
Unknown (require assessment)
Version
1.2.0
Why the issue appeared?
Will be filled on close

Event Timeline

thinkl33t created this task.Mar 7 2019, 3:47 PM
syncer assigned this task to dmbaturin.Aug 31 2019, 12:45 AM
syncer triaged this task as Normal priority.
syncer removed a project: VyOS 1.2 Crux.