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

Multiple vms gets the same ip within the same network #781

Closed
Eslam-Nawara opened this issue Nov 5, 2023 · 5 comments
Closed

Multiple vms gets the same ip within the same network #781

Eslam-Nawara opened this issue Nov 5, 2023 · 5 comments
Assignees
Labels
type_bug Something isn't working
Milestone

Comments

@Eslam-Nawara
Copy link
Contributor

Description

  • I am trying to deploy a nomad cluster but deployment results in multiple vms with the same ip.

  • I've attempt to set the ip of "server1" to some value "10.1.2.2"

Expected Behavior

  • every vm should have different ip with only server1 with ip "10.1.2.2"

image

Actual Behavior

  • this resulted in more than one vm with ip "10.1.2.2"

image

all of the 3 vms are in the same node and I've tried multible nodes with the same result

@AbdelrahmanElawady
Copy link
Contributor

can you share the tf file please

@AbdelrahmanElawady AbdelrahmanElawady self-assigned this Nov 5, 2023
@AbdelrahmanElawady
Copy link
Contributor

It seems a problem with the Go grid client that it assigns the same IP for different deployments when on the same network
threefoldtech/tfgrid-sdk-go#457

@AbdelrahmanElawady AbdelrahmanElawady added the type_bug Something isn't working label Nov 5, 2023
@AbdelrahmanElawady AbdelrahmanElawady moved this to In Progress in 3.13.x Nov 5, 2023
@xmonader xmonader added this to the 1.9.4 milestone Nov 6, 2023
@rawdaGastan rawdaGastan moved this from In Progress to In Verification in 3.13.x Nov 16, 2023
@rawdaGastan
Copy link
Collaborator

rawdaGastan commented Dec 14, 2023

Verification

node1_zmachine1_ip = "172.20.3.2"
node2_zmachine1_ip = "172.20.3.3"

Problem

Tried to deploy 2 deployments of 2 VMs on different nodes, but the IPs were the same ❌

node1_zmachine1_ip = "172.20.3.2"
node2_zmachine1_ip = "172.20.3.2"

This is because the parallelism that terraform supports for the resource, so if we deployed 2 vm resources it won't wait for the state to be updated

We should mention this issue as a known one in the README

@rawdaGastan rawdaGastan moved this from In Verification to In Progress in 3.13.x Dec 14, 2023
@rawdaGastan
Copy link
Collaborator

Known issue

Tried to deploy 2 deployments of 2 VMs on different nodes, but the IPs were the same ❌

node1_zmachine1_ip = "172.20.3.2"
node2_zmachine1_ip = "172.20.3.2"

This is because the parallelism that terraform supports for the resource, so if we deployed 2 or more vm resources it won't wait for the state to be updated, hence the same IP will be assigned for them

@github-project-automation github-project-automation bot moved this from In Progress to Done in 3.13.x Dec 21, 2023
@rawdaGastan rawdaGastan modified the milestones: 1.9.4, v1.9.3 Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type_bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants