CephVersion - command ceph -v

This module provides plugins access to the Ceph version information gathered from the ceph -v command. This module parses the community version to the Red Hat release version.

The Red Hat Ceph Storage releases and corresponding Ceph package releases are documented in https://access.redhat.com/solutions/2045583

class insights.parsers.ceph_version.CephVersion(context, extra_bad_lines=None)[source]

Bases: CommandParser

Class for parsing the output of command ceph -v.

Typical output of the ceph -v command is:

ceph version 0.94.9-9.el7cp (b83334e01379f267fb2f9ce729d74a0a8fa1e92c)
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

Example

>>> ceph_v.version
'1.3.3'
>>> ceph_v.major
'1.3'
>>> ceph_v.minor
'3'
>>> ceph_v.is_els
False
parse_content(content)[source]

This method must be implemented by classes based on this class.

insights.parsers.ceph_version.get_ceph_version(community_full)[source]

Get the release version from the mapping metrics and generate the upstream_version.

insights.parsers.ceph_version.get_community_version(version_full)[source]

Returns the community version part from the output of ceph -v