Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-2359

[RFE] improving rpm database collection and yum/rpm resiliency with sos

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • None
    • rhel-sst-cee-supportability
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      Requesting some updates with sos.

      Currently we have a plugin (rpm.rpmdb) which is off by default and only copies all of /var/lib/rpm into the sosreport.

      My suggestions for improvement are:

      1. When rpm/yum plugin fails or timeout's, automatically grab the rpm database
      1b. Decrease the timeout for rpm/yum plugins failing

      2. The rpmdb plugin should first attempt to tar the entire database for a more usable format for engineers

      RHEL 7 and lower

      1. tar cjf rpm_db-$(hostname).tar.bz2 /var/lib/ {rpm,yum}

      RHEL 8 and higher

      1. tar cJhf rpm_db-$(hostname).tar.xz /var/lib/ {rpm,dnf}

        /etc/

        {dnf*,os-release}
      • - - - - - - - -
        If there is any concern over size I would secondarily request we make this generate the tar outside of the sos
        Example:
        sosreport > detects rpm issues > generates /var/tmp/rpmdb.tar.xz

      Or just have it inside the rpm database.

              rhn-support-jjansky Jan Jansky
              rhn-support-jcastran John Castranio
              Jan Jansky Jan Jansky
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              1 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated: