Satellite Version
The following modules are included:
SatelliteVersion - Version of Satellite Server
Combiner to get Satellite Server version information.
CapsuleVersion - Version of Satellite Capsule (>=6.2)
Combiner to get Satellite Capsule version information. ONLY Satellite Capsule 6.2 and newer are supported.
- class insights.combiners.satellite_version.CapsuleVersion(rpms, sat_server)[source]
Bases:
object
Check the parser
insights.parsers.installed_rpms.InstalledRpms
for satellite capsule version information.Note
ONLY Satellite Capsule 6.2 and newer are supported.
Below is the logic to determine the satellite version:
Check the version of satellite/satellite-capsule directly: - https://access.redhat.com/solutions/1392633 Sat 6.0.x Sat 6.1.x Sat 6.2.x satellite-capsule - - 6.2.x
- full
the full version format like version-release.
- Type:
str
- version
the satellite version do not includes release.
- Type:
str
- release
the release string in the version.
- Type:
str
- major
the major version.
- Type:
int
- minor
the minor version.
- Type:
int
- Raises:
SkipComponent -- When it’s not a Satellite Capsule machine or the Satellite Capsule version cannot be determined according to current information.
Examples
>>> cap_ver.full == 'satellite-capsule-6.2.0.11-1.el7sat' True >>> cap_ver.major 6 >>> cap_ver.minor 2 >>> cap_ver.version '6.2.0.11' >>> cap_ver.release '1.el7sat'
- class insights.combiners.satellite_version.SatelliteVersion(rpms, sat6_ver)[source]
Bases:
object
Check the parsers
insights.parsers.satellite_version.Satellite6Version
andinsights.parsers.installed_rpms.InstalledRpms
for satellite version information.Below is the logic to determine the satellite version:
1. For Satellite 6.1: a. Check the version information in below files at first - https://access.redhat.com/solutions/1392633 File: /usr/share/foreman/lib/satellite/version.rb b. Check the version of package foreman, candlepin and katello, E.g. - https://access.redhat.com/articles/1343683 Sat 6.0.8 Sat 6.1.10 Sat 6.1.11 foreman 1.6.0.53 1.7.2.61 1.7.2.62 candlepin 0.9.23 0.9.49.16 0.9.49.19 katello 1.5.0 2.2.0 2.2.0 2. For Satellite 6.2 and newer: Check the version of satellite package directly: - https://access.redhat.com/solutions/1392633 Sat 6.0.x Sat 6.1.x Sat 6.2.x satellite - - 6.2.x 3. For Satellite 5.x - https://access.redhat.com/solutions/1224043 NOTE: Because of satellite-branding is not deployed in Satellite 5.0~5.2, and satellite-schema can also be used for checking the version, here checked satellite-schema instead of satellite-branding. Check the version of package satellite-schema directly: Sat 5.0~5.2 Sat 5.3 ~ rhn-satellite-schema ok - satellite-schema - ok
- full
the full version format like version-release.
- Type:
str
- version
the satellite version do not includes release.
- Type:
str
- release
the release string in the version.
- Type:
str
- major
the major version.
- Type:
int
- minor
the minor version.
- Type:
int
- Raises:
SkipComponent -- When it’s not a Satellite machine or the Satellite version cannot be determined according to current information.
Examples
>>> sat_ver.full == 'satellite-6.2.0.11-1.el7sat' True >>> sat_ver.major 6 >>> sat_ver.minor 2 >>> sat_ver.version '6.2.0.11' >>> sat_ver.release '1.el7sat'