Foreman 1.1 Redhat EL6 Installation problems

I happened to be updating the repo with 1.1-2 just a few minutes ago and it's now released; the release notes will be out shortly. One of the things that's included in the release is a fix to the "release" subpackage so the repo is setup properly to use the latest stable version. A new version of the installer package should be available early tomorrow that fixes the installer issue you ran into, which is caused by the fact that the generate_answers.rb script expects the foreman_installer module to be in the pwd.

Hope that clears things up.

-Sam

··· ----- Original Message ----- From: "garg" To: foreman-users@googlegroups.com Sent: Thursday, February 14, 2013 4:59:28 PM Subject: [foreman-users] Foreman 1.1 Redhat EL6 Installation problems

I’m trying to run the foreman-installer on Scientific Linux 6 which is similar to rhel6 and centos6

Following the instructions on the http://theforeman.org/manuals/1.1/quickstart_guide.html:

yum -y install http://yum.theforeman.org/releases/1.1/el6/x86_64/foreman-release-1.1stable-1.el6.noarch.rpm

Creates a .repo file with contents:

[foreman]
name=foreman
baseurl=http://yum.theforeman.org/development/el6/$basearch
gpgcheck=0
enabled=1
[foreman-source]
name=foreman-source
baseurl=http://yum.theforeman.org/development/el6/source
gpgcheck=0
enabled=0

Note, it is pointing to development and it does not have foreman-installer so the next step in the manual fails.

Changing it to:
baseurl=http://yum.theforeman.org/releases/1.1/el6/$basearch

allows me to install foreman-installer

The following may be a different problem – running the installer crashes:

warning: Could not find class foreman_installer for
Could not find class foreman_installer at line 1 on node
/usr/share/foreman-installer/generate_answers.rb:91:in initialize': No such file or directory - foreman_installer/answers.yaml (Errno::ENOENT) from /usr/share/foreman-installer/generate_answers.rb:91:inopen’
from /usr/share/foreman-installer/generate_answers.rb:91:in parting_message' from /usr/share/foreman-installer/generate_answers.rb:84:insave_or_run_and_exit’
from /usr/share/foreman-installer/generate_answers.rb:164

foreman_installer/answers.yaml exists so it may be a permissions problem, or a path problem because permissions allow read from all.

Has any one else experienced this? Any assistance will be appreciated.

Thanks!


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users?hl=en .
For more options, visit https://groups.google.com/groups/opt_out .

> That's weird. Just ran ruby
> /usr/share/foreman-installer/generate_answers.rb and things seem to be
> working now. Weird. I changed dirs to just explore where answers.yaml
> was written.

Yeah, that's a bug that has been fixed in foreman-installer master but
hasn't gotten released yet. I've been saying that I'd roll a new release
for a few days, so I'll finally actually do it tomorrow :slight_smile:

··· On 02/16/2013 07:16 PM, Vivek Ayer wrote:

Vivek

On Thursday, February 14, 2013 8:47:30 PM UTC-8, Sam Kottler wrote:

I happened to be updating the repo with 1.1-2 just a few minutes
ago and it's now released; the release notes will be out shortly.
One of the things that's included in the release is a fix to the
"release" subpackage so the repo is setup properly to use the
latest stable version. A new version of the installer package
should be available early tomorrow that fixes the installer issue
you ran into, which is caused by the fact that the
generate_answers.rb script expects the foreman_installer module to
be in the pwd.

Hope that clears things up.

-Sam

----- Original Message -----
From: "garg" <khur...@gmail.com <javascript:>>
To: forema...@googlegroups.com <javascript:>
Sent: Thursday, February 14, 2013 4:59:28 PM
Subject: [foreman-users] Foreman 1.1 Redhat EL6 Installation problems


I'm trying to run the foreman-installer on Scientific Linux 6
which is similar to rhel6 and centos6

Following the instructions on the
http://theforeman.org/manuals/1.1/quickstart_guide.html
<http://theforeman.org/manuals/1.1/quickstart_guide.html>:



# yum -y install
http://yum.theforeman.org/releases/1.1/el6/x86_64/foreman-release-1.1stable-1.el6.noarch.rpm
<http://yum.theforeman.org/releases/1.1/el6/x86_64/foreman-release-1.1stable-1.el6.noarch.rpm>



Creates a .repo file with contents:




[foreman]
name=foreman
baseurl=http://yum.theforeman.org/development/el6/$basearch
<http://yum.theforeman.org/development/el6/$basearch>
gpgcheck=0
enabled=1
[foreman-source]
name=foreman-source
baseurl=http://yum.theforeman.org/development/el6/source
<http://yum.theforeman.org/development/el6/source>
gpgcheck=0
enabled=0


Note, it is pointing to development and it does not have
foreman-installer so the next step in the manual fails.


Changing it to:
baseurl=http://yum.theforeman.org/releases/1.1/el6/$basearch
<http://yum.theforeman.org/releases/1.1/el6/$basearch>


allows me to install foreman-installer


The following may be a different problem -- running the installer
crashes:



warning: Could not find class foreman_installer for <hostname>
Could not find class foreman_installer at line 1 on node <hostname>
/usr/share/foreman-installer/generate_answers.rb:91:in
`initialize': No such file or directory -
foreman_installer/answers.yaml (Errno::ENOENT)
from /usr/share/foreman-installer/generate_answers.rb:91:in `open'
from /usr/share/foreman-installer/generate_answers.rb:91:in
`parting_message'
from /usr/share/foreman-installer/generate_answers.rb:84:in
`save_or_run_and_exit'
from /usr/share/foreman-installer/generate_answers.rb:164


foreman_installer/answers.yaml exists so it may be a permissions
problem, or a path problem because permissions allow read from all.



Has any one else experienced this? Any assistance will be
appreciated.


Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Foreman users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to foreman-user...@googlegroups.com <javascript:>.
To post to this group, send email to forema...@googlegroups.com
<javascript:>.
Visit this group at
http://groups.google.com/group/foreman-users?hl=en
<http://groups.google.com/group/foreman-users?hl=en> .
For more options, visit https://groups.google.com/groups/opt_out
<https://groups.google.com/groups/opt_out> .


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.