Univention Bugzilla – Full Text Bug Listing |
Summary: | atd hangs using 100% CPU in docker | ||
---|---|---|---|
Product: | UCS | Reporter: | Dirk Wiesenthal <wiesenthal> |
Component: | Docker | Assignee: | Daniel Tröder <troeder> |
Status: | CLOSED FIXED | QA Contact: | Felix Botner <botner> |
Severity: | normal | ||
Priority: | P5 | CC: | gohmann, requate, schwardt, troeder |
Version: | UCS 4.1 | ||
Target Milestone: | UCS 4.1-0-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | --- | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | ||
Max CVSS v3 score: | |||
Bug Depends on: | 39482 | ||
Bug Blocks: | |||
Attachments: | skip_atjob_creation_in_postinst.patch |
Description
Dirk Wiesenthal
2015-11-30 19:43:26 CET
Those must be old images. Please check with Arvid how to make sure they exchange them for fresh ones. As a workaround until solved, they can simply run # atrm 1 With "1" being the jobid. The jobid can be seen using # atq They use the new ones. New feedback: Es scheint, als waere fest im Image eine Datei fuer einen atjob unter /var/spool/cron/atjobs vom 11. November eingebaut, welche das Problem verursacht. Nach dem Loeschen der Datei schien das Problem nicht mehr zu erscheinen. The version of univention-mail-postfix installed at image creation time is 10.0.0-6.270.201511051213 - that includes the fix for Bug #39482 (which is in 10.0.0-5). The atjobs file creation date and postfix configuration file dates as well as the installation date in dpkg.log are the same. That means, that the join script was run at installation time. I had understood, that join scripts would be suppressed at image creation time and run at container creation time. Is that not so? Created attachment 7350 [details]
skip_atjob_creation_in_postinst.patch
The ucs-appbox-amd64:4.1-0 contains the recent version of univention-mail-postfix:
root@f2b3658ccc9f:/# COLUMNS=200 dpkg -l univention-mail-postfix
ii univention-mail-postfix 10.0.0-6.270.201511051213
The attached patch shows the location in univention-mail-postfix.postinst were this at job is created. The above mentioned joinscript is not involved, as it is in a different package (univention-mail-server).
Arg! Code removal in commit 65166 was incomplete: "create-dh-parameter-files.sh" was in two places! Commit 66125 (+ yaml 66126) fixes it. I think the at job should be removed during the upgrade. Otherwise running container won't be fixed. Furthermore, the job should be killed during the upgrade. (In reply to Stefan Gohmann from comment #6) > I think the at job should be removed during the upgrade. Otherwise running > container won't be fixed. Commit 66147 (yaml 66148) adds a check for the at job and removes it if found (in a upgrade in a docker container). > Furthermore, the job should be killed during the upgrade. It is not the job that hangs, just atd. After removing the offending job, atd settles down. ok, works but please maybe we should limit this to the update. Please add something like this if [ "$1" = "configure" -a -n "$2" ] && dpkg --compare-versions "$2" lt 10.0.0-8; then to the postinst. The check for the version was added to the postinst in commit 66364, YAML 66365. OK |