bug#78202: "parted -s /dev/nbd0 mklabel gpt" fails without error message only in release automation
"Andreas K. Huettel" <[email protected]> Sun, 04 May 2025 14:50:52 +0200
| Newsgroups | gmane.comp.gnu.parted.bugs |
|---|---|
| Organization | Gentoo Linux |
| Message-ID | <3285383.IobQ9Gjlxr@noumea> |
--nextPart4054205.Isy0gbHreE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: "Andreas K. Huettel" <[email protected]> To: "Brian C. Lane" <[email protected]> Cc: [email protected], [email protected] Date: Sun, 04 May 2025 14:50:52 +0200 Message-ID: <3285383.IobQ9Gjlxr@noumea> Organization: Gentoo Linux In-Reply-To: <[email protected]> MIME-Version: 1.0 Am Freitag, 2. Mai 2025, 18:19:36 Mitteleurop=C3=A4ische Sommerzeit schrieb= en Sie: > >=20 >=20 > [snip] >=20 > > 6480 ioctl(3, BLKSSZGET, [512]) =3D 0 > > 6481 fadvise64(3, 0, 0, POSIX_FADV_RANDOM) =3D 0 > > 6482 fstat(3, {st_mode=3DS_IFBLK|0660, st_rdev=3Dmakedev(0x2b, 0), .= =2E.}) =3D 0 > > 6483 ioctl(3, BLKGETSIZE64, [0]) =3D 0 >=20 > That looks bad :) It's reporting the disk size is zero. No idea why, it > seems to get the sector size and later on the io size, etc. ok but a > zero length disk will certainly cause problems. Yes that's a good data point indeed, thank you. >=20 > I've never used nbd much, but my guess would be that this is a setup > timing issue, that you need to do something else to make double extra > sure that the nbd device is really completely setup and ready to use. >=20 > Adding a sleep may help identify the problem, but I wouldn't depend on > it as a solution. Interestingly, 5s sleep seems to help (I went for an ample amount, since the process is not time critical). So we seem to be good for the moment. Some other log reading in the meantime turned up that the problem may have started when the build host was upgraded from kernel 6.6 to 6.12 ...=20 something to maybe look at and verify later here. Unfortunately the machine is very busy and I want to avoid too many reboots. >=20 > I'd also recommend adding some checks to make sure device nodes are > really present before you create the filesystem, as well as 'udevadm > settle' to make sure udev has finished up in the background. These are > problems we used to hit in the parted test suite, and came up with this > code: >=20 > https://github.com/bcl/parted/blob/master/tests/t-local.sh#L45 Thanks a lot! Andreas >=20 > Good luck! >=20 > Brian >=20 >=20 =2D-=20 Andreas K. H=C3=BCttel [email protected] Gentoo Linux developer=20 (council, comrel, toolchain, base-system, perl, libreoffice) https://wiki.gentoo.org/wiki/User:Dilfridge --nextPart4054205.Isy0gbHreE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE/Rnm0xsZLuTcY+rT3CsWIV7VQSoFAmgXYqwACgkQ3CsWIV7V QSqXAhAAodNRuEzVyOnHHmI1Jkpvja9YVNjZpc9t9cmthUVDa2wvHwmMdRPvqVy4 oykwv/15EdZ/5dSMV2uCcOlfH4EOeJyY6ZSNycaXdEdU4Vlw24O9OVG+nghx7Te0 8/Y9SOcBHaNH9pPeV3uTgkF4OxbC+qZBQagOesEuwYjyk/k48z2DxqWY2y1L/v1D aldEpRfUfthGcQHII7Pof7XwsJS/XKezXngVmmGbHefAM56saDQX+soKcSDI9eKh snpGI27PrGtl7FcTgY4m3NCMLRDp8jjHI+gR3DGj5uqWc/LAEohqqNd4UfCzNWZF IFh+2WtKK7jo6upqhZnP/Dql9S2Vn7ZkkeSiPizylVacTTwoqjSfpgQFoN+kMiww y+CNQ11+DUILIkNcW5fX4ZCI7XJdtk4oSXQTWtEITzdENuwRXCPH+oEcE+81mJg8 fROPowm2xUB1MCGzOGFnVtPfrnP1ZHlhsR6FX9xiBmGqY7iRtx1IqebTUwe5QeZh MpSh97kProjufV7pCPykiBbwHq0gZgZ6nfNllgg/r35KQLrhPcX/59M2iDh2GMtK nWk5JxzFIl0rJPs0b2amiYvh7zdHgpsDH2QzvACGPiL/ayDkBRxmWZW9PIOiJ69U AjnteiSCyQEOxscmm2EOlfEO/Wih2bKxPYrRwhoF2XsDLnxVBqA= =n3mL -----END PGP SIGNATURE----- --nextPart4054205.Isy0gbHreE--