Project

General

Profile

Actions

Bug #21617

open

Errors when running foreman-installer

Added by Ingvar Mattsson over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Tested on a fresh AWS EC2 RHEL7.4 instance (the only non-listed command was running "sudo bash" as ec2-user), these commands were run:
[root@ip-172-31-92-150 ec2-user]# history
1 yum-config-manager --enable rhel-7-server-optional-rpms
2 yum -y install https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
3 yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
4 yum -y install https://yum.theforeman.org/releases/1.15/el7/x86_64/foreman-release.rpm
5 yum -y install foreman-installer
6 foreman-installer

Expected end result, something looking approximately like "foreman, installed", actual result, lots of installed packages, but no runnable foreman.

Replication steps:
1. Create a new EC2 RHEL7.4 instance
2. Log on as ec2-user
3. Run "sudo bash"
4. Repeat the commands from the history (cut&pasted from the commands shown on https://theforeman.org/manuals/1.15/quickstart_guide.html#QuickstartGuide when RHEL7 is chosen)


Files

rhel74-foreman.log rhel74-foreman.log 1.5 MB foreman installer log Ingvar Mattsson, 11/09/2017 02:36 PM
rhel74-foreman-2.log rhel74-foreman-2.log 1.36 MB Ingvar Mattsson, 11/09/2017 04:03 PM
Actions #1

Updated by Ewoud Kohl van Wijngaarden over 6 years ago

Relevant lines from the log:

[ERROR 2017-11-09 14:19:02 main]  Execution of '/bin/yum -d 0 -e 0 -y install foreman-proxy' returned 1: Error: Package: foreman-proxy-1.15.6-1.el7.noarch (foreman)
[ERROR 2017-11-09 14:19:02 main]            Requires: rubygem(rake) >= 0.8.3

Which versions of rake are available? None at all or a version that's too old?

Actions #2

Updated by Ingvar Mattsson over 6 years ago

Ewoud Kohl van Wijngaarden wrote:

Relevant lines from the log:

[...]

Which versions of rake are available? None at all or a version that's too old?

[root@ip-172-31-92-150 ec2-user]# yum list '*rake*'
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Installed Packages
rh-ruby22-rubygem-rake.noarch 10.4.2-16.el7 @centos-sclo-rh
Available Packages
rh-ruby23-rubygem-rake.noarch 10.4.2-64.el7 centos-sclo-rh
rh-ruby24-rubygem-rake.noarch 12.0.0-75.el7 centos-sclo-rh
ruby193-rubygem-rake.noarch 0.9.2.2-51.el7 centos-sclo-rh
ruby200-rubygem-rake.noarch 0.9.6-25.el7 centos-sclo-rh
rubygem-drake.noarch 0.9.2.0.3.1-2.el7 epel
rubygem-drake-doc.noarch 0.9.2.0.3.1-2.el7 epel
rubygem-rake-compiler.noarch 0.9.3-2.el7 epel
rubygem-rake-compiler-doc.noarch 0.9.3-2.el7 epel

Actions #3

Updated by Ewoud Kohl van Wijngaarden over 6 years ago

On my CentOS 7.4 machine:

Installed Packages
rubygem-rake.noarch                     0.9.6-30.el7              @base         
Available Packages
rh-ruby22-rubygem-rake.noarch           10.4.2-16.el7             centos-sclo-rh
rh-ruby23-rubygem-rake.noarch           10.4.2-64.el7             centos-sclo-rh
rh-ruby24-rubygem-rake.noarch           12.0.0-75.el7             centos-sclo-rh
ruby193-rubygem-rake.noarch             0.9.2.2-51.el7            centos-sclo-rh
ruby200-rubygem-rake.noarch             0.9.6-25.el7              centos-sclo-rh
rubygem-drake.noarch                    0.9.2.0.3.1-2.el7         epel          
rubygem-drake-doc.noarch                0.9.2.0.3.1-2.el7         epel          
rubygem-rake-compiler.noarch            0.9.3-2.el7               epel          
rubygem-rake-compiler-doc.noarch        0.9.3-2.el7               epel          
uwsgi-plugin-airbrake.x86_64            2.0.15-1.el7              epel          

Is there something with your base repo? Perhaps some kind of caching issue?

Actions #4

Updated by Ingvar Mattsson over 6 years ago

Ewoud Kohl van Wijngaarden wrote:

On my CentOS 7.4 machine:
[...]

Is there something with your base repo? Perhaps some kind of caching issue?

This is the only rake RPM I can see installed.

[root@ip-172-31-92-150 ec2-user]# yum list installed '*rubygem-rake'
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Installed Packages
rh-ruby22-rubygem-rake.noarch 10.4.2-16.el7 @centos-sclo-rh

The RPM only provides these things:
[root@ip-172-31-92-150 ec2-user]# rpm -q --provides rh-ruby22-rubygem-rake.noarch
rh-ruby22-rake = 10.4.2-16.el7
rh-ruby22-rubygem(rake) = 10.4.2-16.el7
rh-ruby22-rubygem-rake = 10.4.2-16.el7
scl-package(rh-ruby22)

None of those would fulfill 'rubygem(rake)'.

[root@ip-172-31-92-150 ec2-user]# yum whatprovides 'rubygem(rake)'
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
No matches found
[root@ip-172-31-92-150 ec2-user]# yum whatprovides 'rh-ruby22-rubygem(rake)'
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
rh-ruby22-rubygem-rake-10.4.2-16.el7.noarch : Ruby based make-like utility
Repo : centos-sclo-rh
Matched from:
Provides : rh-ruby22-rubygem(rake) = 10.4.2-16.el7

rh-ruby22-rubygem-rake-10.4.2-16.el7.noarch : Ruby based make-like utility
Repo : @centos-sclo-rh
Matched from:
Provides : rh-ruby22-rubygem(rake) = 10.4.2-16.el7

I can't really speak to caching issues, but I would expect a fresh-built EC2 instance to have access to pretty up-to-date repository mirrors.

Actions #5

Updated by Ingvar Mattsson over 6 years ago

Ingvar Mattsson wrote:

Ewoud Kohl van Wijngaarden wrote:

On my CentOS 7.4 machine:
[...]

Is there something with your base repo? Perhaps some kind of caching issue?

This is the only rake RPM I can see installed.

[root@ip-172-31-92-150 ec2-user]# yum list installed '*rubygem-rake'
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Installed Packages
rh-ruby22-rubygem-rake.noarch 10.4.2-16.el7 @centos-sclo-rh

The RPM only provides these things:
[root@ip-172-31-92-150 ec2-user]# rpm -q --provides rh-ruby22-rubygem-rake.noarch
rh-ruby22-rake = 10.4.2-16.el7
rh-ruby22-rubygem(rake) = 10.4.2-16.el7
rh-ruby22-rubygem-rake = 10.4.2-16.el7
scl-package(rh-ruby22)

None of those would fulfill 'rubygem(rake)'.

[root@ip-172-31-92-150 ec2-user]# yum whatprovides 'rubygem(rake)'
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
No matches found
[root@ip-172-31-92-150 ec2-user]# yum whatprovides 'rh-ruby22-rubygem(rake)'
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
rh-ruby22-rubygem-rake-10.4.2-16.el7.noarch : Ruby based make-like utility
Repo : centos-sclo-rh
Matched from:
Provides : rh-ruby22-rubygem(rake) = 10.4.2-16.el7

rh-ruby22-rubygem-rake-10.4.2-16.el7.noarch : Ruby based make-like utility
Repo : @centos-sclo-rh
Matched from:
Provides : rh-ruby22-rubygem(rake) = 10.4.2-16.el7

I can't really speak to caching issues, but I would expect a fresh-built EC2 instance to have access to pretty up-to-date repository mirrors.

For safety's sake, I'll do a 'yum -y update', then re-run foreman-installer, and see if that makes a difference. I'd also be happy to throw this instance away, create a new one and start with an update before going through the foreman install process.

Actions #6

Updated by Ingvar Mattsson over 6 years ago

Ingvar Mattsson wrote:

Ingvar Mattsson wrote:

For safety's sake, I'll do a 'yum -y update', then re-run foreman-installer, and see if that makes a difference. I'd also be happy to throw this instance away, create a new one and start with an update before going through the foreman install process.

That make no obvious difference to the end result, I am still seeing a missing rubygem(rake) dependency.

Actions #7

Updated by Evgeni Golov over 6 years ago

can you post the output of "yum repolist" please?

Actions #8

Updated by Ingvar Mattsson over 6 years ago

Evgeni Golov wrote:

can you post the output of "yum repolist" please?

[root@ip-172-31-92-150 ec2-user]# yum repolist
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
repo id repo name status
centos-sclo-rh/x86_64 CentOS-7 - SCLo rh 6,172
centos-sclo-sclo/x86_64 CentOS-7 - SCLo sclo 448
epel/x86_64 Extra Packages for Enter 12,062
foreman/x86_64 Foreman 1.15 533
foreman-plugins/x86_64 Foreman plugins 1.15 406
puppetlabs-deps/x86_64 Puppet Labs Dependencies 17
puppetlabs-products/x86_64 Puppet Labs Products El 225
rhui-REGION-client-config-server-7/x86_64 Red Hat Update Infrastru 8
rhui-REGION-rhel-server-releases/7Server/x86_64 Red Hat Enterprise Linux 17,474
rhui-REGION-rhel-server-rh-common/7Server/x86_64 Red Hat Enterprise Linux 228
repolist: 37,573

Actions #9

Updated by Ingvar Mattsson over 6 years ago

Ingvar Mattsson wrote:

Evgeni Golov wrote:

can you post the output of "yum repolist" please?

[root@ip-172-31-92-150 ec2-user]# yum repolist
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
repo id repo name status
centos-sclo-rh/x86_64 CentOS-7 - SCLo rh 6,172
centos-sclo-sclo/x86_64 CentOS-7 - SCLo sclo 448
epel/x86_64 Extra Packages for Enter 12,062
foreman/x86_64 Foreman 1.15 533
foreman-plugins/x86_64 Foreman plugins 1.15 406
puppetlabs-deps/x86_64 Puppet Labs Dependencies 17
puppetlabs-products/x86_64 Puppet Labs Products El 225
rhui-REGION-client-config-server-7/x86_64 Red Hat Update Infrastru 8
rhui-REGION-rhel-server-releases/7Server/x86_64 Red Hat Enterprise Linux 17,474
rhui-REGION-rhel-server-rh-common/7Server/x86_64 Red Hat Enterprise Linux 228
repolist: 37,573

Aha! It's called rhui-REGION-rhel-server-optional in AWS, it looks like.

Actions #10

Updated by Ewoud Kohl van Wijngaarden over 6 years ago

Then it's IMHO a bug that yum-config-manager doesn't throw an error about a non-existing repo.

Actions #11

Updated by Ingvar Mattsson over 6 years ago

Ewoud Kohl van Wijngaarden wrote:

Then it's IMHO a bug that yum-config-manager doesn't throw an error about a non-existing repo.

Added the optional repo, rubygem-rake is now installed, installation still fails, but now it MAY be too little memory (I started with a t2.micro, will scratch that and try with a larger instance).

I think it would be good to add a "note, the optional RPMs repo is called ... in AWS" to the quickstart guide.

Actions

Also available in: Atom PDF