|
|
6684ba |
diff -uNrp sos-3.7.orig/sos/policies/redhat.py sos-3.7/sos/policies/redhat.py
|
|
|
6684ba |
--- sos-3.7.orig/sos/policies/redhat.py 2020-03-18 00:35:41.357473057 +0000
|
|
|
6684ba |
+++ sos-3.7/sos/policies/redhat.py 2020-03-18 00:37:31.569721326 +0000
|
|
|
6684ba |
@@ -31,9 +31,9 @@ OS_RELEASE = "/etc/os-release"
|
|
|
d97fd4 |
|
|
|
d97fd4 |
|
|
|
d97fd4 |
class RedHatPolicy(LinuxPolicy):
|
|
|
d97fd4 |
- distro = "Red Hat"
|
|
|
d97fd4 |
- vendor = "Red Hat"
|
|
|
d97fd4 |
- vendor_url = "http://www.redhat.com/"
|
|
|
d97fd4 |
+ distro = "CentOS"
|
|
|
d97fd4 |
+ vendor = "CentOS"
|
|
|
d97fd4 |
+ vendor_url = "http://www,centos.org/"
|
|
|
d97fd4 |
_redhat_release = '/etc/redhat-release'
|
|
|
d97fd4 |
_tmp_dir = "/var/tmp"
|
|
|
d97fd4 |
_rpmq_cmd = 'rpm -qa --queryformat "%{NAME}|%{VERSION}|%{RELEASE}\\n"'
|
|
|
d97fd4 |
@@ -92,9 +92,9 @@ class RedHatPolicy(LinuxPolicy):
|
|
|
d97fd4 |
|
|
|
d97fd4 |
@classmethod
|
|
|
d97fd4 |
def check(cls):
|
|
|
d97fd4 |
- """This method checks to see if we are running on Red Hat. It must be
|
|
|
d97fd4 |
+ """This method checks to see if we are running on CentOS. It must be
|
|
|
d97fd4 |
overriden by concrete subclasses to return True when running on a
|
|
|
d97fd4 |
- Fedora, RHEL or other Red Hat distribution or False otherwise."""
|
|
|
d97fd4 |
+ Fedora, RHEL or CentOS distribution or False otherwise."""
|
|
|
d97fd4 |
return False
|
|
|
d97fd4 |
|
|
|
d97fd4 |
def check_usrmove(self, pkgs):
|
|
|
d97fd4 |
@@ -185,7 +185,7 @@ class RedHatPolicy(LinuxPolicy):
|
|
|
d97fd4 |
return self.host_name()
|
|
|
d97fd4 |
|
|
|
d97fd4 |
|
|
|
d97fd4 |
-# Container environment variables on Red Hat systems.
|
|
|
d97fd4 |
+# Container environment variables on CentOS systems.
|
|
|
d97fd4 |
ENV_CONTAINER = 'container'
|
|
|
d97fd4 |
ENV_HOST_SYSROOT = 'HOST'
|
|
|
d97fd4 |
|
|
|
6684ba |
@@ -196,7 +196,7 @@ _cb_plugs = ['abrt', 'block', 'boot', 'd
|
|
|
6684ba |
'hardware', 'host', 'kernel', 'logs', 'lvm2', 'memory', 'rpm',
|
|
|
6684ba |
'process', 'systemd', 'yum', 'xfs']
|
|
|
6684ba |
|
|
|
6684ba |
-RHEL_RELEASE_STR = "Red Hat Enterprise Linux"
|
|
|
6684ba |
+RHEL_RELEASE_STR = "CentOS Linux"
|
|
|
6684ba |
|
|
|
6684ba |
RHV = "rhv"
|
|
|
6684ba |
RHV_DESC = "Red Hat Virtualization"
|
|
|
6684ba |
@@ -205,17 +205,17 @@ RHEL = "rhel"
|
|
|
6684ba |
RHEL_DESC = RHEL_RELEASE_STR
|
|
|
6684ba |
|
|
|
6684ba |
RHOSP = "rhosp"
|
|
|
6684ba |
-RHOSP_DESC = "Red Hat OpenStack Platform"
|
|
|
6684ba |
+RHOSP_DESC = "RDO"
|
|
|
6684ba |
RHOSP_OPTS = SoSOptions(plugopts=[
|
|
|
6684ba |
'process.lsof=off',
|
|
|
6684ba |
'networking.ethtool_namespaces=False',
|
|
|
6684ba |
'networking.namespaces=200'])
|
|
|
6684ba |
|
|
|
6684ba |
RHOCP = "ocp"
|
|
|
6684ba |
-RHOCP_DESC = "OpenShift Container Platform by Red Hat"
|
|
|
6684ba |
+RHOCP_DESC = "OpenShift"
|
|
|
6684ba |
|
|
|
6684ba |
RH_SATELLITE = "satellite"
|
|
|
6684ba |
-RH_SATELLITE_DESC = "Red Hat Satellite"
|
|
|
6684ba |
+RH_SATELLITE_DESC = "Satellite"
|
|
|
6684ba |
SAT_OPTS = SoSOptions(verify=True, plugopts=['apache.log=on'])
|
|
|
6684ba |
|
|
|
6684ba |
CB = "cantboot"
|
|
|
6684ba |
@@ -253,9 +253,9 @@ No changes will be made to system config
|
|
|
d97fd4 |
|
|
|
d97fd4 |
|
|
|
d97fd4 |
class RHELPolicy(RedHatPolicy):
|
|
|
d97fd4 |
- distro = RHEL_RELEASE_STR
|
|
|
d97fd4 |
- vendor = "Red Hat"
|
|
|
d97fd4 |
- vendor_url = "https://access.redhat.com/support/"
|
|
|
d97fd4 |
+ distro = "CentOS Linux"
|
|
|
d97fd4 |
+ vendor = "CentOS"
|
|
|
d97fd4 |
+ vendor_url = "https://wiki.centos.org/"
|
|
|
d97fd4 |
msg = _("""\
|
|
|
d97fd4 |
This command will collect diagnostic and configuration \
|
|
|
d97fd4 |
information from this %(distro)s system and installed \
|
|
|
6684ba |
@@ -274,7 +274,7 @@ support representative.
|
|
|
d97fd4 |
def check(cls):
|
|
|
d97fd4 |
"""Test to see if the running host is a RHEL installation.
|
|
|
d97fd4 |
|
|
|
d97fd4 |
- Checks for the presence of the "Red Hat Enterprise Linux"
|
|
|
d97fd4 |
+ Checks for the presence of the "CentOS Linux"
|
|
|
d97fd4 |
release string at the beginning of the NAME field in the
|
|
|
d97fd4 |
`/etc/os-release` file and returns ``True`` if it is
|
|
|
d97fd4 |
found, and ``False`` otherwise.
|
|
|
6684ba |
@@ -343,7 +343,7 @@ class CentOsPolicy(RHELPolicy):
|
|
|
d97fd4 |
|
|
|
d97fd4 |
ATOMIC = "atomic"
|
|
|
d97fd4 |
ATOMIC_RELEASE_STR = "Atomic"
|
|
|
d97fd4 |
-ATOMIC_DESC = "Red Hat Enterprise Linux Atomic Host"
|
|
|
d97fd4 |
+ATOMIC_DESC = "CentOS Linux Atomic Host"
|
|
|
d97fd4 |
|
|
|
d97fd4 |
atomic_presets = {
|
|
|
d97fd4 |
ATOMIC: PresetDefaults(name=ATOMIC, desc=ATOMIC_DESC, note=NOTE_TIME,
|
|
|
6684ba |
@@ -352,7 +352,7 @@ atomic_presets = {
|
|
|
d97fd4 |
|
|
|
d97fd4 |
|
|
|
d97fd4 |
class RedHatAtomicPolicy(RHELPolicy):
|
|
|
d97fd4 |
- distro = "Red Hat Atomic Host"
|
|
|
d97fd4 |
+ distro = "CentOS Atomic Host"
|
|
|
d97fd4 |
msg = _("""\
|
|
|
d97fd4 |
This command will collect diagnostic and configuration \
|
|
|
d97fd4 |
information from this %(distro)s system.
|