Foreman-installer --scenario katello fails on centOS 7

Problem:
installation is failing.

Expected outcome:
installation complete with out errors

Foreman and Proxy versions:
foreman-installer.noarch 1:1.13.4-1.el7
foreman-installer-katello.noarch 3.2.3-1.el7
foreman-proxy.noarch 1.19.1-1.el7

Foreman and Proxy plugin versions:

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)

logs:
oot@ip-10-112-242-44 ~]# grep ERROR /var/log/foreman-installer/katello.log | head -n 100
[ERROR 2018-11-22 20:40:30 main]  Execution of '/usr/bin/yum -d 0 -e 0 -y list grub2-efi-modules' returned 1: Error: No matching Packages to list
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util/execution.rb:219:in `execute'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/provider/command.rb:23:in `execute'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/provider.rb:237:in `block in has_command'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/provider.rb:463:in `block in create_class_and_instance_method'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/provider/package/yum.rb:100:in `install'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/type/package.rb:73:in `block (3 levels) in <module:Puppet>'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/property.rb:498:in `set'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/property.rb:581:in `sync'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:204:in `sync'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:128:in `sync_if_needed'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:217:in `eval_resource'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util.rb:335:in `block in thinmark'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/benchmark.rb:296:in `realtime'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util.rb:334:in `thinmark'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
[ERROR 2018-11-22 20:40:30 main] /usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:31:in `evaluate_with_trigger'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:169:in `block in apply'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util/log.rb:149:in `with_destination'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction/report.rb:112:in `as_logging_destination'
[ERROR 2018-11-22 20:40:30 main] /usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/kafo/puppet/report_wrapper.rb:34:in `method_missing'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:168:in `apply'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:120:in `block in apply_catalog'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/benchmark.rb:296:in `realtime'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:119:in `apply_catalog'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:133:in `run'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:302:in `apply_catalog'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:236:in `block in main'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `run'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
[ERROR 2018-11-22 20:40:30 main] /usr/bin/puppet:8:in `<main>'
[ERROR 2018-11-22 20:40:30 main]  /Stage[main]/Foreman_proxy::Tftp/Package[grub2-efi-modules]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list grub2-efi-modules' returned 1: Error: No matching Packages to list
[ERROR 2018-11-22 20:40:30 main]  Execution of '/usr/bin/yum -d 0 -e 0 -y list grub2-efi' returned 1: Error: No matching Packages to list
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util/execution.rb:219:in `execute'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/provider/command.rb:23:in `execute'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/provider.rb:237:in `block in has_command'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/provider.rb:463:in `block in create_class_and_instance_method'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/provider/package/yum.rb:100:in `install'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/type/package.rb:73:in `block (3 levels) in <module:Puppet>'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/property.rb:498:in `set'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/property.rb:581:in `sync'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:204:in `sync'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:128:in `sync_if_needed'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:217:in `eval_resource'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util.rb:335:in `block in thinmark'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/benchmark.rb:296:in `realtime'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util.rb:334:in `thinmark'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
[ERROR 2018-11-22 20:40:30 main] /usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:31:in `evaluate_with_trigger'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:169:in `block in apply'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util/log.rb:149:in `with_destination'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/transaction/report.rb:112:in `as_logging_destination'
[ERROR 2018-11-22 20:40:30 main] /usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/kafo/puppet/report_wrapper.rb:34:in `method_missing'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:168:in `apply'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:120:in `block in apply_catalog'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/benchmark.rb:296:in `realtime'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:119:in `apply_catalog'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:133:in `run'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:302:in `apply_catalog'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:236:in `block in main'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
[ERROR 2018-11-22 20:40:30 main] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
[root@ip-10-112-242-44 ~]#

What steps did you make?

Besides…according to your version details you are trying to install Foreman 1.13 and Katello 3.2 in combination with Proxy 1.19 ?

Regards,
Martin

1 Like

grub2-efi-modules is provided by grub2-efi-x64-modules from the base repository, so it should be available. Can you check your repository settings, e.g. yum repolist, and if this looks good if you can install the package with yum install grub2-efi-modules or yum install grub2-efi-x64-modules?

1 Like

here is the all yum errors

log

