Bug 54259 - (netcfg501) Missing UCRV from netcfg with PXE
(netcfg501)
Missing UCRV from netcfg with PXE
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCS Installer
UCS 5.0
amd64 Linux
: P5 normal (vote)
: UCS 5.0-1-errata
Assigned To: Philipp Hahn
Julia Bremer
https://help.univention.com/t/network...
:
Depends on: 51270 51642 52469
Blocks:
  Show dependency treegraph
 
Reported: 2021-12-18 16:29 CET by Philipp Hahn
Modified: 2022-01-05 17:44 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.171
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Appliance
Max CVSS v3 score:
hahn: Patch_Available+


Attachments
patch 55netcfg-ucr (810 bytes, patch)
2021-12-18 16:29 CET, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2021-12-18 16:29:28 CET
Created attachment 10883 [details]
patch 55netcfg-ucr

<https://help.univention.com/t/network-installations-hangs/19051>
I checked it myself and my /var/log/syslog shows the following error:

base-installer: warning: /usr/lib/post-base-installer.d/55netcfg-ucr returned error code 127

That script is missing the hash-bang line #!/bin/sh. I’m not aware of any change in that area but maybe some part of the Debian installer (d-i) will no longer fall back to executing it as a shell script since UCS 5.0-0. Fixing this would require patching netcfg and building a new ISO as netcfg if part of the debian-installer image and cannot be updated online.
(I darkly remember that we observed some bug during UCS 5.0-0 development where the networks related settings were not copied from the D-I environment to the UCS-chroot-environment, but I cannot find that issue.)
Comment 1 Philipp Hahn univentionstaff 2021-12-18 16:31:30 CET
r19489 | Bug #54259: 55netcfg-ucr

Package: netcfg
Version: 1.160A~5.0.0.202112181631
Branch: ucs_5.0-0
Scope: errata5.0-1

Can only be released with next ISO → no YAML
Comment 2 Philipp Hahn univentionstaff 2021-12-18 17:26:50 CET
https://jenkins.knut.univention.de:8181/job/UCS-5.0/job/UCS-5.0-1/job/BuildDVD/13/consoleFull

QA: isotests/ucs_5.0-1-20211218-163433-dvd-amd64.iso
Comment 3 Philipp Hahn univentionstaff 2021-12-20 08:17:01 CET
grub2 still cannot be downloaded as /target/etc/resolv.conf is missing its URCV.
Comment 4 Philipp Hahn univentionstaff 2021-12-20 09:26:33 CET
/var/log/syslog
> in-target: chroot: can't execute '/usr/sbin/ucr': No such file or directory
> base-installer: warning: /usr/lib/post-base-installer.d/55netcfg-ucr returned error code 127
Comment 5 Philipp Hahn univentionstaff 2021-12-20 11:14:57 CET
See <https://hutten.knut.univention.de/mediawiki/index.php/Debian_Installer> for the order of the D-I hook scripts.

(In reply to Philipp Hahn from comment #4)
> /var/log/syslog
> > in-target: chroot: can't execute '/usr/sbin/ucr': No such file or directory
> > base-installer: warning: /usr/lib/post-base-installer.d/55netcfg-ucr returned error code 127

There were two changes to the preseed file of UCS-5 via Bug #51642:
- pkgsel/include += `univention-base-packages`
- base-installer/includes += `univention-config`
which have not been picked into
- doc/extended-docs/installation-5.0.xml
- services/univention-net-installer/TEMPLATE
- test/utils/utils-installation-test.sh

[5.0-1] 5a300dadac fix[pxe]: Add UCR to profile for network installation
 doc/extended-docs/installation-5.0.xml             | 14 +++++++-------
 services/univention-net-installer/TEMPLATE         | 16 ++++++++--------
 services/univention-net-installer/debian/changelog |  6 ++++++
 test/utils/utils-installation-test.sh              | 24 +++++++++++++++---------
 4 files changed, 36 insertions(+), 24 deletions(-)

[5.0-1] 2536185aa6 Bug #54259: univention-net-installer 13.0.2-3A~5.0.0.202112201111
 doc/errata/staging/univention-net-installer.yaml | 10 ++++++++++
 1 file changed, 10 insertions(+)
Comment 6 Julia Bremer univentionstaff 2021-12-23 15:09:57 CET
PXE installtion works: OK
Docs update: OK

Verified