Project

General

Profile

Feature #10175

installer check for underscores in hostname

Added by Bryan Kearney over 5 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Installer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1205960
rpm -qa katello-installer
katello-installer-0.0.67-1.el6sat.noarch

rpm -qf /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/logger.rb
rubygem-kafo-0.6.4-2.el6sat.noarch

facter domain fqdn hostname
domain => gsslab.pek.redhat.com
fqdn => jnikolak_sat6_rhel6a.gsslab.pek.redhat.com
hostname => jnikolak_sat6_rhel6a

I get this error when trying to install or reset.

katello-installer --reset
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/usr/share/foreman/script/foreman-config -k ssl_ca_file -v '/etc/foreman/proxy_ca.pem' -k ssl_certificate -v '/etc/foreman/client_cert.pem' -k ssl_priv_key -v '/etc/foreman/client_key.pem' returned 1 instead of one of [0]
/Stage[main]/Certs::Foreman/Exec[foreman_certs_config]/returns: change from notrun to 0 failed: /usr/share/foreman/script/foreman-config -k ssl_ca_file -v '/etc/foreman/proxy_ca.pem' -k ssl_certificate -v '/etc/foreman/client_cert.pem' -k ssl_priv_key -v '/etc/foreman/client_key.pem' returned 1 instead of one of [0]
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[jnikolak_sat6_rhel6a.gsslab.pek.redhat.com]: Could not evaluate: Could not load data from https://jnikolak_sat6_rhel6a.gsslab.pek.redhat.com.gsslab.pek.redhat.com
Installing Done [100%] [...............................................................................................................................]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/katello-installer/katello-installer.log
/usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/logger.rb:104:in `error': wrong number of arguments (2 for 1) (ArgumentError)
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/logger.rb:104:in `send'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/logger.rb:104:in `dump_buffer'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/logger.rb:104:in `each'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/logger.rb:104:in `dump_buffer'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/logger.rb:103:in `each'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/logger.rb:103:in `dump_buffer'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/logger.rb:94:in `dump_errors'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/logger.rb:99:in `dump_errors'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/exit_handler.rb:26:in `exit'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/kafo_configure.rb:122:in `exit'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/kafo_configure.rb:338:in `run_installation'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/kafo_configure.rb:109:in `execute'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/kafo_configure.rb:116:in `run'
from /usr/sbin/katello-installer:9

Looking at the code
#############\
vi /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/kafo_configure.rb
def self.run
return super
rescue SystemExit => e
self.exit_handler.exit(self.exit_code) # fail in initialize
end

Associated revisions

Revision 5621fa77 (diff)
Added by Bryan Kearney over 5 years ago

Fixes #10175 : Check for underscores in the hostname. Raise an error if they exist.

Revision d428dd1a
Added by Bryan Kearney over 5 years ago

Merge pull request #208 from bkearney/bkearney/10175

Fixes #10175 : Check for underscores in the hostname. Raise an error if ...

History

#1 Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-installer/pull/208 added
  • Pull request deleted ()

#2 Updated by Eric Helms over 5 years ago

  • Legacy Backlogs Release (now unused) set to 31
  • Triaged changed from No to Yes

#3 Updated by Anonymous over 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF