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

fix: remove server network interface workaround #1021

Merged
merged 7 commits into from
Nov 11, 2024

Conversation

jooola
Copy link
Member

@jooola jooola commented Oct 28, 2024

Remove a server workaround that was used to fix a private network issue.

The problem that this workaround tried to solve was a timing issue. When the workaround was implemented, the action returned by the attach to network endpoint was marked as success without waiting for the network definition to be applied on the host. Today, the actions returned by the attach to network endpoint do wait for the network definition to be applied on the host.

The workaround can therefor be removed with a certain confidence.

Supersede #1020

Fixes #1019

Related to #552 and #550

@jooola jooola requested a review from a team as a code owner October 28, 2024 13:42
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 66.28%. Comparing base (93d8b1e) to head (6a1553f).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
internal/testtemplate/template.go 83.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1021      +/-   ##
==========================================
+ Coverage   66.13%   66.28%   +0.15%     
==========================================
  Files          66       66              
  Lines        9874     9868       -6     
==========================================
+ Hits         6530     6541      +11     
+ Misses       2628     2612      -16     
+ Partials      716      715       -1     
Flag Coverage Δ
e2e 66.28% <83.33%> (+0.15%) ⬆️
unit 30.09% <83.33%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@apricote
Copy link
Member

This issue that caused the workaround only happens sporadically, a single successful test run does not give me confidence that the issue went away.

IIRC we tried to setup some e2e tests that were able to reproduce a few months ago with a bastion server and SSH, not sure if we even merged that.

@samene
Copy link

samene commented Oct 28, 2024

This issue that caused the workaround only happens sporadically, a single successful test run does not give me confidence that the issue went away.

IIRC we tried to setup some e2e tests that were able to reproduce a few months ago with a bastion server and SSH, not sure if we even merged that.

But the workaround causes issues with userdata scripts. If we stop a server which is midway running cloud-init it can cause uncertain behaviour. some scripts do not run again on the next boot.

@apricote
Copy link
Member

I understand that you have an issue and we should fix that.

I just wanted to say that the suggested solution of removing the workaround is also not without downsides, as it might introduce another bug.

@jooola We previously tried to remove this workaround in the plugin-framework-server branch and it looks like we at least finished writing the test case that validates the behavior the workaround originally tried to fix: 3c16a22

@jooola jooola marked this pull request as draft October 29, 2024 19:21
@jooola jooola force-pushed the remove-server-start-stop-network-workaround branch from ab4ab1c to 6cf948e Compare November 6, 2024 13:34
@jooola
Copy link
Member Author

jooola commented Nov 6, 2024

Marking as ready to review, only to run the e2e.

@jooola jooola marked this pull request as ready for review November 6, 2024 13:35
@jooola jooola force-pushed the remove-server-start-stop-network-workaround branch 5 times, most recently from ce48cf7 to adb934c Compare November 7, 2024 12:18
@jooola jooola force-pushed the remove-server-start-stop-network-workaround branch from adb934c to 9a54e19 Compare November 8, 2024 10:32
@jooola jooola requested a review from apricote November 8, 2024 13:35
@jooola
Copy link
Member Author

jooola commented Nov 8, 2024

We found the origin of the workaround. I am confident that we can remove it without breaking anything.

@apricote
Copy link
Member

Thank you @jooola for researching the original conditions that lead to the workaround and making sure the underlying problem is now fixed.

@jooola jooola merged commit be330df into main Nov 11, 2024
8 checks passed
@jooola jooola deleted the remove-server-start-stop-network-workaround branch November 11, 2024 09:46
jooola pushed a commit that referenced this pull request Nov 21, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.49.1](v1.49.0...v1.49.1)
(2024-11-21)


### Bug Fixes

* remove server network interface workaround
([#1021](#1021))
([be330df](be330df))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

[Bug]: server starts and stops two times during first boot
3 participants