Bug 1402240 - unable to install remote execution plugin to external capsule
Summary: unable to install remote execution plugin to external capsule
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installer
Version: 6.2.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-07 06:25 UTC by Jan Hutař
Modified: 2016-12-13 14:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-08 17:25:23 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jan Hutař 2016-12-07 06:25:21 UTC
Description of problem:
I'm unable to install remote execution plugin to external capsule and it is not just a matter of unclear options you can pass to installer. There is also some package dependency issues.


Version-Release number of selected component (if applicable):
satellite-capsule-6.2.4-1.0.el7sat.noarch
Installing from repo synced from CDN just few minutes ago


How reproducible:
always


Steps to Reproduce:
1. Install Satellite 6.2.4 from CDN, sync RHEL and Capsule repos (all at RHEL7)
2. Install capsule with command generated with `capsule-certs-generate`
3. Rerun the command with "--foreman-proxy-plugin-remote-execution-ssh-enabled true --foreman-proxy-plugin-remote-execution-ssh-generate-keys true"
4. Rerun the command with "--enable-foreman-proxy-plugin-remote-execution-ssh" or "--foreman-proxy-plugin-remote-execution-ssh-enabled true"


Actual results:
In step 3, it has no effect. It is very confusing why not.

In step 4, both varians have same effect. Again, it is confusing to have 2 (or 3) different options for one functionality (i.e. installing the plugin).

But core of the problem is that commands from 4 ends with "Something went wrong!". Also manual yum install fails with dependency issues


Expected results:
Remote execution plugin should be installable

Comment 7 Stephen Benjamin 2016-12-08 17:25:23 UTC
Indeed, the options are confusing.

This:

 --foreman-proxy-plugin-remote-execution-ssh-enabled true 

sets the "enabled" option in /etc/foreman-proxy/settings.d/remote_execution_ssh.yml file.  That's already the default, this setting is used when you want the plugin to be installed, but just to temporarily disable it.

The only option you want is only "--enable-foreman-proxy-plugin-remote-execution-ssh", which actually installs and configures the package.

In 6.3, we make this more clear by only making the relevant option visible to the user.  That was part of BZ1124553, although we're still looking at a better solution.


Once you used the right installer setting, the source of the problem is in the capsule.log:


[ERROR 2016-12-07 01:26:55 main]  Execution of '/usr/bin/yum -d 0 -e 0 -y install tfm-rubygem-smart_proxy_remote_execution_ssh_core' returned 1: Error: Package: tfm-rubygem-apipie-params-0.0.5-2.el7sat.noarch (rhel-7-server-satellite-capsule-6.2-rpms)
[ INFO 2016-12-07 01:26:55 main]            Requires: rh-ruby22-ruby(rubygems)


For REX, the capsule needs SCL, see Section 4.3:
https://access.redhat.com/documentation/en/red-hat-satellite/6.2/paged/installation-guide/chapter-4-installing-capsule-server


Note You need to log in before you can comment on or make changes to this bug.