[root@foreman-centos7 ~]# grep "yum "  /var/log/foreman-installer/katello.log
[DEBUG 2018-11-22 22:14:01 main]  Automatically imported foreman::repos::yum from foreman/repos/yum into production
[DEBUG 2018-11-22 22:14:05 main]  Prefetching yum resources for package
[DEBUG 2018-11-22 22:14:05 main]  Executing '/usr/bin/yum -d 0 -e 0 -y list grub2-efi-modules'
[ERROR 2018-11-22 22:14:06 main]  Execution of '/usr/bin/yum -d 0 -e 0 -y list grub2-efi-modules' returned 1: Error: No matching Packages to list
[ERROR 2018-11-22 22:14:06 main]  /Stage[main]/Foreman_proxy::Tftp/Package[grub2-efi-modules]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list grub2-efi-modules' returned 1: Error: No matching Packages to list
[DEBUG 2018-11-22 22:14:06 main]  Executing '/usr/bin/yum -d 0 -e 0 -y list grub2-efi'
[ERROR 2018-11-22 22:14:06 main]  Execution of '/usr/bin/yum -d 0 -e 0 -y list grub2-efi' returned 1: Error: No matching Packages to list
[ERROR 2018-11-22 22:14:06 main]  /Stage[main]/Foreman_proxy::Tftp/Package[grub2-efi]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list grub2-efi' returned 1: Error: No matching Packages to list
[DEBUG 2018-11-22 22:14:08 main]  Executing '/usr/bin/yum -d 0 -e 0 -y list python-qpid'
[DEBUG 2018-11-22 22:14:08 main]  Executing '/usr/bin/yum -d 0 -e 0 -y install python-qpid'
[DEBUG 2018-11-22 22:14:09 main]  Executing '/usr/bin/yum -d 0 -e 0 -y list python-qpid-qmf'
[DEBUG 2018-11-22 22:14:10 main]  Executing '/usr/bin/yum -d 0 -e 0 -y install python-qpid-qmf'
[DEBUG 2018-11-22 22:14:11 main]  Executing '/usr/bin/yum -d 0 -e 0 -y list shim'
[ERROR 2018-11-22 22:14:11 main]  Execution of '/usr/bin/yum -d 0 -e 0 -y list shim' returned 1: Error: No matching Packages to list
[ERROR 2018-11-22 22:14:11 main]  /Stage[main]/Foreman_proxy::Tftp/Package[shim]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list shim' returned 1: Error: No matching Packages to list
[ERROR 2018-11-22 22:14:42 main]  Execution of '/usr/bin/yum -d 0 -e 0 -y list grub2-efi-modules' returned 1: Error: No matching Packages to list
[ERROR 2018-11-22 22:14:42 main]  /Stage[main]/Foreman_proxy::Tftp/Package[grub2-efi-modules]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list grub2-efi-modules' returned 1: Error: No matching Packages to list
[ERROR 2018-11-22 22:14:42 main]  Execution of '/usr/bin/yum -d 0 -e 0 -y list grub2-efi' returned 1: Error: No matching Packages to list
[ERROR 2018-11-22 22:14:42 main]  /Stage[main]/Foreman_proxy::Tftp/Package[grub2-efi]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list grub2-efi' returned 1: Error: No matching Packages to list
[ERROR 2018-11-22 22:14:42 main]  Execution of '/usr/bin/yum -d 0 -e 0 -y list shim' returned 1: Error: No matching Packages to list
[ERROR 2018-11-22 22:14:42 main]  /Stage[main]/Foreman_proxy::Tftp/Package[shim]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list shim' returned 1: Error: No matching Packages to list
[root@foreman-centos7 ~]# grep "yum "  /var/log/foreman-installer/katello.log  | grep install
[DEBUG 2018-11-22 22:14:08 main]  Executing '/usr/bin/yum -d 0 -e 0 -y install python-qpid'
[DEBUG 2018-11-22 22:14:10 main]  Executing '/usr/bin/yum -d 0 -e 0 -y install python-qpid-qmf'
[root@foreman-centos7 ~]#

So for example installer looks for
‘/usr/bin/yum -d 0 -e 0 -y list grub2-efi-modules’
But on the system I have:

[root@foreman-centos7 ~]# yum list grub2-efi*


Installed Packages
grub2-efi-**x64.x86_**64                                                     1:2.02-0.65.el7.centos.2                                             @base
grub2-efi-**x64**-modules.noarch                                             1:2.02-0.65.el7.centos.2                                             @base
Available Packages
grub2-efi-ia32.x86_64                                                    1:2.02-0.65.el7.centos.2                                             base
grub2-efi-ia32-cdboot.x86_64                                             1:2.02-0.65.el7.centos.2                                             base
grub2-efi-ia32-modules.noarch                                            1:2.02-0.65.el7.centos.2                                             base
grub2-efi-x64-cdboot.x86_64                                              1:2.02-0.65.el7.centos.2                                             base

as far the process I used instruction from foreman’s actual website.

Which goes like this

Blockquote

yum -y localinstall https://fedorapeople.org/groups/katello/releases/yum/3.2/katello/el7/x86_64/katello-repos-latest.rpm
yum -y localinstall https://yum.theforeman.org/releases/1.13/el7/x86_64/foreman-release.rpm
yum -y localinstall https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm # will install with Puppet 4
#yum -y localinstall https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm # use this instead if you prefer Puppet 3
yum -y localinstall https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install foreman-release-scl

Installation

After setting up the appropriate repositories, update your system:

yum -y update

Then install Katello:

yum -y install katello

At this point the foreman-installer should be available to setup the server. The installation may be customized, to see a list of options:

foreman-installer --scenario katello --help

Note

Prior to running the installer, the machine should be set up with a time service such as ntpd or chrony, since several Katello features will not function well if there is minor clock skew.

These may be set as command line options or in the answer file (/etc/foreman-installer/scenarios.d/katello-answers.yaml). Now run the options:

foreman-installer --scenario katello 

The 1.13 installer is very old and is missing some required fixes for provisioning with current CentOS versions. You should really upgrade.

If you must use such an ancient version, you should have a look at https://github.com/theforeman/puppet-foreman_proxy/commits/master/manifests/tftp and patch it locally.

I only want foreman to work beautifully on my servers. Like other stuff in linux.
So I get you recommend I use the newest installer ?

Yes, 1.13 is very old and hasn’t been supported. In general it’s always recommended to use the latest supported version which right now is 1.20.

1 Like

problem solved when I used most recent version 3.8 and its related repose.
Katello now is alive and kicking.

Thank you every one. :grinning: