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 1693199

Summary: Use platform-python for bootstrap.py on RHEL8 hosts
Product: Red Hat Satellite Reporter: Stephen Wadeley <swadeley>
Component: BootstrapAssignee: Evgeni Golov <egolov>
Status: CLOSED ERRATA QA Contact: Stephen Wadeley <swadeley>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: zhunting
Target Milestone: ReleasedKeywords: Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 19:57:46 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:

Description Stephen Wadeley 2019-03-27 10:32:26 UTC
Description of problem:

RHEL 8 only has its own system python installed by default under 
usr/libexec/

The bootstrap script will not run if called in the normal ./bootstrap.py way

On a RHEL8 Beta host you can run bootstrap.py as follows:

~#] /usr/libexec/platform-python bootstrap.py

or edit the hash bang line to be #!/usr/libexec/platform-python

Version-Release number of selected component (if applicable):
~]# rpm -q katello-client-bootstrap
katello-client-bootstrap-1.7.1-1.el7sat.noarch



Steps to Reproduce:
1. On a RHEL8 host: curl -O http://sat-6-5.example.com/pub/bootstrap.py
2. ~]# chmod u+x bootstrap.py
3. ~]# /usr/libexec/platform-python bootstrap.py -l admin -s sat-6-5.example.com



Additional info:
It seems that documenting this problem in the built in docs is required as you cannot change the hash bang because bootstrap.py is supplied by Satellite for general use.

Users can of course clone, edit, and rename the script for use on RHEL8 hosts.

Comment 2 Evgeni Golov 2019-03-27 11:30:09 UTC
I agree this should be a docbug, as we cannot provide a version that detects all pythons easily

Comment 3 Stephen Wadeley 2019-03-27 12:56:54 UTC
(In reply to Evgeni Golov from comment #2)
> I agree this should be a docbug, as we cannot provide a version that detects
> all pythons easily

OK, I have made a pull request on the linked issue and will clone this bug for the guides, leaving this one to track cherry-pick to downstream.

Thank you

Comment 5 Stephen Wadeley 2019-03-29 19:14:33 UTC
(In reply to Stephen Wadeley from comment #3)
> (In reply to Evgeni Golov from comment #2)
> > I agree this should be a docbug, as we cannot provide a version that detects
> > all pythons easily
> 
> OK, I have made a pull request on the linked issue and will clone this bug
> for the guides, leaving this one to track cherry-pick to downstream.
> 
> Thank you

sorry, forgot to add link to the bug for the guides (because the clone repo function has been removed, I had created one from scratch, then forgot to paste it back here)


Bug 1693290 - Use platform-python for bootstrap.py on RHEL8 hosts

Comment 6 Evgeni Golov 2019-04-01 13:08:38 UTC
upstream PR is merged → POST

Comment 7 Stephen Wadeley 2019-04-08 15:42:21 UTC
Hello


Testing with latest snap

On Satellite 

[root@sat-6-5-qa-rhel7 ~]# rpm -q katello-client-bootstrap
katello-client-bootstrap-1.7.2-1.el7sat.noarch

[root@sat-6-5-qa-rhel7 ~]# rpm -qd katello-client-bootstrap
/usr/share/doc/katello-client-bootstrap-1.7.2/README.md
/usr/share/doc/katello-client-bootstrap-1.7.2/bootstrap.yml


[root@sat-6-5-qa-rhel7 ~]# grep -r -A4  "RHEL8"  /usr/share/doc/katello-client-bootstrap-1.7.2/README.md
On an EL8 (RHEL8, CentOS8, etc) host, there is no `/usr/bin/python` or `/usr/bin/python3` by default. The `bootstrap.py` script can be used with the `platform-python` as follows:
~~~
# /usr/libexec/platform-python bootstrap.py
~~~
When the `python36` module is installed, `/usr/bin/python3` can also be used.
[root@sat-6-5-qa-rhel7 ~]# 


On a host with bootstrap.py downloaded

[root@rhel8 ~]# grep -r RHEL8 bootstrap.py 
Use `/usr/libexec/platform-python bootstrap.py` on RHEL8


Thank you

Comment 8 Bryan Kearney 2019-05-14 19:57:46 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/RHSA-2019:1222