** Description changed: - Regression from Bug #1449369: + SRU JUSTIFICATION + + [IMPACT] The backport of WALinuxAgent from 2.0.13 in Wily as part of bug + #1449369, broke the DHCP configuration for Ubuntu 12.04 on Azure. + Instances that boot with WALinuxAgent on Azure will use an invalid value + of "send host-name" resulting in hostname resolution failures + + [FIX] Update debian/postinst to use: + sed -i 's|^send host-name = gethostname();|send host-name "<hostname>";|g' /etc/dhcp/dhclient.conf + + This reverts the invalid behavior. + + [TEST] + 1. Boot up Azure instance with WALinuxAgent 2.0.13 + 2. Confirm that "sudo /bin/true" yields "sudo: unable to resolve host ..." + 3. Apply new package from -proposed + 4. Reboot + 5. Confirm that "sudo /bin/true" does not complain about hostname resolution. + + [ORIGINAL REPORT] The /etc/dhcp/dhclient.conf file is misconfigured. The postinst for WALinuxAgent for Trusty and later includes: if [ "$1" = "configure" ]; then - # fix for LP: 1268050 - sed -i 's|^send host-name "<hostname>";|send host-name = gethostname();|g' /etc/dhcp/dhclient.conf + # fix for LP: 1268050 + sed -i 's|^send host-name "<hostname>";|send host-name = gethostname();|g' /etc/dhcp/dhclient.conf fi This postinst is incorrect for 12.04. This regression was introduced when WALinuxAgent was updated from 2.0.8 to 2.0.13.
-- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to walinuxagent in Ubuntu. https://bugs.launchpad.net/bugs/1479610 Title: [SRU] walinuxagent regression on dhcp configuration To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/walinuxagent/+bug/1479610/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs