sonic-net / sonic-mgmt

Configuration management examples for SONiC
Other
195 stars 714 forks source link

Sonic-mgmt: Error while setup T0 topology for sonic-vs image #9003

Open dhamu04 opened 1 year ago

dhamu04 commented 1 year ago

while creating T0 topology using below link on ubuntu 20.04

https://github.com/sonic-net/sonic-mgmt/blob/master/docs/testbed/README.testbed.VsSetup.md

I was facing issue on the below step.

Setup VMs on the server:

./testbed-cli.sh -m veos_vtb -n 4 -k vsonic start-vms server_1 password.txt

fatal: [STR-ACS-VSERV-01]: FAILED! => {"attempts": 5, "changed": false, "msg": "Failed to update apt cache: W:Updating from such a repository can't be done securely, and is therefore disabled by default., W:See apt-secure(8) manpage for repository creation and user configuration details., E:The repository 'file:/cdrom focal Release' no longer has a Release file."}

PLAY RECAP *** STR-ACS-VSERV-01 : ok=12 changed=0 unreachable=0 failed=1 skipped=12 rescued=0 ignored=0

=============================================================================== vm_set : Run the "apt-get update" as a separate and retryable step -------------------------------------------------- 100.00s vm_set : remove old python packages ----------------------------------------------------------------------------------- 3.55s vm_set : Add docker official GPG key ---------------------------------------------------------------------------------- 3.53s vm_set : Install necessary packages ----------------------------------------------------------------------------------- 2.76s vm_set : Install necessary packages ----------------------------------------------------------------------------------- 1.77s vm_set : get host distribution ---------------------------------------------------------------------------------------- 1.46s vm_set : Check docker repository -------------------------------------------------------------------------------------- 0.60s vm_set : get host distribution version -------------------------------------------------------------------------------- 0.35s vm_set : get host kernel version -------------------------------------------------------------------------------------- 0.27s vm_set : include_tasks ------------------------------------------------------------------------------------------------ 0.17s vm_set : Get default pip_executable ----------------------------------------------------------------------------------- 0.11s vm_set : Get default pip_executable ----------------------------------------------------------------------------------- 0.08s vm_set : Check if kernel upgrade needed ------------------------------------------------------------------------------- 0.06s vm_set : Set the default variable package_installation ---------------------------------------------------------------- 0.05s vm_set : Upgrade kernel package --------------------------------------------------------------------------------------- 0.05s vm_set : Report docker repository exists ------------------------------------------------------------------------------ 0.04s vm_set : debug -------------------------------------------------------------------------------------------------------- 0.04s vm_set : Install necessary packages ----------------------------------------------------------------------------------- 0.04s vm_set : Prompt for rebooting ----------------------------------------------------------------------------------------- 0.04s vm_set : Add docker repository for 16.04 ------------------------------------------------------------------------------ 0.04s

bingwang-ms commented 1 year ago

It looks like the apt source is set to cd rom, while the cd rom is not available. Can you check the apt setting on your machine?