Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package supportutils for openSUSE:Factory 
checked in at 2022-01-11 21:19:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/supportutils (Old)
 and      /work/SRC/openSUSE:Factory/.supportutils.new.1892 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "supportutils"

Tue Jan 11 21:19:43 2022 rev:29 rq:945433 version:3.1.19

Changes:
--------
--- /work/SRC/openSUSE:Factory/supportutils/supportutils.changes        
2021-10-12 21:50:37.439980863 +0200
+++ /work/SRC/openSUSE:Factory/.supportutils.new.1892/supportutils.changes      
2022-01-11 21:23:55.945155608 +0100
@@ -1,0 +2,23 @@
+Mon Jan 10 22:35:23 UTC 2022 - Jason Record <jason.rec...@suse.com>
+
+- Changes to version 3.1.19
+  + Made /proc directory and network names spaces configurable (bsc#1193868)
+
+-------------------------------------------------------------------
+Wed Dec 15 13:28:40 UTC 2021 - Jason Record <jason.rec...@suse.com>
+
+- Changes to version 3.1.19
+  + Removed chronyc DNS lookups with -n switch (bsc#1193732)
+
+-------------------------------------------------------------------
+Wed Nov 17 13:56:16 UTC 2021 - Jason Record <jason.rec...@suse.com>
+
+- Merged Include udev rules in /lib/udev/rules.d/ #113
+- Merged Move localmessage/warm logs out of messages.txt to new localwarn.txt 
#87
+
+-------------------------------------------------------------------
+Mon Oct 18 21:20:28 UTC 2021 - Jason Record <jason.rec...@suse.com>
+
+- getappcore identifies compressed core files (bsc#1191794)
+
+-------------------------------------------------------------------

Old:
----
  supportutils-3.1.18.tar.gz

New:
----
  supportutils-3.1.19.tar.gz

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

Other differences:
------------------
++++++ supportutils.spec ++++++
--- /var/tmp/diff_new_pack.EhPk22/_old  2022-01-11 21:23:56.505156002 +0100
+++ /var/tmp/diff_new_pack.EhPk22/_new  2022-01-11 21:23:56.505156002 +0100
@@ -19,7 +19,7 @@
 %define support_libdir /usr/lib/supportconfig
 
 Name:           supportutils
-Version:        3.1.18
+Version:        3.1.19
 Release:        0
 Summary:        Support Troubleshooting Tools
 License:        GPL-2.0-only

++++++ supportutils-3.1.18.tar.gz -> supportutils-3.1.19.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/supportutils-3.1.18/bin/getappcore 
new/supportutils-3.1.19/bin/getappcore
--- old/supportutils-3.1.18/bin/getappcore      2021-10-04 18:04:26.983112781 
+0200
+++ new/supportutils-3.1.19/bin/getappcore      2021-11-16 16:45:51.539833173 
+0100
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-SVER='1.52.10'
-SDATE="2021 10 02"
+SVER='1.53.01'
+SDATE="2021 10 18"
 SNAME=$(basename $0)
 
 # --------------------------------------------------------------------- #
@@ -47,35 +47,7 @@
 # the output of that check, along with a log detailing the RPM versions #
 # required to fully analyze the application core.                       #
 #                                                                       #
-# --------------------------------------------------------------------- #
-# Changes:                                                              #
-#                                                                       #
-# 1.53 Release                                                          #
-#    - Updated chkbin location to /usr/sbin                             #
-#    - Check tar return code instead of existence of archive            #
-#    - Check for valid compression binary                               #
-# 1.52 Release                                                          #
-#    - Capture coredumpctl info in getappcore.log                       #
-#    - Changed nts_ to scc_ with ARCHIVE_PREFIX                         #
-# 1.51 Release                                                          #
-#    - Added journal core dump processing                               #
-#    - Check for valid core file                                        #
-#    - Updated documentation and messages                               #
-#    - Creates ARCHIVE_PATH as needed                                   #
-# 1.46 Release                                                          #
-#    - Replaced Novell with SUSE FTP servers                            #
-#    - Uses /etc/getappcore.conf if present                             #
-#    - Added -u for HTTPS and -f for FTPES uploads to SUSE FTP servers  #
-# 1.30 Release                                                          #
-#    - Added /etc/os-release processing                                 #
-# 1.28 Release                                                          #
-#    - Changed upload process to use curl instead of ftp                #
-# 1.27 Release                                                          #
-#    - Additional check to ensure binary is executable                  #
-# 1.26 Release                                                          #
-#    - Better binary checking                                           #
-# 1.25 Release                                                          #
-#    - Initial public release in supportutils                           #
+# Changes: Moved to the supportutils changelog                          #
 # --------------------------------------------------------------------- #
 
 
@@ -581,16 +553,38 @@
 
 if [ ! -z $COREFILE -a -e $COREFILE ]; then
        echo -n "Validating core file... "
-       if [[ -f $COREFILE ]]; then
-               echo Done
-               verbose "$(file $COREFILE)"
-       else
-               echo Invalid
-               echo " + $(file $COREFILE)"
+       COREFILE=$($READLINK_BIN -f $COREFILE)
+       verbose ''
+       MIME_TYPE=$(file --mime-type --brief $COREFILE)
+       TYPE=$(cut -d/ -f2 <<< $MIME_TYPE)
+       ERROR=1
+       CCMD=''
+       verbose "Core file path: $COREFILE"
+       verbose "File type: $MIME_TYPE"
+       case $TYPE in
+       x-coredump) echo Done; ERROR=0 ;;
+       x-zstd) CCMD='zstd -d'; PKG='zstd' ;;
+       x-lz4) CCMD='lz4 -d'; PKG='lz4' ;;
+       x-xz) CCMD='xz -d'; PKG='xz' ;;
+       x-bzip2) CCMD='bzip2 -d'; PKG='bzip2' ;;
+       x-gzip) CCMD='gzip -d'; PKG='gzip' ;;
+       esac
+       if (( $ERROR )); then
+               if [[ -n $CCMD ]]; then
+                       echo "ERROR: Core file compressed -- $MIME_TYPE"
+                       echo
+                       if rpm -q $PKG &> /dev/null; then
+                               echo "  Try: $CCMD $COREFILE"
+                       else
+                               echo "  Try: zypper in $PKG; $CCMD $COREFILE"
+                       fi
+               else
+                       echo "ERROR: Invalid core file type -- $MIME_TYPE"
+               fi
+               echo
                cleanup
