Bug 49042 - static IP configuration 127.0.1.1 left-over from USS breaks Samba KDC
static IP configuration 127.0.1.1 left-over from USS breaks Samba KDC
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCS Installer
UCS 5.0
All Linux
: P5 normal (vote)
: UCS 5.0-2
Assigned To: Philipp Hahn
Julia Bremer
:
Depends on:
Blocks: 54324
  Show dependency treegraph
 
Reported: 2019-03-19 17:17 CET by Philipp Hahn
Modified: 2022-07-04 14:08 CEST (History)
5 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.229
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:
hahn: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2019-03-19 17:17:36 CET
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 +++
Comment 1 Philipp Hahn univentionstaff 2019-03-19 17:18:19 CET
UCS technical training 2019-03-21/22
Comment 2 Philipp Hahn univentionstaff 2019-05-06 13:06:06 CEST
UCS technical training 2019-05-08/09
Comment 3 Philipp Hahn univentionstaff 2019-05-06 17:00:16 CEST
git:phahn/49042-host-static-netcfg
Comment 4 Felix Botner univentionstaff 2019-05-07 12:59:25 CEST
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
Comment 5 Julia Bremer univentionstaff 2022-01-12 14:56:08 CET
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/
Comment 6 Philipp Hahn univentionstaff 2022-06-16 08:35:44 CEST
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
Comment 7 Julia Bremer univentionstaff 2022-06-21 12:20:13 CEST
OK: 127.0.0.1 removed from hosts
OK: Sysvolsync works again on machines that have a primary called "master"
Verified
Comment 8 Florian Best univentionstaff 2022-07-04 14:08:17 CEST
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.