From nobody Fri Mar 17 06:23:59 2023 X-Original-To: stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PdDc83bZfz409Km for ; Fri, 17 Mar 2023 06:24:08 +0000 (UTC) (envelope-from leo@marco.de) Received: from mail.marco.de (mail.marco.de [192.54.39.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PdDc734RSz45h8 for ; Fri, 17 Mar 2023 06:24:07 +0000 (UTC) (envelope-from leo@marco.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=marco.de header.s=20201218 header.b=YEN5FBSt; spf=pass (mx1.freebsd.org: domain of leo@marco.de designates 192.54.39.130 as permitted sender) smtp.mailfrom=leo@marco.de; dmarc=none Received: from mailbox.marco.de (mailbox [10.0.0.4]) by mail.marco.de (Postfix) with ESMTP id 90162700037 for ; Fri, 17 Mar 2023 07:24:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marco.de; s=20201218; t=1679034240; bh=RFL3JrrXS9nb2uKoBmW6YZZoreL3xEVx5MlHqNu2LAs=; h=Date:Subject:To:References:From:In-Reply-To; b=YEN5FBSteDSEifZC+CFegWXYCUv1wbXRKTgpz8qGdmCF8i1RwQ+PfAl+n8nAPT1tq zjhkXc1tayULqvS9q89YQyS953n8+XK99oDyxh/UcI5+m/SDEcp5UNF5nZORAFnNFM xeLTSYU6pfg2nigMQkasL0zqbAivoOmG45I7uQ+KXVWu3rS+PfFFbCrbh4ThYqp8oZ A96abpfxRMYxK91+GRhYxWkLAETWghCoNz8+fwqVXUnQf6DD2Cg6HWA0O8Ex5SeY6P mgby8Bfs1pEs9lberl19pJVCkhu/Tc7ziYx5lE8DVLdIgeuHw+p5X6b//WWBgk4LFF 7am+UnSY8UDZw== Received: from [10.1.1.28] (rhea.dachau.marco.de [10.1.1.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: leo) by mailbox.marco.de (Postfix) with ESMTPSA for ; Fri, 17 Mar 2023 07:24:00 +0100 (CET) Message-ID: <0b95a502-eea0-46cc-5d0d-ec6e861ad51f@marco.de> Date: Fri, 17 Mar 2023 07:23:59 +0100 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: Fwd: Kernel DHCP unpredictable/fails (PXE boot), userspace DHCP works just fine Content-Language: en-US To: stable@freebsd.org References: From: Matthias Pfaller In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms050308070205070808020400" X-Spamd-Result: default: False [-5.60 / 15.00]; SIGNED_SMIME(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+a:mail.marco.de]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_DKIM_ALLOW(-0.20)[marco.de:s=20201218]; DMARC_NA(0.00)[marco.de]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[marco.de:+]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[stable@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:3320, ipnet:192.54.39.0/24, country:DE]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; HAS_ATTACHMENT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[stable@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4PdDc734RSz45h8 X-Spamd-Bar: ----- X-ThisMailContainsUnwantedMimeParts: N This is a cryptographically signed message in MIME format. --------------ms050308070205070808020400 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2023-03-16 21:44, Attila Nagy wrote: > Hi, > > As this is super annoying, I'm willing to pay a $500 bounty for solving this issue > (whomever is first, however I don't anticipate a big competition :) Having an invoice > would be best, but I'm willing to accept individuals as well). > I can't give remote access, but can run debug builds with serial console. stable/13 > branch. > > I have a bunch of netbooted machines, one set in a cluster is older (HP DL80 G9, > 2x8C, Intel I350 -igb- NICs), the other set is newer (HP XL225n G10, AMD EPYC2x16C, > BCM57412 -bnxt- NICs). > All of these boot from the network, which is basically: > - get IP and options with DHCP with the help of the NIC's PXE stack > - get the loader and kernel, start it > - do another round of DHCP from the kernel (bootp_subr.c) > - mount the root via NFS and let everything work as usual > > The problem is that the newer machines take an indefinite time to boot. The older > ones (with igb NIC) work reliably, they always boot fast. > The process of getting an IP address via DHCP (bootpc_call from bootp_subr.c) either > succeeds normally (in a few seconds), or takes a lot of time. > Common (measured) times to boot range from 10s of minutes to anywhere between a few > hours (1-6). > Sometimes it just gets stuck and couldn't get past bootpc_call (getting the DHCP lease). Do you have STP/RSTP enabled on the switch ports? When the link goes down when switching from firmware mode to kernel mode, the port will go back to blocking. When the dhcp requests don't make it to the dhcp server because of this and the link goes down and up again while retrying (don't know if this happens) you will get the same problem on the next try. As a simple test you could put a dumb unmanaged switch between your core network and the server. best regards, Matthias --------------ms050308070205070808020400 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC DUcwggXSMIIDuqADAgECAhANWkFd0y31u4EWJee/nuAQMA0GCSqGSIb3DQEBCwUAMIGBMQsw CQYDVQQGEwJJVDEQMA4GA1UECAwHQmVyZ2FtbzEZMBcGA1UEBwwQUG9udGUgU2FuIFBpZXRy bzEXMBUGA1UECgwOQWN0YWxpcyBTLnAuQS4xLDAqBgNVBAMMI0FjdGFsaXMgQ2xpZW50IEF1 dGhlbnRpY2F0aW9uIENBIEczMB4XDTIyMDkxNTExMTMzMFoXDTIzMDkxNTExMTMzMFowFzEV MBMGA1UEAwwMbGVvQG1hcmNvLmRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA 71j1E3kubCJTUdz1VzJWgEaIsPUuiYmtoW7wz/0KRrbhBe3NFeDMjdgpDkzXip1W7Hvr9V+X pGql/HoZw680Rn3X9h3KbUULKVEsvrBm274J/5RCoTMYC9gAr9rQUgfbvKB2/U3k1cgfNP0N dhkC/5TboL/1pMJx8QUQ5ejD7/ki6trZggHXDPDmrdXU0ft6LUYydIQ4I8r3LQWRt4R45Bzo Bjmt/RANN48JeMOt99juX3T5Xuyv5nmEkLzSssqJjhJf4aXLjYPSTTB3N8LVlmcTINUUe9Rg zCth7MBQq+07weyZfk64w7VrejHiGgDqv6ix+Z1BRj/wVXWhUzgVtQIDAQABo4IBrTCCAakw DAYDVR0TAQH/BAIwADAfBgNVHSMEGDAWgBS+l6mqhL+AvxBTfQky+eEuMhvPdzB+BggrBgEF BQcBAQRyMHAwOwYIKwYBBQUHMAKGL2h0dHA6Ly9jYWNlcnQuYWN0YWxpcy5pdC9jZXJ0cy9h Y3RhbGlzLWF1dGNsaWczMDEGCCsGAQUFBzABhiVodHRwOi8vb2NzcDA5LmFjd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