Univention Bugzilla – Bug 49042
static IP configuration 127.0.1.1 left-over from USS breaks Samba KDC
Last modified: 2022-07-04 14:08:17 CEST
netcfg/4.3-0-0-ucs/1.143/0001-Bug-35435-d-i-Write-UCR-net-configuration.patch configures a static IP address mapping for 127.0.1.1 to the FQDN. This mapping persists even after USS has finished. Resolving the FQDN might then return 127.0.1.1. When the UMC diagnostics check "22_kdc_service" uses that address to check the reachability of the Samba KDC, it fails as Samba only listens on 127.0.0.1 and the real IP, but *not* on 127.0.1.1. The UCRV hosts/static/127.0.1.1 should be removed after successfully provisioning the UCS system by USS. +++ This bug was initially created as a clone of Bug #35435 comment 3 +++
UCS technical training 2019-03-21/22
UCS technical training 2019-05-08/09
git:phahn/49042-host-static-netcfg
good catch, this is also the reason for the "yellow" net installer tests -> more /etc/hosts ... 127.0.0.1 localhost 192.168.153.21 slave1.netinstaller.local slave1 127.0.1.1 slave1.netinstaller.local slave1 -> E Exception: ############################ E ## Check failed: 22_kdc_service - KDC service check E The following KDCs were unreachable: tcp slave1.netinstaller.local:88, udp slave1.netinstaller.local:88 E ########### End ############# 81_diagnostic_checks.py:28: Exception added workaround (ucr unset hosts/static/127.0.1.1) in net-installer.cfg, please remove if this is fixed
Breaks some tests even now in UCS 5.0-1 The primary server is called "master" here, and on the replica has this ucr variable set: hosts/static/127.0.1.1=master.unknown.kvm master the sysvol sync then fails because it tries to connect to "master" but gets connected to 127.0.1.1. https://jenkins.knut.univention.de:8181/job/UCS-5.0/job/UCS-5.0-1/view/Appliances/job/TestEC2UCSAppliance/cfg=master-slave-ec2/lastCompletedBuild/testReport/00_checks/46_ntacl_sysvolcheck/slave/
r19619 | Bug #49042: Remove 127.0.1.1 from hosts Package: netcfg Version: 1.160A~5.0.0.202206160834 Branch: ucs_5.0-0 Scope: ucs5.0-2
OK: 127.0.0.1 removed from hosts OK: Sysvolsync works again on machines that have a primary called "master" Verified
UCS 5.0-2 has been released. https://docs.software-univention.de/release-notes-5.0-2-en.html If this error occurs again, please clone this bug.