Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package sca-patterns-sle11 for openSUSE:Factory checked in at 2021-06-19 23:04:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sca-patterns-sle11 (Old) and /work/SRC/openSUSE:Factory/.sca-patterns-sle11.new.2625 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sca-patterns-sle11" Sat Jun 19 23:04:16 2021 rev:14 rq:900798 version:1.3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/sca-patterns-sle11/sca-patterns-sle11.changes 2021-06-04 00:33:36.440893113 +0200 +++ /work/SRC/openSUSE:Factory/.sca-patterns-sle11.new.2625/sca-patterns-sle11.changes 2021-06-19 23:04:59.395851734 +0200 @@ -1,0 +2,8 @@ +Fri Jun 18 17:27:15 UTC 2021 - Jason Record <[email protected]> + +- Changes in version 1.3.3 + - New regular patterns (2) + + sle11all/btrfsmaster-000018779.py: BTRFS Master TID + + sle11all/sizingbtrfs-000018798.py: How to resize/extend a btrfs formatted root partition (TID000018798) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sca-patterns-sle11-1.3.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sca-patterns-sle11-1.3.3/patterns/SLE/sle11all/btrfsmaster-000018779.py new/sca-patterns-sle11-1.3.3/patterns/SLE/sle11all/btrfsmaster-000018779.py --- old/sca-patterns-sle11-1.3.3/patterns/SLE/sle11all/btrfsmaster-000018779.py 1970-01-01 01:00:00.000000000 +0100 +++ new/sca-patterns-sle11-1.3.3/patterns/SLE/sle11all/btrfsmaster-000018779.py 2021-06-14 20:09:46.772980183 +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-sle11-1.3.3/patterns/SLE/sle11all/sizingbtrfs-000018798.py new/sca-patterns-sle11-1.3.3/patterns/SLE/sle11all/sizingbtrfs-000018798.py --- old/sca-patterns-sle11-1.3.3/patterns/SLE/sle11all/sizingbtrfs-000018798.py 1970-01-01 01:00:00.000000000 +0100 +++ new/sca-patterns-sle11-1.3.3/patterns/SLE/sle11all/sizingbtrfs-000018798.py 2021-06-14 20:09:46.772980183 +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() +
