During the rhel-osp-installer script, an incorrect manual entry of the installer URL resulted in a failed configuration of the Red Hat Enterprise Linux OpenStack Platform Installer. This fix autodetects installer URL and improves the error handling for manual entry.
Created attachment 946848[details]
Error message - console output
Description of problem:
Running rhel-osp-installer on a fresh install of RHEL 6.5 fails with following error
/usr/share/foreman-installer/hooks/lib/base_seeder.rb:30:in `find_default_os': undefined method `[]' for nil:NilClass (NoMethodError)
from /usr/share/foreman-installer/hooks/lib/subscription_seeder.rb:17:in `initialize'
from /usr/share/foreman-installer/hooks/post/10-setup_provisioning.rb:24:in `new'
from /usr/share/foreman-installer/hooks/post/10-setup_provisioning.rb:24:in `load'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/hook_context.rb:13:in `instance_exec'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/hook_context.rb:13:in `execute'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/hooking.rb:48:in `execute'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/hooking.rb:47:in `each_pair'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/hooking.rb:47:in `execute'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/kafo_configure.rb:339:in `run_installation'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/exit_handler.rb:24:in `call'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/exit_handler.rb:24: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/rhel-osp-installer:55
Version-Release number of selected component (if applicable):
RHEL 6.5 2.6.32-431.29.2.el6.x86_64
rhel-osp-installer-0.3.6-1.el6ost.noarch
How reproducible:
Following RHEL OSP platform install document run rhel-osp-installer on RHEL 6.5 machine (VM) and it fails.
Steps to Reproduce:
1. Subscribe to following channels
rhel-6-server-openstack-foreman-rpms
rhel-6-server-rpms
rhel-server-rhscl-6-rpms
2. Install rhel-osp-installer
3. run rhel-osp-installer and proceed with detected settings
Actual results:
rhel-osp-installer fails with above output
Expected results:
installer finishes successfullly.
Additional info:
PR upstream:
https://github.com/theforeman/foreman-installer-staypuft/pull/123
The fix is twofold (each bit in a separate commit):
* in case this problem reappears for whatever reason, print a more descriptive error message,
* don't allow the problem to happen - only use autodetection for Foreman URL.
Comment 22Alexander Chuzhoy
2015-01-07 15:20:49 UTC
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.
https://rhn.redhat.com/errata/RHBA-2015-0156.html
Created attachment 946848 [details] Error message - console output Description of problem: Running rhel-osp-installer on a fresh install of RHEL 6.5 fails with following error /usr/share/foreman-installer/hooks/lib/base_seeder.rb:30:in `find_default_os': undefined method `[]' for nil:NilClass (NoMethodError) from /usr/share/foreman-installer/hooks/lib/subscription_seeder.rb:17:in `initialize' from /usr/share/foreman-installer/hooks/post/10-setup_provisioning.rb:24:in `new' from /usr/share/foreman-installer/hooks/post/10-setup_provisioning.rb:24:in `load' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/hook_context.rb:13:in `instance_exec' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/hook_context.rb:13:in `execute' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/hooking.rb:48:in `execute' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/hooking.rb:47:in `each_pair' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/hooking.rb:47:in `execute' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/kafo_configure.rb:339:in `run_installation' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/exit_handler.rb:24:in `call' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/exit_handler.rb:24: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/rhel-osp-installer:55 Version-Release number of selected component (if applicable): RHEL 6.5 2.6.32-431.29.2.el6.x86_64 rhel-osp-installer-0.3.6-1.el6ost.noarch How reproducible: Following RHEL OSP platform install document run rhel-osp-installer on RHEL 6.5 machine (VM) and it fails. Steps to Reproduce: 1. Subscribe to following channels rhel-6-server-openstack-foreman-rpms rhel-6-server-rpms rhel-server-rhscl-6-rpms 2. Install rhel-osp-installer 3. run rhel-osp-installer and proceed with detected settings Actual results: rhel-osp-installer fails with above output Expected results: installer finishes successfullly. Additional info: