-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
sonic image downgrade failure from latest public master image #7518
Comments
@sujinmkang @lguohan @liat-grozovik Is donwgrade supported in SONiC? I had an assumption that it is not. If this part of sonic-installer needs to pass when downgrading you can use "--skip-package-migration" or I can make a change that this part will never fail even if it is not successful. |
@stepanblyschak , we did not install any package in master, why do we need to explicitly pass the --skip-package-migration option here? if there is no custom package being installed on the system, it should make no difference and the installation should not fail. |
@stepanblyschak we consistently install an older image then install the target image on DUT in nightly tests to avoid unintended change with stale images. We also has testbed test images in multiple branches. For these use cases, we really need to have the installer solid and forgiving. |
@stepanblyschak Not only skip_package_migration but also skip_migration shouldn't fail either. skip_migration fails during 201811 or 201911 image downgrade and it leaves mounted new image in /tmp directory. |
Please check sonic-net/sonic-utilities#1591 |
- What I did Do not fail when user is doing downgrade. Fix sonic-net/sonic-buildimage#7518 - How I did it Ignoring failures. - How to verify it On master image install 202012 image. Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
- What I did Do not fail when user is doing downgrade. Fix sonic-net/sonic-buildimage#7518 - How I did it Ignoring failures. - How to verify it On master image install 202012 image. Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
- What I did Do not fail when user is doing downgrade. Fix sonic-net/sonic-buildimage#7518 - How I did it Ignoring failures. - How to verify it On master image install 202012 image. Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Description
SONiC image downgrade fails from the latest public images.
The failures are related to the sonic-package-manager PR.
sonic-net/sonic-utilities#1527
Steps to reproduce the issue:
Describe the results you received:
Here is the output example from public master to 201911 branch image.
In this case, docker.sh is not available so
sonic-installer install
fails and it also leaves the unmounted image file system under /tmp/ directory and the following installation with same image will fails again but even earlier when the image file system is mounted.Here is the output of installation from public master to previous master branch image.
In this case, the sonic-package-manager is not available but docker.sh is available so mounted image file system can be un-mounted but the installation still fails with following error.
Describe the results you expected:
something similar to this.
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: