sonic-buildimage/scripts
Liu Shilong 7b848ab147
[Build] Fix the build unstalbe issue caused by the kvm not ready (#12180) (#12354)
Why I did it
Fix the build unstable issue caused by the kvm 9000 port is not ready to use in 2 seconds.

2022-09-02T10:57:30.8122304Z + /usr/bin/kvm -m 8192 -name onie -boot order=cd,once=d -cdrom target/files/bullseye/onie-recovery-x86_64-kvm_x86_64_4_asic-r0.iso -device e1000,netdev=onienet -netdev user,id=onienet,hostfwd=:0.0.0.0:3041-:22 -vnc 0.0.0.0:0 -vga std -drive file=target/sonic-6asic-vs.img,media=disk,if=virtio,index=0 -drive file=./sonic-installer.img,if=virtio,index=1 -serial telnet:127.0.0.1:9000,server
2022-09-02T10:57:30.8123378Z + sleep 2.0
2022-09-02T10:57:30.8123889Z + '[' -d /proc/284923 ']'
2022-09-02T10:57:30.8124528Z + echo 'to kill kvm:  sudo kill 284923'
2022-09-02T10:57:30.8124994Z to kill kvm:  sudo kill 284923
2022-09-02T10:57:30.8125362Z + ./install_sonic.py
2022-09-02T10:57:30.8125720Z Trying 127.0.0.1...
2022-09-02T10:57:30.8126041Z telnet: Unable to connect to remote host: Connection refused

How I did it
Waiting more time until the tcp port 9000 is ready, waiting for 60 seconds in maximum.

Co-authored-by: xumia <59720581+xumia@users.noreply.github.com>
2022-10-12 15:54:06 +08:00
..
build_debian_base_system.sh Fix the apt-get download package disorder issue (#8021) 2021-06-30 07:47:14 +00:00
build_kvm_image.sh [Build] Fix the build unstalbe issue caused by the kvm not ready (#12180) (#12354) 2022-10-12 15:54:06 +08:00
collect_build_version_files.sh Recover "Support SONiC Reproduceable Build-debian/pip/web packages (#6255) 2020-12-21 15:31:10 +08:00
collect_docker_version_files.sh Recover "Support SONiC Reproduceable Build-debian/pip/web packages (#6255) 2020-12-21 15:31:10 +08:00
collect_host_image_version_files.sh Fix the hostimage version path permission issue (#6337) 2021-01-03 06:04:05 -08:00
convert-pfx-cert-format.sh Simplify the function to covert pfx certificate (#5086) 2020-08-01 20:07:20 +08:00
dbg_files.sh Create the src archive in target/ when INSTALL_DEBUG_TOOLS=y (#3323) 2019-08-28 09:29:48 -07:00
docker_version_control.sh [build] Fix issues found in reproducible build. (#10407) 2022-03-31 20:39:49 +08:00
generate_buildinfo_config.sh Recover "Support SONiC Reproduceable Build-debian/pip/web packages (#6255) 2020-12-21 15:31:10 +08:00
prepare_debian_image_buildinfo.sh Recover "Support SONiC Reproduceable Build-debian/pip/web packages (#6255) 2020-12-21 15:31:10 +08:00
prepare_docker_buildinfo.sh Reproducible build support docker image (#8039) 2021-07-13 05:14:02 +00:00
prepare_slave_container_buildinfo.sh [build][Bug]: Fix the command set_reproducible_mirrors not found issue (#10398) 2022-03-31 06:12:20 +00:00
process_log.sh [build]: add SONIC_CONFIG_BUILD_LOG_TIMESTAMP to add timestamp in build log (#4269) 2020-03-21 14:21:26 -07:00
sign_image.sh [Secure Boot] Support to sign swi image (#4627) 2020-06-09 15:25:17 +08:00
versions_manager.py [Build]: Fix host image debian package version issue (#10358) 2022-03-29 04:36:43 +00:00
wait_for_docker.sh [build]: wait up to 60 seconds for docker engine to start (#3067) 2019-06-22 14:40:05 -07:00