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

feat(transparent-proxy): allow to wait for xtables lock and retry when installing tproxy fails #7870

Conversation

bartsmykla
Copy link
Contributor

@bartsmykla bartsmykla commented Sep 26, 2023

Allow to wait for xtables lock when something else is holding it concurrently with us + retry when tproxy installation fails

Checklist prior to review

  • Link to relevant issue as well as docs and UI issues
  • This will not break child repos: it doesn't hardcode values (.e.g "kumahq" as a image registry) and it will work on Windows, system specific functions like syscall.Mkfifo have equivalent implementation on the other OS
    • It won't
  • Tests (Unit test, E2E tests, manual test on universal and k8s)
    • manually tested and unit tests updated
  • Do you need to update UPGRADE.md?
    • There is no need
  • Does it need to be backported according to the backporting policy? (this GH action will add "backport" label based on these file globs, if you want to prevent it from adding the "backport" label use no-backport-autolabel label)
  • Do you need to explicitly set a > Changelog: entry here or add a ci/ label to run fewer/more tests?

It allows to introduce different type of builder, like
builder-restore

Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
When --wait was placed before the filename, it was treated
as if the filename was value of the flag

Signed-off-by: Bart Smykla <bartek@smykla.com>
Only legacy version (non-nftables) allow to use `--wait` and
`--wait-interval` flags

Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
@bartsmykla bartsmykla requested a review from a team as a code owner September 26, 2023 10:43
@bartsmykla bartsmykla requested review from michaelbeaumont and lukidzi and removed request for a team September 26, 2023 10:43
@bartsmykla
Copy link
Contributor Author

/format

@slonka
Copy link
Contributor

slonka commented Sep 26, 2023

@bartsmykla format does not work #7870 (comment)

EDIT: pushed a commit that should make it work, hope you don't mind, if you do, let me know

@lahabana
Copy link
Contributor

Here's the issue: #7873

Signed-off-by: slonka <slonka@users.noreply.github.com>
Copy link
Contributor

@slonka slonka left a comment

Choose a reason for hiding this comment

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

Couple of questions around switches

app/kumactl/cmd/install/install_transparent_proxy.go Outdated Show resolved Hide resolved
pkg/transparentproxy/config/config.go Outdated Show resolved Hide resolved
Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
…t-and-retry-when-installing-tproxy

Signed-off-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
Copy link
Contributor

@slonka slonka left a comment

Choose a reason for hiding this comment

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

All good apart from one discrepancy

app/kumactl/cmd/install/install_transparent_proxy.go Outdated Show resolved Hide resolved
Signed-off-by: Bart Smykla <bartek@smykla.com>
@bartsmykla
Copy link
Contributor Author

/format

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@bartsmykla
Copy link
Contributor Author

/format

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@bartsmykla bartsmykla closed this Sep 27, 2023
@bartsmykla bartsmykla reopened this Sep 27, 2023
@bartsmykla bartsmykla merged commit 078c2ef into kumahq:master Sep 27, 2023
9 checks passed
@bartsmykla bartsmykla deleted the feat/allow-to-wait-and-retry-when-installing-tproxy branch September 27, 2023 07:45
@github-actions
Copy link
Contributor

github-actions bot commented Sep 27, 2023

backporting to release-2.2 with action

backporting to release-2.4 with action
backporting to release-2.0 with action

@github-actions
Copy link
Contributor

backporting to release-2.1 with action

kumahq bot pushed a commit that referenced this pull request Sep 27, 2023
…n installing tproxy fails (#7870)

Signed-off-by: Bart Smykla <bartek@smykla.com>
kumahq bot pushed a commit that referenced this pull request Sep 27, 2023
…n installing tproxy fails (#7870)

Signed-off-by: Bart Smykla <bartek@smykla.com>
kumahq bot pushed a commit that referenced this pull request Sep 27, 2023
…n installing tproxy fails (#7870)

Signed-off-by: Bart Smykla <bartek@smykla.com>
kumahq bot pushed a commit that referenced this pull request Sep 27, 2023
…n installing tproxy fails (#7870)

Signed-off-by: Bart Smykla <bartek@smykla.com>
kumahq bot pushed a commit that referenced this pull request Sep 27, 2023
…n installing tproxy fails (#7870)

Signed-off-by: Bart Smykla <bartek@smykla.com>
@@ -55,7 +55,8 @@ message ExternalService {
// The default value is set to "address" specified in "networking".
google.protobuf.StringValue server_name = 6;

// If true then hostname verification will be skipped during certificate verification.
// If true then hostname verification will be skipped during certificate
// verification.
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to not change unrelated files in the future

bartsmykla pushed a commit that referenced this pull request Sep 27, 2023
…n installing tproxy fails (backport of #7870) (#7892)

Signed-off-by: Bart Smykla <bartek@smykla.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Iptables locked and is not retried
3 participants