Bug 38011 - UCR is not able to update files bind-mounted by docker
UCR is not able to update files bind-mounted by docker
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Docker
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1
Assigned To: Daniel Tröder
Philipp Hahn
: interim-1
Depends on:
Blocks: 43479
  Show dependency treegraph
 
Reported: 2015-03-11 15:10 CET by Sönke Schwardt-Krummrich
Modified: 2017-02-02 11:59 CET (History)
1 user (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2015-03-11 15:10:07 CET
UCR is not able to update files provided by docker, because the files have been bind-mounted into the guest filesystem. UCR tries to create a temporary file and the renames the temp file to original file to perform an atomic replacement.

This fails, as the original bind-mounted file cannot be discarded by a simple move.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2015-03-11 15:12:26 CET
univention-config-registry has been cherrypicked and patched for scope ucs-teeny.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-06-18 17:32:30 CEST
Changes have been comitted in components/docker

univention-config-registry (???):
r59435 | Bug #38011: Also adjust backend.py for this and remove tmp files
r58905 | Bug #38011: allow UCR to modify bind-mounted files provided by docker
Comment 3 Stefan Gohmann univentionstaff 2015-08-17 08:49:42 CEST
Please merge the changes to 4.1.
Comment 4 Daniel Tröder univentionstaff 2015-08-31 10:50:44 CEST
Merged commits r58905, r59435 and r61446 with r63349 to 4.1.
Comment 5 Stefan Gohmann univentionstaff 2015-09-27 21:15:32 CEST
I've build the package, the latest version wasn't available.

Please add a changelog entry.
Comment 6 Daniel Tröder univentionstaff 2015-09-28 11:04:29 CEST
Added changelog entry in r64032.
Comment 7 Philipp Hahn univentionstaff 2015-10-02 15:45:20 CEST
OK: r63349
OK: r64032
OK: touch empty ; mount --bind empty /etc/issue ; ucr commit /etc/issue ; cat empty
Comment 8 Stefan Gohmann univentionstaff 2015-11-17 12:11:59 CET
UCS 4.1 has been released:
 https://docs.software-univention.de/release-notes-4.1-0-en.html
 https://docs.software-univention.de/release-notes-4.1-0-de.html

If this error occurs again, please use "Clone This Bug".