Bug 54832 - Manual adding computer in UMC using imported network uses automatic chosen IP in DNS if changing the ip
Manual adding computer in UMC using imported network uses automatic chosen IP...
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-06-08 09:26 CEST by Dirk Schnick
Modified: 2023-06-27 17:58 CEST (History)
6 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?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022052421000348
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 Dirk Schnick univentionstaff 2022-06-08 09:26:44 CEST
Long summary or topic, but it describes the problem in short.
In a new installed UCS5@school environment I import a network:

5school-intranet.intranet /  0,01 / 09:03:50 / ✓
root@dc0:~ # cat networkImport.csv 
UCS501	192.168.112.0/24		192.168.112.1	192.168.112.3	192.168.112.3

It does not matter if I define an IP range to use for new devices (third value is left empty in that example) the problem occurs in any case.

If I now create a new computer using the UMC computer module and choose the imported network, an IP is chosen automatically. If I now change this IP the computer will be created with my given IP but the DNS entry still uses the automatically chosen IP.
It looks like the UMC do not read the IP address when creating the DNS entry and dully uses the automatically chosen IP.

You can  recreate this problem easily using an UCS5@school installation with master and at least one slave. I used a fresh UCS5 installation (not updated from UCS4). You need to import at least one network (delimiter is tab) like above with network import script /usr/share/ucs-school-import/scripts/import_networks. Then create a new computer using that network and change the automatically chosen IP to any else. Check the DNS entry of that machine.

You can use my test environment 10.200.36.100 (5school-intranet.intranet yeah I know a stupid domain name) Please give me a hint if you will use it.

The problem do not occur if I create a network manual; it looks like the import of the network is relevant. So I choose import scripts as component.
Comment 3 Jan-Luca Kiok univentionstaff 2023-06-27 17:57:43 CEST
Was fixed for UDM-UMC, UDM-CLI and UDM-REST some days ago, we should investigate if we profit from this directly or can adapt the solution - See also https://forge.univention.org/bugzilla/show_bug.cgi?id=55459