Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package sca-patterns-sle12 for 
openSUSE:Factory checked in at 2021-06-19 23:04:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sca-patterns-sle12 (Old)
 and      /work/SRC/openSUSE:Factory/.sca-patterns-sle12.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sca-patterns-sle12"

Sat Jun 19 23:04:17 2021 rev:20 rq:900800 version:1.0.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/sca-patterns-sle12/sca-patterns-sle12.changes    
2021-06-11 00:19:46.877432380 +0200
+++ 
/work/SRC/openSUSE:Factory/.sca-patterns-sle12.new.2625/sca-patterns-sle12.changes
  2021-06-19 23:05:00.251853055 +0200
@@ -1,0 +2,11 @@
+Fri Jun 18 17:26:05 UTC 2021 - Jason Record <[email protected]>
+
+- Changes in version 1.0.5
+  - New regular patterns (5)
+    + sle12all/blacklist-000019607.py: System exit to emergency shell at boot 
with multipath enabled (TID000019607)
+    + sle12all/btrfsmaster-000018779.py: BTRFS Master TID
+    + sle12all/sizingbtrfs-000018798.py: How to resize/extend a btrfs 
formatted root partition (TID000018798)
+    + sle12sp3/mpiofindpaths-000019511.py: Using the find_multipaths yes 
option in multipath.conf (bsc#1138452)
+    + sle12sp4/mpiofindpaths-000019511.py: Using the find_multipaths yes 
option in multipath.conf (bsc#1138452)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sca-patterns-sle12-1.0.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/sca-patterns-sle12-1.0.5/patterns/SLE/sle12all/blacklist-000019607.py 
new/sca-patterns-sle12-1.0.5/patterns/SLE/sle12all/blacklist-000019607.py
--- old/sca-patterns-sle12-1.0.5/patterns/SLE/sle12all/blacklist-000019607.py   
1970-01-01 01:00:00.000000000 +0100
+++ new/sca-patterns-sle12-1.0.5/patterns/SLE/sle12all/blacklist-000019607.py   
2021-06-18 18:12:22.296376031 +0200
@@ -0,0 +1,74 @@
+#!/usr/bin/python
+#
+# Title:       Pattern for TID000019607
+# Description: System exit to emergency shell at boot with multipath enabled
+# Source:      Basic Python Pattern Template v0.3.4
+# Options:     SLE,MPIO,Blacklist,blacklist,000019607,0,1,0,0
+# Modified:    2021 Jun 18
+#
+##############################################################################
+# Copyright (C) 2021 SUSE LLC
+##############################################################################
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+#  Authors/Contributors:
+#   Jason Record <[email protected]>
+#
+##############################################################################
+
+import re
+import os
+import Core
+
+META_CLASS = "SLE"
+META_CATEGORY = "MPIO"
+META_COMPONENT = "Blacklist"
+PATTERN_ID = os.path.basename(__file__)
+PRIMARY_LINK = "META_LINK_TID"
+OVERALL = Core.TEMP
+OVERALL_INFO = "NOT SET"
+OTHER_LINKS = "META_LINK_TID=https://www.suse.com/support/kb/doc/?id=000019607";
+Core.init(META_CLASS, META_CATEGORY, META_COMPONENT, PATTERN_ID, PRIMARY_LINK, 
OVERALL, OVERALL_INFO, OTHER_LINKS)
+
+##############################################################################
+# Local Function Definitions
+##############################################################################
+
+def ignoredMaps():
+       fileOpen = "mpio.txt"
+       section = "systemctl status multipathd"
+       content = []
+       map_list = {}
+       IDX_WWID = -2
+       CONFIRMED = re.compile("multipathd.*ignoring map", re.IGNORECASE)
+       # Jun 18 12:51:21 server multipathd[3391]: 
364cd98f0cd0b4200263d647def941d99: ignoring map
+       if Core.isFileActive(fileOpen):
+               if Core.getRegExSection(fileOpen, section, content):
+                       for line in content:
+                               if CONFIRMED.search(line):
+                                       map_list[line.split(':')[IDX_WWID]] = 
True
+       return map_list
+
+##############################################################################
+# Main Program Execution
+##############################################################################
+
+MAPS = ignoredMaps()
+if( len(MAPS) > 0 ):
+       Core.updateStatus(Core.CRIT, "Detected unmapped MPIO devices, consider 
blacklisting: " + ' '.join(MAPS.keys()))
+else:
+       Core.updateStatus(Core.IGNORE, "No MPIO unmapped WWIDs found")
+
+Core.printPatternResults()
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/sca-patterns-sle12-1.0.5/patterns/SLE/sle12all/btrfsmaster-000018779.py 
new/sca-patterns-sle12-1.0.5/patterns/SLE/sle12all/btrfsmaster-000018779.py
--- old/sca-patterns-sle12-1.0.5/patterns/SLE/sle12all/btrfsmaster-000018779.py 
1970-01-01 01:00:00.000000000 +0100
+++ new/sca-patterns-sle12-1.0.5/patterns/SLE/sle12all/btrfsmaster-000018779.py 
2021-06-14 20:09:17.597745062 +0200
@@ -0,0 +1,63 @@
+#!/usr/bin/python
+#
+# Title:       Pattern for Master TID000018779
+# Description: BTRFS Master TID
+# Modified:    2021 Jun 14
+#
+##############################################################################
+# Copyright (C) 2021 SUSE LLC
+##############################################################################
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+#  Authors/Contributors:
+#   Jason Record <[email protected]>
+#
+##############################################################################
+
+import re
+import os
+import Core
+import SUSE
+
+META_CLASS = "SLE"
+META_CATEGORY = "Filesystem"
+META_COMPONENT = "Btrfs"
+PATTERN_ID = os.path.basename(__file__)
+PRIMARY_LINK = "META_LINK_MASTER"
+OVERALL = Core.TEMP
+OVERALL_INFO = "NOT SET"
+OTHER_LINKS = 
"META_LINK_MASTER=https://www.suse.com/support/kb/doc/?id=000018779";
+Core.init(META_CLASS, META_CATEGORY, META_COMPONENT, PATTERN_ID, PRIMARY_LINK, 
OVERALL, OVERALL_INFO, OTHER_LINKS)
+
+
+##############################################################################
+# Main Program Execution
+##############################################################################
+
+BTRFS = False
+FSLIST = SUSE.getFileSystems()
+for FS in FSLIST:
+       if( 'btrfs' in FS['Type'] ):
+               BTRFS = True
+               break
+
+
+if( BTRFS ):
+       Core.updateStatus(Core.REC, "BTRFS Master TID")
+else:
+       Core.updateStatus(Core.ERROR, "ERROR: Btrfs filesystem not found")
+
+
+Core.printPatternResults()
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/sca-patterns-sle12-1.0.5/patterns/SLE/sle12all/sizingbtrfs-000018798.py 
new/sca-patterns-sle12-1.0.5/patterns/SLE/sle12all/sizingbtrfs-000018798.py
--- old/sca-patterns-sle12-1.0.5/patterns/SLE/sle12all/sizingbtrfs-000018798.py 
1970-01-01 01:00:00.000000000 +0100
+++ new/sca-patterns-sle12-1.0.5/patterns/SLE/sle12all/sizingbtrfs-000018798.py 
2021-06-14 20:09:17.597745062 +0200
@@ -0,0 +1,70 @@
+#!/usr/bin/python
+#
+# Title:       Pattern for TID000018798
+# Description: How to resize/extend a btrfs formatted root partition
+# Source:      Basic Python Pattern Template v0.3.4
+# Options:     SLE,Filesystem,Btrfs,sizingbtrfs,000018798,0,1,0,0
+# Modified:    2021 Jun 14
+#
+##############################################################################
+# Copyright (C) 2021 SUSE LLC
+##############################################################################
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+#  Authors/Contributors:
+#   Jason Record <[email protected]>
+#
+##############################################################################
+
+import re
+import os
+import Core
+import SUSE
+
+META_CLASS = "SLE"
+META_CATEGORY = "Filesystem"
+META_COMPONENT = "Btrfs"
+PATTERN_ID = os.path.basename(__file__)
+PRIMARY_LINK = "META_LINK_TID"
+OVERALL = Core.TEMP
+OVERALL_INFO = "NOT SET"
+OTHER_LINKS = 
"META_LINK_TID=https://www.suse.com/support/kb/doc/?id=000018798|META_LINK_MASTER=https://www.suse.com/support/kb/doc/?id=000018779";
+Core.init(META_CLASS, META_CATEGORY, META_COMPONENT, PATTERN_ID, PRIMARY_LINK, 
OVERALL, OVERALL_INFO, OTHER_LINKS)
+
+
+##############################################################################
+# Main Program Execution
+##############################################################################
+
+THRESHOLD = 85
+ROOT_BTRFS = False
+FSLIST = SUSE.getFileSystems()
+for FS in FSLIST:
+       if( FS['MountPoint'] == '/' ):
+               if( 'btrfs' in FS['Type'] ):
+                       ROOT_BTRFS = True
+                       break
+
+
+if( ROOT_BTRFS ):
+       if( FS['PercentUsed'] >= THRESHOLD ):
+               Core.updateStatus(Core.REC, "How to resize Btrfs root 
filesystem if needed")
+       else:
+               Core.updateStatus(Core.IGNORE, "Used space " + 
str(FS['PercentUsed']) + "% less than " + str(THRESHOLD) + "%")
+else:
+       Core.updateStatus(Core.ERROR, "ERROR: Root btrfs filesystem not found")
+
+
+Core.printPatternResults()
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/sca-patterns-sle12-1.0.5/patterns/SLE/sle12sp3/mpiofindpaths-000019511.py 
new/sca-patterns-sle12-1.0.5/patterns/SLE/sle12sp3/mpiofindpaths-000019511.py
--- 
old/sca-patterns-sle12-1.0.5/patterns/SLE/sle12sp3/mpiofindpaths-000019511.py   
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/sca-patterns-sle12-1.0.5/patterns/SLE/sle12sp3/mpiofindpaths-000019511.py   
    2021-06-18 19:13:18.375307569 +0200
@@ -0,0 +1,81 @@
+#!/usr/bin/python
+#
+# Title:       Pattern for TID000019511
+# Description: Using the find_multipaths yes option in multipath.conf
+# Modified:    2021 Jun 18
+#
+##############################################################################
+# Copyright (C) 2021 SUSE LLC
+##############################################################################
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+#  Authors/Contributors:
+#   Jason Record <[email protected]>
+#
+##############################################################################
+
+import re
+import os
+import Core
+
+META_CLASS = "SLE"
+META_CATEGORY = "MPIO"
+META_COMPONENT = "Paths"
+PATTERN_ID = os.path.basename(__file__)
+PRIMARY_LINK = "META_LINK_TID"
+OVERALL = Core.TEMP
+OVERALL_INFO = "NOT SET"
+OTHER_LINKS = 
"META_LINK_TID=https://www.suse.com/support/kb/doc/?id=000019511|META_LINK_BUG=https://bugzilla.suse.com/show_bug.cgi?id=1138452";
+Core.init(META_CLASS, META_CATEGORY, META_COMPONENT, PATTERN_ID, PRIMARY_LINK, 
OVERALL, OVERALL_INFO, OTHER_LINKS)
+
+##############################################################################
+# Local Function Definitions
+##############################################################################
+
+def findMultipaths():
+       fileOpen = "mpio.txt"
+       section = "/multipath.conf"
+       content = []
+       CONFIRMED = re.compile("find_multipaths .*yes", re.IGNORECASE)
+       if Core.isFileActive(fileOpen):
+               if Core.getRegExSection(fileOpen, section, content):
+                       for line in content:
+                               if CONFIRMED.search(line):
+                                       return True
+       return False
+
+def multipathsFound():
+       fileOpen = "mpio.txt"
+       section = "bin/multipath -ll"
+       content = []
+       if Core.getRegExSection(fileOpen, section, content):
+               for line in content:
+                       if( line.startswith('`') ):
+                               return True
+       return False
+
+##############################################################################
+# Main Program Execution
+##############################################################################
+
+if( findMultipaths() ):
+       if( multipathsFound() ):
+               Core.updateStatus(Core.WARN, "Detected find_multipaths setting, 
consider running multipath for new LUNs")
+       else:
+               Core.updateStatus(Core.IGNORE, "No multipath devices found")
+else:
+       Core.updateStatus(Core.ERROR, "ERROR: find_multipaths not configured")
+
+Core.printPatternResults()
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/sca-patterns-sle12-1.0.5/patterns/SLE/sle12sp4/mpiofindpaths-000019511.py 
new/sca-patterns-sle12-1.0.5/patterns/SLE/sle12sp4/mpiofindpaths-000019511.py
--- 
old/sca-patterns-sle12-1.0.5/patterns/SLE/sle12sp4/mpiofindpaths-000019511.py   
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/sca-patterns-sle12-1.0.5/patterns/SLE/sle12sp4/mpiofindpaths-000019511.py   
    2021-06-18 19:13:27.811062244 +0200
@@ -0,0 +1,81 @@
+#!/usr/bin/python
+#
+# Title:       Pattern for TID000019511
+# Description: Using the find_multipaths yes option in multipath.conf
+# Modified:    2021 Jun 18
+#
+##############################################################################
+# Copyright (C) 2021 SUSE LLC
+##############################################################################
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+#  Authors/Contributors:
+#   Jason Record <[email protected]>
+#
+##############################################################################
+
+import re
+import os
+import Core
+
+META_CLASS = "SLE"
+META_CATEGORY = "MPIO"
+META_COMPONENT = "Paths"
+PATTERN_ID = os.path.basename(__file__)
+PRIMARY_LINK = "META_LINK_TID"
+OVERALL = Core.TEMP
+OVERALL_INFO = "NOT SET"
+OTHER_LINKS = 
"META_LINK_TID=https://www.suse.com/support/kb/doc/?id=000019511|META_LINK_BUG=https://bugzilla.suse.com/show_bug.cgi?id=1138452";
+Core.init(META_CLASS, META_CATEGORY, META_COMPONENT, PATTERN_ID, PRIMARY_LINK, 
OVERALL, OVERALL_INFO, OTHER_LINKS)
+
+##############################################################################
+# Local Function Definitions
+##############################################################################
+
+def findMultipaths():
+       fileOpen = "mpio.txt"
+       section = "/multipath.conf"
+       content = []
+       CONFIRMED = re.compile("find_multipaths .*yes", re.IGNORECASE)
+       if Core.isFileActive(fileOpen):
+               if Core.getRegExSection(fileOpen, section, content):
+                       for line in content:
+                               if CONFIRMED.search(line):
+                                       return True
+       return False
+
+def multipathsFound():
+       fileOpen = "mpio.txt"
+       section = "bin/multipath -ll"
+       content = []
+       if Core.getRegExSection(fileOpen, section, content):
+               for line in content:
+                       if( line.startswith('`') ):
+                               return True
+       return False
+
+##############################################################################
+# Main Program Execution
+##############################################################################
+
+if( findMultipaths() ):
+       if( multipathsFound() ):
+               Core.updateStatus(Core.WARN, "Detected find_multipaths setting, 
consider running multipath for new LUNs")
+       else:
+               Core.updateStatus(Core.IGNORE, "No multipath devices found")
+else:
+       Core.updateStatus(Core.ERROR, "ERROR: find_multipaths not configured")
+
+Core.printPatternResults()
+

Reply via email to