Bug 1007140

Summary: python (2.7) cannot identify the opensuse tumbelweed distribution
Product: [openSUSE] openSUSE Tumbleweed Reporter: Forgotten User l1MoexVUtJ <forgotten_l1MoexVUtJ>
Component: DevelopmentAssignee: Jan Matejek <jmatejek>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User l1MoexVUtJ 2016-10-27 01:20:08 UTC
In my tumbleweed install there is a file `/etc/SUSE-brand` but no `/etc/SuSE-release`. The latter is used by python 2.7 at least to identify the distribution python is running on. For example:
$ python
Python 2.7.12 (default, Jun 28 2016, 06:57:42) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.linux_distribution()
('', '', '')

If I link SUSE-brand to SuSE-release:
$  python
Python 2.7.12 (default, Jun 28 2016, 06:57:42) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.linux_distribution()
('SuSE', 'openSUSE', '')

This is important for software like cobbler (for which there is a rpm in tumbleweed, did anyone even test that it could be started?), which relies on this particular call as well as the SuSE-release file presence to identify the right default for the service (such as what is the apache2 user).
Comment 1 Jan Matejek 2017-03-29 11:56:41 UTC
known problem

*** This bug has been marked as a duplicate of bug 997614 ***