stop being nice does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Debian) |
Fix Released
|
Unknown
|
|||
unattended-upgrades (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Trusty |
Fix Released
|
High
|
Brian Murray | ||
Utopic |
Fix Released
|
High
|
Brian Murray |
Bug Description
Test Case
---------
1) Install apache2 from the -release pocket
2) Run unattended-upgrades
3) Observe apache2 running with a niceness of 19
4) Downgrade apache2 to the version from the -release pocket
5) Install the version of unattended-upgrades from -proposed
6) Run unattended-upgrades
7) Observe apache2 running with a niceness of 0 i.e. no niceness
Since version 0.81, unattended-upgrades does the upgrade calculation with os.nice(19). To finish the nice block in /usr/bin/
os.nice(0)
Since the argument is interpreted as incremental, this should be:
os.nice(-19)
Without this fix, this problem is back:
https:/
"unattended-
Found in the trusty version (0.82.1ubuntu2), but probably in any version (including Debian) since 0.81.
tags: | added: regression-release |
tags: | added: trusty |
tags: | added: utopic vivid |
Changed in unattended-upgrades (Ubuntu Trusty): | |
status: | New → In Progress |
Changed in unattended-upgrades (Ubuntu Utopic): | |
status: | New → In Progress |
Changed in unattended-upgrades (Ubuntu Trusty): | |
importance: | Undecided → High |
Changed in unattended-upgrades (Ubuntu Utopic): | |
importance: | Undecided → High |
Changed in unattended-upgrades (Ubuntu Trusty): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in unattended-upgrades (Ubuntu Utopic): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in unattended-upgrades (Debian): | |
status: | Unknown → New |
tags: |
added: verification-needed-utopic removed: verification-needed |
tags: |
added: verification-needed-trusty removed: verification-done-trusty verification-needed |
Changed in unattended-upgrades (Debian): | |
status: | New → Fix Released |
I was able to confirm this by downgrading the version of apache2 installed to the one from the -release pocket and then running unattended upgrades:
5867 root 39 19 284732 15232 9748 S 0.0 0.4 0:00.04 apache2
5871 www-data 39 19 284764 5916 420 S 0.0 0.2 0:00.00 apache2
5872 www-data 39 19 284764 5916 420 S 0.0 0.2 0:00.00 apache2
5873 www-data 39 19 284764 5916 420 S 0.0 0.2 0:00.00 apache2
5874 www-data 39 19 284764 5916 420 S 0.0 0.2 0:00.00 apache2
5875 www-data 39 19 284764 5916 420 S 0.0 0.2 0:00.00 apache2