Page MenuHomeVyOS Platform

DHCP server doesn't work from a live CD
Open, Requires assessmentPublic

Description

DHCP server fails to start when running from a live CD. That limits the usefulness of the live CD for testing.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Related Objects

StatusSubtypeAssignedTask
Opendmbaturin
WontfixFEATURE REQUESTNone

Event Timeline

dmbaturin created this task.Sat, Oct 3, 5:30 PM
dmbaturin added a subscriber: kroy.
pasik added a subscriber: pasik.Sat, Oct 3, 5:52 PM

The possible reason, that it can't get the lease file, because that directory not present in the LiveCD

lease_file = "/config/dhcpd.leases"
vyos@vyos:~$ show dhcp server leases 
WARNING: DHCP server is configured but not started. Data may be stale.
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/show_dhcp.py", line 224, in <module>
    leases = get_leases(conf, lease_file, args.state, args.pool, args.sort)
  File "/usr/libexec/vyos/op_mode/show_dhcp.py", line 107, in get_leases
    leases = IscDhcpLeases(lease_file).get()
  File "/usr/lib/python3/dist-packages/isc_dhcp_leases/iscdhcpleases.py", line 120, in get
    with open(self.filename) if not self.gzip else gzip.open(self.filename) as lease_file:
FileNotFoundError: [Errno 2] No such file or directory: '/config/dhcpd.leases'
vyos@vyos:~$