Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add /etc/locale.conf to i18n module | Bryn M. Reeves | 2012-12-06 | 1 | -1/+1 |
| | |||||
* | Fix exception when sar module enabled on system without sysstat | Bryn M. Reeves | 2012-12-06 | 1 | -3/+5 |
| | | | | | The sar module assumes that /var/log/sa exists when it is enabled. Check for its presence and exit from setup early. | ||||
* | Preserve permissions and ownership for files stored as strings | Bryn M. Reeves | 2012-12-06 | 1 | -1/+11 |
| | | | | | | | | | | Files that are stored as strings bypass the permissions code added in commit 74c1476 since they are added to the archive via add_string(). Add a check to see if a destination exists in the host file system. If it does propagate the permissions to the stored string's tar record. | ||||
* | Preserve permissions, ownership and times for files in archive | Bryn M. Reeves | 2012-12-06 | 1 | -2/+6 |
| | | | | | | | Stat files during archiving and propagate the mode, atime, uid and gid to the archive. Fixes issue #76 | ||||
* | Handle non-readable files better in doCopyFileOrDir | Bryn M. Reeves | 2012-12-06 | 1 | -1/+7 |
| | | | | | | | | | | | Currently a non-readable file causes an exception and resulting error logging as the path is passed blindly to archive.add_file(). There are legitimate reasons why directories colleceted by sos may contain files not readable by root, e.g. in sysfs where there are numerous write-only trigger files. Check the permissions via os.stat() before reading the file and substitute unreadable files with the empty string. | ||||
* | Move Debian iSCSI target plugin to iscsitarget module | Bryn M. Reeves | 2012-12-06 | 2 | -16/+25 |
| | | | | | | | | | The Debian iSCSI class implements iscsi target data collection. Move it to the iscsitarget module where it belongs. This needs further work to add an iSCSI initiator implementation for Debian and Ubuntu. That should be very straightforward but needs a system for testing. | ||||
* | Remove redundant exception handling in postgresql module | Bryn M. Reeves | 2012-12-06 | 1 | -5/+1 |
| | | | | | | | | | | | | | | | | | If we pass a 'None' into shutil.rmtree() it will os.path.join() that with a string leading to a TypeError: Traceback (most recent call last): File "/usr/sbin/sosreport", line 23, in <module> main(sys.argv[1:]) File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 961, in main sos.execute() TypeError: coercing to Unicode: need string or buffer, NoneType found > /usr/lib64/python2.7/posixpath.py(133)islink() -> st = os.lstat(path) Rather than catch the exception test tmp_dir before calling rmtree. | ||||
* | Fix PacakgeManager.pkgByName() | Bryn M. Reeves | 2012-12-06 | 1 | -4/+8 |
| | | | | | | | Fix a typo that prevents any package manager queries from succeeding and change the wrapper function to explicitly test the results list rather than relying on an exception to detect an empty result set. | ||||
* | Restore exception handling and logging in copy_stuff() | Bryn M. Reeves | 2012-12-06 | 1 | -6/+6 |
| | | | | | Now that collectOutputNow is fixed restore the exception handling block and logging in copy_stuff(). | ||||
* | Fix exception in postgresql postproc method | Bryn M. Reeves | 2012-12-06 | 1 | -1/+6 |
| | | | | | Do not assume that tmp_dir has been set and wrap tree deletion in a try block. | ||||
* | Collect rhsm log files in general module | Bryn M. Reeves | 2012-12-06 | 1 | -1/+3 |
| | |||||
* | Collect subscription-manager output in yum module | Bryn M. Reeves | 2012-12-06 | 1 | -0/+2 |
| | |||||
* | Add /proc/iomem to the hardware module | Bryn M. Reeves | 2012-12-06 | 1 | -0/+1 |
| | |||||
* | Add Red Hat Update Infrastructure module | Bryn M. Reeves | 2012-12-06 | 1 | -0/+43 |
| | |||||
* | Fix line lengths and whitespace in rhn.py | Bryn M. Reeves | 2012-12-06 | 1 | -3/+6 |
| | |||||
* | Update RHN module and add spacewalk-debug collection | Bryn M. Reeves | 2012-12-06 | 1 | -12/+14 |
| | | | | | Update the RHN module to match current RHEL6 where relevant and add collection of spacewalk-debug on appropriate systems. | ||||
* | Do not collect archived accounting files in psacct module | Bryn M. Reeves | 2012-12-06 | 1 | -1/+9 |
| | |||||
* | Set default console loglevel to ERROR not FATAL | Bryn M. Reeves | 2012-12-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | Setting the default console loglevel to FATAL causes important log messages to be discarded leading to mysterious failures for e.g. when an unknown option is specified: [root@hex tmp]# sosreport --batch --debug -k psacct.all=True sosreport (version 2.3) [root@hex tmp]# Lolwhut? [root@hex tmp]# sosreport -vvvv --batch --debug -k psacct.all=True sosreport (version 2.3) no such option "all" for plugin (psacct) [root@hex tmp]# | ||||
* | Add sanlock module | Bryn M. Reeves | 2012-12-06 | 1 | -0/+36 |
| | |||||
* | Fix comment and remove dead code in doExtOutputSub | Bryn M. Reeves | 2012-12-06 | 1 | -3/+2 |
| | |||||
* | Test for existence of script in hardware module | Bryn M. Reeves | 2012-12-06 | 1 | -4/+4 |
| | | | | | | Test for the existence of the hardware.py script in the RedHatHardware module instead of relying on an exception from the output gathering functions. | ||||
* | Fix collectOutputNow to correctly log command execution errors | Bryn M. Reeves | 2012-12-06 | 1 | -15/+11 |
| | | | | | | When a command is not found log and exit from the function early. For all other statuses try to collect output anyway in case anything useful was written to stdout or stderr. | ||||
* | Fix error message in Plugin base class | Bryn M. Reeves | 2012-12-06 | 1 | -3/+6 |
| | |||||
* | Fix whitespace and long lines in cluster module | Bryn M. Reeves | 2012-12-05 | 1 | -42/+58 |
| | |||||
* | Obscure password in corosync-objctl output | Bryn M. Reeves | 2012-12-05 | 1 | -0/+1 |
| | |||||
* | Rename regex substitution functions | Bryn M. Reeves | 2012-12-05 | 13 | -21/+21 |
| | | | | | Rename doRegexSub and doRegexExtOutputSub to doFileSub and doExtOutputSub respectively. | ||||
* | Add implementation of command output post-processing | Bryn M. Reeves | 2012-12-05 | 2 | -1/+31 |
| | | | | | | Add a doRegexExtOutputSub() function to mirror doRegExSub(). This allows modukes ti apply an arbitrary regular expression substitution to the output collected from external commands. | ||||
* | Add fence_virt.conf and corosync command outputs to cluster | Bryn M. Reeves | 2012-12-05 | 1 | -0/+5 |
| | | | | Update cluster module to match current rhel-6 | ||||
* | Add missing import statement to libvirt module | Bryn M. Reeves | 2012-12-05 | 1 | -0/+1 |
| | |||||
* | Obscure display passwords in collected libvirt/qemu files | Bryn M. Reeves | 2012-12-05 | 1 | -0/+6 |
| | |||||
* | Remove duplicate gluster module | Bryn M. Reeves | 2012-12-05 | 1 | -26/+0 |
| | | | | | Remove duplicate gluster module accidentally committed while forward porting the current rhel-6 version. | ||||
* | Collect /proc/pagetypeinfo in memory module | Bryn M. Reeves | 2012-12-04 | 1 | -1/+2 |
| | |||||
* | Fix error logging when calling external programs | Bryn M. Reeves | 2012-12-04 | 1 | -0/+2 |
| | |||||
* | Avoid deprecated sysctls in /proc/sys/net | Bryn M. Reeves | 2012-12-04 | 1 | -0/+6 |
| | |||||
* | Collect /etc/multipath in device-mapper module | Bryn M. Reeves | 2012-12-04 | 1 | -0/+1 |
| | |||||
* | Obscure passwords in files collected from ipa module | Bryn M. Reeves | 2012-12-04 | 1 | -0/+6 |
| | |||||
* | Use a default report name if name is empty after sanitizing | Bryn M. Reeves | 2012-12-04 | 1 | -0/+3 |
| | |||||
* | Update IPA module and related plug-ins | Bryn M. Reeves | 2012-12-04 | 4 | -7/+91 |
| | |||||
* | Collect mcelog files in the hardware module | Bryn M. Reeves | 2012-12-04 | 1 | -1/+2 |
| | |||||
* | Use wildcard to match possible libvirt log paths | Bryn M. Reeves | 2012-12-04 | 1 | -1/+1 |
| | |||||
* | Update gluster module to match current rhel-6 | Bryn M. Reeves | 2012-12-04 | 1 | -3/+97 |
| | |||||
* | Update cloudforms module to match current rhel-6 | Bryn M. Reeves | 2012-12-04 | 1 | -5/+13 |
| | |||||
* | Clean up kernel_rt module | Bryn M. Reeves | 2012-12-04 | 2 | -5/+5 |
| | | | | | Rename the realtime kernel module to "kernelrt" and move non-realtime specific information to more appropriate modules. | ||||
* | Improve sanitization of user and case number in LinuxPolicy | Bryn M. Reeves | 2012-12-04 | 1 | -4/+9 |
| | |||||
* | Fix verbose logging | Bryn M. Reeves | 2012-12-04 | 2 | -2/+7 |
| | | | | | Propagate soslog and proflog objects to plugins properly and ensure debug logging makes it to sos.log when verbose mode is enabled. | ||||
* | Don't handle plugin exceptions in import_plugin | Bryn M. Reeves | 2012-12-04 | 1 | -7/+4 |
| | | | | | | Don't catch exceptions thrown during plugin import from import_plugin itself. The main load_plugins in sosreport.py already handles exception logging and trapping them here loses useful information. | ||||
* | Add basic support for CloudForms data collection | Bryn M. Reeves | 2012-12-04 | 1 | -0/+29 |
| | |||||
* | Add new sunrpc module to collect rpcinfo for gluster systems | Bryn M. Reeves | 2012-12-04 | 1 | -0/+30 |
| | |||||
* | Obscure root password if present in anacond-ks.cfg | Bryn M. Reeves | 2012-12-04 | 1 | -0/+5 |
| | |||||
* | Use correct paths for tomcat6 in RHN module | Bryn M. Reeves | 2012-12-04 | 1 | -5/+2 |
| |