Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 817070

Summary: ipa-server-install -h |less prints a couple of junk characters on the first line
Product: Red Hat Enterprise Linux 7 Reporter: David Kovalsky <dkovalsk>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED CURRENTRELEASE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: low Docs Contact:
Priority: low    
Version: 7.0CC: benl, dpal, mkosek, nsoman, spoore
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ipa-3.2.1-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 11:58:43 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:

Description David Kovalsky 2012-04-27 15:09:56 UTC
# ipa-server-install -h|less

ESC[?1034hUsage: ipa-server-install [options]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit

##### etc ...

The control characters are not printed into the terminal, only when one pipes the output to less or redirects to a file (via '>' operator).

I tried this with a couple of tools from the coreutils package, virt-install and a bunch of random other files, but it's only ipa-server-install that prints this. So I blame IPA :)


ipa-server-2.1.3-9.el6.x86_64
ipa-server-2.2.0-11.el6.x86_64

Comment 1 Rob Crittenden 2012-04-27 19:03:07 UTC
This is not an IPA issue, it has to do with python and terminal interaction:

http://lists.gnu.org/archive/html/bug-bash/2009-09/msg00117.html

Comment 2 Rob Crittenden 2012-04-27 19:05:32 UTC
hmm, virt-install is also python and uses optionparser...

Comment 4 Martin Kosek 2012-04-30 08:22:07 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2691

Comment 12 Scott Poore 2013-12-19 01:01:07 UTC
Verified.

Version ::

ipa-server-3.3.3-5.el7.x86_64

Test Results ::

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa_bugcheck_bz817070:  ipa-server-install -h less prints a couple of junk characters on the first line
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

ipa-server-3.3.3-5.el7.x86_64
:: [   PASS   ] :: Running 'ipa-server-install -h > /tmp/tmpout.ipa_bugcheck_bz817070 2>&1' (Expected 0, got 0)
:: [   PASS   ] :: File '/tmp/tmpout.ipa_bugcheck_bz817070' should not contain '[[:cntrl:]]' 
:: [   PASS   ] :: BZ 817070 not found

Comment 14 Ludek Smid 2014-06-13 11:58:43 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.