Skip to content

Conversation

@gfalaschi
Copy link

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #(issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

  • Test A
  • Test B

@adamjensenbot
Copy link
Collaborator

Hi @gfalaschi. Thanks for your PR!

I am @adamjensenbot.
You can interact with me issuing a slash command in the first line of a comment.
Currently, I understand the following commands:

  • /rebase: Rebase this PR onto the master branch (You can add the option test=true to launch the tests
    when the rebase operation is completed)
  • /merge: Merge this PR into the master branch
  • /build Build Liqo components
  • /test Launch the E2E and Unit tests
  • /hold, /unhold Add/remove the hold label to prevent merging with /merge

Make sure this PR appears in the liqo changelog, adding one of the following labels:

  • feat: 🚀 New Feature
  • fix: 🐛 Bug Fix
  • refactor: 🧹 Code Refactoring
  • docs: 📝 Documentation
  • style: 💄 Code Style
  • perf: 🐎 Performance Improvement
  • test: ✅ Tests
  • chore: 🚚 Dependencies Management
  • build: 📦 Builds Management
  • ci: 👷 CI/CD
  • revert: ⏪ Reverts Previous Changes

@github-actions github-actions bot added the feat Adds a new feature to the codebase label May 15, 2025
@cheina97
Copy link
Member

Hi @gfalaschi, thanks for your PR.

First of all, should you enrich the error returned by the functions instead of just printing it? (e.g fmt.Errorf("my error message: %w", err))

// Wait for Connections on both cluster to be created.
conn2, err := cluster2.waiter.ForConnection(ctx, gwServer.Namespace, cluster1.localClusterID)
if err != nil {
fmt.Print("GeneveTunnel doasn't exists in provider")
Copy link
Member

@cheina97 cheina97 May 15, 2025

Choose a reason for hiding this comment

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

The Connection resource is not related to the creation of the Geneve tunnel and the internal network. The Connection is related to the external network tunnel (e.g wireguard).

Copy link
Member

Choose a reason for hiding this comment

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

}
conn1, err := cluster1.waiter.ForConnection(ctx, gwClient.Namespace, cluster2.localClusterID)
if err != nil {
fmt.Print("GeneveTunnel doasn't exists in consumer")
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

return err
}
if err := cluster2.waiter.ForConnectionEstablished(ctx, conn2); err != nil {
fmt.Printf("Connection failed: port %v on cluster %v is closed or unreachable (IP: %v)\n", gwClient.Spec.Endpoint.Port, gwClient.Name, gwClient.Status.InternalEndpoint.IP)
Copy link
Member

Choose a reason for hiding this comment

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

Here you should print the spec.endpoint.addresses instead of the status.internalEndpoint.IP


// Wait for Connections on both cluster cluster to be established
if err := cluster1.waiter.ForConnectionEstablished(ctx, conn1); err != nil {
fmt.Printf("Connection failed: port %v on cluster %v is closed or unreachable (IP: %v)\n", gwServer.Spec.Endpoint.Port, gwServer.Name, gwClient.Status.InternalEndpoint.IP)
Copy link
Member

Choose a reason for hiding this comment

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

Here print status.endpoint.addresses instead of status.internalEndpoint.IP


// Wait for Connections on both cluster cluster to be established
if err := cluster1.waiter.ForConnectionEstablished(ctx, conn1); err != nil {
fmt.Printf("Connection failed: port %v on cluster %v is closed or unreachable (IP: %v)\n", gwServer.Spec.Endpoint.Port, gwServer.Name, gwClient.Status.InternalEndpoint.IP)
Copy link
Member

Choose a reason for hiding this comment

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

The error message is wrong, the unreachable port is the one on the server cluster, not on the client one

@cheina97 cheina97 force-pushed the master branch 2 times, most recently from bec7493 to 2f76836 Compare July 25, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat Adds a new feature to the codebase size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants