Project

General

Profile

Actions

Bug #8654

closed

Parsing /etc/lsb-release for OSD metadata is not portable

Added by Danny Al-Gaaf almost 10 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
OSD
Target version:
-
% Done:

100%

Spent time:
Source:
Community (dev)
Tags:
Backport:
firefly
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Using /etc/lsb-release to get information about the distro is not recommended since it's not portable.

Example: cat /etc/lsb-release (Debian/Ubuntu)

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu Trusty Tahr (development branch)"

Example from SUSE:

LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"

The only portable way to get this info is to use 'lsb_release -a'

Actions

Also available in: Atom PDF