inverse-inc / packetfence

PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) solution. Boasting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, powerful BYOD management options, 802.1X support, layer-2 isolation of problematic devices; PacketFence can be used to effectively secure networks small to very large heterogeneous networks.
https://packetfence.org
GNU General Public License v2.0
1.27k stars 274 forks source link

tests: configure_dhcp_listener_int FAILURE on maintenance/12.0 #8082

Open JeGoi opened 2 months ago

JeGoi commented 2 months ago

Describe the problem

     • configure_dhcp_listener_int FAILURE
    Testcase "configure_dhcp_listener_int", step #0: Assertion "result.statuscode ShouldEqual 200" failed. expected: 200  got: 504 (/usr/local/pf/t/venom/test_suites/configurator/00_configure_dhcp_listener_interface.yml:27)

Venom logs:

Apr 21 23:39:52.915^[[36m [INFO] [Configure DHCP listener interface] [configure_dhcp_listener_int] ^[[0mStep #0 content is: "{\"assertions\":[\"result.statuscode ShouldEqual 200\"],\"body\":\"{\\n  \\\"ipaddress\\\": \\\"192.168.121.75\\\",\\n  \\\"netmask\\\": \\\"255.255.255.0\\\",\\n  \\\"type\\\": \\\"dhcp-listener\\\"\\n}\",\"headers\":{\"Content-Type\":\"application/json\"},\"ignore_verify_ssl\":true,\"method\":\"PATCH\",\"type\":\"http\",\"url\":\"https://172.18.200.12:1443/api/v1/configurator/config/interface/eth0\"}"
Apr 21 23:40:52.929^[[37m [DEBU] [Configure DHCP listener interface] [configure_dhcp_listener_int] [http] ^[[0mresult of runTestStepExecutor: {TimeSeconds:60.012104528 StatusCode:504 Request:{Method:PATCH URL:https://172.18.200.12:1443/api/v1/configurator/config/interface/eth0 Header:map[Content-Type:[application/json]] Body:{
  "ipaddress": "192.168.121.75",
  "netmask": "255.255.255.0",
  "type": "dhcp-listener"
} Form:map[] PostForm:map[]} Body:<html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>
 BodyJSON:<nil> Headers:map[Cache-Control:no-cache Content-Length:92 Content-Type:text/html] Err:}
Apr 21 23:40:52.930^[[33m [WARN] [Configure DHCP listener interface] [configure_dhcp_listener_int] ^[[0mTestcase "configure_dhcp_listener_int", step #0: Assertion "result.statuscode ShouldEqual 200" failed. expected: 200  got: 504 (/usr/local/pf/t/venom/test_suites/configurator/00_configure_dhcp_listener_interface.yml:27)

Mandatory informations

Symptoms How the problem can be identified if it appears again ?

JeGoi commented 2 months ago

https://github.com/inverse-inc/packetfence/blob/devel/t/venom/test_suites/configurator/00_configure_dhcp_listener_interface.yml#L12 It looks like it affects only that branch... It also looks like it is not runner specific. BUT only some scenario are affected.

JeGoi commented 2 months ago

I am able to replicate the issue.