Bug 52772 - fix_ucsschool_slaves fails if connector/s4/ldap/port is not set
fix_ucsschool_slaves fails if connector/s4/ldap/port is not set
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-02-11 14:00 CET by Daniel Tröder
Modified: 2022-12-05 14:35 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few 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.069
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 Daniel Tröder univentionstaff 2021-02-11 14:00:25 CET
When run from join script35ucs-school-import.inst the fix_ucsschool_slaves script produces a traceback on a multi master (master) system:

UCS: 4.4-7 errata887
Installed: ucsschool=4.4 v9 ucsschool-kelvin-rest-api=1.3.0


Looking for affected domaincontroller_slave objects...
Traceback (most recent call last):
  File "/usr/share/ucs-school-import/scripts/fix_ucsschool_slaves", line 169, in <module>
    main()
  File "/usr/share/ucs-school-import/scripts/fix_ucsschool_slaves", line 159, in main
    lo_s4 = get_s4_lo()
  File "/usr/share/ucs-school-import/scripts/fix_ucsschool_slaves", line 60, in get_s4_lo
    ldap_port_s4 = int(ucr.get("connector/s4/ldap/port"))
TypeError: int() argument must be a string or a number, not 'NoneType'

--------

UCRV "connector/s4/ldap/*" is not set.
Comment 1 Oliver Friedrich univentionstaff 2022-12-05 14:35:20 CET
UCS: 5.0-2 errata505
Installed: ucsschool=5.0 v3

/usr/lib/univention-install/35ucs-school-import.inst: Zeile 653: /usr/share/ucs-school-import/scripts/ucs-school-migrate-objects-to-4.1R2: Datei oder Verzeichnis nicht gefunden
FINISHED: Fr 11. Nov 05:48:19 CET 2022
No modification: cn=ucsschoolSchool,cn=UCSschool,cn=custom attributes,cn=univention,<ldap_base>
Looking for affected Replica Directory Node objects...
Traceback (most recent call last):
  File "/usr/share/ucs-school-import/scripts/fix_ucsschool_slaves", line 169, in <module>
    main()
  File "/usr/share/ucs-school-import/scripts/fix_ucsschool_slaves", line 159, in main
    lo_s4 = get_s4_lo()
  File "/usr/share/ucs-school-import/scripts/fix_ucsschool_slaves", line 60, in get_s4_lo
    ldap_port_s4 = int(ucr.get("connector/s4/ldap/port"))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'