Bug 1883808 - Clearer dhclient timeout message
Summary: Clearer dhclient timeout message
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.6
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: Ori Amizur
QA Contact: Yuri Obshansky
URL:
Whiteboard: assisted-installer-prod
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-30 09:45 UTC by Yuval Goldberg
Modified: 2022-08-25 21:41 UTC (History)
2 users (show)

Fixed In Version: OCP-Metal-v1.0.10.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-25 21:41:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yuval Goldberg 2020-09-30 09:45:46 UTC
Description of problem:
The agent is called wrapped by a timeout utility.
If it fails it would return a "dhclient existed with non-zero exit code 124" error message.


Steps to Reproduce:
1. Some DHCP server failure

Actual results:
dhclient existed with non-zero exit code 124: Internet Systems Consortium DHCP Client 4.3.6\nCopyright 2004-2017 Internet Systems Consortium.\nAll rights reserved.\nFor info, please visit https://www.isc.org/software/dhcp/\n\nListening on LPF/ingress/00:1a:4a:c4:dd:ec\nSending on   LPF/ingress/00:1a:4a:c4:dd:ec\nSending on   Socket/fallback\nNot enough data in /etc/machine-id\nCreated duid \"\\000\\001\\000\\001'\\0067A\\000\\032J\\304\\335\\354\".\nDHCPDISCOVER on ingress to 255.255.255.255 port 67 interval 8 (xid=0x477a714e)\nDHCPREQUEST on ingress to 255.255.255.255 port 67 (xid=0x477a714e)\nDHCPOFFER from 10.10.10.5\n

Expected results:
dhclient failed on timeout of %d seconds


Additional info:
- Should fix "existed" to "exited".
- Extend timeout for more than 5 seconds.

Comment 3 Ronnie Lazar 2020-11-04 16:40:07 UTC
just a test

Comment 4 nshidlin 2020-11-16 17:17:06 UTC
Verified on OCP-Metal-v1.0.11.1

Error message:

Nov 16 16:58:30 master-0-1 dhcp_lease_allo[4880]: time="16-11-2020 16:58:30" level=error msg="Failed to lease a vip" file="dhcp_lease_allocate.go:98" error="dhclient was timed out after 28 seconds" ip= mac="00:1a:4a:f0:44:2b" masterDevice=ens3 name=api


Note You need to log in before you can comment on or make changes to this bug.