Foreman + centos 6.3

Hi Again,

I've been trying to get foreman to work on Centos 6.3 utilzing puppet
2.7.19.

specifically, I'm trying to get foreman-vmware working because we're a
VMWare shop.

rpm -qa | grep foreman =>

foreman-release-1.4.1-2.el6.noarch
foreman-proxy-1.4.1-1.el6.noarch
foreman-compute-1.4.1-2.el6.noarch
rubygem-foreman_api-0.1.11-1.el6.noarch
foreman-vmware-1.4.1-2.el6.noarch
foreman-installer-1.4.1-1.el6.noarch
foreman-1.4.1-2.el6.noarch

trying to install from these instructions:
http://theforeman.org/manuals/1.4/index.html#3.5Configuration

the following cmd "

foreman-rake db:migrate"

is failing.

/usr/sbin/foreman-rake is a bash script which contains:
RAKE_CMD=/usr/bin/ruby193-rake

there is no /usr/bin/ruby193-rake

so … wget ftp://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/6x/external_products/softwarecollections/x86_64/ruby193/ruby193-rubygem-rake-0.9.2.2-40.el6.noarch.rpm

however, I still don't have /usr/bin/ruby193-rake.

rpm -qa | grep ruby193-rubygem-rake
ruby193-rubygem-rake-0.9.2.2-27.el6.noarch
ruby193-rubygem-rake-0.9.2.2-40.el6.noarch

ls /usr/bin/ru*

/usr/bin/ruby /usr/bin/ruby_parse /usr/bin/runcon /usr/bin/run-parts
/usr/bin/ruby193-ruby /usr/bin/ruby_parse_extract_error /usr/bin/run_erl /usr/bin/run_test

Any help would be greatly appreciated.

··· --

This email is intended solely for the person or entity to which it is
addressed and may contain confidential and/or privileged information. If
you are not the intended recipient and have received this email in error,
please notify BroadSoft, Inc. immediately by replying to this message, and
destroy all copies of this message, along with any attachment, prior to
reading, distributing or copying it.

/usr/bin/ruby193-rake is supplied by one of our RPMs,
ruby193-ruby-wrapper. Given that you have /usr/bin/ruby193-ruby, I
think this means you have an older version of software collections
installed.

Before they were released, the beta versions contained
/usr/bin/ruby193-* but these were removed in the final versions. We
reintroduced them in ruby193-ruby-wrapper. Seeing as you still have
/usr/bin/ruby193-ruby, I think you must be using the beta version and
not the final version from the CentOS repositories. An "rpm -q
ruby193-ruby" would confirm - it'll be 1.9.3.327 or so if it's the beta,
or 1.9.3.448 or so if it's the final version.

If it's the beta, I'd suggest trying this:

  1. add the CentOS SCL repositories, by installing centos-release-SCL
    (http://wiki.centos.org/AdditionalResources/Repositories/SCL)

  2. yum upgrade ruby193-*

  3. yum install ruby193-ruby-wrapper

Cheers,

··· -- Dominic Cleal Red Hat Engineering

On 07/03/14 02:23, mjackson@broadsoft.com wrote:

Hi Again,

I’ve been trying to get foreman to work on Centos 6.3 utilzing puppet
2.7.19.

specifically, I’m trying to get foreman-vmware working because we’re a
VMWare shop.

rpm -qa | grep foreman =>

foreman-release-1.4.1-2.el6.noarch
foreman-proxy-1.4.1-1.el6.noarch
foreman-compute-1.4.1-2.el6.noarch
rubygem-foreman_api-0.1.11-1.el6.noarch
foreman-vmware-1.4.1-2.el6.noarch
foreman-installer-1.4.1-1.el6.noarch
foreman-1.4.1-2.el6.noarch

trying to install from these instructions:
Foreman :: Manual

the following cmd "

foreman-rake db:migrate"

is failing.

/usr/sbin/foreman-rake is a bash script which contains:
RAKE_CMD=/usr/bin/ruby193-rake

there is no /usr/bin/ruby193-rake

so … wget ftp://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/6x/external_products/softwarecollections/x86_64/ruby193/ruby193-rubygem-rake-0.9.2.2-40.el6.noarch.rpm

however, I still don’t have /usr/bin/ruby193-rake.

rpm -qa | grep ruby193-rubygem-rake
ruby193-rubygem-rake-0.9.2.2-27.el6.noarch
ruby193-rubygem-rake-0.9.2.2-40.el6.noarch

ls /usr/bin/ru*

/usr/bin/ruby /usr/bin/ruby_parse /usr/bin/runcon /usr/bin/run-parts
/usr/bin/ruby193-ruby /usr/bin/ruby_parse_extract_error /usr/bin/run_erl /usr/bin/run_test

Any help would be greatly appreciated.

This email is intended solely for the person or entity to which it is
addressed and may contain confidential and/or privileged information.
If you are not the intended recipient and have received this email in
error, please notify BroadSoft, Inc. immediately by replying to this
message, and destroy all copies of this message, along with any
attachment, prior to reading, distributing or copying it.


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
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Hi Doiminic,

you were right about beta/version issue.

I have done the following:

1005 sudo yum install centos-release-SCL
1007 sudo yum upgrade ruby193-*
1008 sudo yum install ruby193-ruby-wrapper

this cmd: 1020 sudo foreman-rake db:migrate

gives: /opt/rh/ruby193/root/usr/bin/ruby: error while loading shared
libraries: libruby.so.1.9: cannot open shared object file: No such file or
directory

so I went looking:
sudo find / -name libruby.so.*
/usr/lib64/libruby.so.1.8
/usr/lib64/libruby.so.1.8.7
/opt/rh/ruby193/root/usr/lib64/libruby.so.1.9
/opt/rh/ruby193/root/usr/lib64/libruby.so.1.9.1

I tried this: export RUBYLIB=/opt/rh/ruby193/root/usr/lib64/

however, the foreman-rake command still complainst about not finding
libruby.so.1.9

Do I need to execute some sort of "runlib" to update where

··· On Thursday, March 6, 2014 6:23:24 PM UTC-8, mjac...@broadsoft.com wrote: > > Hi Again, > > I've been trying to get foreman to work on Centos 6.3 utilzing puppet > 2.7.19. > > specifically, I'm trying to get foreman-vmware working because we're a > VMWare shop. > > rpm -qa | grep foreman => > > foreman-release-1.4.1-2.el6.noarch > foreman-proxy-1.4.1-1.el6.noarch > foreman-compute-1.4.1-2.el6.noarch > rubygem-foreman_api-0.1.11-1.el6.noarch > foreman-vmware-1.4.1-2.el6.noarch > foreman-installer-1.4.1-1.el6.noarch > foreman-1.4.1-2.el6.noarch > > trying to install from these instructions: > http://theforeman.org/manuals/1.4/index.html#3.5Configuration > > the following cmd " > > foreman-rake db:migrate" > > is failing. > > /usr/sbin/foreman-rake is a bash script which contains: > RAKE_CMD=/usr/bin/ruby193-rake > > there is no /usr/bin/ruby193-rake > > so ... wget ftp://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/6x/external_products/softwarecollections/x86_64/ruby193/ruby193-rubygem-rake-0.9.2.2-40.el6.noarch.rpm > > however, I *still* don't have /usr/bin/ruby193-rake. > > rpm -qa | grep ruby193-rubygem-rake > ruby193-rubygem-rake-0.9.2.2-27.el6.noarch > ruby193-rubygem-rake-0.9.2.2-40.el6.noarch > > ls /usr/bin/ru* > > /usr/bin/ruby /usr/bin/ruby_parse /usr/bin/runcon /usr/bin/run-parts > /usr/bin/ruby193-ruby /usr/bin/ruby_parse_extract_error /usr/bin/run_erl /usr/bin/run_test > > Any help would be greatly appreciated. > > > > > > This email is intended solely for the person or entity to which it is > addressed and may contain confidential and/or privileged information. If > you are not the intended recipient and have received this email in error, > please notify BroadSoft, Inc. immediately by replying to this message, and > destroy all copies of this message, along with any attachment, prior to > reading, distributing or copying it. > > --

This email is intended solely for the person or entity to which it is
addressed and may contain confidential and/or privileged information. If
you are not the intended recipient and have received this email in error,
please notify BroadSoft, Inc. immediately by replying to this message, and
destroy all copies of this message, along with any attachment, prior to
reading, distributing or copying it.

the cmd "scl enable ruby193 irb" works from both a non-root user and a root
user.

i.e after running the cmd I get: irb(main):001:0>

http://yum.theforeman.org/releases/1.4/el6/x86_64/foreman-release.rpm

[foreman]
name=Foreman 1.4
baseurl=http://yum.theforeman.org/releases/1.4/el6/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-foreman

So … if this is working for you … Do you have a different set of
instructions than what's at: html?

··· from my history: sudo yum -y install

On Thursday, March 6, 2014 6:23:24 PM UTC-8, mjac...@broadsoft.com wrote:

Hi Again,

I’ve been trying to get foreman to work on Centos 6.3 utilzing puppet
2.7.19.

specifically, I’m trying to get foreman-vmware working because we’re a
VMWare shop.

rpm -qa | grep foreman =>

foreman-release-1.4.1-2.el6.noarch
foreman-proxy-1.4.1-1.el6.noarch
foreman-compute-1.4.1-2.el6.noarch
rubygem-foreman_api-0.1.11-1.el6.noarch
foreman-vmware-1.4.1-2.el6.noarch
foreman-installer-1.4.1-1.el6.noarch
foreman-1.4.1-2.el6.noarch

trying to install from these instructions:
Foreman :: Manual

the following cmd "

foreman-rake db:migrate"

is failing.

/usr/sbin/foreman-rake is a bash script which contains:
RAKE_CMD=/usr/bin/ruby193-rake

there is no /usr/bin/ruby193-rake

so … wget ftp://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/6x/external_products/softwarecollections/x86_64/ruby193/ruby193-rubygem-rake-0.9.2.2-40.el6.noarch.rpm

however, I still don’t have /usr/bin/ruby193-rake.

rpm -qa | grep ruby193-rubygem-rake
ruby193-rubygem-rake-0.9.2.2-27.el6.noarch
ruby193-rubygem-rake-0.9.2.2-40.el6.noarch

ls /usr/bin/ru*

/usr/bin/ruby /usr/bin/ruby_parse /usr/bin/runcon /usr/bin/run-parts
/usr/bin/ruby193-ruby /usr/bin/ruby_parse_extract_error /usr/bin/run_erl /usr/bin/run_test

Any help would be greatly appreciated.

This email is intended solely for the person or entity to which it is
addressed and may contain confidential and/or privileged information. If
you are not the intended recipient and have received this email in error,
please notify BroadSoft, Inc. immediately by replying to this message, and
destroy all copies of this message, along with any attachment, prior to
reading, distributing or copying it.

This email is intended solely for the person or entity to which it is
addressed and may contain confidential and/or privileged information. If
you are not the intended recipient and have received this email in error,
please notify BroadSoft, Inc. immediately by replying to this message, and
destroy all copies of this message, along with any attachment, prior to
reading, distributing or copying it.

All right. I've finally made some headway on this.

created a brand new instance on CentOS 6.4.
used the epel and remi repositoryies.
enabled rhel-6-server-optional-rpms and rhel-server-rhscl-6-rpms

used yum to install foreman 1.4 for x86_64
installed foreman-installer.

ran that in default mode for the initial install.

installed foreman-vmware via yum.

rebooted the machine. [ I probably could have stopped/started
/etc/init.d/foreman* ]

logged in w/ default admin/changem
configured my compute-resource

I can now see everything in vSphere.

··· On Thursday, March 6, 2014 6:23:24 PM UTC-8, mjac...@broadsoft.com wrote: > > Hi Again, > > I've been trying to get foreman to work on Centos 6.3 utilzing puppet > 2.7.19. > > specifically, I'm trying to get foreman-vmware working because we're a > VMWare shop. > > rpm -qa | grep foreman => > > foreman-release-1.4.1-2.el6.noarch > foreman-proxy-1.4.1-1.el6.noarch > foreman-compute-1.4.1-2.el6.noarch > rubygem-foreman_api-0.1.11-1.el6.noarch > foreman-vmware-1.4.1-2.el6.noarch > foreman-installer-1.4.1-1.el6.noarch > foreman-1.4.1-2.el6.noarch > > trying to install from these instructions: > http://theforeman.org/manuals/1.4/index.html#3.5Configuration > > the following cmd " > > foreman-rake db:migrate" > > is failing. > > /usr/sbin/foreman-rake is a bash script which contains: > RAKE_CMD=/usr/bin/ruby193-rake > > there is no /usr/bin/ruby193-rake > > so ... wget ftp://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/6x/external_products/softwarecollections/x86_64/ruby193/ruby193-rubygem-rake-0.9.2.2-40.el6.noarch.rpm > > however, I *still* don't have /usr/bin/ruby193-rake. > > rpm -qa | grep ruby193-rubygem-rake > ruby193-rubygem-rake-0.9.2.2-27.el6.noarch > ruby193-rubygem-rake-0.9.2.2-40.el6.noarch > > ls /usr/bin/ru* > > /usr/bin/ruby /usr/bin/ruby_parse /usr/bin/runcon /usr/bin/run-parts > /usr/bin/ruby193-ruby /usr/bin/ruby_parse_extract_error /usr/bin/run_erl /usr/bin/run_test > > Any help would be greatly appreciated. > > > > > > This email is intended solely for the person or entity to which it is > addressed and may contain confidential and/or privileged information. If > you are not the intended recipient and have received this email in error, > please notify BroadSoft, Inc. immediately by replying to this message, and > destroy all copies of this message, along with any attachment, prior to > reading, distributing or copying it. > > --

This email is intended solely for the person or entity to which it is
addressed and may contain confidential and/or privileged information. If
you are not the intended recipient and have received this email in error,
please notify BroadSoft, Inc. immediately by replying to this message, and
destroy all copies of this message, along with any attachment, prior to
reading, distributing or copying it.

> I tried this: export RUBYLIB=/opt/rh/ruby193/root/usr/lib64/

This is likely issue of LD_LIBRARY_PATH and not RUBYLIB. But this is
obviously working for us. Something is wrong with your setup. Try:

scl enable ruby193 irb

It should start Ruby interpreter.

> Do I need to execute some sort of "runlib" to update where

No, it should work just fine. Can you confirm you installed correct
architecture (e.g. not i686 on 64bit OS)?

··· -- Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman