Hello community, here is the log from the commit of package sca-patterns-sle12 for openSUSE:Factory checked in at 2019-02-01 11:46:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sca-patterns-sle12 (Old) and /work/SRC/openSUSE:Factory/.sca-patterns-sle12.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sca-patterns-sle12" Fri Feb 1 11:46:27 2019 rev:7 rq:670139 version:1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/sca-patterns-sle12/sca-patterns-sle12.changes 2018-07-06 10:43:08.255173200 +0200 +++ /work/SRC/openSUSE:Factory/.sca-patterns-sle12.new.28833/sca-patterns-sle12.changes 2019-02-01 11:46:34.672482702 +0100 @@ -1,0 +2,8 @@ +Thu Dec 20 18:45:58 UTC 2018 - [email protected] + +- System panic in update_group_capacity() due to a divide error (bsc#1096254) + Pattern: cron-7023601.py +- Expected cron daemon behavior change from SLES11 to SLES12 (bsc#1017160) + Pattern: panic-7023575.py + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sca-patterns-sle12.spec ++++++ --- /var/tmp/diff_new_pack.fYO7SY/_old 2019-02-01 11:46:35.176482185 +0100 +++ /var/tmp/diff_new_pack.fYO7SY/_new 2019-02-01 11:46:35.180482181 +0100 @@ -1,7 +1,7 @@ # # spec file for package sca-patterns-sle12 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed ++++++ sca-patterns-sle12-1.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sca-patterns-sle12-1.0/patterns/SLE/sle12all/cron-7023601.py new/sca-patterns-sle12-1.0/patterns/SLE/sle12all/cron-7023601.py --- old/sca-patterns-sle12-1.0/patterns/SLE/sle12all/cron-7023601.py 1970-01-01 01:00:00.000000000 +0100 +++ new/sca-patterns-sle12-1.0/patterns/SLE/sle12all/cron-7023601.py 2018-12-20 19:40:47.417540545 +0100 @@ -0,0 +1,96 @@ +#!/usr/bin/python + +# Title: Check for multiple cron processes +# Description: Expected cron daemon behavior change from SLES11 to SLES12 +# Modified: 2018 Dec 20 +# +############################################################################## +# Copyright (C) 2018 SUSE +############################################################################## +# +# 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]> +# +############################################################################## + +############################################################################## +# Module Definition +############################################################################## + +import os +import Core +import SUSE + +############################################################################## +# Overriden (eventually or in part) from SDP::Core Module +############################################################################## + +META_CLASS = "SLE" +META_CATEGORY = "Basesystem" +META_COMPONENT = "Cron" +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=7023601|META_LINK_BUG=https://bugzilla.suse.com/show_bug.cgi?id=1017160" + +Core.init(META_CLASS, META_CATEGORY, META_COMPONENT, PATTERN_ID, PRIMARY_LINK, OVERALL, OVERALL_INFO, OTHER_LINKS) + +############################################################################## +# Local Function Definitions +############################################################################## + +def multipleCrons(): + FILE_OPEN = "basic-health-check.txt" + SECTION = "ps axwwo" + CONTENT = [] + CRONS = 0 + if Core.getRegExSection(FILE_OPEN, SECTION, CONTENT): + for LINE in CONTENT: + if "cron" in LINE: + CRONS += 1 + if( CRONS > 1 ): + return True + return False + +############################################################################## +# Main Program Execution +############################################################################## + +if( SUSE.packageInstalled('cronie') ): + if( SUSE.packageInstalled('cron') ): + CRONIE_VERSION = SUSE.compareRPM('cronie', '1.4.11-59') + CRON_VERSION = SUSE.compareRPM('cron', '4.2-59') + if( CRONIE_VERSION < 0 ): + if( CRON_VERSION < 0 ): + if( multipleCrons() ): + Core.updateStatus(Core.CRIT, "Multiple instances of cron running, update system to resolve") + else: + Core.updateStatus(Core.WARN, "Multiple instances of cron will incorrectly be allowed to run, update system to avoid") + else: + Core.updateStatus(Core.WARN, "Both cronie and cron packages should be updated together") + else: + if( CRON_VERSION < 0 ): + Core.updateStatus(Core.WARN, "Both cronie and cron packages should be updated together") + else: + Core.updateStatus(Core.IGNORE, "Updated cronie and cron packages avoid bsc#1017160") + else: + Core.updateStatus(Core.ERROR, "ERROR: RPM package not installed: cron") +else: + Core.updateStatus(Core.ERROR, "ERROR: RPM package not installed: cronie") + +Core.printPatternResults() + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sca-patterns-sle12-1.0/patterns/SLE/sle12sp3/panic-7023575.py new/sca-patterns-sle12-1.0/patterns/SLE/sle12sp3/panic-7023575.py --- old/sca-patterns-sle12-1.0/patterns/SLE/sle12sp3/panic-7023575.py 1970-01-01 01:00:00.000000000 +0100 +++ new/sca-patterns-sle12-1.0/patterns/SLE/sle12sp3/panic-7023575.py 2018-12-13 22:41:24.615815584 +0100 @@ -0,0 +1,91 @@ +#!/usr/bin/python + +# Title: Check update_group_capacity on SLES12 SP3 +# Description: System panic in update_group_capacity() due to a divide error +# Modified: 2018 Dec 13 +# +############################################################################## +# Copyright (C) 2018 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]> +# +############################################################################## + +############################################################################## +# Module Definition +############################################################################## + +import os +import re +import Core +import SUSE + +############################################################################## +# Overriden (eventually or in part) from SDP::Core Module +############################################################################## + +META_CLASS = "SLE" +META_CATEGORY = "Kernel" +META_COMPONENT = "Panic" +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=7023575|META_LINK_BUG=https://bugzilla.suse.com/show_bug.cgi?id=1096254" + +Core.init(META_CLASS, META_CATEGORY, META_COMPONENT, PATTERN_ID, PRIMARY_LINK, OVERALL, OVERALL_INFO, OTHER_LINKS) + +############################################################################## +# Local Function Definitions +############################################################################## + +def panicDetected(): + PANIC = re.compile("exception RIP.*update_group_capacity", re.IGNORECASE) + FILE_OPEN = "boot.txt" + SECTION = "dmesg" + CONTENT = [] + if Core.getRegExSection(FILE_OPEN, SECTION, CONTENT): + for LINE in CONTENT: + if PANIC.search(LINE): + return True + + FILE_OPEN = "messages.txt" + SECTION = "/var/log/warn" + CONTENT = [] + if Core.getRegExSection(FILE_OPEN, SECTION, CONTENT): + for LINE in CONTENT: + if PANIC.search(LINE): + return True + return False + +############################################################################## +# Main Program Execution +############################################################################## + +KERNEL_VERSION = '4.4.155-94.50' +INSTALLED_VERSION = SUSE.compareKernel(KERNEL_VERSION) +if( INSTALLED_VERSION < 0 ): + if( panicDetected() ): + Core.updateStatus(Core.CRIT, "A system panic from update_group_capacity detected, update system to resolve") + else: + Core.updateStatus(Core.WARN, "System panic may result from benmarks, update system to avoid") +else: + Core.updateStatus(Core.IGNORE, "Kernel version is sufficient to avoid update_group_capacity panic") + +Core.printPatternResults() + +
