Bug 55459 - Adding computer / ip-client in UMC leaves IP in DNS empty if changing the suggested IP manually
Adding computer / ip-client in UMC leaves IP in DNS empty if changing the sug...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Computers
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-4-errata
Assigned To: Florian Best
Iván.Delgado
https://git.knut.univention.de/univen...
:
: 14789 31963 55135 (view as bug list)
Depends on:
Blocks: 56313
  Show dependency treegraph
 
Reported: 2022-11-25 17:27 CET by Marcel Gebert
Modified: 2023-07-14 09:12 CEST (History)
8 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?: 3: Will affect average number of 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.137
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support: Yes
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022112221000198, 2023040121000239, 2023062321000097
Bug group (optional): Regression, Usability
Max CVSS v3 score:
best: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Gebert univentionstaff 2022-11-25 17:27:31 CET
If I create a computer or IP-Client using the UMC computer module and change the automatically suggested IP, this IP will be shown or can be selected as the IP for DNS entries.

After saving the new Computer / IP-Client the IP-entries for the DNS are empty.

You can change the DNS entries to the correct IP and save it and now the DNS IPs are saved correct.

The problem is the first step of creation, because all entries are looking quit correct and there is no error message after or during the saving of the new computer / IP-Client.

The problem occurs with UCS 5.0. When using UCS 4.4 the creation of a computer / IP-Client works correct.
Comment 1 Mirac Erdemiroglu univentionstaff 2023-04-27 15:43:02 CEST
Customer affected Ticket#2023040121000239
UCS 5.0-3
Comment 2 Stefan Gohmann univentionstaff 2023-05-03 13:52:26 CEST
Flagged as regression because it worked with UCS 4.4.
Comment 3 Florian Best univentionstaff 2023-05-22 13:52:26 CEST
Reproducer:

curl 'https://Administrator:univention@demo.univention.de/univention/command/udm/add' \
  -H 'Accept-Language: en-US' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json; q=1.0, text/html; q=0.3; */*; q=0.1' \
  --data-raw '{"options":[{"object":{"name":"foobar","network":"cn=default,cn=networks,dc=demo,dc=univention,dc=de","ip":["10.0.0.111"],"dnsEntryZoneForward":[["zoneName=demo.univention.de,cn=dns,dc=demo,dc=univention,dc=de","10.0.0.111"]],"dnsEntryZoneReverse":[["zoneName=0.0.10.in-addr.arpa,cn=dns,dc=demo,dc=univention,dc=de","10.0.0.111"]],"unixhome":"/dev/null","shell":"/bin/bash","primaryGroup":"cn=Computers,cn=groups,dc=demo,dc=univention,dc=de","$options$":{"kerberos":true,"nagios":false,"posix":true,"pki":false,"samba":true},"$policies$":{}},"options":{"container":"cn=computers,dc=demo,dc=univention,dc=de","objectType":"computers/linux","objectTemplate":"None"}}],"flavor":"computers/computer"}'

Does not happen, when leaving out the "network".
Comment 4 Florian Best univentionstaff 2023-05-22 13:52:38 CEST
*** Bug 14789 has been marked as a duplicate of this bug. ***
Comment 5 Florian Best univentionstaff 2023-05-22 13:53:12 CEST
*** Bug 31963 has been marked as a duplicate of this bug. ***
Comment 6 Florian Best univentionstaff 2023-05-22 16:45:26 CEST
A fix is available in the MR: https://git.knut.univention.de/univention/ucs/-/merge_requests/767
Comment 8 Florian Best univentionstaff 2023-06-21 09:46:45 CEST
Aligned the logic for UDM-REST-API, UDM-CLI and UDM-UMC.

univention-management-console-module-udm.yaml
308546b06c6b | fix(udm): fix IP address assignment when network is selected

univention-management-console-module-udm (10.0.8-2)
308546b06c6b | fix(udm): fix IP address assignment when network is selected

univention-directory-manager-rest.yaml
308546b06c6b | fix(udm): fix IP address assignment when network is selected

univention-directory-manager-rest (10.0.6-5)
308546b06c6b | fix(udm): fix IP address assignment when network is selected

univention-directory-manager-modules.yaml
308546b06c6b | fix(udm): fix IP address assignment when network is selected

univention-directory-manager-modules (15.0.24-2)
308546b06c6b | fix(udm): fix IP address assignment when network is selected
Comment 9 Mirac Erdemiroglu univentionstaff 2023-06-26 12:32:10 CEST
*** Bug 55135 has been marked as a duplicate of this bug. ***
Comment 10 Iván.Delgado univentionstaff 2023-06-27 10:52:46 CEST
QA:
 * Test: OK
 * Advisory: OK
 * #c3: OK