packetfence
packetfence copied to clipboard
tests: configure_dhcp_listener_int FAILURE on maintenance/12.0
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
- Branch: maintenance/12.0
- Scenario: few
- Pipelines URL:
- https://gitlab.com/inverse-inc/packetfence/-/jobs/6680771202
- https://gitlab.com/inverse-inc/packetfence/-/jobs/6680771172
- https://gitlab.com/inverse-inc/packetfence/-/jobs/6680771210
- etc..
Symptoms How the problem can be identified if it appears again ?
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.
I am able to replicate the issue.