Bug 1091619
| Summary: | Foreman_server.sh fails on database seeding | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | stuart.stent |
| Component: | openstack-foreman-installer | Assignee: | Jason Guiditta <jguiditt> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ami Jeain <ajeain> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | felipe.alfaro, morazi, ramon, rhos-maint, stuart.stent, yeylon |
| Target Milestone: | --- | ||
| Target Release: | Installer | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-09-08 17:39:31 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
stuart.stent
2014-04-26 14:18:25 UTC
Ended up being a puppet version issue. After installing puppet-server-3.2.4-1.el6 the installed proceeded normally -- If a specific version of puppet is required this should be explicity stated in the docs ( not just as a vague reference to version 3.2.x in the troubleshooting section) What version of puppet did you have that was broken? puppet-server-3.5.1-1.el6 And I forgot to ask, what version of openstack-foreman-installer? And was this havana or icehouse yum repo? foreman-installer-1.3.1-1.el6.noarch openstack-foreman-installer-1.0.6-1.el6.noarch And the Havana repo Any progress on this? I'm having exactly the same problem: # sudo -u foreman scl enable ruby193 "cd $FOREMAN_DIR; rake db:seed RAILS_ENV=production FOREMAN_PROVISIONING=false" rake aborted! undefined method `class_params' for nil:NilClass Problem is that /usr/share/foreman/db/seeds.rb is unable to find Puppet classes used by Host Groups. For example, one Host Group mentions quickstack::nova_network::controller but seeds.rb is unable to find it and hence the failure. # rpm -qi puppet-server foreman-installer Name : puppet-server Relocations: (not relocatable) Version : 3.6.2 Vendor: Puppet Labs Release : 1.el6 Build Date: Mon 09 Jun 2014 11:09:55 PM CEST Install Date: Wed 18 Jun 2014 10:21:04 PM CEST Build Host: rpm-builder-4 Group : System Environment/Base Source RPM: puppet-3.6.2-1.el6.src.rpm Size : 10470 License: ASL 2.0 Signature : RSA/10, Tue 10 Jun 2014 06:45:02 PM CEST, Key ID 1054b7a24bd6ec30 URL : http://puppetlabs.com Summary : Server for the puppet system management tool Description : Provides the central puppet server daemon which provides manifests to clients. The server can also function as a certificate authority and file server. Name : foreman-installer Relocations: (not relocatable) Version : 1.3.0 Vendor: Red Hat, Inc. Release : 1.el6sat Build Date: Tue 22 Oct 2013 07:15:52 PM CEST Install Date: Wed 18 Jun 2014 10:19:25 PM CEST Build Host: x86-022.build.eng.bos.redhat.com Group : Applications/System Source RPM: foreman-installer-1.3.0-1.el6sat.src.rpm Size : 1377226 License: GPLv3+ and ASL 2.0 Signature : RSA/8, Thu 19 Dec 2013 11:13:07 AM CET, Key ID 199e2f91fd431d51 Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> URL : http://theforeman.org Summary : Puppet-based installer for The Foreman Description : Complete installer for The Foreman life-cycle management system based on puppet and script to generate answers for puppet manifests. Any ideas? Try installing puppet-server-3.2.xx.el6, before running thew script. (In reply to Felipe Alfaro Solana from comment #7) > Any progress on this? > > I'm having exactly the same problem: > > # sudo -u foreman scl enable ruby193 "cd $FOREMAN_DIR; rake db:seed > RAILS_ENV=production FOREMAN_PROVISIONING=false" > rake aborted! > undefined method `class_params' for nil:NilClass > > Problem is that /usr/share/foreman/db/seeds.rb is unable to find Puppet > classes used by Host Groups. For example, one Host Group mentions > quickstack::nova_network::controller > but seeds.rb is unable to find it and hence the failure. > > # rpm -qi puppet-server foreman-installer > Name : puppet-server Relocations: (not relocatable) > Version : 3.6.2 Vendor: Puppet Labs > Release : 1.el6 Build Date: Mon 09 Jun 2014 > 11:09:55 PM CEST > Install Date: Wed 18 Jun 2014 10:21:04 PM CEST Build Host: rpm-builder-4 > Group : System Environment/Base Source RPM: > puppet-3.6.2-1.el6.src.rpm > Size : 10470 License: ASL 2.0 > Signature : RSA/10, Tue 10 Jun 2014 06:45:02 PM CEST, Key ID > 1054b7a24bd6ec30 > URL : http://puppetlabs.com > Summary : Server for the puppet system management tool > Description : > Provides the central puppet server daemon which provides manifests to > clients. > The server can also function as a certificate authority and file server. > Name : foreman-installer Relocations: (not relocatable) > Version : 1.3.0 Vendor: Red Hat, Inc. > Release : 1.el6sat Build Date: Tue 22 Oct 2013 > 07:15:52 PM CEST > Install Date: Wed 18 Jun 2014 10:19:25 PM CEST Build Host: > x86-022.build.eng.bos.redhat.com > Group : Applications/System Source RPM: > foreman-installer-1.3.0-1.el6sat.src.rpm > Size : 1377226 License: GPLv3+ and ASL 2.0 > Signature : RSA/8, Thu 19 Dec 2013 11:13:07 AM CET, Key ID 199e2f91fd431d51 > Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> > URL : http://theforeman.org > Summary : Puppet-based installer for The Foreman > Description : > Complete installer for The Foreman life-cycle management system based on > puppet and > script to generate answers for puppet manifests. > > Any ideas? I tried downgrading puppet and puppet-server: # rpm -q puppet puppet-server puppet-3.2.4-1.el6.noarch puppet-server-3.2.4-1.el6.noarch But this didn't solve this issue. |