2 Replies Latest reply on Apr 16, 2013 11:44 AM by Bill Robinson

    Audit RPMs

    Antonio Caputo

      Theorically we can audit server objects by right click on them and then define an audit job. Then if something is not compliant with the master the sync functionality fix the issue.

       

      So I have a master server and I want to use it to audit its RPMs against a target (in order to know what RPMs differ and then sync the two servers).

       

      Browsing the master I right click on RPM section and define an audit job and then run it against my target. The audit job runs fine and I have the results.

       

      Then I run a sync with master but it fails.

       

      ----------------------------------------------

      Warning 16-apr-2013 3.35.13 [stderr: 1] warning: 2000036.1/kernel-headers-2.6.32-358.2.1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY

        1 kernel-headers-2.6.32-358.2.1.el6.x86_64.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 1] package kernel-headers-2.6.32-358.2.1.el6.x86_64 is already installed

        1 kernel-headers-2.6.32-358.2.1.el6.x86_64.rpm

      Error 16-apr-2013 3.35.13 Command returned non-zero exit code: 1

        1 kernel-headers-2.6.32-358.2.1.el6.x86_64.rpm

      Warning 16-apr-2013 3.35.13 ActionOnFailure = Continue. Continuing deploy job

        1 kernel-headers-2.6.32-358.2.1.el6.x86_64.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 2] warning: 2002419.1/ppl-0.10.2-11.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY

        2 ppl-0.10.2-11.el6.i686.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 2] error: Failed dependencies:

        2 ppl-0.10.2-11.el6.i686.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 2] libgcc_s.so.1 is needed by ppl-0.10.2-11.el6.i686

        2 ppl-0.10.2-11.el6.i686.rpm

      Warning 16-apr-2013 3.35.13 libgcc_s.so.1(GCC_3.0) is needed by ppl-0.10.2-11.el6.i686

       

      Warning 16-apr-2013 3.35.13 libgmp.so.3 is needed by ppl-0.10.2-11.el6.i686

       

      Warning 16-apr-2013 3.35.13 libgmpxx.so.4 is needed by ppl-0.10.2-11.el6.i686

       

      Warning 16-apr-2013 3.35.13 libstdc++.so.6 is needed by ppl-0.10.2-11.el6.i686

       

      Warning 16-apr-2013 3.35.13 libstdc++.so.6(CXXABI_1.3) is needed by ppl-0.10.2-11.el6.i686

       

      Warning 16-apr-2013 3.35.13 libstdc++.so.6(GLIBCXX_3.4) is needed by ppl-0.10.2-11.el6.i686

       

      Warning 16-apr-2013 3.35.13 libstdc++.so.6(GLIBCXX_3.4.11) is needed by ppl-0.10.2-11.el6.i686

       

      Warning 16-apr-2013 3.35.13 libstdc++.so.6(GLIBCXX_3.4.9) is needed by ppl-0.10.2-11.el6.i686

       

      Error 16-apr-2013 3.35.13 Command returned non-zero exit code: 1

        2 ppl-0.10.2-11.el6.i686.rpm

      Warning 16-apr-2013 3.35.13 ActionOnFailure = Continue. Continuing deploy job

        2 ppl-0.10.2-11.el6.i686.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 3] warning: 2003299.1/cloog-ppl-0.15.7-1.2.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY

        3 cloog-ppl-0.15.7-1.2.el6.x86_64.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 3] error: Failed dependencies:

        3 cloog-ppl-0.15.7-1.2.el6.x86_64.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 3] libppl.so.7()(64bit) is needed by cloog-ppl-0.15.7-1.2.el6.x86_64

        3 cloog-ppl-0.15.7-1.2.el6.x86_64.rpm

      Warning 16-apr-2013 3.35.13 libppl_c.so.2()(64bit) is needed by cloog-ppl-0.15.7-1.2.el6.x86_64

       

      Error 16-apr-2013 3.35.13 Command returned non-zero exit code: 1

        3 cloog-ppl-0.15.7-1.2.el6.x86_64.rpm

      Warning 16-apr-2013 3.35.13 ActionOnFailure = Continue. Continuing deploy job

        3 cloog-ppl-0.15.7-1.2.el6.x86_64.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 4] warning: 2001230.1/mysql-5.1.67-1.el6_3.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY

        4 mysql-5.1.67-1.el6_3.x86_64.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 4] error: Failed dependencies:

        4 mysql-5.1.67-1.el6_3.x86_64.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 4] mysql-libs = 5.1.67-1.el6_3 is needed by mysql-5.1.67-1.el6_3.x86_64

        4 mysql-5.1.67-1.el6_3.x86_64.rpm

      Error 16-apr-2013 3.35.13 Command returned non-zero exit code: 1

        4 mysql-5.1.67-1.el6_3.x86_64.rpm

      Warning 16-apr-2013 3.35.13 ActionOnFailure = Continue. Continuing deploy job

        4 mysql-5.1.67-1.el6_3.x86_64.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 5] warning: 2001511.1/gcc-4.4.7-3.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY

        5 gcc-4.4.7-3.el6.x86_64.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 5] error: Failed dependencies:

        5 gcc-4.4.7-3.el6.x86_64.rpm

      Warning 16-apr-2013 3.35.13 [stderr: 5] cloog-ppl >= 0.15 is needed by gcc-4.4.7-3.el6.x86_64

        5 gcc-4.4.7-3.el6.x86_64.rpm

      Error 16-apr-2013 3.35.13 Command returned non-zero exit code: 1

        5 gcc-4.4.7-3.el6.x86_64.rpm

      Warning 16-apr-2013 3.35.13 ActionOnFailure = Continue

      ----------------------------------------------

       

      At a first glance I see two kind of errors:

       

      1. The sync builds a BLPackage that is not able to manage RPMs dependencies

      2. The sync is not able to "downgrade" RPMs. If you look at the first screenshot you can see that the master has a kernel-headers RPM that is older that the same on the target.

       

       

      Capture1.PNG

       

      Capture2.PNG

       

      So for the specific case how can we consider this use case as a valid BSA procedure to sync RPMs on the two servers?

      Is there any other way to achieve the same with a different approach?

       

      Thanks.

      A.