Bug 48807 - broken pipe error in UDM CLI when stdout is closed
broken pipe error in UDM CLI when stdout is closed
Status: CLOSED DUPLICATE of bug 32532
Product: UCS
Classification: Unclassified
Component: UDM - CLI
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on: 48734
Blocks:
  Show dependency treegraph
 
Reported: 2019-02-27 15:13 CET by Daniel Tröder
Modified: 2023-03-25 06:55 CET (History)
4 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?: 4: Will affect most 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.183
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 2019-02-27 15:13:43 CET
+++ This bug was initially created as a clone of Bug #48734 +++

Happened on a UCS@school 4.4 edu DC slave during initial join:

Configure 63ucs-school-portal-entry.inst Wed Feb 20 20:25:18 CET 2019
2019-02-20 20:25:18.648862587+01:00 (in joinscript_init)
Object created: cn=school-edu,cn=portal,cn=univention,dc=nstx,dc=local
Object modified: cn=slave176,cn=dc,cn=server,cn=computers,ou=gsmitte,dc=nstx,dc=local
Traceback (most recent call last):
  File "/usr/sbin/udm", line 201, in <module>
    main()
  File "/usr/sbin/udm", line 196, in main
    result = process_output(output, cmdfile)
  File "/usr/sbin/udm", line 152, in process_output
    print line
IOError: [Errno 32] Broken pipe
WARNING: cannot append ['de_DE', 'UCS@school'] to displayName, value exists
WARNING: cannot append ['en_US', 'UCS@school'] to displayName, value exists
WARNING: cannot append ['fr_FR', 'UCS@school'] to displayName, value exists
WARNING: cannot append ['de_DE', 'UCS@school Module in der Univention Management Console'] to description, value exists
WARNING: cannot append ['en_US', 'UCS@school modules in the Univention Management Console'] to description, value exists
WARNING: cannot append ['fr_FR', 'Modules UCS@school dans Univention Management'] to description, value exists
Object modified: cn=teacherconsole,cn=portal,cn=univention,dc=nstx,dc=local
No modification: cn=teacherconsole,cn=portal,cn=univention,dc=nstx,dc=local

--------------------------------------------------------------------------

Fix for bug #48734 was this:

-if udm settings/portal_entry list "$@" --filter cn=teacherconsole | egrep -q ^DN; then
+if udm settings/portal_entry list "$@" --filter cn=teacherconsole | egrep ^DN > /dev/null; then

--------------------------------------------------------------------------

"grep -q" terminates and closes its stdin when it has a first match.
UDM CLI should handle an IOError in its list/print function.
Comment 1 Florian Best univentionstaff 2019-02-27 15:18:36 CET

*** This bug has been marked as a duplicate of bug 32532 ***