Bug 1010957 - listing systems using `headpin` produces some garbage
Summary: listing systems using `headpin` produces some garbage
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Subscription Asset Manager
Classification: Retired
Component: katello
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Katello Bug Bin
QA Contact: SAM QE List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-23 11:36 UTC by Jan Hutař
Modified: 2013-09-23 12:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-23 12:57:29 UTC


Attachments (Terms of Use)

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)


Note You need to log in before you can comment on or make changes to this bug.