Bug 39413 - Copy update/secure_apt from host system
Copy update/secure_apt from host system
Status: CLOSED WORKSFORME
Product: UCS
Classification: Unclassified
Component: Docker
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1
Assigned To: Stefan Gohmann
Dirk Wiesenthal
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-27 14:43 CEST by Stefan Gohmann
Modified: 2015-11-17 12:11 CET (History)
2 users (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 Stefan Gohmann univentionstaff 2015-09-27 14:43:38 CEST
While setting up a docker app, the UCR setting for update/secure_apt should be copied from the host system into the container.
Comment 1 Stefan Gohmann univentionstaff 2015-09-27 14:46:45 CEST
Fixed with r64011
Comment 2 Stefan Gohmann univentionstaff 2015-09-27 16:51:27 CEST
It was already in the list of UCR variables but it doesn't work. The file /etc/apt/apt.conf.d/20secureapt is not commited.
Comment 3 Dirk Wiesenthal univentionstaff 2015-09-27 17:09:14 CEST
I patched ucr locally to not swallow up the tracback. Got this:

root@owncloud8-docker-1443365390224938:/# ucr set nameserver2=192.168.0.3                                
Setting nameserver2
File: /etc/resolv.conf
Traceback (most recent call last):
  File "/usr/sbin/ucr", line 65, in <module>
    ub.main(convertToUtf8(sys.argv[1:]))
  File "/usr/lib/pymodules/python2.7/univention/config_registry/frontend.py", line 690, in main
    handler_func(args, cmd_opts)
  File "/usr/lib/pymodules/python2.7/univention/config_registry/frontend.py", line 162, in handler_set
    None if quiet else 'W: %s is overridden by scope "%s"')
  File "/usr/lib/pymodules/python2.7/univention/config_registry/frontend.py", line 203, in _run_changed
    handlers(changed.keys(), (ucr, changed))
  File "/usr/lib/pymodules/python2.7/univention/config_registry/handler.py", line 830, in __call__
    handler(arg)
  File "/usr/lib/pymodules/python2.7/univention/config_registry/handler.py", line 418, in __call__
    os.rename(tmp_to_file, self.to_file)
OSError: [Errno 16] Device or resource busy


I guess that apt/secure_apt ist not set because gets updates after nameserver2, but at that point the whole program exits.
Comment 4 Stefan Gohmann univentionstaff 2015-09-27 21:12:05 CEST
It looks like the latest UCR fixes haven't been built: Bug #38011.
Comment 5 Stefan Gohmann univentionstaff 2015-09-29 06:00:27 CEST
(In reply to Stefan Gohmann from comment #4)
> It looks like the latest UCR fixes haven't been built: Bug #38011.

Yes, that was the problem. I've removed the bug number from the changelog entry since the variable was already set previously.
Comment 6 Dirk Wiesenthal univentionstaff 2015-09-29 13:01:37 CEST
OK
Comment 7 Stefan Gohmann univentionstaff 2015-11-17 12:11:53 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".