Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1380783

Summary: [RFE] bootstrap.py: backport --rex to Satellite 6.2.x
Product: Red Hat Satellite Reporter: François Cami <fcami>
Component: BootstrapAssignee: Rich Jerrido <rjerrido>
Status: CLOSED ERRATA QA Contact: Sanket Jagtap <sjagtap>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.3CC: bbuckingham, egolov, greartes, jcallaha, sjagtap, zhunting
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-client-bootstrap-1.2.0-4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1394391 (view as bug list) Environment:
Last Closed: 2016-12-12 17:14:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1394391    

Description François Cami 2016-09-30 14:30:47 UTC
Description of problem:
bootstrap.py does not install Foreman's SSH remote execution key.

Version-Release number of selected component (if applicable):
katello-client-bootstrap-1.1.0-2.el7sat

How reproducible:
Always

Steps to Reproduce:
1. register a client with bootstrap.py


Actual results:
No key in /root/.ssh/authorized_keys

Expected results:
Foreman's key there


Additional info:
upstream commit:
https://github.com/Katello/katello-client-bootstrap/commit/564dede32d8baa3c7b8647dcecbb52c060682adf

Comment 1 Rich Jerrido 2016-10-31 17:38:59 UTC
Moving to POST as patch is available upstream.

Comment 2 Sanket Jagtap 2016-12-02 12:32:53 UTC
Build: Satellite 6.2.5 snap 1

Registered a client with bootstrap.py script.

Log:

Complete!
[SUCCESS], [2016-12-02 06:37:09], [/usr/bin/yum -y remove rhn-setup rhn-client-tools yum-rhn-plugin rhnsd rhn-check rhnlib spacewalk-abrt spacewalk-oscap osad 'rh-*-rhui-client'], completed successfully.

[NOTIFICATION], [2016-12-02 06:37:09], [Foreman's SSH key was added to /root/.ssh/authorized_keys]

cat .ssh/authorized_keys
ssh-rsa xxy.................................................................................................................................... foreman-proxy

Key was added successfully.

Comment 3 errata-xmlrpc 2016-12-12 17:14:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:2940