Bug 15077 - AB-INT: unfs couldn't bind to tcp port 3049
Summary: AB-INT: unfs couldn't bind to tcp port 3049
Status: RESOLVED FIXED
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: oeqa/runtime (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.3 M1
Assignee: Alexander Kanavin
QA Contact:
URL:
Whiteboard: AB-INT AB-HAVE-PLAN
Depends on:
Blocks:
 
Reported: 2023-03-23 14:19 UTC by Alexandre Belloni
Modified: 2023-06-15 14:47 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belloni 2023-03-23 14:19:41 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/6859/steps/19/logs/stdio

qemuarm fedora37-ty-3


Starting User Mode nfsd
  /home/pokybuild/yocto-worker/qemuarm/build/build-st-866746/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/pseudo -P /home/pokybuild/yocto-worker/qemuarm/build/build-st-866746/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr /home/pokybuild/yocto-worker/qemuarm/build/build-st-866746/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/unfsd -p -i /home/pokybuild/.runqemu-sdk/nfs0.pid -e /home/pokybuild/.runqemu-sdk/exports0 -n 3049 -m 3048
bind: Address already in use
Couldn't bind to tcp port 3049
Error starting nfsd
Comment 4 Alexander Kanavin 2023-06-14 07:20:30 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/145/builds/34

scripts/runqemu-export-rootfs should be altogether refactored to not hardcode 3049, as this is racy and causes clashes. 

meta/ib/oeqa/utils/nfs.py does it better: pick a random available port.

Also, it should use randomly generated file paths to avoid races there as well.