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

Gracefully setup/teardown network configs and sanitize ISO URL #1799

Conversation

albinsun
Copy link
Contributor

@albinsun albinsun commented Jan 21, 2025

Which issue(s) this PR fixes:

What this PR does / why we need it:

  1. Erro message backward compatibility of expected isourl/checksum in upgrade creation before v1.4.0

    screenshot

    image

  2. Fix flaky test

    • Gracefully teardown network config on each nodes thus confirm not to affect next multistage upgrade.
    • Confirm version is created before perform upgrade.

Ref. [TEST] v1.4.1 Release Testing - Automation - Two stage upgrade

Verification

  • v1.3.2 -> v1.4.0
    harvester-upgrade-test#135
    Image
  • v1.4.0 -> v1.4.1-rc1
    harvester-upgrade-test#136
    Image

@albinsun albinsun requested review from lanfon72, khushboo-rancher and a team January 21, 2025 06:30
if failed:
fmt = "Unable to delete VLAN Config {} with error ({}): {}"
endtime = datetime.now() + timedelta(seconds=wait_timeout)
while endtime > datetime.now():
Copy link
Member

Choose a reason for hiding this comment

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

we can use

while endtime > datetime.now() and created:

and I feel that 3 seconds is too long to perform another delete operation, in UI, user should able to do the deletion in every seconds.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes it's more concise, thank you.
Update in latest commit and with 1 sec sleep.

@khushboo-rancher khushboo-rancher merged commit b1ed0d3 into harvester:main Jan 24, 2025
4 checks passed
@albinsun albinsun deleted the enhance_cnet_setup_teardown_in_upgrade branch February 3, 2025 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants