Project

General

Profile

Bug #17392

unable to run installer with capsule-puppet-server-implementation option

Added by Baptiste Agasse over 5 years ago. Updated almost 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

When the following options are specified, the installer fails to run (db:seed error):

[root@katello ~]# foreman-installer --scenario katello\
>   --enable-foreman-plugin-discovery\
>   --enable-foreman-plugin-hooks\
>   --enable-foreman-plugin-openscap\
>   --enable-foreman-plugin-remote-execution\
>   --enable-foreman-plugin-templates\
>   --foreman-admin-email="foobar@example.com"\
>   --foreman-admin-first-name="Foo"\
>   --foreman-admin-last-name="Bar"\
>   --foreman-initial-location="France"\
>   --foreman-initial-organization="Example - FR - Test"\
>   --katello-enable-ostree=true \
>   --capsule-puppet-server-implementation="puppetserver"\
>   --disable-system-checks

removing the option --capsule-puppet-server-implementation="puppetserver" make the install works.

error is:

 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/usr/share/ruby/vendor_ruby/puppet/util/errors.rb:106:in `fail'
/usr/share/ruby/vendor_ruby/puppet/type/exec.rb:160:in `sync'
/usr/share/ruby/vendor_ruby/puppet/type/exec.rb:583:in `refresh'
/usr/share/ruby/vendor_ruby/puppet/transaction/event_manager.rb:101:in `process_callback'
/usr/share/ruby/vendor_ruby/puppet/transaction/event_manager.rb:20:in `block in process_events'
/usr/share/ruby/vendor_ruby/puppet/transaction/event_manager.rb:93:in `block in queued_events'
/usr/share/ruby/vendor_ruby/puppet/transaction/event_manager.rb:92:in `each'
/usr/share/ruby/vendor_ruby/puppet/transaction/event_manager.rb:92:in `queued_events'
/usr/share/ruby/vendor_ruby/puppet/transaction/event_manager.rb:19:in `process_events'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:221:in `eval_resource'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
/usr/share/ruby/vendor_ruby/puppet/util.rb:335:in `block in thinmark'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:334:in `thinmark'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
/usr/share/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
/usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:31:in `evaluate_with_trigger'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:169:in `block in apply'
/usr/share/ruby/vendor_ruby/puppet/util/log.rb:149:in `with_destination'
/usr/share/ruby/vendor_ruby/puppet/transaction/report.rb:112:in `as_logging_destination'
/usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/kafo/puppet/report_wrapper.rb:34:in `method_missing'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:168:in `apply'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:120:in `block in apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:119:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:133:in `run'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:302:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:236:in `block in main'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
/usr/bin/puppet:8:in `<main>'

Step to reproduce:

  • 100%
  • Install CentOS 7 x86_64 minimal
cat >/etc/yum.repos.d/CentOS-Atomic.repo <<EOL
# CentOS-Atomic.repo
#
# Get rpm-ostree deps from this buildlogs repo because CentOS don't provide them on mirrors ATM

[atomic]
name=CentOS-$releasever - Atomic
#mirrorlist=http://mirrorlist.centos.org/?release=\$releasever&arch=\$basearch&repo=os&infra=$infra
baseurl=http://buildlogs.centos.org/centos/\$releasever/atomic/\$basearch/Packages/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-\$releasever
EOL

yum update -y
yum -y localinstall http://fedorapeople.org/groups/katello/releases/yum/3.2/katello/el7/x86_64/katello-repos-latest.rpm
yum -y localinstall http://yum.theforeman.org/releases/1.13/el7/x86_64/foreman-release.rpm
yum -y localinstall http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
yum -y localinstall http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install foreman-release-scl
yum -y install katello

foreman-installer --scenario katello\
  --enable-foreman-plugin-discovery\
  --enable-foreman-plugin-hooks\
  --enable-foreman-plugin-openscap\
  --enable-foreman-plugin-remote-execution\
  --enable-foreman-plugin-templates\
  --foreman-admin-email="foobar@example.com"\
  --foreman-admin-first-name="Foo"\
  --foreman-admin-last-name="Bar"\
  --foreman-initial-location="France"\
  --foreman-initial-organization="Example - FR - Test"\
  --katello-enable-ostree=true \
  --capsule-puppet-server-implementation="puppetserver"\
  --disable-system-checks

Puppet packages found after katello install finish:

[root@katello ~]# rpm -qa | grep puppet
python-pulp-puppet-common-2.9.1-1.el7.noarch
puppet-3.8.7-1.el7.noarch
pulp-puppet-plugins-2.9.1-1.el7.noarch
puppetlabs-release-22.0-2.noarch
pulp-puppet-tools-2.9.1-1.el7.noarch
katello.domain.local-puppet-client-1.0-1.noarch
puppetserver-1.2.0-1.el7.noarch

Repo configured:

[root@katello ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.quelquesmots.fr
 * epel: mirrors.ircam.fr
 * extras: mirrors.ircam.fr
 * updates: fr2.rpmfind.net
repo id                                                                                              repo name                                                                                                                          status
atomic/7/x86_64                                                                                      CentOS- - Atomic                                                                                                                      133
base/7/x86_64                                                                                        CentOS-7 - Base                                                                                                                     9 007
centos-sclo-rh/x86_64                                                                                CentOS-7 - SCLo rh                                                                                                                  4 231
centos-sclo-sclo/x86_64                                                                              CentOS-7 - SCLo sclo                                                                                                                  323
epel/x86_64                                                                                          Extra Packages for Enterprise Linux 7 - x86_64                                                                                     10 818
extras/7/x86_64                                                                                      CentOS-7 - Extras                                                                                                                     393
foreman/x86_64                                                                                       Foreman 1.13                                                                                                                          409
foreman-plugins/x86_64                                                                               Foreman plugins 1.13                                                                                                                  282
katello/x86_64                                                                                       Katello 3.2                                                                                                                            33
katello-candlepin/x86_64                                                                             Candlepin: an open source entitlement management system.                                                                                3
katello-client/x86_64                                                                                Katello Client 3.2                                                                                                                     16
katello-pulp/x86_64                                                                                  Pulp Community Releases                                                                                                                49
puppetlabs-deps/x86_64                                                                               Puppet Labs Dependencies El 7 - x86_64                                                                                                 17
puppetlabs-products/x86_64                                                                           Puppet Labs Products El 7 - x86_64                                                                                                    225
updates/7/x86_64                                                                                     CentOS-7 - Updates                                                                                                                  2 560
repolist: 28 499

History

#1 Updated by Eric Helms over 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Eric Helms

#2 Updated by Justin Sherrill over 5 years ago

could you provide a foreman-debug? we're curious what the db:seed error was as part of that failed install.

#4 Updated by Stephen Benjamin over 5 years ago

You don't need to set `--capsule-puppet-server-implementation`, we figure it out based on the puppet package installed. This option shouldn't even be visible to you unless you look at `--full-help` which includes a lot of advanced things we don't intend you to touch.

If you want puppetserver (i.e. puppet 4), just enable the PC1 repo instead of the puppet 3 one. If you already had a puppet 3 client installed, make sure to upgrade it before running the installer.

You have Puppet 3.8 installed and overriding the server-implementation to say you have puppet 4, which is confusing things.

#5 Updated by Baptiste Agasse over 5 years ago

As you said all goes well without this option and the good repo. Sorry for the noise.

#6 Updated by Justin Sherrill over 5 years ago

Stephen, should we remove that option from the users control? or just close this issue?

#7 Updated by Stephen Benjamin over 5 years ago

  • Status changed from Assigned to Rejected

Thanks for confirming!

Can be closed, capsule is gone entirely in 3.3, and all the options are moved to the "puppet" puppet module.

#8 Updated by Justin Sherrill over 5 years ago

  • Legacy Backlogs Release (now unused) set to 166

Also available in: Atom PDF