Bug 1010957

Summary: listing systems using `headpin` produces some garbage
Product: [Retired] Subscription Asset Manager Reporter: Jan Hutař <jhutar>
Component: katelloAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED NOTABUG QA Contact: SAM QE List <sam-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: NightlyCC: tkolhar
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-23 12:57:29 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:

Description Jan Hutař 2013-09-23 11:36:50 UTC
Description of problem:
When you use headpin CLI tool to list all systems in co called "grep friendly mode", there is some garbage at the beginning of the output. This is nicely visible when listing from organization without systems.


Version-Release number of selected component (if applicable):
katello-cli-1.4.3-10.el6sat.noarch
SAM 1.3 snapshot #6


How reproducible:
always


Steps to Reproduce:
1. Have organization labeled "satellite-1" with no systems
2. # headpin -u <user> -p <pass> system list -g -d ',' --noheading --org 'satellite-1' > a
3. # hexdump -x a


Actual results:
# hexdump -x a
0000000    5b1b    313f    3330    6834                                
0000008
# less a
ESC[?1034h
a (END) 


Expected results:
Output should be empty.

Comment 1 Tazim Kolhar 2013-09-23 12:57:29 UTC
Tried with below rpms :

# rpm -qa | grep katello
katello-selinux-1.4.4-2.el6sat.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-certs-tools-1.4.2-2.el6sat.noarch
katello-cli-common-1.4.3-11.el6sat.noarch
katello-common-1.4.3-15.el6sam_splice.noarch
katello-headpin-1.4.3-15.el6sam_splice.noarch
katello-headpin-all-1.4.3-15.el6sam_splice.noarch
katello-configure-1.4.4-4.el6sat.noarch
katello-glue-candlepin-1.4.3-15.el6sam_splice.noarch
katello-cli-1.4.3-11.el6sat.noarch
katello-glue-elasticsearch-1.4.3-15.el6sam_splice.noarch


# headpin -u admin -p **** system list -g -d ',' --noheading --org ACME_Corporation
hp-dl380pgen8-02-vm-12.lab.bos.redhat.com,bbc98188-851b-48ed-9e48-f089cabcdaec,Library,,Default Organization View,

Comment 2 Tazim Kolhar 2013-09-23 12:59:35 UTC
# less b.txt
ESC[?1034hhp-dl380pgen8-02-vm-12.lab.bos.redhat.com,bbc98188-851b-48ed-9e48-f089cabcdaec,Library,,Default Organization View,
b.txt (END)