[sos-devel] [PATCH v4] sosreport: Check for rpm database corruption during initialization
Bryn M. Reeves
bmr at redhat.com
Mon Dec 15 12:45:27 UTC 2014
On Fri, Dec 12, 2014 at 11:27:07AM +0530, Aruna Balakrishnaiah wrote:
> sosreport runs an rpm query to get the package list. If rpmdb is corrupted
> sosreport hangs for ever hence check for rpmdb consistency before running
> the rpm query
Thanks Aruna, this looks good. The only remaining question I think is how
long the timeout should be; I'll merge it with the current setting but in
most of my tests this operation completes in <30s (actually the vast
majority it's <5s - typically 1-2s).
The tricky bit here is that sos is designed to run on systems that are in
trouble; if we set it too low we'll get false failures and a failure to
obtain diagnostics so let's leave it at 180s for now and see if there are
any complaints of sosreport taking a long time to fail package manager
set up.
Regards,
Bryn.
More information about the sos-devel
mailing list