Page MenuHomeVyOS Platform

dhcp: smoketests fail as IP address is not removed in time
Closed, ResolvedPublicBUG

Description

From time to time integration tests fail as the DHCP assigned IP address is not removed in time then dhclient stops.

DEBUG - ======================================================================
DEBUG - FAIL: test_dhcp_vrf (__main__.EthernetInterfaceTest.test_dhcp_vrf)
DEBUG - ----------------------------------------------------------------------
DEBUG - Traceback (most recent call last):
DEBUG -   File "/usr/libexec/vyos/tests/smoke/cli/test_interfaces_ethernet.py", line 72, in tearDown
DEBUG -     self.assertNotIn(AF_INET, ifaddresses(interface))
DEBUG - AssertionError: 2 unexpectedly found in {17: [{'addr': '52:54:00:00:00:00', 'broadcast': 'ff:ff:ff:ff:ff:ff'}], 2: [{'addr': '192.0.2.103', 'netmask': '255.255.255.0', 'broadcast': '192.0.2.255'}], 10: [{'addr': 'fe80::5054:ff:fe00:0%eth0', 'netmask': 'ffff:ffff:ffff:ffff::/64'}]}

Add an explicit path cleaning dynamic assigned addresses from interface when disabling DHCP - if any is remaining

Details

Version
1.5-integration-202412211415
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

c-po changed the task status from Open to In progress.
c-po claimed this task.
c-po triaged this task as Normal priority.
c-po moved this task from Open to Finished on the VyOS 1.5 Circinus board.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
dmbaturin moved this task from Backlog to Finished on the VyOS 1.4 Sagitta (1.4.3) board.