Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1689875 - LSB requirement regarding to python and it's location
Summary: LSB requirement regarding to python and it's location
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rhel-guest-image
Version: ---
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 8.0
Assignee: Rick Barry
QA Contact: Virtualization Bugs
Depends On:
TreeView+ depends on / blocked
Reported: 2019-03-18 10:50 UTC by Attila Fazekas
Modified: 2019-04-09 19:36 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

Description Attila Fazekas 2019-03-18 10:50:59 UTC
LSB states python must exists in all standard distribution and it must be located at /usr/bin/python .

FHS forbids me to directly /usr/libexec/platform-python ,
anything in libexec should not be used directly by the administrator.

LSB 4.0 is pretty old, so it requires ~4 python library which was removed by 
python3, but not having any version of python /usr/bin is a bigger violation of the standard.

Reasonable to expect the future version of LSB will be adjusted to python3.

If python 4.0 ever comes, it was promised to be not being huge change,
python will be versioned similar to the Linux kernel,
where the major version does not means much.

We cannot ask popular python configurator users (like ansible)
 to use /usr/libexec/platform-python or to install any package before an ansible run.

So /usr/bin/python3 MUST be on the image at the beginning.

Theoretically administrators could make /usr/bin/python symbolic link,
but again it is an area managed by the distributor .

The symbolic link must be managed by packages or tools designed for that
 and provided by the distributor.

For example:
$ alternatives  --set python /usr/bin/python3

So please include python36 into the guest image base package set,
and run  `alternatives  --set python /usr/bin/python3`
 or equivalent at image build time.

Comment 4 Rick Barry 2019-04-09 17:14:27 UTC
The basic requirement as I understand from the bug description:

  - Build rhel-guest-image with python3 pre-installed for RHEL 8
  - Make python3 the default python version

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