Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arista platform installation failure #7566

Closed
yxieca opened this issue May 9, 2021 · 0 comments · Fixed by sonic-net/sonic-utilities#1625
Closed

Arista platform installation failure #7566

yxieca opened this issue May 9, 2021 · 0 comments · Fixed by sonic-net/sonic-utilities#1625
Assignees
Labels
Master Branch Quality P0 Priority of the issue

Comments

@yxieca
Copy link
Contributor

yxieca commented May 9, 2021

Description

Arista platform installation is failing after sonic-net/sonic-utilities#1527

Steps to reproduce the issue:

  1. Install master image with the change.
  2. Install another master image with the change

Describe the results you received:

Traceback (most recent call last):
  File "/usr/local/bin/sonic_installer", line 8, in <module>
    sys.exit(sonic_installer())
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/sonic_installer/main.py", line 437, in install
    migrate_sonic_packages(bootloader, binary_image_version)
  File "/usr/local/lib/python3.7/dist-packages/sonic_installer/main.py", line 332, in migrate_sonic_packages
    new_image_upper_dir = get_path(UPPERDIR_NAME)
  File "/usr/local/lib/python3.7/dist-packages/sonic_installer/main.py", line 329, in get_path
    return stack.enter_context(bootloader.get_path_in_image(new_image_dir, path))
  File "/usr/lib/python3.7/contextlib.py", line 426, in enter_context
    result = _cm_type.__enter__(cm)
  File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.7/dist-packages/sonic_installer/bootloader/aboot.py", line 198, in get_path_in_image
    offset = self._get_swi_file_offset(swipath, path)
  File "/usr/local/lib/python3.7/dist-packages/sonic_installer/bootloader/aboot.py", line 186, in _get_swi_file_offset
    with zipfile.ZipFile(swipath) as swi:
  File "/usr/lib/python3.7/zipfile.py", line 1204, in __init__
    self.fp = io.open(file, filemode)
FileNotFoundError: [Errno 2] No such file or directory: '/host/image-HEAD.725-bfae15fb/sonic.swi'
admin@str-7260cx3-acs-2:~$ ls /host/image-HEAD.725-bfae15fb/
allowlist_paths.conf  docker/               .imagehash            platform/             sonic-config/         version               
boot/                 fs.squashfs           kernel-cmdline        .sonic-boot.swi       swi-signature         
admin@str-7260cx3-acs-2:~$ ls /host/image-HEAD.725-bfae15fb/.sonic-boot.swi 
/host/image-HEAD.725-bfae15fb/.sonic-boot.swi
admin@str-7260cx3-acs-2:~$ vi /usr/local/lib/python3.7/dist-packages/sonic_installer/bootloader/aboot.py

Describe the results you expected:

Install image successful.

Output of show version:

admin@str-7260cx3-acs-2:~$ show version

SONiC Software Version: SONiC.HEAD.725-bfae15fb
Distribution: Debian 10.9
Kernel: 4.19.0-12-2-amd64
Build commit: bfae15fb
Build date: Sun May  9 03:04:43 UTC 2021
Built by: johnar@jenkins-worker-22

Output of show techsupport:

Additional information you deem important (e.g. issue happens only occasionally):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Master Branch Quality P0 Priority of the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants