Bug 1402124

Summary: /usr/bin/delete-old-systems-interactive script fails with Wide character in print at line 79.
Product: Red Hat Satellite 5 Reporter: Camry Fedei <cfedei>
Component: APIAssignee: Jan Dobes <jdobes>
Status: CLOSED ERRATA QA Contact: Pavel Studeník <pstudeni>
Severity: medium Docs Contact:
Priority: medium    
Version: 560CC: jdostal, ogajduse, pstudeni, shughes, tlestach
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-utils-2.5.1-28-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-05 13:57:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 465198, 1450111, 1450940    
Attachments:
Description Flags
add support to print multichar characters from systems none

Description Camry Fedei 2016-12-06 20:30:49 UTC
Running the following command:
 # /usr/bin/delete-old-systems-interactive --idle=60d --username=xxxxname --force

Results in:
 Wide character in print at /usr/bin/delete-old-systems-interactive line 79.


Line 79 of script:
 print "System [$sys->{name}] id [$sys->{id}] last checking [$sys->{last_checkin}] ";

Found upon removing [$sys->{name}] from the above line, the script completes successfully, and customer is able to remove ~1000 client systems successfully.

Comment 2 Shannon Hughes 2016-12-06 22:40:26 UTC
Created attachment 1228688 [details]
add support to print multichar characters from systems

patch to support mutichar systems when printing to STDOUT

Comment 3 Ondrej Gajdusek 2017-06-26 14:35:01 UTC
delete-old-systems-interactive tool has been rewritten into Python. (spacewalk.git 38d22159e77353a981e313fd2ff8547989ff440e) So this bug is no longer reproducible - tested ith upstream.
However in Satellite 5.8 is still present old version written in Perl.
I've tested this patch and it works. Thank you, Shannon.
Switching to MODIFIED.

Comment 10 errata-xmlrpc 2018-02-05 13:57:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0274