Bug 840616 - katello-configure --help optparse.rb:395:in `+': can't convert nil into String (TypeError)
katello-configure --help optparse.rb:395:in `+': can't convert nil into Strin...
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Installer (Show other bugs)
Unspecified Unspecified
urgent Severity urgent (vote)
: Unspecified
: --
Assigned To: Katello Bug Bin
Og Maciel
: Triaged
Depends On: 840595
  Show dependency treegraph
Reported: 2012-07-16 13:24 EDT by Eric Sammons
Modified: 2014-01-27 09:08 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
katello-configure --help returned a TypeError due to a null value being converted t a string. This fix corrects this behavior and katello-configure --help displays correctly.
Story Points: ---
Clone Of: 840595
Last Closed: 2012-12-04 14:47:12 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Eric Sammons 2012-07-16 13:24:31 EDT
+++ This bug was initially created as a clone of Bug #840595 +++

Description of problem:
Running katello-configure --help returns a TypeError

Version-Release number of selected component (if applicable):

Steps to Reproduce:
1. Install katello-headpin-all
2. katello-configure --help
Actual results:
can't convert nil into String
/usr/lib/ruby/1.8/optparse.rb:395:in `+': can't convert nil into String (TypeError)
	from /usr/lib/ruby/1.8/optparse.rb:395:in `summarize'
	from /usr/lib/ruby/1.8/optparse.rb:637:in `summarize'
	from /usr/lib/ruby/1.8/optparse.rb:634:in `reverse_each'
	from /usr/lib/ruby/1.8/optparse.rb:634:in `summarize'
	from /usr/lib/ruby/1.8/optparse.rb:1418:in `send'
	from /usr/lib/ruby/1.8/optparse.rb:1418:in `visit'
	from /usr/lib/ruby/1.8/optparse.rb:1417:in `reverse_each'
	from /usr/lib/ruby/1.8/optparse.rb:1417:in `visit'
	from /usr/lib/ruby/1.8/optparse.rb:970:in `summarize'
	from /usr/lib/ruby/1.8/optparse.rb:977:in `to_s'
	from /usr/sbin/katello-configure:259:in `puts'
	from /usr/sbin/katello-configure:259

Expected results:
Help returned.
Comment 1 Mike McCune 2012-08-07 12:28:47 EDT
works fine with latest build.
Comment 4 Og Maciel 2012-09-14 16:59:01 EDT
# katello-configure --help
Usage: /usr/sbin/katello-configure [options]
           Path of the answer file
           Katello administrative user (default: admin)
           Katello user's password (default: admin)
           Katello user's email (default: root@localhost)
           Katello initial Organization (default: ACME_Corporation)
           HTTP Proxy URL (example:
           HTTP Proxy port (default: 3128)
           HTTP Proxy user (proxy username, if auth is required)
           HTTP Proxy pass (proxy password, if auth is required)
           Katello database name
           Katello database user
           Katello database password
           Candlepin database user
           Candlepin databse password
           Candlepin database name
           Deployment type (one of "katello", "headpin", "cfse", "sam")
           Non-interactive installer mode
           SSL CA password
           SSL CA country
           SSL CA state
           SSL CA city
           SSL CA organization
           SSL CA organization unit
           SSL CA common name
           SSL CA e-mail address
           SSL certificate expiration (in days)
           SSL CA password file path
           Candlepin CA password file path
           Keystore password file path for Candlepin
           NSS db password file path
           NSS database path
           PKCS12 password file path
           Authentication method (database, ldap)
           LDAP server hostname
           LDAP server hostname
           LDAP server type (:posix, :active_directory, :free_ipa)
           Encryption method used in communication with LDAP server (<empty>, start_tls)
           Base DN for users accounts
           Base DN for users groups
           Use LDAP for roles membership definition (true, false)
           Allow anonymous queries (true, false) for AD or FreeIPA
           Service username for non-anon queries (IPA, AD)
           Service password for non-anon queries (IPA, AD)
           Domain for AD LDAP queries
           ElasticSearch ES_MIN_MEM java heap setting
           ElasticSearch ES_MAX_MEM java heap setting
           PostgreSQL superuser password (NONE for no password)
           OAuth token file
           Pulp user password file
           Set to 'YES' to erase all databases
           Set to 'YES' to erase RPM packages from Pulp
           Do not show progress bars and output puppet log instead
           Print more debugging information to on the stdout (use with -b)
           Print the resulting configuration and exit
           Show this short summary (more in the man page)
Comment 5 Og Maciel 2012-09-14 17:00:20 EDT
Verified using:

* candlepin-0.7.8-1.el6cf.noarch
* candlepin-selinux-0.7.8-1.el6cf.noarch
* candlepin-tomcat6-0.7.8-1.el6cf.noarch
* katello-1.1.12-7.el6cf.noarch
* katello-all-1.1.12-7.el6cf.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.1.8-1.el6cf.noarch
* katello-cli-1.1.8-4.el6cf.noarch
* katello-cli-common-1.1.8-4.el6cf.noarch
* katello-common-1.1.12-7.el6cf.noarch
* katello-configure-1.1.9-3.el6cf.noarch
* katello-glue-candlepin-1.1.12-7.el6cf.noarch
* katello-glue-pulp-1.1.12-7.el6cf.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-1.1.1-1.el6cf.noarch
* pulp-1.1.12-1.el6cf.noarch
* pulp-common-1.1.12-1.el6cf.noarch
* pulp-selinux-server-1.1.12-1.el6cf.noarch
Comment 7 errata-xmlrpc 2012-12-04 14:47:12 EST
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.


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