CephVersion - command /usr/bin/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
Typical output of the ceph -v
command is:
ceph version 0.94.9-9.el7cp (b83334e01379f267fb2f9ce729d74a0a8fa1e92c)
Note
This module can only be used for Ceph.
Example
>>> ceph_ver = shared[CephVersion]
>>> ceph_ver.version
'1.3.3'
>>> ceph_ver.major
'1.3'
>>> ceph_ver.minor
'3'
-
class
insights.parsers.ceph_version.
CephVersion
(context, extra_bad_lines=[])[source]¶ Bases:
insights.core.CommandParser
Class for parsing the content of
ceph_version
.
-
exception
insights.parsers.ceph_version.
CephVersionError
(message, errors)[source]¶ Bases:
Exception
Exception subclass for errors related to the content data and the CephVersion class.
This exception should not be caught by rules plugins unless it is necessary for the plugin to return a particular answer when a problem occurs with ceph version data. If a plugin catches this exception it must reraise it so that the engine has the opportunity to handle it/log it as necessary.