Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1152543

Summary: rhel-osp-installer fails with base_seeder.rb:30:in `find_default_os':
Product: Red Hat OpenStack Reporter: Maruf Hassan <otarini>
Component: rhel-osp-installerAssignee: Jiri Stransky <jstransk>
Status: CLOSED ERRATA QA Contact: Alexander Chuzhoy <sasha>
Severity: high Docs Contact:
Priority: high    
Version: 5.0 (RHEL 6)CC: brad, dmacpher, jliberma, jstransk, mburns, rhos-maint, sasha, sengork, sputhenp, yeylon
Target Milestone: gaKeywords: ZStream
Target Release: Installer   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhel-osp-installer-0.5.3-1.el7ost Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-09 15:17:24 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:
Attachments:
Description Flags
Error message - console output none

Description Maruf Hassan 2014-10-14 11:40:51 UTC
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:

Comment 19 Jiri Stransky 2014-12-11 16:14:50 UTC
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 22 Alexander Chuzhoy 2015-01-07 15:20:49 UTC
Verified:
Environment:
ruby193-rubygem-foreman_openstack_simplify-0.0.6-8.el7ost.noarch
openstack-foreman-installer-3.0.8-1.el7ost.noarch
ruby193-rubygem-staypuft-0.5.9-1.el7ost.noarch
rhel-osp-installer-client-0.5.4-1.el7ost.noarch
openstack-puppet-modules-2014.2.8-1.el7ost.noarch
rhel-osp-installer-0.5.4-1.el7ost.noarch


The issue doesn't reproduce.

Comment 24 errata-xmlrpc 2015-02-09 15:17:24 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