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:
insights.core.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
-