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: Check if any interface has global unicast address instead of all interfaces #182

Merged
merged 3 commits into from
Dec 11, 2022
Merged

Conversation

kugo12
Copy link
Contributor

@kugo12 kugo12 commented Dec 11, 2022

This allows us to have multiple interfaces and only one (instead of all) has to have assigned ip

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #164

… interfaces

This allows us to have multiple interfaces and only one (instead of all) has to have assigned ip
bpg
bpg previously approved these changes Dec 11, 2022
Copy link
Owner

@bpg bpg left a comment

Choose a reason for hiding this comment

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

Hey @kugo12, thanks for the PR!
LGTM, just added a test case to the examples.

@bpg bpg merged commit 722e010 into bpg:main Dec 11, 2022
@ghost ghost mentioned this pull request Dec 11, 2022
otopetrik added a commit to otopetrik/terraform-provider-proxmox that referenced this pull request May 23, 2023
VM can get IPv6 link-local address faster than a DHCP server response,
that results in 'ipv4_addresses' output being an empty list.
It is then impossible to provision the VM using 'connection.host' field
derived from 'self.ipv4_addresses'.

Once again change waiting for IP address to wait for better address than
IPv4 link-local addresses and IPv6 link-local addresses.

Should not break bpg#182, because it requires only one GlobalUnicast address per VM.
bpg pushed a commit that referenced this pull request May 23, 2023
…#345)

fix: Wait for 'net.IsGlobalUnicast' IP address, again (#100)

VM can get IPv6 link-local address faster than a DHCP server response,
that results in 'ipv4_addresses' output being an empty list.
It is then impossible to provision the VM using 'connection.host' field
derived from 'self.ipv4_addresses'.

Once again change waiting for IP address to wait for better address than
IPv4 link-local addresses and IPv6 link-local addresses.

Should not break #182, because it requires only one GlobalUnicast address per VM.
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.

Timeout on VM's that have network interfaces without an ip assigned.
2 participants