[SRU] walinuxagent IsPackaged() logic is broken, runs two instances of waagent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
walinuxagent (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned | ||
Quantal |
Fix Released
|
High
|
Unassigned | ||
Raring |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
All Azure instances that upgrade to agent 1.3 will have two versions of waagent (the script responisable for bootstrap on Azure) running. This may cause a race condition in the bootstrap, causing rebundled images to fail provisioning.
[Test Case]
New Image test (built with -proposed packages)
- Confirm that /etc/init/waagent is missing
- Confirm that "dpkg -S waagent" is present in /var/log/
Upgrade Image test:
- upgrade image using update in main
- Confirm that two agents are running:
status waagent
status walinuxagent
- upgrade to -proposed
- Confirm waagent init job is missing
status waagent (should return "status: Unknown job: waagent")
- Confirm that "dpkg -s waagent" is present in /var/log/
[Regression potential]
The regression potential is low, as this patch more intelligently determines whether or not walinuxagent is installed by using dpkg.
---
Updated bug report:
The variable used to determine whether or not it is packaged was not being exported properly. This results in two version of waaagent running.
---
Original bug report:
A typo in the verb that instructs the package whether or not it in a package has the incorrect verb.
The verb should be WAXLINUXAGENT_
This results in two version of the walinuxagent being executed.
summary: |
- walinuxagent default config uses wrong verb + walinuxagent IsPackaged logic is broken |
summary: |
- walinuxagent IsPackaged logic is broken + walinuxagent IsPackaged() logic is broken, runs two instances of waagent |
summary: |
- walinuxagent IsPackaged() logic is broken, runs two instances of waagent + [SRU] walinuxagent IsPackaged() logic is broken, runs two instances of + waagent |
affects: | ubuntu → walinuxagent (Ubuntu) |
description: | updated |
Changed in walinuxagent (Ubuntu Raring): | |
status: | Confirmed → Fix Released |
Changed in walinuxagent (Ubuntu Precise): | |
importance: | Undecided → Medium |
Changed in walinuxagent (Ubuntu Quantal): | |
importance: | Undecided → Medium |
Changed in walinuxagent (Ubuntu Precise): | |
importance: | Medium → High |
Changed in walinuxagent (Ubuntu Quantal): | |
importance: | Medium → High |
Changed in walinuxagent (Ubuntu Precise): | |
status: | New → In Progress |
Changed in walinuxagent (Ubuntu Quantal): | |
status: | New → In Progress |
tags: | added: verification-needed |
Attached potential fix branches.
Test case: waagent. conf waagent. conf
1. Build from PPA and upgrade affected system. Only one agent should be running and no /etc/init/
2. Build images from PPA. Only one agent should be running and no /etc/init/
AFAIK, have two agents running should not be a problem, so this can and should follow the regular SRU cycle unless there is a very compelling reason otherwise.