Bug #21617
openErrors when running foreman-installer
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
Updated by Ewoud Kohl van Wijngaarden over 7 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?
Updated by Ingvar Mattsson over 7 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
Updated by Ewoud Kohl van Wijngaarden over 7 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?
Updated by Ingvar Mattsson over 7 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.
Updated by Ingvar Mattsson over 7 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-rhThe 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.el7rh-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.el7I 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.
Updated by Ingvar Mattsson over 7 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.
Updated by Evgeni Golov over 7 years ago
can you post the output of "yum repolist" please?
Updated by Ingvar Mattsson over 7 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
Updated by Ingvar Mattsson over 7 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.
Updated by Ewoud Kohl van Wijngaarden over 7 years ago
Then it's IMHO a bug that yum-config-manager doesn't throw an error about a non-existing repo.
Updated by Ingvar Mattsson over 7 years ago
- File rhel74-foreman-2.log rhel74-foreman-2.log added
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.