Foreman-installer-staypuft crashes on install

Hi!

Can someone help me with next problem:
I try to install staypuft on Centos 6.5

rpm -qa | grep release

> puppetlabs-release-6-10.noarch
> epel-release-6-8.noarch
> foreman-release-1.6.0-0.1.RC1.el6.noarch
> centos-release-6-5.el6.centos.11.2.x86_64
> centos-release-SCL-6-5.el6.centos.x86_64

puppet --version

> 3.6.2

rpm -qa | grep staypuft

> foreman-installer-staypuft-0.1.7-1.el6.noarch
> ruby193-rubygem-staypuft-0.1.20-1.el6.noarch

when I try staypuft-installer I got error:

> Starting configuration…

/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/staypuft-installer:54

Logs:

[ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye!
> [ INFO 2014-08-20 12:38:24 main] Executing hooks in group post
> [DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed foreman data
> [DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished
> [DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
> [DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
> [DEBUG 2014-08-20 12:38:40 main] Puppet modules installed
> [DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying in 5 seconds
> (1/5)
> [DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying in 5 seconds
> (2/5)
> [DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying in 5 seconds
> (3/5)
> [DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying in 5 seconds
> (4/5)
> [DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying in 5 seconds
> (5/5)

in foreman UI openstack installer -> new deployment I got

Warning!

··· > missing base_hostgroup

Hello,

can you retry with the latest foreman-installer-staypuft that I built today
[1]? It should get into nightly repos soon. I fixed two issues and successfully
installed staypuft today on Centos 6.5. I used puppet 2.7.25.

[1] http://koji.katello.org/packages/foreman-installer-staypuft/0.3.0/1.el6/noarch/foreman-installer-staypuft-0.3.0-1.el6.noarch.rpm

··· -- Marek

On Wednesday 20 of August 2014 02:42:58 Nomnom Fuser wrote:

Hi!

Can someone help me with next problem:
I try to install staypuft on Centos 6.5

rpm -qa | grep release

puppetlabs-release-6-10.noarch
epel-release-6-8.noarch
foreman-release-1.6.0-0.1.RC1.el6.noarch
centos-release-6-5.el6.centos.11.2.x86_64
centos-release-SCL-6-5.el6.centos.x86_64

puppet --version

3.6.2

rpm -qa | grep staypuft

foreman-installer-staypuft-0.1.7-1.el6.noarch
ruby193-rubygem-staypuft-0.1.20-1.el6.noarch

when I try staypuft-installer I got error:

Starting configuration…

/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/staypuft-installer:54

Logs:

[ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye!

[ INFO 2014-08-20 12:38:24 main] Executing hooks in group post
[DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed foreman data
[DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:40 main] Puppet modules installed
[DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying in 5 seconds
(1/5)
[DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying in 5 seconds
(2/5)
[DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying in 5 seconds
(3/5)
[DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying in 5 seconds
(4/5)
[DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying in 5 seconds
(5/5)

in foreman UI openstack installer -> new deployment I got

Warning!

missing base_hostgroup

Hi Folks-

I've just installed the latest nightly of staypuft-installer, and after
fixing some other minor issues, I'm now getting exactly the same error as
the first message in this thread. (And same "Host was not found, retrying
in 5 seconds (5/5)" as the last message in the log.)

Since this just went away for Nomnom, it wasn't really addressed. Any
ideas?

Here's my version info:

rpm -qa | grep foreman

foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch

rubygem-foreman_api-0.1.11-1.el6.noarch

foreman-installer-1.7.0-0.develop.201408270326git3551ee3.el6.noarch

foreman-1.7.0-0.develop.201408271554gitce690b7.el6.noarch

ruby193-rubygem-foreman-tasks-0.6.4-1.el6.noarch

foreman-installer-staypuft-0.3.3-1.el6.noarch

foreman-proxy-1.7.0-0.develop.201408271526git915c16d.el6.noarch

foreman-postgresql-1.7.0-0.develop.201408271554gitce690b7.el6.noarch

ruby193-rubygem-foreman_discovery-1.3.0-1.el6.noarch

# rpm -qa | grep staypuft

ruby193-rubygem-staypuft-0.3.0-1.el6.noarch

foreman-installer-staypuft-0.3.3-1.el6.noarch

-John

··· On Wednesday, August 20, 2014 2:42:58 AM UTC-7, Nomnom Fuser wrote: > > Hi! > > Can someone help me with next problem: > I try to install staypuft on Centos 6.5 > > # rpm -qa | grep release >> puppetlabs-release-6-10.noarch >> epel-release-6-8.noarch >> foreman-release-1.6.0-0.1.RC1.el6.noarch >> centos-release-6-5.el6.centos.11.2.x86_64 >> centos-release-SCL-6-5.el6.centos.x86_64 > > > # puppet --version >> 3.6.2 > > > # rpm -qa | grep staypuft >> foreman-installer-staypuft-0.1.7-1.el6.noarch >> ruby193-rubygem-staypuft-0.1.20-1.el6.noarch > > > when I try staypuft-installer I got error: > > >> Starting configuration... > > /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/staypuft-installer:54 > > > > Logs: > > [ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye! >> [ INFO 2014-08-20 12:38:24 main] Executing hooks in group post >> [DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed foreman data >> [DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished >> [DEBUG 2014-08-20 12:38:30 main] Installing puppet modules >> [DEBUG 2014-08-20 12:38:30 main] Installing puppet modules >> [DEBUG 2014-08-20 12:38:40 main] Puppet modules installed >> [DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying in 5 >> seconds (1/5) >> [DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying in 5 >> seconds (2/5) >> [DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying in 5 >> seconds (3/5) >> [DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying in 5 >> seconds (4/5) >> [DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying in 5 >> seconds (5/5) > > > in foreman UI openstack installer -> new deployment I got > > Warning! >> missing base_hostgroup > > >

I decided setup all from scratch and got new error:

Starting networking setup
> Networking setup failed
> Something went wrong! Check the log for ERROR-level output
> The full log is at /var/log/foreman-installer/foreman-installer.log

Log:

> [DEBUG 2014-08-20 16:22:32 main] echo
> '$kafo_config_file="/etc/foreman/staypuft-installer.yaml"
> $kafo_add_progress=true class {"foreman::plugin::staypuft_network":
> interface => "eth0:172",
> ip => "172.16.32.1",
> netmask => "255.255.255.0",
> gateway => "10.10.10.1",
> dns => "172.16.32.1",
> configure_networking => true,
> configure_firewall => true,
> }' |
> RUBYLIB=/usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/…/…//modules:
> puppet apply --modulepath
> /usr/share/foreman-installer/modules:/usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/modules
> 2>&1
> [DEBUG 2014-08-20 16:22:32 main] running command to set networking
> [DEBUG 2014-08-20 16:22:37 main] Must pass macaddress to
> Network_if_base[eth0:172] at
> /usr/share/foreman-installer/modules/network/manifests/init.pp:95 on node
> openstack-core.cloud
> [DEBUG 2014-08-20 16:22:37 main] Exit with status code: 101 (signal was
> 101)
> [DEBUG 2014-08-20 16:22:37 main] Cleaning /tmp/d20140820-17577-hi9z5m
> [DEBUG 2014-08-20 16:22:37 main] Cleaning /tmp/default_values.yaml

same error on foreman-installer-staypuft-0.1.7-1 and
yours foreman-installer-staypuft-0.3.0-1
did you support Ethernet aliases? because my servers got only 1 eth right
now.

··· On Wednesday, August 20, 2014 3:57:02 PM UTC+3, Marek Hulan wrote: > > Hello, > > can you retry with the latest foreman-installer-staypuft that I built > today > [1]? It should get into nightly repos soon. I fixed two issues and > successfully > installed staypuft today on Centos 6.5. I used puppet 2.7.25. > > [1] > http://koji.katello.org/packages/foreman-installer-staypuft/0.3.0/1.el6/noarch/foreman-installer-staypuft-0.3.0-1.el6.noarch.rpm > > -- > Marek > > On Wednesday 20 of August 2014 02:42:58 Nomnom Fuser wrote: > > Hi! > > > > Can someone help me with next problem: > > I try to install staypuft on Centos 6.5 > > > > # rpm -qa | grep release > > > > > puppetlabs-release-6-10.noarch > > > epel-release-6-8.noarch > > > foreman-release-1.6.0-0.1.RC1.el6.noarch > > > centos-release-6-5.el6.centos.11.2.x86_64 > > > centos-release-SCL-6-5.el6.centos.x86_64 > > > > # puppet --version > > > > > 3.6.2 > > > > # rpm -qa | grep staypuft > > > > > foreman-installer-staypuft-0.1.7-1.el6.noarch > > > ruby193-rubygem-staypuft-0.1.20-1.el6.noarch > > > > when I try staypuft-installer I got error: > > > Starting configuration... > > > > /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/staypuft-installer:54 > > > > > > > > Logs: > > > > [ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye! > > > > > [ INFO 2014-08-20 12:38:24 main] Executing hooks in group post > > > [DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed foreman > data > > > [DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished > > > [DEBUG 2014-08-20 12:38:30 main] Installing puppet modules > > > [DEBUG 2014-08-20 12:38:30 main] Installing puppet modules > > > [DEBUG 2014-08-20 12:38:40 main] Puppet modules installed > > > [DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying in 5 > seconds > > > (1/5) > > > [DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying in 5 > seconds > > > (2/5) > > > [DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying in 5 > seconds > > > (3/5) > > > [DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying in 5 > seconds > > > (4/5) > > > [DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying in 5 > seconds > > > (5/5) > > > > in foreman UI openstack installer -> new deployment I got > > > > Warning! > > > > > missing base_hostgroup > >

I've never tried installing on alias device and it seems it does not work. I'd
recommend using primary device for provisioning and use alias for what you
currently use the primary interface if possible.

··· -- Marek

On Wednesday 20 of August 2014 06:26:37 Nomnom Fuser wrote:

I decided setup all from scratch and got new error:

Starting networking setup

Networking setup failed

Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/foreman-installer/foreman-installer.log

Log:

[DEBUG 2014-08-20 16:22:32 main] echo
’$kafo_config_file="/etc/foreman/staypuft-installer.yaml"

$kafo_add_progress=true class {“foreman::plugin::staypuft_network”:
interface => “eth0:172”,
ip => “172.16.32.1”,
netmask => “255.255.255.0”,
gateway => “10.10.10.1”,
dns => “172.16.32.1”,
configure_networking => true,
configure_firewall => true,

}' |

RUBYLIB=/usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/…/…//modules:
puppet apply --modulepath
/usr/share/foreman-installer/modules:/usr/lib/ruby/gems/1.8/gems/kafo-0.6.
4/modules 2>&1
[DEBUG 2014-08-20 16:22:32 main] running command to set networking
[DEBUG 2014-08-20 16:22:37 main] Must pass macaddress to
Network_if_base[eth0:172] at
/usr/share/foreman-installer/modules/network/manifests/init.pp:95 on node
openstack-core.cloud
[DEBUG 2014-08-20 16:22:37 main] Exit with status code: 101 (signal was
101)
[DEBUG 2014-08-20 16:22:37 main] Cleaning /tmp/d20140820-17577-hi9z5m
[DEBUG 2014-08-20 16:22:37 main] Cleaning /tmp/default_values.yaml

same error on foreman-installer-staypuft-0.1.7-1 and
yours foreman-installer-staypuft-0.3.0-1
did you support Ethernet aliases? because my servers got only 1 eth right
now.

On Wednesday, August 20, 2014 3:57:02 PM UTC+3, Marek Hulan wrote:

Hello,

can you retry with the latest foreman-installer-staypuft that I built
today
[1]? It should get into nightly repos soon. I fixed two issues and
successfully
installed staypuft today on Centos 6.5. I used puppet 2.7.25.

[1]
http://koji.katello.org/packages/foreman-installer-staypuft/0.3.0/1.el6/no
arch/foreman-installer-staypuft-0.3.0-1.el6.noarch.rpm>
On Wednesday 20 of August 2014 02:42:58 Nomnom Fuser wrote:

Hi!

Can someone help me with next problem:
I try to install staypuft on Centos 6.5

rpm -qa | grep release

puppetlabs-release-6-10.noarch
epel-release-6-8.noarch
foreman-release-1.6.0-0.1.RC1.el6.noarch
centos-release-6-5.el6.centos.11.2.x86_64
centos-release-SCL-6-5.el6.centos.x86_64

puppet --version

3.6.2

rpm -qa | grep staypuft

foreman-installer-staypuft-0.1.7-1.el6.noarch
ruby193-rubygem-staypuft-0.1.20-1.el6.noarch

when I try staypuft-installer I got error:

Starting configuration…

/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/staypuft-installer:54

Logs:

[ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye!

[ INFO 2014-08-20 12:38:24 main] Executing hooks in group post
[DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed foreman

data

[DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:40 main] Puppet modules installed
[DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying in 5

seconds

(1/5)
[DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying in 5

seconds

(2/5)
[DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying in 5

seconds

(3/5)
[DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying in 5

seconds

(4/5)
[DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying in 5

seconds

(5/5)

in foreman UI openstack installer -> new deployment I got

Warning!

missing base_hostgroup


Marek

Hello,

can you rerun the installer? It seems that it could take more time to save all
data so installer should wait a bit longer. If it does not help, something
went wrong with first puppet run so you can try to trigger

puppet agent --onetime --test

to see whether there's some obvious issue.

··· -- Marek

On Wednesday 27 of August 2014 16:46:46 John Hazen wrote:

Hi Folks-

I’ve just installed the latest nightly of staypuft-installer, and after
fixing some other minor issues, I’m now getting exactly the same error as
the first message in this thread. (And same “Host was not found, retrying
in 5 seconds (5/5)” as the last message in the log.)

Since this just went away for Nomnom, it wasn’t really addressed. Any
ideas?

Here’s my version info:

rpm -qa | grep foreman

foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch

rubygem-foreman_api-0.1.11-1.el6.noarch

foreman-installer-1.7.0-0.develop.201408270326git3551ee3.el6.noarch

foreman-1.7.0-0.develop.201408271554gitce690b7.el6.noarch

ruby193-rubygem-foreman-tasks-0.6.4-1.el6.noarch

foreman-installer-staypuft-0.3.3-1.el6.noarch

foreman-proxy-1.7.0-0.develop.201408271526git915c16d.el6.noarch

foreman-postgresql-1.7.0-0.develop.201408271554gitce690b7.el6.noarch

ruby193-rubygem-foreman_discovery-1.3.0-1.el6.noarch

# rpm -qa | grep staypuft

ruby193-rubygem-staypuft-0.3.0-1.el6.noarch

foreman-installer-staypuft-0.3.3-1.el6.noarch

-John

On Wednesday, August 20, 2014 2:42:58 AM UTC-7, Nomnom Fuser wrote:

Hi!

Can someone help me with next problem:
I try to install staypuft on Centos 6.5

rpm -qa | grep release

puppetlabs-release-6-10.noarch
epel-release-6-8.noarch
foreman-release-1.6.0-0.1.RC1.el6.noarch
centos-release-6-5.el6.centos.11.2.x86_64
centos-release-SCL-6-5.el6.centos.x86_64

puppet --version

3.6.2

rpm -qa | grep staypuft

foreman-installer-staypuft-0.1.7-1.el6.noarch
ruby193-rubygem-staypuft-0.1.20-1.el6.noarch

when I try staypuft-installer I got error:

Starting configuration…

/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/staypuft-installer:54

Logs:

[ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye!

[ INFO 2014-08-20 12:38:24 main] Executing hooks in group post
[DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed foreman
data
[DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:40 main] Puppet modules installed
[DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying in 5
seconds (1/5)
[DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying in 5
seconds (2/5)
[DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying in 5
seconds (3/5)
[DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying in 5
seconds (4/5)
[DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying in 5
seconds (5/5)

in foreman UI openstack installer -> new deployment I got

Warning!

missing base_hostgroup


Marek

tried to use eth0 instead. network setup seems fine. but new error occurred:

Starting to seed provisioning data

··· > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in > `return!': 422 Unprocessable Entity (RestClient::UnprocessableEntity) > from > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in > `process_result' > from > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in > `transmit' > from /usr/lib/ruby/1.8/net/http.rb:543:in `start' > from > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in > `transmit' > from > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in > `execute' > from > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in > `execute' > from > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/resource.rb:80:in > `put' > from > /usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:78:in > `send' > from > /usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:78:in > `http_call' > from > /usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:61:in > `perform_call' > from > /usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/resources/setting.rb:38:in > `update' > from /usr/share/foreman-installer/hooks/lib/foreman.rb:69:in > `show_or_ensure' > from > /usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb:159:in > `setup_idle_timeout' > from > /usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb:130:in `seed' > from > /usr/share/foreman-installer/hooks/post/10-setup_provisioning.rb:29: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/staypuft-installer:55

On Wednesday, August 20, 2014 4:59:09 PM UTC+3, Marek Hulan wrote:

I’ve never tried installing on alias device and it seems it does not work.
I’d
recommend using primary device for provisioning and use alias for what you
currently use the primary interface if possible.


Marek

On Wednesday 20 of August 2014 06:26:37 Nomnom Fuser wrote:

I decided setup all from scratch and got new error:

Starting networking setup

Networking setup failed

Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/foreman-installer/foreman-installer.log

Log:

[DEBUG 2014-08-20 16:22:32 main] echo
’$kafo_config_file="/etc/foreman/staypuft-installer.yaml"

$kafo_add_progress=true class {“foreman::plugin::staypuft_network”:
interface => “eth0:172”,
ip => “172.16.32.1”,
netmask => “255.255.255.0”,
gateway => “10.10.10.1”,
dns => “172.16.32.1”,
configure_networking => true,
configure_firewall => true,

}' | 

RUBYLIB=/usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/…/…//modules:

puppet apply --modulepath

/usr/share/foreman-installer/modules:/usr/lib/ruby/gems/1.8/gems/kafo-0.6.

4/modules 2>&1
[DEBUG 2014-08-20 16:22:32 main] running command to set networking
[DEBUG 2014-08-20 16:22:37 main] Must pass macaddress to
Network_if_base[eth0:172] at
/usr/share/foreman-installer/modules/network/manifests/init.pp:95 on
node

openstack-core.cloud
[DEBUG 2014-08-20 16:22:37 main] Exit with status code: 101 (signal
was

[DEBUG 2014-08-20 16:22:37 main] Cleaning /tmp/d20140820-17577-hi9z5m
[DEBUG 2014-08-20 16:22:37 main] Cleaning /tmp/default_values.yaml

same error on foreman-installer-staypuft-0.1.7-1 and
yours foreman-installer-staypuft-0.3.0-1
did you support Ethernet aliases? because my servers got only 1 eth
right
now.

On Wednesday, August 20, 2014 3:57:02 PM UTC+3, Marek Hulan wrote:

Hello,

can you retry with the latest foreman-installer-staypuft that I built
today
[1]? It should get into nightly repos soon. I fixed two issues and
successfully
installed staypuft today on Centos 6.5. I used puppet 2.7.25.

[1]

http://koji.katello.org/packages/foreman-installer-staypuft/0.3.0/1.el6/no

arch/foreman-installer-staypuft-0.3.0-1.el6.noarch.rpm>
On Wednesday 20 of August 2014 02:42:58 Nomnom Fuser wrote:

Hi!

Can someone help me with next problem:
I try to install staypuft on Centos 6.5

rpm -qa | grep release

puppetlabs-release-6-10.noarch
epel-release-6-8.noarch
foreman-release-1.6.0-0.1.RC1.el6.noarch
centos-release-6-5.el6.centos.11.2.x86_64
centos-release-SCL-6-5.el6.centos.x86_64

puppet --version

3.6.2

rpm -qa | grep staypuft

foreman-installer-staypuft-0.1.7-1.el6.noarch
ruby193-rubygem-staypuft-0.1.20-1.el6.noarch

when I try staypuft-installer I got error:

Starting configuration…

/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/staypuft-installer:54 

Logs:

[ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye!

[ INFO 2014-08-20 12:38:24 main] Executing hooks in group post
[DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed
foreman

data

[DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:40 main] Puppet modules installed
[DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying in 5

seconds

(1/5)
[DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying in 5

seconds

(2/5)
[DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying in 5

seconds

(3/5)
[DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying in 5

seconds

(4/5)
[DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying in 5

seconds

(5/5)

in foreman UI openstack installer -> new deployment I got

Warning!

missing base_hostgroup


Marek

Hi,

Can you paste tail of /var/log/foreman/production.log? It should tell us more
information about the error. Also rpm -q foreman could help.

··· -- Marek

On Wednesday 20 of August 2014 07:22:47 Nomnom Fuser wrote:

tried to use eth0 instead. network setup seems fine. but new error occurred:

Starting to seed provisioning data

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/abstract_resp
onse.rb:48:in `return!’: 422 Unprocessable Entity
(RestClient::UnprocessableEntity)>
from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:23
0:in `process_result’

    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:17
8:in `transmit’

    from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:17
2:in `transmit’

    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64
:in `execute’

    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33
:in `execute’

    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/resource.rb:8
0:in `put’

    from

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:78:
in `send’

    from

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:78:
in `http_call’

    from

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:61:
in `perform_call’

    from

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/resources/s
etting.rb:38:in `update’

    from /usr/share/foreman-installer/hooks/lib/foreman.rb:69:in

`show_or_ensure’

    from

/usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb:159:in
`setup_idle_timeout’

    from

/usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb:130:in
`seed’

    from

/usr/share/foreman-installer/hooks/post/10-setup_provisioning.rb:29: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/staypuft-installer:55

On Wednesday, August 20, 2014 4:59:09 PM UTC+3, Marek Hulan wrote:

I’ve never tried installing on alias device and it seems it does not work.
I’d
recommend using primary device for provisioning and use alias for what you
currently use the primary interface if possible.

On Wednesday 20 of August 2014 06:26:37 Nomnom Fuser wrote:

I decided setup all from scratch and got new error:

Starting networking setup

Networking setup failed

Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/foreman-installer/foreman-installer.log

Log:

[DEBUG 2014-08-20 16:22:32 main] echo
’$kafo_config_file="/etc/foreman/staypuft-installer.yaml"

$kafo_add_progress=true class {“foreman::plugin::staypuft_network”:
interface => “eth0:172”,
ip => “172.16.32.1”,
netmask => “255.255.255.0”,
gateway => “10.10.10.1”,
dns => “172.16.32.1”,
configure_networking => true,
configure_firewall => true,

}' |

RUBYLIB=/usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/…/…//modules:

puppet apply --modulepath

/usr/share/foreman-installer/modules:/usr/lib/ruby/gems/1.8/gems/kafo-0.6.

4/modules 2>&1
[DEBUG 2014-08-20 16:22:32 main] running command to set networking
[DEBUG 2014-08-20 16:22:37 main] Must pass macaddress to
Network_if_base[eth0:172] at
/usr/share/foreman-installer/modules/network/manifests/init.pp:95 on

node

openstack-core.cloud
[DEBUG 2014-08-20 16:22:37 main] Exit with status code: 101 (signal

was

[DEBUG 2014-08-20 16:22:37 main] Cleaning /tmp/d20140820-17577-hi9z5m
[DEBUG 2014-08-20 16:22:37 main] Cleaning /tmp/default_values.yaml

same error on foreman-installer-staypuft-0.1.7-1 and
yours foreman-installer-staypuft-0.3.0-1
did you support Ethernet aliases? because my servers got only 1 eth

right

now.

On Wednesday, August 20, 2014 3:57:02 PM UTC+3, Marek Hulan wrote:

Hello,

can you retry with the latest foreman-installer-staypuft that I built
today
[1]? It should get into nightly repos soon. I fixed two issues and
successfully
installed staypuft today on Centos 6.5. I used puppet 2.7.25.

[1]

http://koji.katello.org/packages/foreman-installer-staypuft/0.3.0/1.el6/no

arch/foreman-installer-staypuft-0.3.0-1.el6.noarch.rpm>

On Wednesday 20 of August 2014 02:42:58 Nomnom Fuser wrote:

Hi!

Can someone help me with next problem:
I try to install staypuft on Centos 6.5

rpm -qa | grep release

puppetlabs-release-6-10.noarch
epel-release-6-8.noarch
foreman-release-1.6.0-0.1.RC1.el6.noarch
centos-release-6-5.el6.centos.11.2.x86_64
centos-release-SCL-6-5.el6.centos.x86_64

puppet --version

3.6.2

rpm -qa | grep staypuft

foreman-installer-staypuft-0.1.7-1.el6.noarch
ruby193-rubygem-staypuft-0.1.20-1.el6.noarch

when I try staypuft-installer I got error:

Starting configuration…

/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/staypuft-installer:54

Logs:

[ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye!

[ INFO 2014-08-20 12:38:24 main] Executing hooks in group post
[DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed

foreman

data

[DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:40 main] Puppet modules installed
[DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying in 5

seconds

(1/5)
[DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying in 5

seconds

(2/5)
[DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying in 5

seconds

(3/5)
[DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying in 5

seconds

(4/5)
[DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying in 5

seconds

(5/5)

in foreman UI openstack installer -> new deployment I got

Warning!

missing base_hostgroup


Marek

Hi Marek-

Yes, it was a puppet problem:

[root@fuel02 ~]# puppet agent --onetime --test

err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve
information from environment production source(s) puppet://
fuel02.cloudXXXXXXXXXX/plugins
<http://fuel02.cloud-admin.sv2.247-inc.net/plugins>
There was nothing in /var/log/puppet/*

Looking at Google, I saw a fuel-related bug that suggested "service
puppetmaster restart" for a similar issue. After doing that, I saw that
the puppetmaster would not stay running. In the logs:

[2014-08-28 09:58:26] INFO ruby 1.8.7 (2011-06-30) [x86_64-linux]

[2014-08-28 09:58:26] WARN TCPServer Error: Address already in use -
bind(2)
So, looks like my problem is that puppet is using ruby 1.8.7.

I decided to start from scratch, because I thought the problem might be
that I installed foreman-1.5 earlier.

Now, I'm getting a version mismatch on foreman_discovery. (1.4.0rcX gets
loaded, but staypuft requires ~> 1.3.0rcX)

Install succeeded after I deleted 1.4 and manually installed 1.3 first.
Maybe the package definition needs to be changed to match 1.4?

··· On Thu, Aug 28, 2014 at 1:29 AM, Marek Hulan wrote:

Hello,

can you rerun the installer? It seems that it could take more time to save
all
data so installer should wait a bit longer. If it does not help, something
went wrong with first puppet run so you can try to trigger

puppet agent --onetime --test

to see whether there’s some obvious issue.


Marek

On Wednesday 27 of August 2014 16:46:46 John Hazen wrote:

Hi Folks-

I’ve just installed the latest nightly of staypuft-installer, and after
fixing some other minor issues, I’m now getting exactly the same error as
the first message in this thread. (And same “Host was not found,
retrying
in 5 seconds (5/5)” as the last message in the log.)

Since this just went away for Nomnom, it wasn’t really addressed. Any
ideas?

Here’s my version info:

rpm -qa | grep foreman

foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch

rubygem-foreman_api-0.1.11-1.el6.noarch

foreman-installer-1.7.0-0.develop.201408270326git3551ee3.el6.noarch

foreman-1.7.0-0.develop.201408271554gitce690b7.el6.noarch

ruby193-rubygem-foreman-tasks-0.6.4-1.el6.noarch

foreman-installer-staypuft-0.3.3-1.el6.noarch

foreman-proxy-1.7.0-0.develop.201408271526git915c16d.el6.noarch

foreman-postgresql-1.7.0-0.develop.201408271554gitce690b7.el6.noarch

ruby193-rubygem-foreman_discovery-1.3.0-1.el6.noarch

# rpm -qa | grep staypuft

ruby193-rubygem-staypuft-0.3.0-1.el6.noarch

foreman-installer-staypuft-0.3.3-1.el6.noarch

-John

On Wednesday, August 20, 2014 2:42:58 AM UTC-7, Nomnom Fuser wrote:

Hi!

Can someone help me with next problem:
I try to install staypuft on Centos 6.5

rpm -qa | grep release

puppetlabs-release-6-10.noarch
epel-release-6-8.noarch
foreman-release-1.6.0-0.1.RC1.el6.noarch
centos-release-6-5.el6.centos.11.2.x86_64
centos-release-SCL-6-5.el6.centos.x86_64

puppet --version

3.6.2

rpm -qa | grep staypuft

foreman-installer-staypuft-0.1.7-1.el6.noarch
ruby193-rubygem-staypuft-0.1.20-1.el6.noarch

when I try staypuft-installer I got error:

Starting configuration…

/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/staypuft-installer:54

Logs:

[ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye!

[ INFO 2014-08-20 12:38:24 main] Executing hooks in group post
[DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed foreman
data
[DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:40 main] Puppet modules installed
[DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying in 5
seconds (1/5)
[DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying in 5
seconds (2/5)
[DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying in 5
seconds (3/5)
[DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying in 5
seconds (4/5)
[DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying in 5
seconds (5/5)

in foreman UI openstack installer -> new deployment I got

Warning!

missing base_hostgroup


Marek


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/MUM5iAwwVUc/unsubscribe.
To unsubscribe from this group and all its topics, 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.
For more options, visit https://groups.google.com/d/optout.

> # tail /var/log/foreman/production.log

Started PUT "/api/settings/idle_timeout" for 172.16.32.1 at 2014-08-20
> 18:19:59 +0300

Processing by Api::V2::SettingsController#update as JSON
> Parameters: {"setting"=>{"value"=>"[FILTERED]"}, "apiv"=>"v2",
> "id"=>"idle_timeout"}
> Authorized user admin(Admin User)
> Unprocessable entity Setting::General (id: 10):
> Value is invalid: must be integer
>

Rendered api/v2/errors/unprocessable_entity.json.rabl within
> api/v2/layouts/error_layout (1.4ms)
> Completed 422 Unprocessable Entity in 364ms (Views: 2.7ms | ActiveRecord:
> 8.2ms)

rpm -q foreman

> foreman-1.6.0-0.1.RC1.el6.noarch

Seems like this commit broke installation
https://github.com/theforeman/foreman-installer-staypuft/commit/570db4703a7248e25b5ff609ee08d7e0ce6c18e5

··· On Wednesday, August 20, 2014 5:53:18 PM UTC+3, Marek Hulan wrote: > > Hi, > > Can you paste tail of /var/log/foreman/production.log? It should tell us > more > information about the error. Also rpm -q foreman could help. > > -- > Marek > > On Wednesday 20 of August 2014 07:22:47 Nomnom Fuser wrote: > > tried to use eth0 instead. network setup seems fine. but new error > occurred: > > > > Starting to seed provisioning data > > > > > > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/abstract_resp > > > onse.rb:48:in `return!': 422 Unprocessable Entity > > > (RestClient::UnprocessableEntity)> > > > from > > > > > > > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:23 > > > 0:in `process_result' > > > > > > from > > > > > > > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:17 > > > 8:in `transmit' > > > > > > from /usr/lib/ruby/1.8/net/http.rb:543:in `start' > > > from > > > > > > > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:17 > > > 2:in `transmit' > > > > > > from > > > > > > > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64 > > > :in `execute' > > > > > > from > > > > > > > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33 > > > :in `execute' > > > > > > from > > > > > > > /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/resource.rb:8 > > > 0:in `put' > > > > > > from > > > > > > > /usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:78: > > > in `send' > > > > > > from > > > > > > > /usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:78: > > > in `http_call' > > > > > > from > > > > > > > /usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:61: > > > in `perform_call' > > > > > > from > > > > > > > /usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/resources/s > > > etting.rb:38:in `update' > > > > > > from /usr/share/foreman-installer/hooks/lib/foreman.rb:69:in > > > > > > `show_or_ensure' > > > > > > from > > > > > > /usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb:159:in > > > `setup_idle_timeout' > > > > > > from > > > > > > /usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb:130:in > > > `seed' > > > > > > from > > > > > > /usr/share/foreman-installer/hooks/post/10-setup_provisioning.rb:29: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/staypuft-installer:55 > > > > On Wednesday, August 20, 2014 4:59:09 PM UTC+3, Marek Hulan wrote: > > > I've never tried installing on alias device and it seems it does not > work. > > > I'd > > > recommend using primary device for provisioning and use alias for what > you > > > currently use the primary interface if possible. > > > > > > On Wednesday 20 of August 2014 06:26:37 Nomnom Fuser wrote: > > > > I decided setup all from scratch and got new error: > > > > > > > > Starting networking setup > > > > > > > > > Networking setup failed > > > > > > > > > > Something went wrong! Check the log for ERROR-level output > > > > > The full log is at > /var/log/foreman-installer/foreman-installer.log > > > > > > > > Log: > > > > > [DEBUG 2014-08-20 16:22:32 main] echo > > > > > '$kafo_config_file="/etc/foreman/staypuft-installer.yaml" > > > > > > > > > > $kafo_add_progress=true class > {"foreman::plugin::staypuft_network": > > > > > interface => "eth0:172", > > > > > ip => "172.16.32.1", > > > > > netmask => "255.255.255.0", > > > > > gateway => "10.10.10.1", > > > > > dns => "172.16.32.1", > > > > > configure_networking => true, > > > > > configure_firewall => true, > > > > > > > > > > }' | > > > > > > > RUBYLIB=/usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/../..//modules: > > > > > puppet apply --modulepath > > > > > > > /usr/share/foreman-installer/modules:/usr/lib/ruby/gems/1.8/gems/kafo-0.6. > > > > > > > > 4/modules 2>&1 > > > > > [DEBUG 2014-08-20 16:22:32 main] running command to set networking > > > > > [DEBUG 2014-08-20 16:22:37 main] Must pass macaddress to > > > > > Network_if_base[eth0:172] at > > > > > /usr/share/foreman-installer/modules/network/manifests/init.pp:95 > on > > > > > > node > > > > > > > > openstack-core.cloud > > > > > [DEBUG 2014-08-20 16:22:37 main] Exit with status code: 101 > (signal > > > > > > was > > > > > > > > 101) > > > > > [DEBUG 2014-08-20 16:22:37 main] Cleaning > /tmp/d20140820-17577-hi9z5m > > > > > [DEBUG 2014-08-20 16:22:37 main] Cleaning /tmp/default_values.yaml > > > > > > > > same error on foreman-installer-staypuft-0.1.7-1 and > > > > yours foreman-installer-staypuft-0.3.0-1 > > > > did you support Ethernet aliases? because my servers got only 1 eth > > > > > > right > > > > > > > now. > > > > > > > > On Wednesday, August 20, 2014 3:57:02 PM UTC+3, Marek Hulan wrote: > > > > > Hello, > > > > > > > > > > can you retry with the latest foreman-installer-staypuft that I > built > > > > > today > > > > > [1]? It should get into nightly repos soon. I fixed two issues and > > > > > successfully > > > > > installed staypuft today on Centos 6.5. I used puppet 2.7.25. > > > > > > > > > > [1] > > > > > > > http://koji.katello.org/packages/foreman-installer-staypuft/0.3.0/1.el6/no > > > > > > > > arch/foreman-installer-staypuft-0.3.0-1.el6.noarch.rpm> > > > > > > > > > > On Wednesday 20 of August 2014 02:42:58 Nomnom Fuser wrote: > > > > > > Hi! > > > > > > > > > > > > Can someone help me with next problem: > > > > > > I try to install staypuft on Centos 6.5 > > > > > > > > > > > > # rpm -qa | grep release > > > > > > > > > > > > > puppetlabs-release-6-10.noarch > > > > > > > epel-release-6-8.noarch > > > > > > > foreman-release-1.6.0-0.1.RC1.el6.noarch > > > > > > > centos-release-6-5.el6.centos.11.2.x86_64 > > > > > > > centos-release-SCL-6-5.el6.centos.x86_64 > > > > > > > > > > > > # puppet --version > > > > > > > > > > > > > 3.6.2 > > > > > > > > > > > > # rpm -qa | grep staypuft > > > > > > > > > > > > > foreman-installer-staypuft-0.1.7-1.el6.noarch > > > > > > > ruby193-rubygem-staypuft-0.1.20-1.el6.noarch > > > > > > > > > > > > when I try staypuft-installer I got error: > > > > > > > Starting configuration... > > > > > > > > > > > > /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/staypuft-installer:54 > > > > > > > > > > > > Logs: > > > > > > > > > > > > [ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye! > > > > > > > > > > > > > [ INFO 2014-08-20 12:38:24 main] Executing hooks in group post > > > > > > > [DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed > > > > > > foreman > > > > > > > > data > > > > > > > > > > > > [DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished > > > > > > > [DEBUG 2014-08-20 12:38:30 main] Installing puppet modules > > > > > > > [DEBUG 2014-08-20 12:38:30 main] Installing puppet modules > > > > > > > [DEBUG 2014-08-20 12:38:40 main] Puppet modules installed > > > > > > > [DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying > in 5 > > > > > > > > > > seconds > > > > > > > > > > > > (1/5) > > > > > > > [DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying > in 5 > > > > > > > > > > seconds > > > > > > > > > > > > (2/5) > > > > > > > [DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying > in 5 > > > > > > > > > > seconds > > > > > > > > > > > > (3/5) > > > > > > > [DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying > in 5 > > > > > > > > > > seconds > > > > > > > > > > > > (4/5) > > > > > > > [DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying > in 5 > > > > > > > > > > seconds > > > > > > > > > > > > (5/5) > > > > > > > > > > > > in foreman UI openstack installer -> new deployment I got > > > > > > > > > > > > Warning! > > > > > > > > > > > > > missing base_hostgroup > > -- > Marek >

Ok. I changed " {'value' => @foreman.version.start_with?('1.6') ? 180 :
'180'}) " to " {'value' => @foreman.version.start_with?('1.6') ? '180' :
180}) " (attention to ' ' ) and same for " true : 'true' " and completed
setup successfully.

…Aaaand got another error in foreman UI -> openstack installer -> new
deployment:

> Warning!

> missing Operatingsystem

Full trace:

RuntimeError

missing Operatingsystem

app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'

lib/middleware/catch_json_parse_errors.rb:9:in `call'

production.log:

Started GET "/deployments/new" for 10.10.10.1 at 2014-08-20 18:39:12 +0300

Processing by Staypuft::DeploymentsController#new as HTML

··· > Operation FAILED: missing Operatingsystem > Rendered common/500.html.erb within staypuft/layouts/staypuft (3.8ms) > Rendered layouts/base.html.erb (0.9ms) > Rendered > /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/views/staypuft/layouts/application.html.erb > (1.2ms) > Completed 500 Internal Server Error in 160ms (Views: 6.8ms | ActiveRecord: > 12.2ms)

On Wednesday, August 20, 2014 6:25:16 PM UTC+3, Nomnom Fuser wrote:

tail /var/log/foreman/production.log

Started PUT “/api/settings/idle_timeout” for 172.16.32.1 at 2014-08-20

18:19:59 +0300

Processing by Api::V2::SettingsController#update as JSON

Parameters: {“setting”=>{“value”=>"[FILTERED]"}, “apiv”=>“v2”,
“id”=>“idle_timeout”}
Authorized user admin(Admin User)
Unprocessable entity Setting::General (id: 10):
Value is invalid: must be integer

Rendered api/v2/errors/unprocessable_entity.json.rabl within

api/v2/layouts/error_layout (1.4ms)
Completed 422 Unprocessable Entity in 364ms (Views: 2.7ms | ActiveRecord:
8.2ms)

rpm -q foreman

foreman-1.6.0-0.1.RC1.el6.noarch

Seems like this commit broke installation
https://github.com/theforeman/foreman-installer-staypuft/commit/570db4703a7248e25b5ff609ee08d7e0ce6c18e5

On Wednesday, August 20, 2014 5:53:18 PM UTC+3, Marek Hulan wrote:

Hi,

Can you paste tail of /var/log/foreman/production.log? It should tell us
more
information about the error. Also rpm -q foreman could help.


Marek

On Wednesday 20 of August 2014 07:22:47 Nomnom Fuser wrote:

tried to use eth0 instead. network setup seems fine. but new error
occurred:

Starting to seed provisioning data

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/abstract_resp

onse.rb:48:in `return!’: 422 Unprocessable Entity
(RestClient::UnprocessableEntity)>
from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:23

0:in `process_result’

    from 

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:17

8:in `transmit’

    from /usr/lib/ruby/1.8/net/http.rb:543:in `start' 
    from 

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:17

2:in `transmit’

    from 

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64

:in `execute’

    from 

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33

:in `execute’

    from 

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/resource.rb:8

0:in `put’

    from 

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:78:

in `send’

    from 

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:78:

in `http_call’

    from 

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:61:

in `perform_call’

    from 

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/resources/s

etting.rb:38:in `update’

    from /usr/share/foreman-installer/hooks/lib/foreman.rb:69:in 

`show_or_ensure’

    from 

/usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb:159:in
`setup_idle_timeout’

    from 

/usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb:130:in
`seed’

    from 

/usr/share/foreman-installer/hooks/post/10-setup_provisioning.rb:29: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/staypuft-installer:55 

On Wednesday, August 20, 2014 4:59:09 PM UTC+3, Marek Hulan wrote:

I’ve never tried installing on alias device and it seems it does not
work.

I’d
recommend using primary device for provisioning and use alias for
what you

currently use the primary interface if possible.

On Wednesday 20 of August 2014 06:26:37 Nomnom Fuser wrote:

I decided setup all from scratch and got new error:

Starting networking setup

Networking setup failed

Something went wrong! Check the log for ERROR-level output
The full log is at
/var/log/foreman-installer/foreman-installer.log

Log:

[DEBUG 2014-08-20 16:22:32 main] echo
’$kafo_config_file="/etc/foreman/staypuft-installer.yaml"

$kafo_add_progress=true class
{“foreman::plugin::staypuft_network”:

  interface            => "eth0:172", 
  ip                   => "172.16.32.1", 
  netmask              => "255.255.255.0", 
  gateway              => "10.10.10.1", 
  dns                  => "172.16.32.1", 
  configure_networking => true, 
  configure_firewall   => true, 

}' | 

RUBYLIB=/usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/…/…//modules:

puppet apply --modulepath

/usr/share/foreman-installer/modules:/usr/lib/ruby/gems/1.8/gems/kafo-0.6.

4/modules 2>&1
[DEBUG 2014-08-20 16:22:32 main] running command to set
networking

[DEBUG 2014-08-20 16:22:37 main] Must pass macaddress to
Network_if_base[eth0:172] at
/usr/share/foreman-installer/modules/network/manifests/init.pp:95
on

node

openstack-core.cloud
[DEBUG 2014-08-20 16:22:37 main] Exit with status code: 101
(signal

was

[DEBUG 2014-08-20 16:22:37 main] Cleaning
/tmp/d20140820-17577-hi9z5m

[DEBUG 2014-08-20 16:22:37 main] Cleaning
/tmp/default_values.yaml

same error on foreman-installer-staypuft-0.1.7-1 and
yours foreman-installer-staypuft-0.3.0-1
did you support Ethernet aliases? because my servers got only 1 eth

right

now.

On Wednesday, August 20, 2014 3:57:02 PM UTC+3, Marek Hulan wrote:

Hello,

can you retry with the latest foreman-installer-staypuft that I
built

today
[1]? It should get into nightly repos soon. I fixed two issues
and

successfully
installed staypuft today on Centos 6.5. I used puppet 2.7.25.

[1]

http://koji.katello.org/packages/foreman-installer-staypuft/0.3.0/1.el6/no

arch/foreman-installer-staypuft-0.3.0-1.el6.noarch.rpm>

On Wednesday 20 of August 2014 02:42:58 Nomnom Fuser wrote:

Hi!

Can someone help me with next problem:
I try to install staypuft on Centos 6.5

rpm -qa | grep release

puppetlabs-release-6-10.noarch
epel-release-6-8.noarch
foreman-release-1.6.0-0.1.RC1.el6.noarch
centos-release-6-5.el6.centos.11.2.x86_64
centos-release-SCL-6-5.el6.centos.x86_64

puppet --version

3.6.2

rpm -qa | grep staypuft

foreman-installer-staypuft-0.1.7-1.el6.noarch
ruby193-rubygem-staypuft-0.1.20-1.el6.noarch

when I try staypuft-installer I got error:

Starting configuration…

/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/staypuft-installer:54 

Logs:

[ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye!

[ INFO 2014-08-20 12:38:24 main] Executing hooks in group
post

[DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed

foreman

data

[DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:40 main] Puppet modules installed
[DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying
in 5

seconds

(1/5)
[DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying
in 5

seconds

(2/5)
[DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying
in 5

seconds

(3/5)
[DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying
in 5

seconds

(4/5)
[DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying
in 5

seconds

(5/5)

in foreman UI openstack installer -> new deployment I got

Warning!

missing base_hostgroup


Marek

Hi,

The commit you've mentioned should have fixed it. There was backward
incompatible change in API for setting values. Older version requires it as an
integer, newer as a string. You don't seem to be using foreman from nightly
repo (1.7) with which the 0.3.0 installer is supposed to work.

On clean CentOS machine you should:

yum install -y http://yum.theforeman.org/nightly/el6/x86_64/foreman-release.rpm

and run the installer

staypuft-installer --foreman-configure-epel-repo=true --foreman-plugin-
discovery-install-images=true

You don't need to download 0.3.0 explicitly since it got to nightly repo
already.

··· -- Marek

On Wednesday 20 of August 2014 08:25:16 Nomnom Fuser wrote:

tail /var/log/foreman/production.log

Started PUT “/api/settings/idle_timeout” for 172.16.32.1 at 2014-08-20

18:19:59 +0300

Processing by Api::V2::SettingsController#update as JSON

Parameters: {“setting”=>{“value”=>"[FILTERED]"}, “apiv”=>“v2”,

“id”=>“idle_timeout”}
Authorized user admin(Admin User)

Unprocessable entity Setting::General (id: 10):
Value is invalid: must be integer

Rendered api/v2/errors/unprocessable_entity.json.rabl within

api/v2/layouts/error_layout (1.4ms)
Completed 422 Unprocessable Entity in 364ms (Views: 2.7ms | ActiveRecord:
8.2ms)

rpm -q foreman

foreman-1.6.0-0.1.RC1.el6.noarch

Seems like this commit broke installation
https://github.com/theforeman/foreman-installer-staypuft/commit/570db4703a7
248e25b5ff609ee08d7e0ce6c18e5
On Wednesday, August 20, 2014 5:53:18 PM UTC+3, Marek Hulan wrote:

Hi,

Can you paste tail of /var/log/foreman/production.log? It should tell us
more
information about the error. Also rpm -q foreman could help.

On Wednesday 20 of August 2014 07:22:47 Nomnom Fuser wrote:

tried to use eth0 instead. network setup seems fine. but new error

occurred:

Starting to seed provisioning data

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/abstract_resp

onse.rb:48:in `return!’: 422 Unprocessable Entity
(RestClient::UnprocessableEntity)>

    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:23

0:in `process_result’

    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:17

8:in `transmit’

    from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:17

2:in `transmit’

    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64

:in `execute’
:
from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33

:in `execute’
:
from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/resource.rb:8

0:in `put’

    from

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:78:

in `send’

    from

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:78:

in `http_call’

    from

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:61:

in `perform_call’

    from

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/resources/s

etting.rb:38:in `update’

    from /usr/share/foreman-installer/hooks/lib/foreman.rb:69:in

`show_or_ensure’

    from

/usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb:159:in
`setup_idle_timeout’

    from

/usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb:130:in
`seed’

    from

/usr/share/foreman-installer/hooks/post/10-setup_provisioning.rb:29: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/staypuft-installer:55

On Wednesday, August 20, 2014 4:59:09 PM UTC+3, Marek Hulan wrote:

I’ve never tried installing on alias device and it seems it does not

work.

I’d
recommend using primary device for provisioning and use alias for what

you

currently use the primary interface if possible.

On Wednesday 20 of August 2014 06:26:37 Nomnom Fuser wrote:

I decided setup all from scratch and got new error:

Starting networking setup

Networking setup failed

Something went wrong! Check the log for ERROR-level output
The full log is at

/var/log/foreman-installer/foreman-installer.log

Log:

[DEBUG 2014-08-20 16:22:32 main] echo
’$kafo_config_file="/etc/foreman/staypuft-installer.yaml"

$kafo_add_progress=true class

{“foreman::plugin::staypuft_network”:

  interface            => "eth0:172",
  ip                   => "172.16.32.1",
  netmask              => "255.255.255.0",
  gateway              => "10.10.10.1",
  dns                  => "172.16.32.1",
  configure_networking => true,
  configure_firewall   => true,

}' |

RUBYLIB=/usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/…/…//modules:

puppet apply --modulepath

/usr/share/foreman-installer/modules:/usr/lib/ruby/gems/1.8/gems/kafo-0.6.

4/modules 2>&1
[DEBUG 2014-08-20 16:22:32 main] running command to set networking
[DEBUG 2014-08-20 16:22:37 main] Must pass macaddress to
Network_if_base[eth0:172] at
/usr/share/foreman-installer/modules/network/manifests/init.pp:95

on

node

openstack-core.cloud
[DEBUG 2014-08-20 16:22:37 main] Exit with status code: 101

(signal

was

[DEBUG 2014-08-20 16:22:37 main] Cleaning

/tmp/d20140820-17577-hi9z5m

[DEBUG 2014-08-20 16:22:37 main] Cleaning /tmp/default_values.yaml

same error on foreman-installer-staypuft-0.1.7-1 and
yours foreman-installer-staypuft-0.3.0-1
did you support Ethernet aliases? because my servers got only 1 eth

right

now.

On Wednesday, August 20, 2014 3:57:02 PM UTC+3, Marek Hulan wrote:

Hello,

can you retry with the latest foreman-installer-staypuft that I

built

today
[1]? It should get into nightly repos soon. I fixed two issues and
successfully
installed staypuft today on Centos 6.5. I used puppet 2.7.25.

[1]

http://koji.katello.org/packages/foreman-installer-staypuft/0.3.0/1.el6/no

arch/foreman-installer-staypuft-0.3.0-1.el6.noarch.rpm>

On Wednesday 20 of August 2014 02:42:58 Nomnom Fuser wrote:

Hi!

Can someone help me with next problem:
I try to install staypuft on Centos 6.5

rpm -qa | grep release

puppetlabs-release-6-10.noarch
epel-release-6-8.noarch
foreman-release-1.6.0-0.1.RC1.el6.noarch
centos-release-6-5.el6.centos.11.2.x86_64
centos-release-SCL-6-5.el6.centos.x86_64

puppet --version

3.6.2

rpm -qa | grep staypuft

foreman-installer-staypuft-0.1.7-1.el6.noarch
ruby193-rubygem-staypuft-0.1.20-1.el6.noarch

when I try staypuft-installer I got error:

Starting configuration…

/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/staypuft-installer:54

Logs:

[ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye!

[ INFO 2014-08-20 12:38:24 main] Executing hooks in group post
[DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed

foreman

data

[DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:40 main] Puppet modules installed
[DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying

in 5

seconds

(1/5)
[DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying

in 5

seconds

(2/5)
[DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying

in 5

seconds

(3/5)
[DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying

in 5

seconds

(4/5)
[DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying

in 5

seconds

(5/5)

in foreman UI openstack installer -> new deployment I got

Warning!

missing base_hostgroup


Marek

Hello,

This error would indicate that installer did not finish all steps successfully.
Could you rerun the installer and try again?

··· -- Marek

On Wednesday 20 of August 2014 08:42:28 Nomnom Fuser wrote:

Ok. I changed " {‘value’ => @foreman.version.start_with?(‘1.6’) ? 180 :
‘180’}) " to " {‘value’ => @foreman.version.start_with?(‘1.6’) ? ‘180’ :
180}) " (attention to ’ ’ ) and same for " true : ‘true’ " and completed
setup successfully.

…Aaaand got another error in foreman UI -> openstack installer -> new

deployment:

Warning!

missing Operatingsystem

Full trace:

RuntimeError

missing Operatingsystem

app/models/concerns/foreman/thread_session.rb:33:in `clear_thread’

lib/middleware/catch_json_parse_errors.rb:9:in `call’

production.log:

Started GET “/deployments/new” for 10.10.10.1 at 2014-08-20 18:39:12 +0300

Processing by Staypuft::DeploymentsController#new as HTML

Operation FAILED: missing Operatingsystem

Rendered common/500.html.erb within staypuft/layouts/staypuft (3.8ms)
Rendered layouts/base.html.erb (0.9ms)
Rendered

/opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/views/staypuf
t/layouts/application.html.erb (1.2ms)
Completed 500 Internal Server Error in 160ms (Views: 6.8ms | ActiveRecord:
12.2ms)

On Wednesday, August 20, 2014 6:25:16 PM UTC+3, Nomnom Fuser wrote:

tail /var/log/foreman/production.log

Started PUT “/api/settings/idle_timeout” for 172.16.32.1 at 2014-08-20

18:19:59 +0300

Processing by Api::V2::SettingsController#update as JSON

Parameters: {“setting”=>{“value”=>"[FILTERED]"}, “apiv”=>“v2”,

“id”=>“idle_timeout”}
Authorized user admin(Admin User)

Unprocessable entity Setting::General (id: 10):
Value is invalid: must be integer

Rendered api/v2/errors/unprocessable_entity.json.rabl within

api/v2/layouts/error_layout (1.4ms)
Completed 422 Unprocessable Entity in 364ms (Views: 2.7ms | ActiveRecord:
8.2ms)

rpm -q foreman

foreman-1.6.0-0.1.RC1.el6.noarch

Seems like this commit broke installation
https://github.com/theforeman/foreman-installer-staypuft/commit/570db4703a
7248e25b5ff609ee08d7e0ce6c18e5>
On Wednesday, August 20, 2014 5:53:18 PM UTC+3, Marek Hulan wrote:

Hi,

Can you paste tail of /var/log/foreman/production.log? It should tell us
more
information about the error. Also rpm -q foreman could help.

On Wednesday 20 of August 2014 07:22:47 Nomnom Fuser wrote:

tried to use eth0 instead. network setup seems fine. but new error

occurred:

Starting to seed provisioning data

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/abstract_res
p

onse.rb:48:in `return!’: 422 Unprocessable Entity
(RestClient::UnprocessableEntity)>

    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:2
3

0:in `process_result’

    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:1
7

8:in `transmit’

    from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:1
7

2:in `transmit’

    from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:6
4

:in `execute’
:
from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:3
3

:in `execute’
:
from

/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/resource.rb:
8

0:in `put’

    from

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:78:

in `send’

    from

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:78:

in `http_call’

    from

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/base.rb:61:

in `perform_call’

    from

/usr/lib/ruby/gems/1.8/gems/foreman_api-0.1.11/lib/foreman_api/resources/
s

etting.rb:38:in `update’

    from /usr/share/foreman-installer/hooks/lib/foreman.rb:69:in

`show_or_ensure’

    from

/usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb:159:in
`setup_idle_timeout’

    from

/usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb:130:in
`seed’

    from

/usr/share/foreman-installer/hooks/post/10-setup_provisioning.rb:29: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/staypuft-installer:55

On Wednesday, August 20, 2014 4:59:09 PM UTC+3, Marek Hulan wrote:

I’ve never tried installing on alias device and it seems it does not

work.

I’d
recommend using primary device for provisioning and use alias for

what you

currently use the primary interface if possible.

On Wednesday 20 of August 2014 06:26:37 Nomnom Fuser wrote:

I decided setup all from scratch and got new error:

Starting networking setup

Networking setup failed

Something went wrong! Check the log for ERROR-level output
The full log is at

/var/log/foreman-installer/foreman-installer.log

Log:

[DEBUG 2014-08-20 16:22:32 main] echo
’$kafo_config_file="/etc/foreman/staypuft-installer.yaml"

$kafo_add_progress=true class

{“foreman::plugin::staypuft_network”:

  interface            => "eth0:172",
  ip                   => "172.16.32.1",
  netmask              => "255.255.255.0",
  gateway              => "10.10.10.1",
  dns                  => "172.16.32.1",
  configure_networking => true,
  configure_firewall   => true,

}' |

RUBYLIB=/usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/…/…//modules:

puppet apply --modulepath

/usr/share/foreman-installer/modules:/usr/lib/ruby/gems/1.8/gems/kafo-0.6
.

4/modules 2>&1
[DEBUG 2014-08-20 16:22:32 main] running command to set

networking

[DEBUG 2014-08-20 16:22:37 main] Must pass macaddress to
Network_if_base[eth0:172] at
/usr/share/foreman-installer/modules/network/manifests/init.pp:95

on

node

openstack-core.cloud
[DEBUG 2014-08-20 16:22:37 main] Exit with status code: 101

(signal

was

[DEBUG 2014-08-20 16:22:37 main] Cleaning

/tmp/d20140820-17577-hi9z5m

[DEBUG 2014-08-20 16:22:37 main] Cleaning

/tmp/default_values.yaml

same error on foreman-installer-staypuft-0.1.7-1 and
yours foreman-installer-staypuft-0.3.0-1
did you support Ethernet aliases? because my servers got only 1 eth

right

now.

On Wednesday, August 20, 2014 3:57:02 PM UTC+3, Marek Hulan wrote:

Hello,

can you retry with the latest foreman-installer-staypuft that I

built

today
[1]? It should get into nightly repos soon. I fixed two issues

and

successfully
installed staypuft today on Centos 6.5. I used puppet 2.7.25.

[1]

http://koji.katello.org/packages/foreman-installer-staypuft/0.3.0/1.el6/n
o

arch/foreman-installer-staypuft-0.3.0-1.el6.noarch.rpm>

On Wednesday 20 of August 2014 02:42:58 Nomnom Fuser wrote:

Hi!

Can someone help me with next problem:
I try to install staypuft on Centos 6.5

rpm -qa | grep release

puppetlabs-release-6-10.noarch
epel-release-6-8.noarch
foreman-release-1.6.0-0.1.RC1.el6.noarch
centos-release-6-5.el6.centos.11.2.x86_64
centos-release-SCL-6-5.el6.centos.x86_64

puppet --version

3.6.2

rpm -qa | grep staypuft

foreman-installer-staypuft-0.1.7-1.el6.noarch
ruby193-rubygem-staypuft-0.1.20-1.el6.noarch

when I try staypuft-installer I got error:

Starting configuration…

/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/staypuft-installer:54

Logs:

[ INFO 2014-08-20 12:38:24 main] Puppet has finished, bye!

[ INFO 2014-08-20 12:38:24 main] Executing hooks in group

post

[DEBUG 2014-08-20 12:38:24 main] Running puppet agent to seed

foreman

data

[DEBUG 2014-08-20 12:38:30 main] Puppet agent run finished
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:30 main] Installing puppet modules
[DEBUG 2014-08-20 12:38:40 main] Puppet modules installed
[DEBUG 2014-08-20 12:38:40 main] Host was not found, retrying

in 5

seconds

(1/5)
[DEBUG 2014-08-20 12:38:45 main] Host was not found, retrying

in 5

seconds

(2/5)
[DEBUG 2014-08-20 12:38:51 main] Host was not found, retrying

in 5

seconds

(3/5)
[DEBUG 2014-08-20 12:38:56 main] Host was not found, retrying

in 5

seconds

(4/5)
[DEBUG 2014-08-20 12:39:01 main] Host was not found, retrying

in 5

seconds

(5/5)

in foreman UI openstack installer -> new deployment I got

Warning!

missing base_hostgroup


Marek

Ok. Yet another fresh install. Centos 6.5 x86_64
repos:

base
CentOS-6 - Base
epel
Extra Packages for Enterprise Linux 6 - x86_64
extras
CentOS-6 - Extras
foreman
Foreman nightly
foreman-plugins
Foreman plugins nightly
scl
CentOS-6 - SCL
updates
CentOS-6 - Updates

rpm -qa | grep foreman

foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch
foreman-installer-staypuft-0.3.0-1.el6.noarch
foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch
rubygem-foreman_api-0.1.11-1.el6.noarch
foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch

First install with "staypuft-installer --foreman-configure-epel-repo=true
–foreman-plugin-discovery-install-images=true" :

[ INFO 2014-08-21 13:06:14 main] Executing hooks in group post
[DEBUG 2014-08-21 13:06:14 main] Hook /usr/share/foreman-installer/hooks/
post/10-setup_provisioning.rb returned false
[ INFO 2014-08-21 13:06:14 main] All hooks in group post finished
[DEBUG 2014-08-21 13:06:14 main] Exit with status code: 6 (signal was 6)
[ERROR 2014-08-21 13:06:14 main] Repeating errors encountered during run:
[ERROR 2014-08-21 13:06:14 main] /Stage[main]/Foreman::Plugin::Discovery/
Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-latest.
el6.iso-vmlinuz]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-
image-latest.el6.iso-vmlinuz]/returns: change from notrun to 0 failed: /usr/
bin/curl -s http://downloads.theforeman.org/discovery/releases/latest/foreman-discovery-image-latest.el6.iso-vmlinuz
-o /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-vmlinuz
returned 23 instead of one of [0] at
/usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp:6
[ERROR 2014-08-21 13:06:14 main] /Stage[main]/Foreman::Plugin::Discovery/
Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-latest.
el6.iso-img]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-image-
latest.el6.iso-img]/returns: change from notrun to 0 failed: /usr/bin/curl -s
http://downloads.theforeman.org/discovery/releases/latest/foreman-discovery-image-latest.el6.iso-img
-o /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-img
returned 23 instead of one of [0] at
/usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp:

Ok, I download images manually using same curl command.
Second run with same options. Seems ok. "Success!"

Login to UI, go to new deployment of openstack, aaaannnndddd…

Started GET "/deployments/new" for 10.10.10.1 at 2014-08-21 13:14:11 +0300
Processing by Staypuft::DeploymentsController#new as HTML
Operation FAILED: missing Operatingsystem
Rendered common/500.html.erb within staypuft/layouts/staypuft (7.9ms)
Rendered layouts/base.html.erb (2.0ms)
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/
views/staypuft/layouts/application.html.erb (3.6ms)
Completed 500 Internal Server Error in 508ms (Views: 16.6ms | ActiveRecord:
34.1ms)

after installer:

rpm -qa | grep foreman

foreman-installer-staypuft-0.3.0-1.el6.noarch
ruby193-rubygem-foreman-tasks-0.6.4-1.el6.noarch
foreman-postgresql-1.7.0-0.develop.201408201145git87a42cb.el6.noarch
foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch
rubygem-foreman_api-0.1.11-1.el6.noarch
foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch
foreman-1.7.0-0.develop.201408201145git87a42cb.el6.noarch
foreman-proxy-1.7.0-0.develop.201408191935git7124635.el6.noarch
foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch
ruby193-rubygem-foreman_discovery-1.3.0-1.el6.noarch

Seems like I need install openstack manually from source or using rdo
without provisioning %(

··· On Thursday, August 21, 2014 10:33:16 AM UTC+3, Marek Hulan wrote: > > Hello, > > This error would indicate that installer did not finish all steps > successfully. > Could you rerun the installer and try again? > > -- > Marek >

There seems to be some ordering issue with discovery images, target directory
did not exist yet. When there appears an error during installation,
configuration won't continue. Your staypuft installation resulted in being
installed but not configured.

Now when you fixed discovery images issue, can you rerun installer once more?
Until it shows that you can use some hostgroup for provisioning you can't
consider staypuft to be ready. But if discovery images was the only issue it
should pass now.

··· -- Marek

On Thursday 21 of August 2014 03:20:15 Nomnom Fuser wrote:

Ok. Yet another fresh install. Centos 6.5 x86_64
repos:

base
CentOS-6 - Base
epel
Extra Packages for Enterprise Linux 6 - x86_64
extras
CentOS-6 - Extras
foreman
Foreman nightly
foreman-plugins
Foreman plugins nightly
scl
CentOS-6 - SCL
updates
CentOS-6 - Updates

rpm -qa | grep foreman

foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch
foreman-installer-staypuft-0.3.0-1.el6.noarch
foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch
rubygem-foreman_api-0.1.11-1.el6.noarch
foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch

First install with “staypuft-installer --foreman-configure-epel-repo=true
–foreman-plugin-discovery-install-images=true” :

[ INFO 2014-08-21 13:06:14 main] Executing hooks in group post
[DEBUG 2014-08-21 13:06:14 main] Hook /usr/share/foreman-installer/hooks/
post/10-setup_provisioning.rb returned false
[ INFO 2014-08-21 13:06:14 main] All hooks in group post finished
[DEBUG 2014-08-21 13:06:14 main] Exit with status code: 6 (signal was 6)
[ERROR 2014-08-21 13:06:14 main] Repeating errors encountered during run:
[ERROR 2014-08-21 13:06:14 main] /Stage[main]/Foreman::Plugin::Discovery/
Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-latest.
el6.iso-vmlinuz]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-> image-latest.el6.iso-vmlinuz]/returns: change from notrun to 0 failed: /usr/
bin/curl -s
http://downloads.theforeman.org/discovery/releases/latest/foreman-discovery
-image-latest.el6.iso-vmlinuz -o
/var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-vmlinuz
returned 23 instead of one of [0] at
/usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp:6
[ERROR 2014-08-21 13:06:14 main] /Stage[main]/Foreman::Plugin::Discovery/
Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-latest.
el6.iso-img]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-image-> latest.el6.iso-img]/returns: change from notrun to 0 failed: /usr/bin/curl
-s
http://downloads.theforeman.org/discovery/releases/latest/foreman-discovery
-image-latest.el6.iso-img -o
/var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-img returned
23 instead of one of [0] at
/usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp:

Ok, I download images manually using same curl command.
Second run with same options. Seems ok. “Success!”

Login to UI, go to new deployment of openstack, aaaannnndddd…

Started GET “/deployments/new” for 10.10.10.1 at 2014-08-21 13:14:11 +0300
Processing by Staypuft::DeploymentsController#new as HTML
Operation FAILED: missing Operatingsystem
Rendered common/500.html.erb within staypuft/layouts/staypuft (7.9ms)
Rendered layouts/base.html.erb (2.0ms)
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/
views/staypuft/layouts/application.html.erb (3.6ms)
Completed 500 Internal Server Error in 508ms (Views: 16.6ms | ActiveRecord:
34.1ms)

after installer:

rpm -qa | grep foreman

foreman-installer-staypuft-0.3.0-1.el6.noarch
ruby193-rubygem-foreman-tasks-0.6.4-1.el6.noarch
foreman-postgresql-1.7.0-0.develop.201408201145git87a42cb.el6.noarch
foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch
rubygem-foreman_api-0.1.11-1.el6.noarch
foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch
foreman-1.7.0-0.develop.201408201145git87a42cb.el6.noarch
foreman-proxy-1.7.0-0.develop.201408191935git7124635.el6.noarch
foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch
ruby193-rubygem-foreman_discovery-1.3.0-1.el6.noarch

Seems like I need install openstack manually from source or using rdo
without provisioning %(

On Thursday, August 21, 2014 10:33:16 AM UTC+3, Marek Hulan wrote:

Hello,

This error would indicate that installer did not finish all steps
successfully.
Could you rerun the installer and try again?


Marek

After downloading images I rerun installer and he told me that everything
success:

Starting configuration…
Starting to seed provisioning data
Use 'base_CentOS_6' hostgroup for provisioning
Success!

But UI told me same "missing Operatingsystem"
and in foreman/production.log same error:

Started GET "/deployments/new" for 10.10.10.1 at 2014-08-21 17:14:12 +0300
Processing by Staypuft::DeploymentsController#new as HTML
Operation FAILED: missing Operatingsystem
Rendered common/500.html.erb within staypuft/layouts/staypuft (3.8ms)
Rendered layouts/base.html.erb (0.9ms)
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/
views/staypuft/layouts/application.html.erb (1.2ms)
Completed 500 Internal Server Error in 79ms (Views: 6.7ms | ActiveRecord:
13.4ms)

··· On Thursday, August 21, 2014 5:01:15 PM UTC+3, Marek Hulan wrote: > > There seems to be some ordering issue with discovery images, target > directory > did not exist yet. When there appears an error during installation, > configuration won't continue. Your staypuft installation resulted in being > installed but not configured. > > Now when you fixed discovery images issue, can you rerun installer once > more? > Until it shows that you can use some hostgroup for provisioning you can't > consider staypuft to be ready. But if discovery images was the only issue > it > should pass now. > > -- > Marek > > On Thursday 21 of August 2014 03:20:15 Nomnom Fuser wrote: > > Ok. Yet another fresh install. Centos 6.5 x86_64 > > repos: > > > > > > base > > CentOS-6 - Base > > epel > > Extra Packages for Enterprise Linux 6 - x86_64 > > extras > > CentOS-6 - Extras > > foreman > > Foreman nightly > > foreman-plugins > > Foreman plugins nightly > > scl > > CentOS-6 - SCL > > updates > > CentOS-6 - Updates > > > > # rpm -qa | grep foreman > > foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch > > foreman-installer-staypuft-0.3.0-1.el6.noarch > > foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch > > rubygem-foreman_api-0.1.11-1.el6.noarch > > foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch > > > > First install with "staypuft-installer > --foreman-configure-epel-repo=true > > --foreman-plugin-discovery-install-images=true" : > > > > [ INFO 2014-08-21 13:06:14 main] Executing hooks in group post > > [DEBUG 2014-08-21 13:06:14 main] Hook > /usr/share/foreman-installer/hooks/ > > post/10-setup_provisioning.rb returned false > > [ INFO 2014-08-21 13:06:14 main] All hooks in group post finished > > [DEBUG 2014-08-21 13:06:14 main] Exit with status code: 6 (signal was 6) > > [ERROR 2014-08-21 13:06:14 main] Repeating errors encountered during > run: > > [ERROR 2014-08-21 13:06:14 main] > /Stage[main]/Foreman::Plugin::Discovery/ > > > Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-latest. > > > el6.iso-vmlinuz]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-> > image-latest.el6.iso-vmlinuz]/returns: change from notrun to 0 failed: > /usr/ > > bin/curl -s > > > http://downloads.theforeman.org/discovery/releases/latest/foreman-discovery > > -image-latest.el6.iso-vmlinuz -o > > /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-vmlinuz > > returned 23 instead of one of [0] at > > /usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp:6 > > [ERROR 2014-08-21 13:06:14 main] > /Stage[main]/Foreman::Plugin::Discovery/ > > > Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-latest. > > > el6.iso-img]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-image-> > latest.el6.iso-img]/returns: change from notrun to 0 failed: /usr/bin/curl > > -s > > > http://downloads.theforeman.org/discovery/releases/latest/foreman-discovery > > -image-latest.el6.iso-img -o > > /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-img > returned > > 23 instead of one of [0] at > > /usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp: > > > > Ok, I download images manually using same curl command. > > Second run with same options. Seems ok. "Success!" > > > > Login to UI, go to new deployment of openstack, aaaannnndddd..... > > > > Started GET "/deployments/new" for 10.10.10.1 at 2014-08-21 13:14:11 > +0300 > > Processing by Staypuft::DeploymentsController#new as HTML > > Operation FAILED: missing Operatingsystem > > Rendered common/500.html.erb within staypuft/layouts/staypuft (7.9ms) > > Rendered layouts/base.html.erb (2.0ms) > > Rendered /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/ > > views/staypuft/layouts/application.html.erb (3.6ms) > > Completed 500 Internal Server Error in 508ms (Views: 16.6ms | > ActiveRecord: > > 34.1ms) > > > > after installer: > > > > # rpm -qa | grep foreman > > foreman-installer-staypuft-0.3.0-1.el6.noarch > > ruby193-rubygem-foreman-tasks-0.6.4-1.el6.noarch > > foreman-postgresql-1.7.0-0.develop.201408201145git87a42cb.el6.noarch > > foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch > > rubygem-foreman_api-0.1.11-1.el6.noarch > > foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch > > foreman-1.7.0-0.develop.201408201145git87a42cb.el6.noarch > > foreman-proxy-1.7.0-0.develop.201408191935git7124635.el6.noarch > > foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch > > ruby193-rubygem-foreman_discovery-1.3.0-1.el6.noarch > > > > Seems like I need install openstack manually from source or using rdo > > without provisioning %( > > > > On Thursday, August 21, 2014 10:33:16 AM UTC+3, Marek Hulan wrote: > > > Hello, > > > > > > This error would indicate that installer did not finish all steps > > > successfully. > > > Could you rerun the installer and try again? > > -- > Marek >

We are both trying to do the same thing apparently. Feel free to contact me
if you need somebody to talk to. Two heads should be better than one. :wink:

IB

··· On Thursday, August 21, 2014 10:14:48 AM UTC-4, Nomnom Fuser wrote: > > After downloading images I rerun installer and he told me that everything > success: > > Starting configuration... > Starting to seed provisioning data > Use 'base_CentOS_6' hostgroup for provisioning > Success! > * Foreman is running at https://openstack-core.cloud > Initial credentials are admin / df4Rauujuwxdede6 > * Foreman Proxy is running at https://openstack-core.cloud:8443 > * Puppetmaster is running at port 8140 > The full log is at /var/log/foreman-installer/foreman-installer.log > > But UI told me same "missing Operatingsystem" > and in foreman/production.log same error: > > Started GET "/deployments/new" for 10.10.10.1 at 2014-08-21 17:14:12 +0300 > Processing by Staypuft::DeploymentsController#new as HTML > Operation FAILED: missing Operatingsystem > Rendered common/500.html.erb within staypuft/layouts/staypuft (3.8ms) > Rendered layouts/base.html.erb (0.9ms) > Rendered /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/ > views/staypuft/layouts/application.html.erb (1.2ms) > Completed 500 Internal Server Error in 79ms (Views: 6.7ms | ActiveRecord: > 13.4ms) > > > > On Thursday, August 21, 2014 5:01:15 PM UTC+3, Marek Hulan wrote: >> >> There seems to be some ordering issue with discovery images, target >> directory >> did not exist yet. When there appears an error during installation, >> configuration won't continue. Your staypuft installation resulted in >> being >> installed but not configured. >> >> Now when you fixed discovery images issue, can you rerun installer once >> more? >> Until it shows that you can use some hostgroup for provisioning you can't >> consider staypuft to be ready. But if discovery images was the only issue >> it >> should pass now. >> >> -- >> Marek >> >> On Thursday 21 of August 2014 03:20:15 Nomnom Fuser wrote: >> > Ok. Yet another fresh install. Centos 6.5 x86_64 >> > repos: >> > >> > >> > base >> > CentOS-6 - Base >> > epel >> > Extra Packages for Enterprise Linux 6 - x86_64 >> > extras >> > CentOS-6 - Extras >> > foreman >> > Foreman nightly >> > foreman-plugins >> > Foreman plugins nightly >> > scl >> > CentOS-6 - SCL >> > updates >> > CentOS-6 - Updates >> > >> > # rpm -qa | grep foreman >> > foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch >> > foreman-installer-staypuft-0.3.0-1.el6.noarch >> > foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch >> > rubygem-foreman_api-0.1.11-1.el6.noarch >> > foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch >> > >> > First install with "staypuft-installer >> --foreman-configure-epel-repo=true >> > --foreman-plugin-discovery-install-images=true" : >> > >> > [ INFO 2014-08-21 13:06:14 main] Executing hooks in group post >> > [DEBUG 2014-08-21 13:06:14 main] Hook >> /usr/share/foreman-installer/hooks/ >> > post/10-setup_provisioning.rb returned false >> > [ INFO 2014-08-21 13:06:14 main] All hooks in group post finished >> > [DEBUG 2014-08-21 13:06:14 main] Exit with status code: 6 (signal was >> 6) >> > [ERROR 2014-08-21 13:06:14 main] Repeating errors encountered during >> run: >> > [ERROR 2014-08-21 13:06:14 main] >> /Stage[main]/Foreman::Plugin::Discovery/ >> > >> Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-latest. >> > >> el6.iso-vmlinuz]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-> >> image-latest.el6.iso-vmlinuz]/returns: change from notrun to 0 failed: >> /usr/ >> > bin/curl -s >> > >> http://downloads.theforeman.org/discovery/releases/latest/foreman-discovery >> > -image-latest.el6.iso-vmlinuz -o >> > /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-vmlinuz >> > returned 23 instead of one of [0] at >> > /usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp:6 >> > [ERROR 2014-08-21 13:06:14 main] >> /Stage[main]/Foreman::Plugin::Discovery/ >> > >> Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-latest. >> > >> el6.iso-img]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-image-> >> latest.el6.iso-img]/returns: change from notrun to 0 failed: /usr/bin/curl >> > -s >> > >> http://downloads.theforeman.org/discovery/releases/latest/foreman-discovery >> > -image-latest.el6.iso-img -o >> > /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-img >> returned >> > 23 instead of one of [0] at >> > /usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp: >> > >> > Ok, I download images manually using same curl command. >> > Second run with same options. Seems ok. "Success!" >> > >> > Login to UI, go to new deployment of openstack, aaaannnndddd..... >> > >> > Started GET "/deployments/new" for 10.10.10.1 at 2014-08-21 13:14:11 >> +0300 >> > Processing by Staypuft::DeploymentsController#new as HTML >> > Operation FAILED: missing Operatingsystem >> > Rendered common/500.html.erb within staypuft/layouts/staypuft (7.9ms) >> > Rendered layouts/base.html.erb (2.0ms) >> > Rendered >> /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/ >> > views/staypuft/layouts/application.html.erb (3.6ms) >> > Completed 500 Internal Server Error in 508ms (Views: 16.6ms | >> ActiveRecord: >> > 34.1ms) >> > >> > after installer: >> > >> > # rpm -qa | grep foreman >> > foreman-installer-staypuft-0.3.0-1.el6.noarch >> > ruby193-rubygem-foreman-tasks-0.6.4-1.el6.noarch >> > foreman-postgresql-1.7.0-0.develop.201408201145git87a42cb.el6.noarch >> > foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch >> > rubygem-foreman_api-0.1.11-1.el6.noarch >> > foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch >> > foreman-1.7.0-0.develop.201408201145git87a42cb.el6.noarch >> > foreman-proxy-1.7.0-0.develop.201408191935git7124635.el6.noarch >> > foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch >> > ruby193-rubygem-foreman_discovery-1.3.0-1.el6.noarch >> > >> > Seems like I need install openstack manually from source or using rdo >> > without provisioning %( >> > >> > On Thursday, August 21, 2014 10:33:16 AM UTC+3, Marek Hulan wrote: >> > > Hello, >> > > >> > > This error would indicate that installer did not finish all steps >> > > successfully. >> > > Could you rerun the installer and try again? >> >> -- >> Marek >> >

I was able to reproduce it. I'll look have a look at it tomorrow and will let
you know.

··· -- Marek

On Thursday 21 of August 2014 07:14:48 Nomnom Fuser wrote:

After downloading images I rerun installer and he told me that everything
success:

Starting configuration…
Starting to seed provisioning data
Use ‘base_CentOS_6’ hostgroup for provisioning
Success!

But UI told me same "missing Operatingsystem"
and in foreman/production.log same error:

Started GET “/deployments/new” for 10.10.10.1 at 2014-08-21 17:14:12 +0300
Processing by Staypuft::DeploymentsController#new as HTML
Operation FAILED: missing Operatingsystem
Rendered common/500.html.erb within staypuft/layouts/staypuft (3.8ms)
Rendered layouts/base.html.erb (0.9ms)
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/
views/staypuft/layouts/application.html.erb (1.2ms)
Completed 500 Internal Server Error in 79ms (Views: 6.7ms | ActiveRecord:
13.4ms)

On Thursday, August 21, 2014 5:01:15 PM UTC+3, Marek Hulan wrote:

There seems to be some ordering issue with discovery images, target
directory
did not exist yet. When there appears an error during installation,
configuration won’t continue. Your staypuft installation resulted in being
installed but not configured.

Now when you fixed discovery images issue, can you rerun installer once
more?
Until it shows that you can use some hostgroup for provisioning you can’t
consider staypuft to be ready. But if discovery images was the only issue
it
should pass now.

On Thursday 21 of August 2014 03:20:15 Nomnom Fuser wrote:

Ok. Yet another fresh install. Centos 6.5 x86_64
repos:

base

                     CentOS-6 - Base

epel

                     Extra Packages for Enterprise Linux 6 - x86_64

extras

                     CentOS-6 - Extras

foreman

                    Foreman nightly

foreman-plugins

                    Foreman plugins nightly

scl

                    CentOS-6 - SCL

updates

                    CentOS-6 - Updates

rpm -qa | grep foreman

foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch
foreman-installer-staypuft-0.3.0-1.el6.noarch
foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch
rubygem-foreman_api-0.1.11-1.el6.noarch
foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch

First install with "staypuft-installer

–foreman-configure-epel-repo=true

–foreman-plugin-discovery-install-images=true" :

[ INFO 2014-08-21 13:06:14 main] Executing hooks in group post
[DEBUG 2014-08-21 13:06:14 main] Hook

/usr/share/foreman-installer/hooks/

post/10-setup_provisioning.rb returned false
[ INFO 2014-08-21 13:06:14 main] All hooks in group post finished
[DEBUG 2014-08-21 13:06:14 main] Exit with status code: 6 (signal was 6)
[ERROR 2014-08-21 13:06:14 main] Repeating errors encountered during

run:

[ERROR 2014-08-21 13:06:14 main]

/Stage[main]/Foreman::Plugin::Discovery/

Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-latest
.

el6.iso-vmlinuz]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery->
image-latest.el6.iso-vmlinuz]/returns: change from notrun to 0 failed:
/usr/

bin/curl -s

http://downloads.theforeman.org/discovery/releases/latest/foreman-discover
y

-image-latest.el6.iso-vmlinuz -o
/var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-vmlinuz
returned 23 instead of one of [0] at
/usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp:6
[ERROR 2014-08-21 13:06:14 main]

/Stage[main]/Foreman::Plugin::Discovery/

Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-latest
.

el6.iso-img]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-image-> > >
latest.el6.iso-img]/returns: change from notrun to 0 failed: /usr/bin/curl

-s

http://downloads.theforeman.org/discovery/releases/latest/foreman-discover
y

-image-latest.el6.iso-img -o
/var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-img

returned

23 instead of one of [0] at
/usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp:

Ok, I download images manually using same curl command.
Second run with same options. Seems ok. “Success!”

Login to UI, go to new deployment of openstack, aaaannnndddd…

Started GET “/deployments/new” for 10.10.10.1 at 2014-08-21 13:14:11

+0300

Processing by Staypuft::DeploymentsController#new as HTML
Operation FAILED: missing Operatingsystem

Rendered common/500.html.erb within staypuft/layouts/staypuft (7.9ms)
Rendered layouts/base.html.erb (2.0ms)
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/

views/staypuft/layouts/application.html.erb (3.6ms)
Completed 500 Internal Server Error in 508ms (Views: 16.6ms |

ActiveRecord:

34.1ms)

after installer:

rpm -qa | grep foreman

foreman-installer-staypuft-0.3.0-1.el6.noarch
ruby193-rubygem-foreman-tasks-0.6.4-1.el6.noarch
foreman-postgresql-1.7.0-0.develop.201408201145git87a42cb.el6.noarch
foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch
rubygem-foreman_api-0.1.11-1.el6.noarch
foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch
foreman-1.7.0-0.develop.201408201145git87a42cb.el6.noarch
foreman-proxy-1.7.0-0.develop.201408191935git7124635.el6.noarch
foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch
ruby193-rubygem-foreman_discovery-1.3.0-1.el6.noarch

Seems like I need install openstack manually from source or using rdo
without provisioning %(

On Thursday, August 21, 2014 10:33:16 AM UTC+3, Marek Hulan wrote:

Hello,

This error would indicate that installer did not finish all steps
successfully.
Could you rerun the installer and try again?

Hello,

since CentOS is not supported, noone noticed that it stopped working on
CentOS. I made a fix on both installer and staypuft side today. You'll have to
update and rerun the installer (0.3.2 should get to nightly tomorrow) to
precreate staypuft OS v 7. Staypuft fix was not yet merged but you can apply it
manually, see [1] for the patch.

Before creating new deploy you must also fix one issue with CentOS installation
media. For some reason, CentOS 7.0 mirror does not follow standard path so as
a workaround you have to navigate to Hosts -> Installation Media -> CentOS
Mirror and update path to http://mirror.centos.org/centos/$major/os/$arch.
More information at [2].

Fixes should get in and be packaged in the beginning of next week. I'd be
happy if you tested them and shared your results.

[1] https://github.com/theforeman/staypuft/pull/271
[2] Bug #6884: Centos mirror in "Installation Media" doesn't work for versions without $minor - Foreman

··· On Thursday 21 of August 2014 17:49:52 Marek Hulan wrote: > I was able to reproduce it. I'll look have a look at it tomorrow and will > let you know. > > > After downloading images I rerun installer and he told me that everything > > success: > > > > Starting configuration... > > Starting to seed provisioning data > > Use 'base_CentOS_6' hostgroup for provisioning > > > > Success! > > * Foreman is running at https://openstack-core.cloud > > > > Initial credentials are admin / df4Rauujuwxdede6 > > > > * Foreman Proxy is running at https://openstack-core.cloud:8443 > > * Puppetmaster is running at port 8140 > > The full log is at /var/log/foreman-installer/foreman-installer.log > > > > But UI told me same "missing Operatingsystem" > > and in foreman/production.log same error: > > > > Started GET "/deployments/new" for 10.10.10.1 at 2014-08-21 17:14:12 +0300 > > Processing by Staypuft::DeploymentsController#new as HTML > > Operation FAILED: missing Operatingsystem > > > > Rendered common/500.html.erb within staypuft/layouts/staypuft (3.8ms) > > Rendered layouts/base.html.erb (0.9ms) > > Rendered /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/ > > > > views/staypuft/layouts/application.html.erb (1.2ms) > > Completed 500 Internal Server Error in 79ms (Views: 6.7ms | ActiveRecord: > > 13.4ms) > > > > On Thursday, August 21, 2014 5:01:15 PM UTC+3, Marek Hulan wrote: > > > There seems to be some ordering issue with discovery images, target > > > directory > > > did not exist yet. When there appears an error during installation, > > > configuration won't continue. Your staypuft installation resulted in > > > being > > > installed but not configured. > > > > > > Now when you fixed discovery images issue, can you rerun installer once > > > more? > > > Until it shows that you can use some hostgroup for provisioning you > > > can't > > > consider staypuft to be ready. But if discovery images was the only > > > issue > > > it > > > should pass now. > > > > > > On Thursday 21 of August 2014 03:20:15 Nomnom Fuser wrote: > > > > Ok. Yet another fresh install. Centos 6.5 x86_64 > > > > repos: > > > > > > > > > > > > base > > > > > > > > CentOS-6 - Base > > > > > > > > epel > > > > > > > > Extra Packages for Enterprise Linux 6 - > > > > x86_64 > > > > > > > > extras > > > > > > > > CentOS-6 - Extras > > > > > > > > foreman > > > > > > > > Foreman nightly > > > > > > > > foreman-plugins > > > > > > > > Foreman plugins nightly > > > > > > > > scl > > > > > > > > CentOS-6 - SCL > > > > > > > > updates > > > > > > > > CentOS-6 - Updates > > > > > > > > # rpm -qa | grep foreman > > > > foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch > > > > foreman-installer-staypuft-0.3.0-1.el6.noarch > > > > foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch > > > > rubygem-foreman_api-0.1.11-1.el6.noarch > > > > foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch > > > > > > > > First install with "staypuft-installer > > > > > > --foreman-configure-epel-repo=true > > > > > > > --foreman-plugin-discovery-install-images=true" : > > > > > > > > [ INFO 2014-08-21 13:06:14 main] Executing hooks in group post > > > > [DEBUG 2014-08-21 13:06:14 main] Hook > > > > > > /usr/share/foreman-installer/hooks/ > > > > > > > post/10-setup_provisioning.rb returned false > > > > [ INFO 2014-08-21 13:06:14 main] All hooks in group post finished > > > > [DEBUG 2014-08-21 13:06:14 main] Exit with status code: 6 (signal was > > > > 6) > > > > [ERROR 2014-08-21 13:06:14 main] Repeating errors encountered during > > > > > > run: > > > > [ERROR 2014-08-21 13:06:14 main] > > > > > > /Stage[main]/Foreman::Plugin::Discovery/ > > > > > > Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-late > > > st > > > . > > > > > > el6.iso-vmlinuz]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-> > > > > > > image-latest.el6.iso-vmlinuz]/returns: change from notrun to 0 failed: > > > /usr/ > > > > > > > bin/curl -s > > > > > > http://downloads.theforeman.org/discovery/releases/latest/foreman-discov > > > er > > > y > > > > > > > -image-latest.el6.iso-vmlinuz -o > > > > /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-vmlinuz > > > > returned 23 instead of one of [0] at > > > > /usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp: > > > > 6 > > > > [ERROR 2014-08-21 13:06:14 main] > > > > > > /Stage[main]/Foreman::Plugin::Discovery/ > > > > > > Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-late > > > st > > > . > > > > > > el6.iso-img]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-imag > > > e-> > > latest.el6.iso-img]/returns: change from notrun to 0 failed: > > > /usr/bin/curl> > > > > > -s > > > > > > http://downloads.theforeman.org/discovery/releases/latest/foreman-discov > > > er > > > y > > > > > > > -image-latest.el6.iso-img -o > > > > /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-img > > > > > > returned > > > > > > > 23 instead of one of [0] at > > > > /usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp: > > > > > > > > Ok, I download images manually using same curl command. > > > > Second run with same options. Seems ok. "Success!" > > > > > > > > Login to UI, go to new deployment of openstack, aaaannnndddd..... > > > > > > > > Started GET "/deployments/new" for 10.10.10.1 at 2014-08-21 13:14:11 > > > > > > +0300 > > > > > > > Processing by Staypuft::DeploymentsController#new as HTML > > > > Operation FAILED: missing Operatingsystem > > > > > > > > Rendered common/500.html.erb within staypuft/layouts/staypuft > > > > (7.9ms) > > > > Rendered layouts/base.html.erb (2.0ms) > > > > Rendered > > > > /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/ > > > > > > > > views/staypuft/layouts/application.html.erb (3.6ms) > > > > Completed 500 Internal Server Error in 508ms (Views: 16.6ms | > > > > > > ActiveRecord: > > > > 34.1ms) > > > > > > > > after installer: > > > > > > > > # rpm -qa | grep foreman > > > > foreman-installer-staypuft-0.3.0-1.el6.noarch > > > > ruby193-rubygem-foreman-tasks-0.6.4-1.el6.noarch > > > > foreman-postgresql-1.7.0-0.develop.201408201145git87a42cb.el6.noarch > > > > foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch > > > > rubygem-foreman_api-0.1.11-1.el6.noarch > > > > foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch > > > > foreman-1.7.0-0.develop.201408201145git87a42cb.el6.noarch > > > > foreman-proxy-1.7.0-0.develop.201408191935git7124635.el6.noarch > > > > foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch > > > > ruby193-rubygem-foreman_discovery-1.3.0-1.el6.noarch > > > > > > > > Seems like I need install openstack manually from source or using rdo > > > > without provisioning %( > > > > > > > > On Thursday, August 21, 2014 10:33:16 AM UTC+3, Marek Hulan wrote: > > > > > Hello, > > > > > > > > > > This error would indicate that installer did not finish all steps > > > > > successfully. > > > > > Could you rerun the installer and try again?


Marek

Thx for patch. I'll try it next week and share my results.

You refer to issue with CentOS 7 and I use Centos 6.5 as host and for
provisioning.
Did I understand correctly that new CentOS versioning (eg. 7.0.1234) brakes
some puppet scripts that runs with staypuft-installer?

··· On Friday, August 22, 2014 6:46:44 PM UTC+3, Marek Hulan wrote: > > Hello, > > since CentOS is not supported, noone noticed that it stopped working on > CentOS. I made a fix on both installer and staypuft side today. You'll > have to > update and rerun the installer (0.3.2 should get to nightly tomorrow) to > precreate staypuft OS v 7. Staypuft fix was not yet merged but you can > apply it > manually, see [1] for the patch. > > Before creating new deploy you must also fix one issue with CentOS > installation > media. For some reason, CentOS 7.0 mirror does not follow standard path so > as > a workaround you have to navigate to Hosts -> Installation Media -> CentOS > Mirror and update path to http://mirror.centos.org/centos/$major/os/$arch. > > More information at [2]. > > Fixes should get in and be packaged in the beginning of next week. I'd be > happy if you tested them and shared your results. > > [1] https://github.com/theforeman/staypuft/pull/271 > [2] http://projects.theforeman.org/issues/6884 > > On Thursday 21 of August 2014 17:49:52 Marek Hulan wrote: > > I was able to reproduce it. I'll look have a look at it tomorrow and > will > > let you know. > > > > > After downloading images I rerun installer and he told me that > everything > > > success: > > > > > > Starting configuration... > > > Starting to seed provisioning data > > > Use 'base_CentOS_6' hostgroup for provisioning > > > > > > Success! > > > * Foreman is running at https://openstack-core.cloud > > > > > > Initial credentials are admin / df4Rauujuwxdede6 > > > > > > * Foreman Proxy is running at https://openstack-core.cloud:8443 > > > * Puppetmaster is running at port 8140 > > > The full log is at /var/log/foreman-installer/foreman-installer.log > > > > > > But UI told me same "missing Operatingsystem" > > > and in foreman/production.log same error: > > > > > > Started GET "/deployments/new" for 10.10.10.1 at 2014-08-21 17:14:12 > +0300 > > > Processing by Staypuft::DeploymentsController#new as HTML > > > Operation FAILED: missing Operatingsystem > > > > > > Rendered common/500.html.erb within staypuft/layouts/staypuft > (3.8ms) > > > Rendered layouts/base.html.erb (0.9ms) > > > Rendered > /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/ > > > > > > views/staypuft/layouts/application.html.erb (1.2ms) > > > Completed 500 Internal Server Error in 79ms (Views: 6.7ms | > ActiveRecord: > > > 13.4ms) > > > > > > On Thursday, August 21, 2014 5:01:15 PM UTC+3, Marek Hulan wrote: > > > > There seems to be some ordering issue with discovery images, target > > > > directory > > > > did not exist yet. When there appears an error during installation, > > > > configuration won't continue. Your staypuft installation resulted in > > > > being > > > > installed but not configured. > > > > > > > > Now when you fixed discovery images issue, can you rerun installer > once > > > > more? > > > > Until it shows that you can use some hostgroup for provisioning you > > > > can't > > > > consider staypuft to be ready. But if discovery images was the only > > > > issue > > > > it > > > > should pass now. > > > > > > > > On Thursday 21 of August 2014 03:20:15 Nomnom Fuser wrote: > > > > > Ok. Yet another fresh install. Centos 6.5 x86_64 > > > > > repos: > > > > > > > > > > > > > > > base > > > > > > > > > > CentOS-6 - Base > > > > > > > > > > epel > > > > > > > > > > Extra Packages for Enterprise Linux 6 - > > > > > x86_64 > > > > > > > > > > extras > > > > > > > > > > CentOS-6 - Extras > > > > > > > > > > foreman > > > > > > > > > > Foreman nightly > > > > > > > > > > foreman-plugins > > > > > > > > > > Foreman plugins nightly > > > > > > > > > > scl > > > > > > > > > > CentOS-6 - SCL > > > > > > > > > > updates > > > > > > > > > > CentOS-6 - Updates > > > > > > > > > > # rpm -qa | grep foreman > > > > > foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch > > > > > foreman-installer-staypuft-0.3.0-1.el6.noarch > > > > > foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch > > > > > rubygem-foreman_api-0.1.11-1.el6.noarch > > > > > > foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch > > > > > > > > > > First install with "staypuft-installer > > > > > > > > --foreman-configure-epel-repo=true > > > > > > > > > --foreman-plugin-discovery-install-images=true" : > > > > > > > > > > [ INFO 2014-08-21 13:06:14 main] Executing hooks in group post > > > > > [DEBUG 2014-08-21 13:06:14 main] Hook > > > > > > > > /usr/share/foreman-installer/hooks/ > > > > > > > > > post/10-setup_provisioning.rb returned false > > > > > [ INFO 2014-08-21 13:06:14 main] All hooks in group post finished > > > > > [DEBUG 2014-08-21 13:06:14 main] Exit with status code: 6 (signal > was > > > > > 6) > > > > > [ERROR 2014-08-21 13:06:14 main] Repeating errors encountered > during > > > > > > > > run: > > > > > [ERROR 2014-08-21 13:06:14 main] > > > > > > > > /Stage[main]/Foreman::Plugin::Discovery/ > > > > > > > > > Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-late > > > > st > > > > . > > > > > > > > > el6.iso-vmlinuz]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-> > > > > > > > > image-latest.el6.iso-vmlinuz]/returns: change from notrun to 0 > failed: > > > > /usr/ > > > > > > > > > bin/curl -s > > > > > > > > > http://downloads.theforeman.org/discovery/releases/latest/foreman-discov > > > > er > > > > y > > > > > > > > > -image-latest.el6.iso-vmlinuz -o > > > > > > /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-vmlinuz > > > > > returned 23 instead of one of [0] at > > > > > > /usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp: > > > > > 6 > > > > > [ERROR 2014-08-21 13:06:14 main] > > > > > > > > /Stage[main]/Foreman::Plugin::Discovery/ > > > > > > > > > Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-late > > > > st > > > > . > > > > > > > > > el6.iso-img]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-imag > > > > e-> > > latest.el6.iso-img]/returns: change from notrun to 0 failed: > > > > /usr/bin/curl> > > > > > > -s > > > > > > > > > http://downloads.theforeman.org/discovery/releases/latest/foreman-discov > > > > er > > > > y > > > > > > > > > -image-latest.el6.iso-img -o > > > > > /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-img > > > > > > > > returned > > > > > > > > > 23 instead of one of [0] at > > > > > > /usr/share/foreman-installer/modules/foreman/manifests/remote_file.pp: > > > > > > > > > > Ok, I download images manually using same curl command. > > > > > Second run with same options. Seems ok. "Success!" > > > > > > > > > > Login to UI, go to new deployment of openstack, aaaannnndddd..... > > > > > > > > > > Started GET "/deployments/new" for 10.10.10.1 at 2014-08-21 > 13:14:11 > > > > > > > > +0300 > > > > > > > > > Processing by Staypuft::DeploymentsController#new as HTML > > > > > Operation FAILED: missing Operatingsystem > > > > > > > > > > Rendered common/500.html.erb within staypuft/layouts/staypuft > > > > > (7.9ms) > > > > > Rendered layouts/base.html.erb (2.0ms) > > > > > Rendered > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/staypuft-0.1.20/app/ > > > > > > > > > > views/staypuft/layouts/application.html.erb (3.6ms) > > > > > Completed 500 Internal Server Error in 508ms (Views: 16.6ms | > > > > > > > > ActiveRecord: > > > > > 34.1ms) > > > > > > > > > > after installer: > > > > > > > > > > # rpm -qa | grep foreman > > > > > foreman-installer-staypuft-0.3.0-1.el6.noarch > > > > > ruby193-rubygem-foreman-tasks-0.6.4-1.el6.noarch > > > > > > foreman-postgresql-1.7.0-0.develop.201408201145git87a42cb.el6.noarch > > > > > foreman-release-1.7.0-0.develop.201408201145git87a42cb.el6.noarch > > > > > rubygem-foreman_api-0.1.11-1.el6.noarch > > > > > > foreman-installer-1.7.0-0.develop.201408210326git3551ee3.el6.noarch > > > > > foreman-1.7.0-0.develop.201408201145git87a42cb.el6.noarch > > > > > foreman-proxy-1.7.0-0.develop.201408191935git7124635.el6.noarch > > > > > foreman-selinux-1.7.0-0.develop.201408202047gitd5e80cf.el6.noarch > > > > > ruby193-rubygem-foreman_discovery-1.3.0-1.el6.noarch > > > > > > > > > > Seems like I need install openstack manually from source or using > rdo > > > > > without provisioning %( > > > > > > > > > > On Thursday, August 21, 2014 10:33:16 AM UTC+3, Marek Hulan wrote: > > > > > > Hello, > > > > > > > > > > > > This error would indicate that installer did not finish all > steps > > > > > > successfully. > > > > > > Could you rerun the installer and try again? > > -- > Marek >