-               exit -5
+               exit 5
        fi
-       COREFILE=$($READLINK_BIN -f $COREFILE)
        echo -n "Validating binary file... "
        verbose ''
        if [ -z $COREFILE_BIN ]; then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/supportutils-3.1.18/bin/supportconfig 
new/supportutils-3.1.19/bin/supportconfig
--- old/supportutils-3.1.18/bin/supportconfig   2021-10-04 19:19:37.686686535 
+0200
+++ new/supportutils-3.1.19/bin/supportconfig   2022-01-10 23:36:26.446077091 
+0100
@@ -1,11 +1,11 @@
 #!/bin/bash
 
-SVER='3.1.11-22'
-SDATE='2021 10 04'
+SVER='3.1.11-29'
+SDATE='2022 01 10'
 
 ##############################################################################
 #  supportconfig - Gathers system troubleshooting information for SUSE Support
-#  Copyright (C) 2001-2021 SUSE LLC
+#  Copyright (C) 2001-2022 SUSE LLC
 #
 #  Creates a tar ball to attach to the support case or send to support. 
 #  Collects comprehensive system information for troubleshooting and reducing
@@ -524,9 +524,9 @@
        OF=messages.txt
        addHeaderFile $OF
        if [[ $ADD_OPTION_LOGS -gt 0 ]]; then
-               FILES="$(ls -1 /var/log/warn-[[:digit:]]* 2>/dev/null) $(ls -1 
/var/log/localmessages-[[:digit:]]* 2>/dev/null) $(ls -1 
/var/log/messages-[[:digit:]]* 2>/dev/null)"
+               FILES="$(ls -1 /var/log/messages-[[:digit:]]* 2>/dev/null)"
                [[ -n "$FILES" ]] && log_entry $OF note "Additional Rotated 
Logs Included in the Tar Ball"
-               log_files $OF 0 /var/log/warn /var/log/localmessages 
/var/log/messages
+               log_files $OF 0 /var/log/messages
                for CMPLOG in $FILES
                do
                        FILE=$(basename $CMPLOG)
@@ -556,20 +556,6 @@
                        wait_trace_off
                done
        else
-               log_files $OF $VAR_OPTION_LINE_COUNT /var/log/warn
-               LOGFILE="/var/log/localmessages"
-               if [[ -e $LOGFILE ]]; then
-                       if [[ $VAR_OPTION_MSG_MAXSIZE -eq 0 ]]; then
-                               log_files $OF 0 $LOGFILE  # override and get 
the entire file
-                       else
-                               MSGSIZE=$(stat -c%s $LOGFILE)
-                               if [[ $MSGSIZE -gt $VAR_OPTION_MSG_MAXSIZE ]]; 
then
-                                       log_files $OF 
$VAR_OPTION_MSG_LINE_COUNT $LOGFILE # the file exceeded the max size allowed, 
get specified lines of the file
-                               else
-                                       log_files $OF 0 $LOGFILE # get the 
whole file
-                               fi
-                       fi
-               fi
                LOGFILE="/var/log/messages"
                if [[ -e $LOGFILE ]]; then
                        if [[ $VAR_OPTION_MSG_MAXSIZE -eq 0 ]]; then
@@ -589,6 +575,63 @@
        echolog Done
 }
 
+localwarn_file() {
+        printlog "Local/Warn Logs..."
+        test $MIN_OPTION_SYSLOGS -eq 0 && { echolog EXCLUDED; return 1; }
+        OF=messages_localwarn.txt
+        addHeaderFile $OF
+        if [[ $ADD_OPTION_LOGS -gt 0 ]]; then
+                FILES="$(ls -1 /var/log/warn-[[:digit:]]* 2>/dev/null) $(ls -1 
/var/log/localmessages-[[:digit:]]* 2>/dev/null)"
+                [[ -n "$FILES" ]] && log_entry $OF note "Additional Rotated 
Logs Included in the Tar Ball"
+                log_files $OF 0 /var/log/warn /var/log/localmessages
+                for CMPLOG in $FILES
+                do
+                        FILE=$(basename $CMPLOG)
+                        FILEROOT=${LOG}/$(cut -d\. -f1 <<< ${FILE})
+                        cp $CMPLOG ${LOG}
+                        FILE_TYPE=$(file --brief --mime-type $CMPLOG 
2>/dev/null)
+                        case $FILE_TYPE in
+                        "text/plain")
+                        ;;
+                        "application/x-xz")
+                                wait_trace_on "xz -d ${LOG}/$FILE"
+                                xz -d ${LOG}/$FILE
+                        ;;
+                        "application/x-bzip2")
+                                wait_trace_on "bzip2 -d ${LOG}/$FILE"
+                                bzip2 -d ${LOG}/$FILE
+                        ;;
+                        "application/x-gzip")
+                                wait_trace_on "gzip -d ${LOG}/$FILE"
+                                gzip -d ${LOG}/$FILE
+                        ;;
+                        *)
+                                continue
+                        ;;
+                        esac
+                        mv ${FILEROOT} ${FILEROOT}.txt
+                        wait_trace_off
+                done
+        else
+                log_files $OF $VAR_OPTION_LINE_COUNT /var/log/warn
+                LOGFILE="/var/log/localmessages"
+                if [[ -e $LOGFILE ]]; then
+                        if [[ $VAR_OPTION_MSG_MAXSIZE -eq 0 ]]; then
+                                log_files $OF 0 $LOGFILE  # override and get 
the entire file
+                        else
+                                MSGSIZE=$(stat -c%s $LOGFILE)
+                                if [[ $MSGSIZE -gt $VAR_OPTION_MSG_MAXSIZE ]]; 
then
+                                        log_files $OF 
$VAR_OPTION_MSG_LINE_COUNT $LOGFILE # the file exceeded the max size allowed, 
get specified lines of the file
+                                else
+                                        log_files $OF 0 $LOGFILE # get the 
whole file
+                                fi
+                        fi
+                fi
+        fi
+        echolog Done
+}
+
+
 audit_info() {
        printlog "Auditing..."
        test $OPTION_AUDIT -eq 0 && { echolog Excluded; return 1; }
@@ -1615,12 +1658,16 @@
 net_info() {
        printlog "Networking..."
        test $OPTION_NET -eq 0 && { echolog Excluded; return 1; }
-       NAMESPACES=$(ip netns list)
-       if [[ -n "${NAMESPACES}" ]] ; then
-               net_info_namespace "network.txt" 
-               ip netns list | while read NAMESPACE rest; do
-                       net_info_namespace "network-${NAMESPACE}.txt" 
"${NAMESPACE}"
-               done
+       if (( $INCLUDE_NETWORK_NAMESPACES )); then
+               NAMESPACES=$(ip netns list)
+               if [[ -n "${NAMESPACES}" ]] ; then
+                       net_info_namespace "network.txt" 
+                       ip netns list | while read NAMESPACE rest; do
+                               net_info_namespace "network-${NAMESPACE}.txt" 
"${NAMESPACE}"
+                       done
+               else
+                       net_info_namespace "network.txt" 
+               fi
        else
                net_info_namespace "network.txt" 
        fi
@@ -1645,6 +1692,7 @@
                        log_cmd $OF "systemctl status network.service"
                        log_cmd $OF "systemctl status nscd.service"
                        log_cmd $OF "wicked ifstatus --verbose all"
+                       log_cmd $OF "ip netns list"
                        log_cmd $OF "wicked show-config"
                elif (( SLES_VER >= 120 )) ; then
                        rpm_verify $OF wicked
@@ -2126,10 +2174,10 @@
                        log_cmd $OF "systemctl status chronyd.service"
                        FILES="$CONFFILE /etc/chrony.keys"
                        conf_files $OF $FILES
-                       if log_cmd $OF "chronyc sources -v"
+                       if log_cmd $OF "chronyc -n sources -v"
                        then
-                               log_cmd $OF "chronyc sourcestats -v"
-                               log_cmd $OF "chronyc tracking"
+                               log_cmd $OF "chronyc -n sourcestats -v"
+                               log_cmd $OF "chronyc -n tracking"
                                log_cmd $OF "chronyc activity"
                        else
                                NTP_DAEMON=0
@@ -2228,7 +2276,7 @@
                esac 
                if [[ -f $UDEV_CONF ]]; then
                        . $UDEV_CONF
-                       for UDEV_DIR in /usr/lib/udev/rules.d 
${udev_rules:=/etc/udev/rules.d}
+                       for UDEV_DIR in /lib/udev/rules.d /usr/lib/udev/rules.d 
${udev_rules:=/etc/udev/rules.d}
                        do
                                if [[ -d $UDEV_DIR ]]; then
                                        FILES=$(find $UDEV_DIR/ -type f)
@@ -3283,7 +3331,19 @@
        OF=proc.txt
        addHeaderFile $OF
 
-       if (( SLES_VER >= 120 )); then
+       conf_files $OF $PROC_FILES
+       for PROCDIR in $PROC_DIRS_DEPTH_ONE
+       do
+               FILES=$(find $PROCDIR -maxdepth 1 -type f 2>/dev/null | egrep 
-iv "${PROC_DIRS_DEPTH_ONE_FILTER_OUT}" | sort -f)
+               conf_files $OF $FILES
+       done
+       for PROCDIR in $PROC_DIRS_DEPTH_FULL
+       do
+               FILES=$(find $PROCDIR -type f 2>/dev/null | egrep -iv 
"${PROC_DIRS_DEPTH_FULL_FILTER_OUT}" | sort -f)
+               conf_files $OF $FILES
+       done
+
+       if (( SLES_VER >= 120 && ${INCLUDE_NETWORK_NAMESPACES} )); then
                # Check process name space against the default name space
                log_write $OF "#==[ Processes with a Different Default Name 
Space ]==#"
                log_write $OF "# name_space : process_id : command"
@@ -3319,22 +3379,6 @@
                log_write $OF
        fi      
 
-       FILES=$(find /proc/ -maxdepth 1 -type f 2>/dev/null | egrep -iv 
"kcore$|kpagecount$|kpageflags$|kpagecgroup$|vmcore$|config.gz$|kmsg$|sysrq-trigger$|kallsyms$|mm$|ssstm|pagetypeinfo$"
 | sort -f)
-       conf_files $OF $FILES
-       conf_files $OF /proc/mounts /proc/zoneinfo
-       ADDPROCS="/proc/sys/kernel/ /proc/scsi/ /proc/net/ /proc/dasd/"
-       for PROCDIR in $ADDPROCS
-       do
-               FILES=$(find $PROCDIR -maxdepth 1 -type f 2>/dev/null | egrep 
-iv "rt_acct$|/sched_domain/" | sort -f)
-               conf_files $OF $FILES
-       done
-       FULLPROCS="/proc/irq/ /proc/sys/"
-       
FILTER="fs/binfmt_misc/register|net/ipv4/route/flush|net/ipv6/route/flush|vm/compact_memory|base_reachable_time|scan_unevictable_pages|/sched_domain/"
-       for PROCDIR in $FULLPROCS
-       do
-               FILES=$(find $PROCDIR -type f 2>/dev/null | egrep -iv "$FILTER" 
| sort -f)
-               conf_files $OF $FILES
-       done
        # only include cpu0 sched_domain information, all others are excluded
        SCHED_DOMAIN='/proc/sys/kernel/sched_domain/cpu0'
        if [[ -d ${SCHED_DOMAIN} ]]; then
@@ -4386,6 +4430,7 @@
        (( OPTION_MOD > 0 )) && post_lsmod_list
        log2sys "Finished Gathering"
        messages_file           #Minimum Requirement
+       localwarn_file
        write_xml_file
 
        rm -f $LOG/$RPM_QA_FILE $LOG/$RPM_DIST_FILE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/supportutils-3.1.18/bin/supportconfig.rc 
new/supportutils-3.1.19/bin/supportconfig.rc
--- old/supportutils-3.1.18/bin/supportconfig.rc        2021-10-04 
19:36:56.787189206 +0200
+++ new/supportutils-3.1.19/bin/supportconfig.rc        2022-01-07 
21:43:13.936226127 +0100
@@ -1,7 +1,6 @@
-#!/bin/bash
 ##############################################################################
 #  supportconfig.rc - Resource file for supportconfig
-#  Copyright (C) 2001-2021 SUSE LLC
+#  Copyright (C) 2001-2022 SUSE LLC
 #
 #  Contains supporting functions and variables used by supportconfig and
 #  supportconfig plugins.
@@ -20,7 +19,7 @@
 #  You should have received a copy of the GNU General Public License
 #  along with this program; if not, see <http://www.gnu.org/licenses/>.
 #
-#  Modified: 2021 Oct 04
+#  Modified: 2022 Jan 07
 #  Authors/Contributors:
 #     Jason Record <jason.rec...@suse.com>
 #
@@ -180,6 +179,14 @@
 file /sbin/init | grep "systemd" &>/dev/null && SYSTEMD=1 || SYSTEMD=0
 IO_DELAYS=0
 
+PROC_FILES="/proc/mounts /proc/zoneinfo"
+PROC_DIRS_DEPTH_ONE="/proc/sys/kernel/ /proc/scsi/ /proc/net/ /proc/dasd/"
+PROC_DIRS_DEPTH_FULL="/proc/irq/ /proc/sys/"
+PROC_DIRS_DEPTH_ONE_FILTER_OUT="rt_acct$|/sched_domain/"
+PROC_DIRS_DEPTH_FULL_FILTER_OUT="fs/binfmt_misc/register|net/ipv4/route/flush|net/ipv6/route/flush|vm/compact_memory|base_reachable_time|scan_unevictable_pages|/sched_domain/"
+
+INCLUDE_NETWORK_NAMESPACES=1
+
 # These are minimum options and should never be unset.
 MIN_OPTION_RPM=1
 MIN_OPTION_ENV=1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/supportutils-3.1.18/spec/supportutils.changes 
new/supportutils-3.1.19/spec/supportutils.changes
--- old/supportutils-3.1.18/spec/supportutils.changes   2021-10-04 
19:39:32.355759871 +0200
+++ new/supportutils-3.1.19/spec/supportutils.changes   2022-01-10 
23:35:34.819351618 +0100
@@ -1,4 +1,27 @@
 -------------------------------------------------------------------
+Mon Jan 10 22:35:23 UTC 2022 - Jason Record <jason.rec...@suse.com>
+
+- Changes to version 3.1.19
+  + Made /proc directory and network names spaces configurable (bsc#1193868)
+
+-------------------------------------------------------------------
+Wed Dec 15 13:28:40 UTC 2021 - Jason Record <jason.rec...@suse.com>
+
+- Changes to version 3.1.19
+  + Removed chronyc DNS lookups with -n switch (bsc#1193732)
+
+-------------------------------------------------------------------
+Wed Nov 17 13:56:16 UTC 2021 - Jason Record <jason.rec...@suse.com>
+
+- Merged Include udev rules in /lib/udev/rules.d/ #113
+- Merged Move localmessage/warm logs out of messages.txt to new localwarn.txt 
#87
+
+-------------------------------------------------------------------
+Mon Oct 18 21:20:28 UTC 2021 - Jason Record <jason.rec...@suse.com>
+
+- getappcore identifies compressed core files (bsc#1191794)
+
+-------------------------------------------------------------------
 Mon Oct  4 17:38:56 UTC 2021 - Jason Record <jason.rec...@suse.com>
 
 - Installing to /usr/sbin instead of /sbin (bsc#1191096)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/supportutils-3.1.18/spec/supportutils.spec 
new/supportutils-3.1.19/spec/supportutils.spec
--- old/supportutils-3.1.18/spec/supportutils.spec      2021-10-04 
19:10:54.696409324 +0200
+++ new/supportutils-3.1.19/spec/supportutils.spec      2021-12-15 
14:30:40.678314658 +0100
@@ -19,7 +19,7 @@
 %define support_libdir /usr/lib/supportconfig
 
 Name:           supportutils
-Version:        3.1.18
+Version:        3.1.19
 Release:        0
 Summary:        Support Troubleshooting Tools
 License:        GPL-2.0-only

Reply via email to