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

Dual-stack case is broken for Vagrant-based test cluster #3157

Closed
antoninbas opened this issue Dec 21, 2021 · 0 comments · Fixed by #3158
Closed

Dual-stack case is broken for Vagrant-based test cluster #3157

antoninbas opened this issue Dec 21, 2021 · 0 comments · Fixed by #3158
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@antoninbas
Copy link
Contributor

Describe the bug
Trying to run ./provision -ip-family dual and deploying Antrea (v1.4) in the created cluster will not work. Antrea Agents will keep crashing because of an initialization error:

I1221 21:17:14.361053       1 log_file.go:99] Set log file max size to 104857600
I1221 21:17:14.361914       1 agent.go:72] Starting Antrea agent (version v1.5.0-dev-aa018fa8.dirty)
I1221 21:17:14.361961       1 client.go:79] No kubeconfig file was specified. Falling back to in-cluster config
I1221 21:17:14.363310       1 client.go:79] No kubeconfig file was specified. Falling back to in-cluster config
I1221 21:17:14.363761       1 prometheus.go:171] Initializing prometheus metrics
I1221 21:17:14.364282       1 ovs_client.go:67] Connecting to OVSDB at address /var/run/openvswitch/db.sock
I1221 21:17:14.365134       1 agent.go:338] Setting up node network
F1221 21:17:14.377570       1 main.go:58] Error running agent: error initializing agent: failed to get local IPNet device with IP &{192.168.77.100 fd3b:fcf5:3e92:d732::100}: IPs of localIPs should be on the same device

This was because #2436 introduced the limitation that both IP addresses have to be assigned to the same device on the Node. This was deemed a reasonable limitation during review. However, for the Vagrant-based test cluster, this condition is not meant: 2 different networks are created for the different address families.

To satisfy the condition, we need to find a mechanism to assign both IPs to the same device. It's unlikely that there is a standard way to do this in the Vagrantfile, we may have to run a script in each Vagrant VM to move the IP.

@antoninbas antoninbas added the kind/bug Categorizes issue or PR as related to a bug. label Dec 21, 2021
@antoninbas antoninbas self-assigned this Dec 21, 2021
antoninbas added a commit to antoninbas/antrea that referenced this issue Dec 22, 2021
Use same private network for IPv4 and IPv6 by using a custom netplan
instead of relying on Vagrant to configure K8s networking. This enables
us to meet the condition that both the Node's IPv4 and IPv6 addresses be
assigned to the same interface (required by Antrea).

Fixes antrea-io#3157

Signed-off-by: Antonin Bas <[email protected]>
antoninbas added a commit that referenced this issue Dec 23, 2021
Use same private network for IPv4 and IPv6 by using a custom netplan
instead of relying on Vagrant to configure K8s networking. This enables
us to meet the condition that both the Node's IPv4 and IPv6 addresses be
assigned to the same interface (required by Antrea).

Fixes #3157

Signed-off-by: Antonin Bas <[email protected]>
bangqipropel pushed a commit to bangqipropel/antrea that referenced this issue Jan 19, 2022
Use same private network for IPv4 and IPv6 by using a custom netplan
instead of relying on Vagrant to configure K8s networking. This enables
us to meet the condition that both the Node's IPv4 and IPv6 addresses be
assigned to the same interface (required by Antrea).

Fixes antrea-io#3157

Signed-off-by: Antonin Bas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant