Skip to content

DHCP server reconfiguration does not always take effect #936

@mattiaswal

Description

@mattiaswal

NOTE I have seen this in the test server_host and server_subnet, in both tests DHCP server starts working if I:

killall dnsmasq

When looping until fail (on my computer, x86_64) with some PYTHONHASHSEEDs:

e=0; while [ $? -eq 0  ]; do e=$((e+1)); echo "Loop $e"; PYTHONHASHSEED=12395139  ./case/infix_dhcp/server_host/test.py  && ./case/infix_dhcp/server_subnets/test.py  ; done

the test may sometimes fail:

Starting test 0007-server_subnets
2025-02-08 12:42:57 # Starting (2025-02-08 12:42:57)
2025-02-08 12:42:57 # host:    host
2025-02-08 12:42:57 #     client1: d1a
2025-02-08 12:42:57 #     client3: d3a
2025-02-08 12:42:57 #     server:  d2a
2025-02-08 12:42:57 #     client2: d4a
2025-02-08 12:42:57 # client1: dut1
2025-02-08 12:42:57 #     server:  e5
2025-02-08 12:42:57 #     mgmt:    e1
2025-02-08 12:42:57 # server:  dut2
2025-02-08 12:42:57 #     client1: e6
2025-02-08 12:42:57 #     client3: e5
2025-02-08 12:42:57 #     mgmt:    e1
2025-02-08 12:42:57 #     client2: e7
2025-02-08 12:42:57 # client2: dut4
2025-02-08 12:42:57 #     server:  e7
2025-02-08 12:42:57 #     mgmt:    e1
2025-02-08 12:42:57 # client3: dut3
2025-02-08 12:42:57 #     server:  e6
2025-02-08 12:42:57 #     mgmt:    e1
2025-02-08 12:42:57 #
2025-02-08 12:42:57 # Probing dut2 on port d2a for IPv6LL mgmt address ...
2025-02-08 12:42:57 # Testing using RESTCONF
2025-02-08 12:42:57 # YANG models downloaded.
2025-02-08 12:42:58 # Probing dut1 on port d1a for IPv6LL mgmt address ...
2025-02-08 12:42:58 # Testing using RESTCONF
2025-02-08 12:42:58 # YANG models downloaded.
2025-02-08 12:43:00 # Probing dut4 on port d4a for IPv6LL mgmt address ...
2025-02-08 12:43:00 # Testing using RESTCONF
2025-02-08 12:43:00 # YANG models downloaded.
2025-02-08 12:43:01 # Probing dut3 on port d3a for IPv6LL mgmt address ...
2025-02-08 12:43:01 # Testing using RESTCONF
2025-02-08 12:43:01 # YANG models downloaded.
2025-02-08 12:43:02 ok 1 - Set up topology and attach to client and server DUTs
2025-02-08 12:43:04 ok 2 - Configure DHCP server and clients
2025-02-08 12:43:14 not ok 3 - Verify DHCP client1 get correct lease
2025-02-08 12:43:14 # Exiting (2025-02-08 12:43:14)
2025-02-08 12:43:14 # Traceback (most recent call last):
2025-02-08 12:43:14 #   File "/home/lazzer/Documents/github/infix/test/case/infix_dhcp/server_subnets/test.py", line 287, in 
2025-02-08 12:43:14 #     until(lambda: iface.address_exist(client1, client1["server"], POOL1))
2025-02-08 12:43:14 #   File "/home/lazzer/Documents/github/infix/test/infamy/util.py", line 46, in until
2025-02-08 12:43:14 #     raise Exception("Expected condition did not materialize")
2025-02-08 12:43:14 # Exception: Expected condition did not materialize
2025-02-08 12:43:14 #
test error, no plan
Aborting execution

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions