Project

General

Profile

Actions

Bug #30040

closed

Foreman proxy realm plugin missing xmlrpc -- needs to install rh-ruby25-rubygem-xmlrpc

Added by Adam Fairhall almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
RPMs
Target version:
-

Description

Description

Description of problem: With a fresh install of foreman 2.0 on Centos 7 using centos-release-scl, when setting up a freeipa realm, the proxy.log had the following error
[E] Disabling all modules in the group ['realm_freeipa', 'realm'] due to a failure in one of them: Gem loading error: cannot load such file -- xmlrpc

The problem is that foreman-proxy doesn't have the rights on the directory to download the gem and it isn't already present.

Version-Release number of selected component (if applicable): Version 2.0

Steps to reproduce.
These are my build instructions
1. Clean Centos install
2. Install repos

sudo yum -y install epel-release centos-release-scl
sudo yum -y install https://yum.puppet.com/puppet6-release-el-7.noarch.rpm
sudo yum -y install https://yum.theforeman.org/releases/2.0/el7/x86_64/foreman-release.rpm

3. Open firewall
sudo firewall-cmd --permanent --add-service https
sudo firewall-cmd --permanent --add-service http
sudo firewall-cmd --permanent --add-service puppetmaster
sudo firewall-cmd --permanent --add-service dhcp
sudo firewall-cmd --permanent --add-service tftp
sudo firewall-cmd --reload

4. Install base foreman
sudo foreman-installer \
    --foreman-proxy-dhcp=true \
    --foreman-proxy-dhcp-config=/etc/dhcp/dhcpd.conf \
    --foreman-proxy-dhcp-leases=/var/lib/dhcpd/dhcpd.leases \
    --foreman-proxy-dhcp-key-name=omapi-key \
    --foreman-proxy-dhcp-key-secret=$OMAPI_SECRET \
    --foreman-proxy-dhcp-server=foreman.example.com \
    --foreman-proxy-dhcp-interface=ens192 \
    --foreman-proxy-dhcp-gateway=192.168.1.1 \
    --foreman-proxy-dhcp-range="192.168.1.100 192.168.11.199" \
    --foreman-proxy-dhcp-nameservers="192.168.1.11" \
    --foreman-proxy-http=true \
    --enable-foreman-plugin-openscap \
    --enable-foreman-proxy-plugin-openscap \
    --enable-foreman-cli-openscap

5. Prepare realm
cd /etc/foreman-proxy
sudo foreman-prepare-realm admin realm-proxy@EXAMPLE.COM
<password prompt for admin>
sudo chown foreman-proxy: freeipa.keytab

6. Configure realm in foreman
sudo foreman-installer \
    --foreman-proxy-realm=true \
    --foreman-proxy-realm-principal=realm-proxy@EXAMPLE.COM

Actual Results: This fails saying to look at the proxy.log for detail of the failure. The proxy log has the error
[E] Disabling all modules in the group ['realm_freeipa', 'realm'] due to a failure in one of them: Gem loading error: cannot load such file -- xmlrpc

Expected Results: The foreman-installer completes successfully

Additional Info: I have found a work around

sudo scl enable tfm bash
gem install xmlrpc
exit


Related issues 2 (0 open2 closed)

Related to Installer - Bug #28964: Foreman proxy realm plugin missing xmlrpc -- needs to install rh-ruby25-rubygem-xmlrpcDuplicateActions
Has duplicate Smart Proxy - Bug #30035: Enabling Realm proxy on Foreman host requires manual gem installationDuplicateActions
Actions #1

Updated by Lukas Zapletal almost 4 years ago

  • Category deleted (Realm)
  • Project changed from Foreman to Installer
Actions #2

Updated by Ewoud Kohl van Wijngaarden almost 4 years ago

  • Project changed from Installer to Packaging
  • Category set to RPMs

IMHO this should be fixed in packaging.

Actions #3

Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ewoud Kohl van Wijngaarden
  • Pull request https://github.com/theforeman/foreman-packaging/pull/5483 added
Actions #4

Updated by The Foreman Bot almost 4 years ago

  • Fixed in Releases 2.2.0 added
Actions #5

Updated by Ewoud Kohl van Wijngaarden almost 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/5500 added
Actions #7

Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/5503 added
Actions #8

Updated by Ewoud Kohl van Wijngaarden almost 4 years ago

  • Fixed in Releases 2.0.2, 2.1.0 added
  • Fixed in Releases deleted (2.2.0)

The problem is a missing dependency on xmlrpc. A better workaround is yum install tfm-rubygem-xmlrpc.

Actions #9

Updated by Ewoud Kohl van Wijngaarden almost 4 years ago

  • Triaged changed from No to Yes

This is already built in koji as 2.0.1-2: http://koji.katello.org/koji/buildinfo?buildID=59656

Actions #10

Updated by Ewoud Kohl van Wijngaarden over 3 years ago

  • Related to Bug #28964: Foreman proxy realm plugin missing xmlrpc -- needs to install rh-ruby25-rubygem-xmlrpc added
Actions #11

Updated by Ewoud Kohl van Wijngaarden over 3 years ago

  • Subject changed from Centos Foreman 2.0 new install can't download xmlrpc to Foreman proxy realm plugin missing xmlrpc -- needs to install rh-ruby25-rubygem-xmlrpc

Updating the subject to the one in #28964 since that's clearer.

Actions #12

Updated by Ondřej Ezr over 3 years ago

  • Has duplicate Bug #30035: Enabling Realm proxy on Foreman host requires manual gem installation added
Actions

Also available in: Atom PDF