Ceph Version

Combiner for Ceph Version information. It uses the results of the CephVersion, CephInsights and CephReport parsers. The order from most preferred to least preferred is CephVersion`, CephInsights, CephReport.

class insights.combiners.ceph_version.CephVersion(cv, ci, cr)[source]

Bases: object

Combiner for Ceph Version information. It uses the results of the CephVersion, CephInsights and CephReport parsers.

The prefered parsing order is CephVersion`, CephInsights, CephReport.

version

The Red Hat release version

Type:

str

major

The major version of Red Hat release version

Type:

str

minor

The minor version of Red Hat release version

Type:

str

is_els

If the verion in ‘Extended life cycle support (ELS) add-on’ phase

Type:

boolean

downstream_release

The downstream release info

Type:

str

upstream_version

The detailed upstream version info with the following keys release (int), major (int) and minor (int).

Type:

dict

Examples

>>> type(cv)
<class 'insights.combiners.ceph_version.CephVersion'>
>>> cv.version
'3.2'
>>> cv.major
'3'
>>> cv.minor
'2'
>>> cv.is_els
False
>>> cv.downstream_release
'0'
>>> cv.upstream_version["release"]
12
>>> cv.upstream_version["major"]
2
>>> cv.upstream_version["minor"]
8