Bug 46669 - Disable "Predictable Network Interface Names" for upgrades
Disable "Predictable Network Interface Names" for upgrades
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.3
Other Linux
: P1 normal (vote)
: UCS 4.3-0-errata
Assigned To: Philipp Hahn
Jürn Brodersen
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-15 09:39 CET by Philipp Hahn
Modified: 2018-03-15 15:17 CET (History)
1 user (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?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.514
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 Philipp Hahn univentionstaff 2018-03-15 09:39:10 CET
In VMs no entries for virtual interfaces are created in /etc/udev/rules.d/70-persistent-net.rules. On upgrade those interfaces are then renamed by systemd. As then the UCRV names interfaces/$iface/ no longer match, the network is not configured properly any longer.

<https://help.univention.com/t/kein-zugriff-auf-ucs-server-nach-upgrade-auf-4-3/8194/5>
<https://lists.debian.org/debian-user/2017/07/msg01453.html>

Plan: ucr set grub/append="$(ucr get grub/append) net.ifnames=0" for upgrading systems only.
Comment 1 Philipp Hahn univentionstaff 2018-03-15 10:02:55 CET
[4.3-0] 36e2654f0b Bug #46669 up: Disable Predictable Network Interface Names" on upgrades

Package: univention-updater
Version: 13.0.1-38A~4.3.0.201803150951
Branch: ucs_4.3-0
Scope: errata4.3-0

No YAML as we only need the new preup.sh[.pgp]

cd test_mirror/ftp/4.3/maintained/4.3-0/all/
cp /home/phahn/REPOS/ucs/base/univention-updater/script/preup.sh preup.sh
repo-ng-sign-release-file -p /etc/archive-keys/ucs4.0.txt -k 6B8BFD3C -i preup.sh -o preup.sh.gpg
cp --reflink=auto -fv preup.sh* ../../../../../../mirror/testing/4.3/maintained/4.3-0/all/
sudo update_mirror.sh -v testing/4.3/maintained/4.3-0/all/

After QA: same for mirror/ftp/
Comment 2 Jürn Brodersen univentionstaff 2018-03-15 14:44:59 CET
OK
What I tested
KVM with multiple interfaces -> all are named ethX after the upgrade
VirtualBox with multiple interfaces -> all are named ethX after the upgrade
Unset grub/append -> grub/append gets set
already set grub/append -> Value is appended to grub/append

-> Verified
Comment 3 Philipp Hahn univentionstaff 2018-03-15 15:17:05 CET
cp --reflink=auto -fv preup.sh* ../../../../../../mirror/ftp/4.3/maintained/4.3-0/all/
sudo update_mirror.sh -v ftp/4.3/maintained/4.3-0/all/
curl -s http://updates.software-univention.de/4.3/maintained/4.3-0/all/preup.sh | grep -A4 46669