[SRU] dhclient.conf regression in walinuxagent 2.0.16-0ubuntu2~12.04.0

Bug #1579192 reported by Stephen A. Zarkos
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
walinuxagent (Ubuntu)
Invalid
High
Unassigned
Precise
Fix Released
High
Dan Watkins

Bug Description

[Test Case]

Repro:
 - Create an Ubuntu 12.04 VM in Azure
 - Upgrade to the latest walinuxagent package for Precise (2.0.16-0ubuntu2~12.04.0)
 - Change the hostname
 - Run "sudo ifdown eth0 && sudo ifup eth0"
 - After a few seconds run "hostname -f"

Expected: Hostname is resolvable.

Result: Hostname is not resolvable because the new hostname was not sent to the DHCP server, because the dhclient.conf configuration is incorrect.

[Regression Potential]

The new postinst performs a sed which will only catch the line that was incorrectly sed'ed in the previous version of the package. Regression potential is minimal.

[Original Report]

The latest walinuxagent 2.0.16-0ubuntu2~12.04.0 package for Precise included the postinst file from the Trusty package. The postinst script configures dhclient.conf so that the DHCP client sends the system's current hostname to the DHCP server. Unfortunately, the dhclient.conf configuration is different for Precise and Trusty, and thus this functionality regressed in Precise.

The solution is to just replace the postinst file in the Precise package for the 2.0.16 walinuxagent with one from an older/correct package, and rebuild the package. If it helps I've attached the correct postinst file for Precise to this bug.

Revision history for this message
Stephen A. Zarkos (stevez) wrote :
Dan Watkins (oddbloke)
Changed in walinuxagent (Ubuntu):
assignee: nobody → Dan Watkins (daniel-thewatkins)
status: New → In Progress
Revision history for this message
Dan Watkins (oddbloke) wrote :
summary: - dhclient.conf regression in walinuxagent 2.0.16-0ubuntu2~12.04.0
+ [SRU] dhclient.conf regression in walinuxagent 2.0.16-0ubuntu2~12.04.0
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lp1579192.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Mathew Hodson (mhodson)
tags: added: precise
tags: added: regression-update
Changed in walinuxagent (Ubuntu):
importance: Undecided → High
Revision history for this message
Robie Basak (racb) wrote :

I'm sponsoring this because uploading is clearly better than not uploading in this case.

However, I think it's worth looking into what went wrong with SRU verification the first times round, as this appears to be a regression of a regression of a regression (or something like that, I don't quite follow).

I'm also ignoring the fact that sedding some other package's conffile is broken, again because doing the SRU will not make it any worse.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Stephen, or anyone else affected,

Accepted walinuxagent into precise-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/walinuxagent/2.0.16-0ubuntu2~12.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in walinuxagent (Ubuntu):
status: In Progress → Invalid
Changed in walinuxagent (Ubuntu Precise):
assignee: nobody → Dan Watkins (daniel-thewatkins)
importance: Undecided → High
Changed in walinuxagent (Ubuntu):
assignee: Dan Watkins (daniel-thewatkins) → nobody
Changed in walinuxagent (Ubuntu Precise):
status: New → Fix Committed
Matt Bearup (mbearup)
tags: added: verification-done
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package walinuxagent - 2.0.16-0ubuntu2~12.04.1

---------------
walinuxagent (2.0.16-0ubuntu2~12.04.1) precise; urgency=medium

  * Stop postinst from breaking dhclient.conf by using post-precise
    configuration, and unbreak any systems which were broken by the previous
    postinst (LP: #1579192)

 -- Daniel Watkins <email address hidden> Thu, 12 May 2016 16:40:39 +0100

Changed in walinuxagent (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for walinuxagent has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.