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

Upgrade path fixes and improvements #2424

Merged
merged 3 commits into from
Nov 3, 2020

Conversation

vaibhavhd
Copy link
Contributor

Description of PR

Summary: Improvements added to:

  1. Remove the downloaded image from /host/ if the installation fails.
  2. To support warm boot upgrade from 201811 to 201911, the warm-reboot has to be forced -f to get past the ASIC Configuration changed error.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

What is the motivation for this PR?

If the image installation fails, the stale image remains in the DUT /host/ directory which takes up the space unnecessarily.
Also, added support for image upgrade from 201811 to 201911.

How did you verify/test it?

Tested upgrade from 201811-201811, 201911-201911 and 201811-201911 (presently fails due to db_migrator error that this testcase discovered (sonic-net/sonic-buildimage#5738)

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@@ -30,7 +30,9 @@

def exec_command(module, cmd, ignore_error=False, msg="executing command"):
rc, out, err = module.run_command(cmd)
if not ignore_error and rc != 0:
if ignore_error:
return rc, out, err
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should restore the original code structure and change line 38 instead. With your change, the succeeded path will return different number of return values.

@vaibhavhd vaibhavhd requested a review from yxieca November 2, 2020 17:41
@vaibhavhd vaibhavhd merged commit 1306417 into sonic-net:master Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants