Bug 41143 - Docker detection breaks PXE installation
Docker detection breaks PXE installation
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Docker
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-1-errata
Assigned To: Philipp Hahn
Felix Botner
: interim-1
Depends on: 38763
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-26 22:11 CEST by Philipp Hahn
Modified: 2016-05-04 18:10 CEST (History)
4 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:
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 Philipp Hahn univentionstaff 2016-04-26 22:11:39 CEST
r63307 changed b/branches/ucs-4.1/ucs-4.1-0/base/univention-base-files/conffiles/xkbKeyboard.py to read:

> +       if "docker" in open("/proc/1/cgroup","rb").read():

During PXE installation that code is executed in the chroot-target-environment, where the "cgroup" entry does *not* exists.
The code thus fails with an IOError(errno=ENOENT).
This leads to /etc/univention/templates/modules/xkbKeyboard.py aborting.
This leads to branches/ucs-4.1/ucs-4.1-1/services/univention-net-installer/post-base-installer.d/56ucr aborting due to errors.
This leads to the PXE installation to fail.

+++ This bug was initially created as a clone of Bug #38763 +++
> /etc/univention/templates/modules/xkbKeyboard.py needs /bin/setupcon - part of console-setup.
> Our minimal docker image does not ship it. This may not be relevant to operate UCS, but in this case it should be checked whether the binary exists.

Wish that the check for the existing binary would have been done instead of trying to detect a potential docker environment as "console-setup" is only installed due to a "Recommends" - this it is not available when recommends are not installed.
Comment 1 Philipp Hahn univentionstaff 2016-04-28 15:10:24 CEST
r68994 | Bug #41143 base: Copyright 2016
r68993 | Bug #41143 base: Fix docker/PXE detection

Package: univention-base-files
Version: 5.0.1-2.209.201604281504
Branch: ucs_4.1-0
Scope: errata4.1-1

r68995 | Bug #41143 base: Fix docker/PXE detection YAML
 univention-base-files.yaml
Comment 2 Felix Botner univentionstaff 2016-05-02 11:59:24 CEST
OK - pxe installation
OK - YAML
Comment 3 Janek Walkenhorst univentionstaff 2016-05-04 18:10:01 CEST
<http://errata.software-univention.de/ucs/4.1/161.html>