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 bug: waagent could not get IPv4 if IPv6 is enabled on FreeBSD #65

Merged
merged 1 commit into from
Feb 2, 2015

Conversation

andyzhangx
Copy link
Contributor

#1. Customer Scenario Impact

waagent could get IPv4 if IPv6 is enabled on FreeBSD, thus FreeBSD VM provioning always fail in azure. Attach the error log of waagent.

  1. Repro Steps
    In FreeBSD VM:
  2. Enable both IPv4 and IPv6:
    vi /etc/rc.conf
    ifconfig_hn0="SYNCDHCP"
    ifconfig_hn0_ipv6="inet6 accept_rtadv"

. 3. Root Cause

In GetFreeBSDEthernetInfo function in waagent.py:
cmd='ifconfig | grep -A1 -B2 ether | grep -B3 inet | grep -A3 UP '
When IPv6 is enabled, it will always get the IPv6 address
#4. Fix & Work around:

Disable IPv6 in the FreeBSD vhd

yuezh added a commit that referenced this pull request Feb 2, 2015
fix bug: waagent could not get IPv4 if IPv6 is enabled on FreeBSD
@yuezh yuezh merged commit 45fc136 into 2.0 Feb 2, 2015
@hglkrijger hglkrijger deleted the andyfreebsd branch June 1, 2016 17:48
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.

2 participants